parse-datetime, parse-duration: no 'static inline'
[gnulib.git] / ChangeLog
1 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2
3         parse-datetime, parse-duration: no 'static inline'
4         * lib/parse-datetime.y (to_uchar):
5         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
6         (scale_n_add):
7         Now static, not static inline.
8         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
9         * modules/parse-duration (configure.ac):
10         Do not require AC_C_INLINE.
11
12         getaddrinfo: no 'static inline'
13         * lib/getaddrinfo.c (validate_family):
14         Now static, not static inline.
15         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
16         Do not require AC_C_INLINE.
17
18         ftruncate, fts, lstat, openat, raise: no 'static inline'
19         * lib/ftruncate.c (chsize_nothrow):
20         * lib/fts.c (opendirat, diropen):
21         * lib/lstat.c (orig_lstat):
22         * lib/openat.c (orig_openat):
23         * lib/raise.c (raise_nothrow):
24         Now static, not static inline.
25         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
26         * m4/fts.m4 (gl_FUNC_FTS_CORE):
27         * m4/lstat.m4 (gl_PREREQ_LSTAT):
28         * m4/openat.m4 (gl_PREREQ_OPENAT):
29         * m4/raise.m4 (gl_PREREQ_RAISE):
30         Do not require AC_C_INLINE.
31
32         fflush, stat: no 'static inline'
33         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34         (clear_ungetc_buffer, disable_seek_optimization)
35         (restore_seek_optimization, update_fpos_cache):
36         * lib/stat.c (orig_stat):
37         Now static, not static inline.
38         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
39         (update_fpos_cache):
40         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
41         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
42         * m4/stat.m4 (gl_PREREQ_STAT):
43         Do not require AC_C_INLINE.
44
45         error, filevercmp: no 'static inline'
46         * lib/error.c (is_open, flush_stdout):
47         * lib/filevercmp.c (order):
48         Now static, not static inline.
49         * m4/error.m4 (gl_PREREQ_ERROR):
50         * modules/filevercmp (configure.ac):
51         Do not require AC_C_INLINE.
52
53         dup, execute, fatal-signal, etc.: no 'static inline'
54         * lib/dup.c (dup_nothrow):
55         * lib/execute.c (nonintr_close, nonintr_open):
56         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
57         * lib/fopen.c (orig_fopen):
58         * lib/freadseek.c (freadptrinc):
59         * lib/freopen.c (orig_freopen):
60         * lib/fstat.c (orig_fstat, fstat_nothrow):
61         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
62         (get_rusage_as_via_iterator):
63         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
64         * lib/getdtablesize.c (_setmaxstdio_nothrow):
65         * lib/isatty.c (_isatty_nothrow):
66         * lib/open.c (orig_open):
67         * lib/read.c (read_nothrow):
68         * lib/sigprocmask.c (signal_nothrow):
69         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
70         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
71         * lib/wait-process.c (unregister_slave_subprocess):
72         * lib/write.c (write_nothrow):
73         Now static, not static inline.
74         * lib/spawn-pipe.c (nonintr_open): Define only if
75         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
76         * m4/dup.m4 (gl_PREREQ_DUP):
77         * m4/execute.m4 (gl_EXECUTE):
78         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
79         * m4/fopen.m4 (gl_PREREQ_FOPEN):
80         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
81         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
82         * m4/fstat.m4 (gl_PREREQ_FSTAT):
83         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
84         * m4/isatty.m4 (gl_PREREQ_ISATTY):
85         * m4/open.m4 (gl_PREREQ_OPEN):
86         * m4/read.m4 (gl_PREREQ_READ):
87         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
88         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
89         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
90         * m4/wait-process.m4 (gl_WAIT_PROCESS):
91         * m4/write.m4 (gl_PREREQ_WRITE):
92         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
93         Do not require AC_C_INLINE.
94
95         c-strtod, memcoll, readutmp: no 'static inline'
96         * lib/c-strtod.c (c_locale):
97         * lib/memcoll.c (strcoll_loop):
98         * lib/readutmp.c (desirable_utmp_entry):
99         Now static, not static inline.
100         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
101         * m4/memcoll.m4 (gl_MEMCOLL):
102         * m4/readutmp.m4 (gl_READUTMP):
103         Do not require AC_C_INLINE.
104
105         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
106         * lib/arctwo.c (to_uchar):
107         * lib/md4.c (set_uint32):
108         * lib/md5.c (set_uint32):
109         * lib/sha1.c (set_uint32):
110         * lib/sha256.c (set_uint32):
111         * lib/sha512.c (set_uint64):
112         Now static, not static inline.  This is a bit simpler, and doesn't
113         affect performance with GCC and default optimization.
114         * m4/arctwo.m4 (gl_ARCTWO):
115         * m4/md4.m4 (gl_MD4):
116         * m4/md5.m4 (gl_MD5):
117         * m4/sha1.m4 (gl_SHA1):
118         * m4/sha256.m4 (gl_SHA256):
119         * m4/sha512.m4 (gl_SHA512):
120         Do not require AC_C_INLINE.
121
122         cond, lock, thread: better 'inline'
123         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
124         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
125         New macros.  Use them instead of static inline, for header functions.
126         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
127         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
128         * lib/glthread/lock.c (gl_waitqueue_init)
129         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
130         * lib/glthread/thread.c (get_current_thread_handle):
131         Change 'static inline' to 'inline'.
132         * lib/glthread/cond.h, lib/glthread/thread.h:
133         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
134         * m4/cond.m4 (gl_COND):
135         * m4/lock.m4 (gl_PREREQ_LOCK):
136         * m4/thread.m4 (gl_THREAD):
137         Do not require AC_C_INLINE.
138         * modules/cond, modules/thread (Depends-on): Add extern-inline.
139
140         chdir-long, cycle-check, savewd: better 'inline'
141         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
142         (find_non_slash):
143         * lib/cycle-check.c (is_zero_or_power_of_two):
144         * lib/savewd.c (savewd_delegating):
145         Change 'static inline' to 'inline'.
146         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
147         Replace all remaining uses of 'static inline' with it.
148         * lib/savewd.h:
149         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
150         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
151         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
152         * m4/savewd.m4 (gl_SAVEWD):
153         Do not require AC_C_INLINE.
154         * modules/savewd (Depends-on): Add extern-inline.
155
156         base32, base64: no need for 'inline'
157         * lib/base32.c (to_uchar, get_8, decode_8):
158         * lib/base64.c (to_uchar, get_4, decode_4):
159         Change 'static inline' to 'inline'.
160         * m4/base32.m4 (gl_PREREQ_BASE32):
161         * m4/base64.m4 (gl_PREREQ_BASE64):
162         Do not require AC_C_INLINE.
163
164         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
165         * lib/gl_array_oset.c (gl_array_nx_add_at):
166         (gl_array_remove_at):
167         * lib/gl_linkedhash_list.c (hash_resize_after_add)
168         (add_to_bucket, remove_from_bucket):
169         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
170         Change 'static inline' to 'static', as it's simpler to omit
171         'inline' unless there's a significant performance advantage.
172
173         list, oset, xlist, xoset, xsublist: simplify via extern inline
174         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
175         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
176         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
177         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
178         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
179         New macro.  Replace all uses of 'static inline' with it.
180         [HAVE_INLINE]: Implement functions as *_INLINE functions,
181         instead of as macros FOO that are defined to static inline
182         functions FOO_inline.
183         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
184         * lib/gl_xsublist.c:
185         Reimplement from scratch, by defining the corresponding *_INLINE
186         macro and including the corresponding .h file.  This is simpler.
187         * modules/list, modules/oset, modules/xlist, modules/xoset:
188         (Files): Remove m4/gl_list.m4.
189         (configure.ac): Remove gl_LIST.
190         * m4/gl_list.m4: Remove.
191         * modules/list, modules/oset, modules/xlist, modules/xoset:
192         * modules/xsublist:
193         (Depends-on): Depend on extern-inline, not inline.
194
195         xalloc: better 'inline'
196         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
197         New macro.  Replace all uses of 'static inline' with it.
198         (static_inline): Remove.
199         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
200         Let 'extern inline' do the work automatically, instead of doing
201         it by hand.
202         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
203         Remove.  All uses removed.
204         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
205
206         gethrxtime: better 'inline'
207         * lib/xtime.c: New file.
208         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
209         * lib/xtime.h (XTIME_INCLUDE):
210         New macros.  Replace all uses of 'static inline' with them.
211         * lib/gethrxtime.c (gethrxtime): Define only if
212         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
213         this source file is now always compiled, because of the extern inline.
214         * lib/gethrxtime.h, lib/xtime.h:
215         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
216         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
217         if gethrtime works, as they're not needed in that case.
218         (gl_XTIME): Do not require AC_C_INLINE.
219         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
220         compiled now.  Move the check into gl_GETHRXTIME.
221         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
222         (Depends-on): Add extern-inline.
223         (configure.ac): gethrxtime is always compiled now.
224         (lib_SOURCES): Add gethrxtime.c.
225
226         wctype-h: better 'inline'
227         * lib/wctype-h.c: New file.
228         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
229         New macro.  Replace all uses of 'static inline' with it.
230         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
231         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
232         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
233         (Depends-on): Add extern-inline.
234
235         unistd: better 'inline'
236         * lib/unistd.c: New file.
237         * lib/unistd.in.h (_GL_UNISTD_INLINE):
238         New macro.  Replace all uses of 'static inline' with it.
239         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
240         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
241         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
242         (Depends-on): Add extern-inline.
243
244         sys_socket: better 'inline'
245         * lib/sys_socket.c: New file.
246         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
247         New macro.  Replace all uses of 'static inline' with it.
248         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
249         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
250         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
251         (Depends-on): Add extern-inline.
252
253         stdio: better 'inline'
254         * lib/stdio.c: New file.
255         * lib/stdio.in.h (_GL_STDIO_INLINE):
256         New macro.  Replace all uses of 'static inline' with it.
257         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
258         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
259         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
260         (Depends-on): Add extern-inline.
261
262         sigaction: better 'inline'
263         * lib/sig-handler.c: New file.
264         * lib/sig-handler.h (SIG_HANDLER_INLINE):
265         New macro.  Replace all uses of 'static inline' with it.
266         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
267         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
268         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
269         (Depends-on): Add extern-inline.
270
271         selinux-h: better 'inline'
272         * lib/se-context.c, lib/se-selinux.c: New files.
273         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
274         * lib/se-context.in.h (SE_CONTEXT_INLINE):
275         New macro.  Replace all uses of 'static inline' with it.
276         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
277         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
278         New macro.  Replace all uses of 'static inline' with it.
279         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
280         * modules/selinux-h (Files, lib_SOURCES):
281         Add lib/se-context.c, lib/se-selinux.c.
282         (Depends-on): Add extern-inline.
283         (configure.ac): Do not require AC_C_INLINE.
284
285         pthread: better 'inline'
286         * lib/pthread.c: New file.
287         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
288         New macro.  Replace all uses of 'static inline' with it.
289         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
290         * m4/pthread.m4 (gl_PTHREAD_CHECK):
291         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
292         * modules/pthread (Files): Add lib/pthread.c.
293         (Depends-on): Add extern-inline.
294
295         math: better 'inline'
296         * lib/math.c: New file.
297         * lib/math.in.h (_GL_MATH_INLINE):
298         New macro.  Replace all uses of 'static inline' with it.
299         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
300         * m4/math_h.m4 (gl_MATH_H):
301         Do not require AC_C_INLINE.
302         * modules/math (Files, lib_SOURCES):
303         Add lib/math.c.
304         (Depends-on): Add extern-inline.
305
306         count-one-bits: better 'inline'
307         * lib/count-one-bits.c: New file.
308         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
309         New macro.  Replace all uses of 'static inline' with it.
310         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
311         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
312         Do not require AC_C_INLINE.
313         * modules/count-one-bits (Files, lib_SOURCES):
314         Add lib/count-one-bits.c.
315         (Depends-on): Add extern-inline.
316
317         count-leading-zeros: better 'inline'
318         * lib/count-leading-zeros.c: New file.
319         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
320         New macro.  Replace all uses of 'static inline' with it.
321         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
322         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
323         Do not require AC_C_INLINE.
324         * modules/count-leading-zeros (Files, lib_SOURCES):
325         Add lib/count-leading-zeros.c.
326         (Depends-on): Add extern-inline.
327
328         bitrotate: better 'inline'
329         * lib/bitrotate.c: New file.
330         * lib/bitrotate.h (BITROTATE_INLINE):
331         New macros.
332         Replace all uses of 'static inline' with them.
333         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
334         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
335         (Depends-on): Add extern-inline.
336         (configure.ac): Do not require AC_C_INLINE.
337
338 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
339
340         maint.mk: avoid gratuitous failure
341         Reported by Stefano Lattarini in
342         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
343         * top/maint.mk (public-submodule-commit): Quote more safely.
344
345 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
346
347         canonicalize, canonicalize-lgpl: support MS-Windows file names
348         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
349         for test cases, which it'd be nice to add at some point.
350         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
351         * lib/canonicalize.c (canonicalize_filename_mode):
352         * lib/canonicalize-lgpl.c (__realpath):
353         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
354         slash is at the beginning of the file name.  Use ISSLASH, instead
355         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
356         the first character with '/'.  Test for
357         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
358         with a drive letter.
359         * lib/canonicalize.c (SLASHES): New macro.
360         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
361
362 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
363
364         fts: introduce FTS_VERBATIM
365         * lib/fts_.h (FTS_VERBATIM): New bit flag.
366         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
367         * lib/fts.c (fts_open): Honor it.
368
369 2012-11-09  Pádraig Brady  <P@draigBrady.com>
370
371         getlogin-tests: allow errno == ENXIO
372         * tests/test-getlogin.c (main): Skip tests if getlogin fails
373         with errno == ENXIO (No controlling tty).
374         getlogin_r-tests: Likewise. Also allow errno == ENOENT
375         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
376         with errno == ENOENT.  This was reported to happen in various
377         situations on GNU/Linux.
378
379 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
380
381         getlogin-tests: allow errno == ENOENT
382         * tests/test-getlogin.c (main): Skip tests if getlogin fails
383         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
384         when running a test in an Emacs shell buffer.
385
386 2012-11-08  Jim Meyering  <jim@meyering.net>
387
388         tests/nap.h: avoid warning about unused variable
389         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
390
391         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
392         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
393         white space before each of the special-cased file names, to avoid
394         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
395         in http://bugs.gnu.org/12830.
396
397 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
398
399         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
400         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
401         fails with errno == EBADF when fd is opened with O_PATH.
402         Reported by Jim Meyering in
403         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
404         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
405         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
406
407 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
408
409         test-utimens: speed up by taking shorter naps
410         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
411         New functions.
412         (nap): Use them, to do a better job of guessing the delay.
413         On Fedora 17 with ext4 atop md atop hard disks, this made
414         test-utimens run 10x faster, because the test napped for
415         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
416         <http://bugs.gnu.org/12820#11>.
417
418 2012-11-07  Jim Meyering  <jim@meyering.net>
419
420         mountlist.c: fix a compilation failure
421         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
422         I introduced while transforming commit v0.0-7683-g613bcb6
423
424 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
425
426         errno: port to LynxOS 178 2.2.2
427         Problem reported by Joel Brobecker in
428         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
429         * doc/posix-headers/errno.texi (errno.h): Document this.
430         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
431         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
432         Supply a string for EILSEQ.
433         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
434
435 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
436
437         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
438         Linux kernel 2.6.39 introduced O_PATH (see
439         <http://lwn.net/Articles/433854/>) and this is a better fallback
440         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
441         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
442         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
443         * lib/fcntl.in.h (O_ACCMODE):
444         * tests/test-fcntl-h.c (main):
445         Do not reject O_ACCMODE merely because it has more than the
446         minimal number of bits, as POSIX allows extensions here.
447
448 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
449
450         mountlist: do not classify a bind-mounted dir entry as "dummy"
451         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
452         the "none"-testing clause.
453         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
454         exception for bind-mounted directories.
455
456 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
457
458         quote: provide a means to escape strings with nul characters
459         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
460         (quote, quote_n): Rename formal arguments for consistency with
461         quotearg.
462
463 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
464
465         test-raise: don't assume 199 is an invalid signal
466         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
467
468         sh-quote-tests: port to Solaris 9
469         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
470         Problem reported by Dagobert Michelsen in
471         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
472
473 2012-10-28  Jim Meyering  <jim@meyering.net>
474
475         maint.mk: rename a new configurable variable
476         * top/maint.mk (_gl_translatable_string_re): Rename from
477         translation-markers: _gl_ prefix to insulate from user Makefile code,
478         and the _re suffix to inform that it's a regular expression.
479
480 2012-10-26  Eric Blake  <eblake@redhat.com>
481
482         maint.mk: let packages tweak sc_po_check pattern
483         * top/maint.mk (sc_po_check): Add translation-markers, to allow
484         finding files with other translation markers.
485
486 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
487
488         euidaccess: speed up 'configure' on GNU hosts
489         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
490         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
491         it's needed only in this case.  Use AC_CHECK_DECLS, not
492         AC_CHECK_DECLS_ONCE.
493         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
494         or AC_REQUIRE for AC_FUNC_GETGROUPS.
495
496         * lib/regexec.c (re_search_internal): Fix grammar in comment.
497
498 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
499
500         fchmodat, fchownat, fstatat: port to non-inlining compilers
501         Problem reported for FreeBSD 9 by Jim Meyering in
502         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
503         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
504         New files, which define FCHMODAT_INLINE etc.
505         * lib/fchmodat.c (FCHMODAT_INLINE):
506         * lib/fchownat.c (FCHOWNAT_INLINE):
507         * lib/fstatat.c (FSTATAT_INLINE):
508         Remove, as chmodat.c etc. now do this.
509         * modules/fchmodat (Files): Add lib/chmodat.c.
510         * modules/fchownat (Files): Add lib/chownat.c.
511         * modules/fstatat (Files): Add lib/statat.c.
512
513 2012-10-15  Jim Meyering  <jim@meyering.net>
514
515         fchmodat.c, fchownat.c: compile-impeding typos
516         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
517         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
518         Introduced in commit v0.0-7636-gd202279.
519
520 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
521
522         fcntl-h: support GNU flags like O_IGNORE_CTTY
523         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
524         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
525         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
526         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
527         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
528         Define to 0 if not already defined.
529         * tests/test-fcntl-h.c: Test these new flags.
530
531 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
532
533         faccessat, etc.: support AT_FDCWD-only use
534         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
535         this function only if its first argument is AT_FDCWD.
536         Emacs wants faccessat for AT_EACCESS but not for any first-arg
537         values other than AT_FDCWD, so it doesn't want all the openat
538         machinery with fchdir etc.
539         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
540         * modules/fstatat, modules/mkdirat, modules/openat (Files):
541         * modules/unlinkat (Files):
542         Remove lib/openat-priv.h, as at-internal supplies this file.
543         Removing this file here allows us to support programs like Emacs
544         that avoid at-internal.
545
546         faccessat: speed up 'configure' on mainstream hosts
547         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
548         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
549         since it's only on unusual platforms that we need to check for
550         'access', and it's better not to slow 'configure' down on all
551         platforms.
552
553         faccessat: port to Solaris 10
554         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
555         Needed on Solaris 10, which doesn't have AT_EACCESS,
556         so we need the Gnulib fcntl.h, which defines it.
557
558 2012-10-14  Pádraig Brady  <P@draigBrady.com>
559         canonicalize: fix C89 compilation
560         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
561         declarations so C89 is supported.  Also remove the comment
562         referencing memorty allocation as the suggested feature could
563         not be implemented as suggested.
564         Reported by Michael Goffioul.
565
566 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
567
568         group-member: omit unnecessary dependencies
569         This is for Emacs, which has its own allocator and where we
570         don't want to use xalloc.
571         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
572         since we no longer use xmalloc.  Do not include stdbool.h, since
573         the changes below happen to remove the only use of bool.
574         (GROUPBUF_SIZE): New constant.
575         (struct group_info): Remove n_groups member.  Add groupbuf member.
576         This lets us get the groups without using malloc, usually.
577         (free_group_info, get_group_info): Adjust to this.
578         (get_group_info): Return the number of groups found, or -1 on error.
579         Use plain malloc not xmalloc, and treat its failure as if there
580         are no groups, as the user already loses in case of error.
581         (group_member): Simplify, based on changes to get_group_info.
582         * modules/group-member (Depends-on): Remove dependencies on
583         xalloc and stdbool.  Add dependency on xalloc-oversized.
584
585 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
586
587         gethrxtime: port to C++
588         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
589
590 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
591
592         ptsname: fix macro-name typo
593         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
594
595 2012-10-03  Simon Josefsson  <simon@josefsson.org>
596
597         inttostr: Relax license.
598         * modules/inttostr (License): Change from LGPL to LGPLv2+.
599
600 2012-10-03  Eric Blake  <eblake@redhat.com>
601
602         ptsname_r: support ptys returned by FreeBSD posix_openpt
603         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
604         lives in /dev/pts/.
605
606 2012-10-02  Eric Blake  <eblake@redhat.com>
607
608         pselect: reject invalid file descriptors
609         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
610         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
611         * modules/pselect (Depends-on): Add dup2.
612         * doc/posix-functions/pselect.texi (pselect): Document this.
613
614         select: reject invalid file descriptors
615         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
616         * lib/select.c (rpl_select) [!win32]: Work around it.
617         * modules/select (Depends-on): Add dup2.
618         * doc/posix-functions/select.texi (select): Document this.
619
620         select: enhance test
621         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
622         New functions.
623         (test_function): Enhance test.
624         (do_select_bad_fd): Avoid any stale errno values.
625
626         ptsname: reject invalid file descriptors
627         http://www.austingroupbugs.net/view.php?id=503
628         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
629         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
630         * modules/stdlib (Makefile.am): Replace witness.
631         * lib/stdlib.in.h (ptsname): Allow for replacement.
632         * modules/ptsname (configure.ac): Trigger replacement.
633         * doc/posix-functions/ptsname.texi (ptsname): Document this.
634
635 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
636
637         hash-pjw-bare: new module
638         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
639         * lib/hash-pjw-bare.h: Likewise.
640         * modules/hash-pjw-bare: New file.
641         * MODULES.html.sh (Misc): Add it.
642
643 2012-10-02  Eric Blake  <eblake@redhat.com>
644
645         manywarnings: cater to more gcc infelicities
646         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
647         -Wuninitialized without -O.
648
649 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
650
651         select, poll tests: Make setsockopt invocation effective.
652         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
653         the bind() call.
654         * tests/test-select.h (open_server_socket): Likewise.
655
656 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
657
658         sockets, sys_stat: restore AC_C_INLINE
659         This undoes the 2012-09-22 patch.
660         * m4/sockets.m4 (gl_SOCKETS):
661         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
662         Restore AC_C_INLINE, since MSVC requires __inline or _inline
663         and does not support plain 'inline'.  Reported by Bruno Haible in
664         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
665
666 2012-09-30  Bruno Haible  <bruno@clisp.org>
667
668         localeconv tests: Avoid test failure on OpenIndiana.
669         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
670         skip the 'grouping' and 'mon_grouping' tests.
671         Reported by Jim Meyering.
672
673 2012-09-30  Bruno Haible  <bruno@clisp.org>
674
675         havelib: Follow libtool developments.
676         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
677         Suggested by Simon Josefsson.
678
679 2012-09-29  Jim Meyering  <meyering@redhat.com>
680
681         fstatat.c: fix a compile-impeding typo
682         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
683         Introduced in commit v0.0-7636-gd202279.
684         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
685
686 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
687
688         extern-inline: provide a -Wundef safe config.h
689         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
690         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
691         to produce a -Wundef warning free config.h.
692
693 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
694
695         hash-pjw: relax license to LGPLv2+
696         * modules/hash-pjw (License): Relax, with consent of author.
697
698 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
699
700         maint.mk: fix strict vs. lazy variable issues with RELEASE
701         * top/maint.mk (_equal): New function.
702         (member_check): Strip the result to avoid spurious spaces.
703         (url_dir_list): Do not use ifeq, which is strict, as it will
704         require RELEASE_TYPE to be defined.
705         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
706         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
707         (announcement_Cc_alpha,announcement_mail_headers_alpha)
708         (announcement_Cc_beta,announcement_mail_headers_beta)
709         (announcement_Cc_stable,announcement_mail_headers_stable): these.
710         (release): Do not depend on $(release-type), as it forces its
711         evaluation.  Bounce to it.
712
713 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
714
715         maint.mk: formatting changes
716         * top/maint.mk: Indent bodies of if's.
717
718 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
719
720         maint.mk: factor the validation of RELEASE_TYPE
721         With help from Jim Meyering.
722         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
723         * top/maint.mk (_empty, _sp): Move their definition earlier.
724         (member-check, release-type): New.
725         Use the latter instead of $(RELEASE_TYPE).
726         Remove now useless local checks.
727
728 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
729
730         maint.mk: provide "make upload" to ease uploading
731         See
732         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
733         Do not depend simply on the current $(VERSION), as there may have been
734         new commits since the tarball generation.  Rather, rely on $(RELEASE),
735         as "make release-commit" already does.
736
737         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
738         "make TYPE".
739
740         * top/maint.mk (upload_command, upload, release): New.
741         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
742         (VERSION): first word of $(RELEASE) is always right.
743         (emit_upload_commands): Adjust.
744         * top/README-release: Update.
745
746 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
747
748         maint.mk: silent rules
749         With help from Stefano Lattarini.
750         * top/maint.mk (writable-files): Use $(AM_V_GEN).
751         (announcement): Use $(AM_V_at).
752
753 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
754
755         localename: port gl_locale_name_thread_unsafe to FreeBSD
756         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
757         and use the simpler FreeBSD implementation on Mac OS X as well.
758         Original idea suggested by Ed Maste in
759         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
760
761 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
762
763         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
764         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
765         * lib/mbuiter.c, lib/xsize.c: New files.
766         * lib/binary-io.h (BINARY_IO_INLINE):
767         * lib/eealloc.h (EEALLOC_INLINE):
768         * lib/mbfile.h (MBFILE_INLINE):
769         * lib/mbiter.h (MBITER_INLINE):
770         * lib/mbuiter.h (MBUITER_INLINE):
771         * lib/xsize.h (XSIZE_INLINE):
772         New macros.
773         Replace all uses of 'static inline' with them.
774         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
775         * m4/eealloc.m4 (gl_EEALLOC):
776         * m4/mbfile.m4 (gl_MBFILE):
777         * m4/mbiter.m4 (gl_MBITER):
778         * m4/xsize.m4 (gl_XSIZE):
779         Do not require AC_C_INLINE.
780         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
781         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
782         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
783         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
784         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
785         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
786         * modules/binary-io, modules/eealloc, modules/mbfile:
787         * modules/mbiter, modules/mbuiter:
788         (Depends-on): Add extern-inline.
789
790         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
791         * lib/pipe-filter-aux.c: New file.
792         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
793         Replace all uses of 'static inline' with it.
794         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
795         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
796         (filter_retcode): No real need for inline here.
797         * modules/pipe-filter-gi, modules/pipe-filter-ii:
798         (Files): Add lib/pipe-filter-aux.c.
799         (Depends-on): Add extern-inline.
800         (configure.ac): Do not require AC_C_INLINE.
801         (lib_SOURCES): Add pipe-filter-aux.c.
802
803         fdutimensat: omit unnecessary AC_C_INLINE
804         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
805
806         fchmodat, fchownat, fstatat: use extern-inline
807         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
808         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
809         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
810         New macros.
811         * lib/openat.h:
812         Replace all uses of 'static inline' with them.
813         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
814         * modules/fchmodat, modules/fchownat, modules/fstatat:
815         * modules/openat-h:
816         (Depends-on):
817         Add extern-inline.
818         (configure.ac): Remove AC_C_INLINE.
819
820         acl, mbchar, priv-set: use extern-inline
821         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
822         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
823         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
824         New macros.
825         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
826         Replace all uses of 'static inline' with it.
827         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
828         * m4/acl.m4 (gl_FUNC_ACL):
829         * m4/mbchar.m4 (gl_MBCHAR):
830         * m4/priv-set.m4 (gl_PRIV_SET):
831         Remove AC_C_INLINE, since 'inline' is no longer used directly.
832         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
833         Add extern-inline.
834
835         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
836         * m4/sockets.m4 (gl_SOCKETS):
837         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
838         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
839         environments where it's already guaranteed to work, so we needn't
840         check for it at 'configure'-time.
841
842         tls-tests: omit unnecessary 'inline'
843         * tests/test-tls.c (perhaps_yield): No longer inline.
844         Simplicity and portability trump efficiency in test cases.
845
846         utimens-tests: avoid unnecessary 'inline'
847         * modules/fdutimensat-tests (configure.ac):
848         * modules/futimens-tests (configure.ac):
849         * modules/utimens-tests (configure.ac):
850         * modules/utimensat-tests (configure.ac):
851         Remove AC_C_INLINE.
852         * tests/test-utimens-common.h (ctime_compare):
853         No longer inline.  Simplicity and portability trump efficiency here.
854
855         misc: don't limit commentary to inline functions
856         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
857         * lib/xalloc-oversized.h, lib/xsize.h:
858         Contrast macros to functions in general, not just to inline functions,
859         when the commentary does not apply only to inline functions.
860
861 2012-09-20  Jim Meyering  <meyering@redhat.com>
862
863         non-recursive-gnulib-prefix-hack: new module
864         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
865         the file that originated in Bison.
866         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
867         largely copied from a snippet that resided in bison's configure.ac.
868         * modules/non-recursive-gnulib-prefix-hack: New file.
869         * MODULES.html.sh (Support for maintaining and releasing projects):
870         Add it.
871
872 2012-09-18  Jim Meyering  <meyering@redhat.com>
873
874         maint.mk: generalize _gl_tight_scope for non-recursive make
875         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
876         that *.h would describe additional .h files in the directory
877         specified by $(_gl_TS_dir).  I.e., add this...
878         (_gl_TS_other_headers): New variable.
879
880         maint.mk: exempt trailing blanks found in "binary" files
881         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
882         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
883         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
884
885 2012-09-17  Jim Meyering  <meyering@redhat.com>
886
887         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
888         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
889         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
890         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
891
892 2012-09-17  Jim Meyering  <meyering@redhat.com>
893
894         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
895         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
896         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
897         It is not in the same category as "exit (0)" or "exit (1)", and
898         besides, I know of no symbolic name for that 77.  Reported by
899         Richard W.M. Jones in
900         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
901
902 2012-09-17  Jim Meyering  <meyering@redhat.com>
903
904         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
905         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
906         all uses of #define, not just those that start in column 1.
907         Richard W.M. Jones reported a false positive in
908         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
909
910 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
911
912         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
913         * lib/localcharset.c (locale_charset) [DARWIN7]:
914         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
915         as these two values are incompatible.  Problem reported by Max Horn.
916         For more discussion, please see
917         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
918
919         doc: document sticky-EOF issue
920         * doc/posix-functions/fgetc.texi (fgetc):
921         * doc/posix-functions/fgets.texi (fgets):
922         * doc/posix-functions/fread.texi (fread):
923         * doc/posix-functions/fscanf.texi (fscanf):
924         * doc/posix-functions/getc.texi (getc):
925         * doc/posix-functions/getchar.texi (getchar):
926         * doc/posix-functions/scanf.texi (scanf):
927         Mention that glibc and default Solaris do not conform to
928         C99 and POSIX-2001 or later, with respect to how getchar
929         etc. behave when feof reports nonzero.
930
931 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
932
933         poll: fix poll(0, NULL, msec)
934         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
935         but nfd is 0.  In that case poll should behave like select.
936
937 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
938             Paolo Bonzini <bonzini@gnu.org>
939
940         poll: fix for systems that can't recv() on a non-socket
941         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
942         is readable.  In this case POLLHUP will not be supported.
943         * doc/posix-functions/poll.texi: Document this.
944
945 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
946
947         poll/select: document portability problems not fixed by Gnulib.
948         * doc/posix-functions/poll.texi: poll does not work well on
949         pipes under Windows.  It has the same limitations as select on
950         BeOS.
951         * doc/posix-functions/select.texi: select does not work well
952         on pipes under Windows.
953
954 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
955
956         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
957         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
958         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
959         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
960
961 2012-09-06  Eric Blake  <eblake@redhat.com>
962
963         net_if: give more details about the bug being fixed
964         * doc/posix-headers/net_if.texi: Add clarification.
965
966 2012-09-05  Eric Blake  <eblake@redhat.com>
967
968         net_if: new module
969         * modules/net_if: New module, borrowing ideas from netinet_in.
970         * m4/net_if_h.m4: New file.
971         * lib/net_if.in.h: Likewise.
972         * doc/posix-headers/net_if.texi (net/if.h): Document it.
973         * MODULES.html.sh (lacking POSIX:2008): Likewise.
974         * tests/test-net_if.c: Make function checks conditional.
975         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
976
977 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
978
979         readutmp: fix non-portable UT_PID use
980         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
981         Use `UT_PID (u) > 0' as absolute condition.
982
983 2012-09-04  Jim Meyering  <meyering@redhat.com>
984
985         fts: reduce two or more trailing spaces to just one, usually
986         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
987         or more slashes, trim all but the final one.  But if a name consists
988         solely of two slashes, don't modify it.  If it consists solely of
989         three or more slashes, strip all but one.
990
991         This is part of the solution to a minor problem with rm:
992         it would print a bogus ELOOP diagnostic when failing to remove
993         the slash-decorated name of a symlink-to-directory:
994
995             $ mkdir d && ln -s d s && env rm -r s/
996             rm: cannot remove 's': Too many levels of symbolic links
997
998         With the change below and a trivial don't-trim-trailing-slashes
999         adjustment to remove.c, it does this:
1000
1001             $ env rm -r s/
1002             rm: cannot remove 's/': Not a directory
1003
1004         Improved by: Eric Blake
1005
1006         fts: when there is no risk of overlap, use memcpy, not memmove
1007         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1008
1009 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1010
1011         stdbool: be more compatible with mixed C/C++ compiles
1012         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1013         Define to bool, true, false, respectively, as GCC's builtin
1014         stdbool.h does.  Problem reported by Michael Goffioul in
1015         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1016
1017 2012-08-28  Jim Meyering  <meyering@redhat.com>
1018
1019         revert last change: it was not needed
1020         * tests/test-vc-list-files-git.sh: There's already a test for
1021         a working git, just below.
1022
1023 2012-08-28  Jim Meyering  <meyering@redhat.com>
1024
1025         tests: test-vc-list-files-git.sh: skip if git is not available
1026         * tests/test-vc-list-files-git.sh: Skip this test when git is
1027         not available.
1028
1029 2012-08-26  Bruno Haible  <bruno@clisp.org>
1030
1031         gnulib-tool: Remove no-op option --no-changelog.
1032         * gnulib-tool (func_usage): Don't mention --no-changelog.
1033         (do_changelog): Remove variable.
1034         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1035
1036 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1037
1038         doc: remove fdl-1.2.texi
1039         It is no longer used or maintained, and its use of @acronym
1040         is problematic.  See the thread containing
1041         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1042         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1043         * doc/old-licenses/fdl-1.2.texi: Remove.
1044
1045         execinfo: port to FreeBSD
1046         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1047         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1048         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1049         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1050
1051 2012-08-23  Jim Meyering  <meyering@redhat.com>
1052
1053         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1054         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1055         to placate gcc's -Wold-style-declaration.
1056
1057 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1058
1059         doc: do not use @acronym
1060         * doc/inet_ntoa.texi (inet_ntoa):
1061         * doc/parse-datetime.texi (Seconds since the Epoch)
1062         (Specifying time zone rules):
1063         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1064         Don't use @acronym.  Problem reported by John Darlington in
1065         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1066
1067 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1068
1069         stdnoreturn: port to newer GCCs
1070         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1071         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1072         Problem reported by Jim Meyering in
1073         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1074         Also, rename the 'test' function to a void a clash with the
1075         already-supplied 'main' function; this fixes a bug that incorrectly
1076         rejected GCC 4.7.1's <stdnoreturn.h>.
1077         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1078         Document GCC problem.
1079
1080 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1081
1082         pipe-filter: fix comment typo
1083         * lib/pipe-filter.h: Mention correct function.
1084
1085 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1086
1087         execinfo: new module
1088         This is for Emacs.  Currently, it provides a no-effect stub
1089         on all platforms where it does not already work.
1090         It already works on glibc-based systems, and on Solaris 11.
1091         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1092         New files.
1093         * doc/glibc-headers/execinfo.texi (execinfo.h):
1094         * MODULES.html.sh (Misc): Document it.
1095
1096 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1097
1098         extern-inline: support old GCC 'inline'
1099         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1100         if available.  This applies to GCC versions 2.7 through 4.2, or
1101         when newer GCC is using -fgnu89-inline.  The goal is to address
1102         some of the performance issues mentioned by Bruno Haible in
1103         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1104
1105 2012-08-20  Eric Blake  <eblake@redhat.com>
1106
1107         maint.mk: avoid redundant file name in message
1108         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1109         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1110         (sc_makefile_path_separator_check): Remove bogus $(ME).
1111
1112 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1113
1114         timer-time: fix link order when static linking on glibc
1115         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1116         _after_ -lrt so that it's significant.
1117
1118 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1119
1120         timespec: omit unnecessary AC_C_INLINE
1121         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1122
1123         stat-time: omit unnecessary AC_C_INLINE
1124         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1125         Do not require AC_C_INLINE.
1126
1127         ignore-value: omit unnecessary AC_C_INLINE
1128         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1129
1130         sys_select: avoid 'static inline'
1131         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1132
1133         mktime: avoid 'static inline'
1134         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1135         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1136
1137 2012-08-19  Bruno Haible  <bruno@clisp.org>
1138
1139         gnulib-tool: Improve coding style.
1140         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1141         func_emit_lib_Makefile_am.
1142         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1143
1144 2012-08-19  Bruno Haible  <bruno@clisp.org>
1145
1146         gnulib-tool: Fix indentation.
1147         * gnulib-tool (func_import): Fix indentation.
1148
1149 2012-08-19  Bruno Haible  <bruno@clisp.org>
1150
1151         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1152         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1153         on the list of removed files.
1154
1155 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1156
1157         test-parse-datetime: avoid glibc leap-second glitch
1158         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1159         with the 2012 rules.  Problem reported by Bruce Dubbs in
1160         <http://bugs.gnu.org/12206>.
1161
1162 2012-08-14  Bruno Haible  <bruno@clisp.org>
1163
1164         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1165         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1166         from argument.
1167         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1168
1169 2012-08-14  Eric Blake  <eblake@redhat.com>
1170
1171         ldexp: relax license
1172         * modules/ldexp (License): Trivial relax, since the module only
1173         provides a permissively licensed m4 file.
1174
1175 2012-08-13  Bruno Haible  <bruno@clisp.org>
1176
1177         gnulib-tool: Fix persistence of --witness-c-macro option.
1178         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1179         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1180
1181 2012-08-11  Eric Blake  <eblake@redhat.com>
1182
1183         count-leading-zeros: use a lookup table on non-gcc compilers
1184         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1185         alternate implementation, suggested by Jim Meyering.
1186
1187 2012-08-10  Eric Blake  <eblake@redhat.com>
1188
1189         count-leading-zeros: new module
1190         * modules/count-leading-zeros: New module.
1191         * m4/count-leading-zeros.m4: New file.
1192         * lib/count-leading-zeros.h: Likewise.
1193         * modules/count-leading-zeros-tests: New test.
1194         * tests/test-count-leading-zeros.c: New file.
1195         * MODULES.html.sh (Integer arithmetic functions): Document it.
1196
1197 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1198             Jim Meyering  <meyering@redhat.com>
1199
1200         maintainer-makefile: Fix syntax error with dash.
1201         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1202         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1203
1204 2012-08-05  Jim Meyering  <meyering@redhat.com>
1205
1206         extern-inline: also ignore -Wmissing-declarations
1207         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1208         required with gcc-4.8.0-to-be.
1209
1210         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1211         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1212         for /error ?([^,]*)/.  This avoids false-positives for strings like
1213         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1214
1215 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1216
1217         gnumakefile: better interaction with Automake-NG
1218         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1219         Automake-NG always contain a definition of VPATH, even in non-VPATH
1220         builds (its value being simply '.' in that case).  So, in the
1221         'clean-GNUmakefile' rule, to determine whether running under a
1222         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1223         '$(VPATH)' expands to the empty string.
1224
1225 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1226
1227         base64: Use extern C scope in header file, for C++.
1228         * lib/base64.h: Add C++ namespace protection.
1229
1230 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1231
1232         stat-time, timespec, u64: support naive out-of-dir builds
1233         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1234         Use '#include "foo.h"', not '#include <foo.h>', when including
1235         one's own interface.  This works better when configuring with
1236         out-of-directory builds, since packages need not add an
1237         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1238
1239 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1240
1241         utimens: use extern-inline
1242         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1243         * lib/utimens.h: Add copyright notice, since this is now large enough
1244         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1245         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1246         * modules/utimens (Depends-on): Add extern-inline.
1247
1248         u64: use extern-inline
1249         * lib/u64.c: New file.
1250         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1251         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1252         * modules/u64 (Files): Add lib/u64.c.
1253         (Depends-on): Add extern-inline.
1254         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1255         does that now.
1256         (lib_SOURCES): Add u64.c.
1257
1258         timespec: use extern-inline
1259         * lib/timespec.c: New file.
1260         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1261         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1262         * modules/timespec (Files): Add lib/timespec.c.
1263         (Depends-on): Add extern-inline.
1264         (lib_SOURCES): Add timespec.c.
1265
1266         stat-time: use extern-inline
1267         * lib/stat-time.c: New file.
1268         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1269         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1270         * modules/stat-time (Files): Add lib/stat-time.c.
1271         (Depends-on): Add extern-inline.
1272         (lib_SOURCES): Add stat-time.c.
1273
1274         extern-inline: new module
1275         * modules/extern-inline, m4/extern-inline.m4: New files.
1276         This is for better support of 'extern inline' a la ISO C99,
1277         with a portable alternative on compilers that do not support
1278         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1279         of the Emacs executable, when compiled with debugging disabled,
1280         which is a typical way that Emacs is built while developing.
1281
1282 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1283
1284         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1285         * build-aux/do-release-commit-and-tag: Move variable definitions
1286         together.
1287         ($branch): Instead of defaulting to "master", default to the current
1288         branch (as gnu-web-doc-update does).
1289         (help): Display the current values of the option arguments.
1290         * top/maint.mk (release-commit): New.
1291         * top/README-release: Simplify the corresponding step.
1292
1293 2012-07-30  Eric Blake  <eblake@redhat.com>
1294
1295         passfd: fix comment on recvfd
1296         * lib/passfd.c (recvfd): Fix comment.
1297         Reported by Jann Horn <jannhorn@googlemail.com>.
1298
1299 2012-07-30  Jim Meyering  <meyering@redhat.com>
1300
1301         maint.mk: avoid a sub-shell
1302         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1303
1304 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1305
1306         maint.mk: use silent-rules support from Automake
1307         * top/maint.mk (news-check, vc-diff-check, announcement)
1308         (no-submodule-changes, alpha beta stable, release-prep)
1309         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1310
1311 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1312
1313         maint.mk: provide a web-manual-update target
1314         * top/maint.mk: here.
1315         * top/README-release: Use it to simplify the web manual update step.
1316
1317 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1318
1319         README-release: shorten the circuit to post a news
1320         * top/README-release: Point directly to the news submission form.
1321
1322 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1323
1324         gnu-web-doc-update: fix --help
1325         * build-aux/gnu-web-doc-update: The information "top level" was written
1326         twice.
1327
1328 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1329
1330         maint.mk: absolute VPATH issue
1331         * top/maint.mk (release-prep): Help Git find .git/.
1332         From Jim Meyering.
1333
1334 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1335
1336         gitlog-to-changelog: fix previous change
1337         * build-aux/gitlog-to-changelog: Fix condition.
1338         Add missing ";".
1339
1340 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1341
1342         gitlog-to-changelog: don't expect .git to be in $srcdir
1343         Reported by Bruno Haible.
1344         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1345         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1346         Use it.
1347
1348 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1349
1350         maint.mk: absolute VPATH build fix
1351         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1352         $(srcdir) is not a parent of $(builddir).
1353
1354 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1355
1356         clean-temp: Fix memory leak.
1357         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1358         'files' members of tmpdir.
1359
1360 2012-07-27  Jim Meyering  <meyering@redhat.com>
1361
1362         maint.mk: new rule: refresh-gnulib-patches
1363         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1364         Use this rule to refresh them.
1365         * top/maint.mk (refresh-gnulib-patches): New rule.
1366
1367 2012-07-24  Bruno Haible  <bruno@clisp.org>
1368
1369         gnulib-tool: Fix handling of inctests variable.
1370         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1371         Reported by Nick Bowler <nbowler@elliptictech.com>.
1372
1373 2012-07-22  Bruno Haible  <bruno@clisp.org>
1374
1375         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1376         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1377         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1378         Remove exemption for getpass.h.
1379         Suggested by Eric Blake.
1380
1381 2012-07-20  Eric Blake  <eblake@redhat.com>
1382
1383         verify: document conflict with -Wnested-externs
1384         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1385
1386         maint.mk: forbid exit(-1)
1387         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1388
1389 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1390
1391         fsusage: port back to Solaris
1392         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1393         error (fsd not declared) on Solaris 10.  Reported privately by
1394         Andrew Borodin.
1395
1396 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1397
1398         gnu-web-doc-update: fix error messages
1399         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1400
1401         gnu-web-doc-update: check the requirements.
1402         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1403         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1404         * build-aux/bootstrap (find_tool): Comment change.
1405
1406 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1407
1408         maint.mk: minor simplication.
1409         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1410         for default values.
1411
1412 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1413
1414         gitlog-to-changelog: VPATH build issues
1415         If builddir is not a subdirectory of srcdir, running git from it will
1416         fail.
1417         * build-aux/gitlog-to-changelog (--srcdir): New option.
1418
1419 2012-07-15  Bruno Haible  <bruno@clisp.org>
1420
1421         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1422         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1423         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1424         Remove exemption for fpending.h.
1425         Suggested by Eric Blake.
1426
1427 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1428
1429         pthread_sigmask: fix bug on FreeBSD 9
1430         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1431         Include string.h.
1432         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1433         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1434         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1435         but pthread_sigmask (1729, NULL, NULL) returns zero.
1436         See <http://bugs.gnu.org/11884>.
1437         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1438         by inspecting whether the main call changed the old mask.
1439
1440 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1441
1442         README-release: make it more legible
1443         * top/README-release: Improve typography slightly.
1444
1445 2012-07-15  Jim Meyering  <meyering@redhat.com>
1446
1447         maint: require that each sc_... command start with "@"
1448         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1449         "make sc_maint" helps us avoid this nit.
1450
1451 2012-07-15  Jim Meyering  <meyering@redhat.com>
1452
1453         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1454         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1455
1456 2012-07-13  Eric Blake  <eblake@redhat.com>
1457
1458         maint.mk: new syntax check for HAVE_DECL checks
1459         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1460         * cfg.mk
1461         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1462         Exempt some false positives.
1463         Based on a report by Karel Zak.
1464
1465         argp: make HAVE_DECL usage consistent
1466         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1467         macros, not whether they are defined.
1468         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1469         convention with other declaration checks.
1470         Reported by Karel Zak, with suggestions from Paul Eggert.
1471
1472         stat-time: relax license to LGPLv2+
1473         * modules/stat-time (License): Relax, with consent of all authors.
1474
1475         strndup: fix m4 usage error
1476         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1477         defined, to either 0 or 1.
1478         Reported by Karel Zak.
1479
1480 2012-07-11  Jim Meyering  <meyering@redhat.com>
1481
1482         maint: enable the sc_avoid_if_before_free syntax-check rule
1483         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1484         (if_before_free_offenders_): Define.
1485         (if_before_free_basename_re_): Define.
1486         Exempt current files with useless if-before-free.
1487
1488 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1489
1490         gettext: do not assume '#define ... defined ...' behavior
1491         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1492         Do not use '#define FOO ... defined BAR ...', as the C standard says
1493         it's not portable to expect that this works after macro expansion.
1494         Problem reported for gzip by Steven M. Schweda in
1495         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1496
1497 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1498
1499         getloadavg: clean out old Emacs and Autoconf cruft
1500         See Glenn Morris in <http://bugs.gnu.org/11905>.
1501         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1502         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1503         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1504         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1505
1506 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1507
1508         bootstrap: let warn be like tests/init.sh's warn_
1509         Reported by Jim Meyering.
1510         * build-aux/bootstrap (warn): Remove, replaced by...
1511         (warnf_, warn_): these.
1512         Adjust callers.
1513         Shorten messages that no longer fit in 80 columns.
1514
1515 2012-07-09  Bruno Haible  <bruno@clisp.org>
1516
1517         getopt: Simplify after Emacs changed.
1518         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1519         (gl_GETOPT_IFELSE): Remove macro.
1520
1521 2012-07-09  Jim Meyering  <meyering@redhat.com>
1522
1523         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1524         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1525
1526         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1527         Bugs in both of those conspired to make the
1528         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1529         _sc_search_regexp's handling of non-empty $in_files would filter
1530         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1531         choice of in_files value meant there would be no match in most
1532         projects, due to the presence of two or more Makefile.in files.
1533         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1534         Fix a bug in how a non-empty $$in_files was processed:
1535         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1536         in spite of the name, it's a regexp, not a list of file names.
1537
1538 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1539
1540         getloadavg, getopt: fix commentary re configure.in
1541         Autoconf is deprecating the name 'configure.in', so change it to
1542         to the new name 'configure.ac' in a couple of places.
1543         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1544         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1545         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1546         Emacs has renamed it to configure.ac, and it no longer refers
1547         to these macros anyway.
1548
1549         timespec: mark functions with const attributes
1550         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1551         Mark with _GL_ATTRIBUTE_CONST.
1552
1553 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1554
1555         canonicalize[-lgpl]: handle "guessing" values when cross-building
1556         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1557         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1558         matches "*yes" instead of just "yes".  Regression introduced in commit
1559         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1560
1561 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1562             Bruno Haible  <bruno@clisp.org>
1563
1564         canonicalize: make the right guess when cross-compiling to GNU
1565         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1566         determine whether cross-compiling to glibc systems, so as to
1567         include GNU/Hurd.
1568
1569 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1570
1571         timespec-sub: avoid duplicate include
1572         * lib/timespec-sub.c: Do not include <config.h> twice.
1573         Reported by Juanma Barranquero.
1574
1575 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1576
1577         bootstrap: use a more consistent error reporting scheme
1578         * build-aux/bootstrap (warn, die): New.
1579         Use them.
1580
1581 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1582
1583         sys_time: allow too-wide tv_sec
1584         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
1585         timeval even if tv_sec is wider than time_t.  This allows
1586         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
1587         as without this patch gnulib replaces struct timeval
1588         and OpenBSD futimes therefore has a type mismatch.
1589         * doc/posix-headers/sys_time.texi: Mention this.
1590
1591         pthread: check for both pthread_create and pthread_join
1592         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
1593         alter the check so that it tests for both pthread_create and
1594         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
1595         Suggested by Bruno Haible and Richard Yao in
1596         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
1597
1598         parse-datetime: doc tuneup
1599         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
1600         spacing issues.
1601
1602 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
1603
1604         do-release-commit-and-tag: fix the previous commit
1605         * build-aux/do-release-commit-and-tag: Actually the test was right,
1606         but the comment and the error message were misleading.
1607         Fix comment, and improve error message.
1608         Perform check first, so that NEWS is not modified uselessly.
1609
1610         do-release-commit-and-tag: fix typo
1611         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
1612         _not_ start with a stub.
1613
1614 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1615
1616         pthread: check for pthread_create, not pthread_join
1617         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
1618         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
1619         pthread_join in libc.  I hope this removes the need for all the
1620         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
1621         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
1622
1623 2012-07-04  Jim Meyering  <meyering@redhat.com>
1624
1625         parse-datetime: fix failure to diagnose invalid input
1626         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
1627         rather than diagnosing the invalid input.  Now it reports this:
1628         date: invalid date '\260'
1629         * lib/parse-datetime.y (to_uchar): Define.
1630         (yylex): Don't sign-extend "other" bytes.
1631         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
1632         Thanks to Bruno Haible for the patch to this file.
1633         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
1634         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
1635
1636 2012-07-03  Jim Meyering  <meyering@redhat.com>
1637
1638         bootstrap: do not require now-removed build-aux/missing
1639         Now that build-aux/missing is, er, missing, bootstrap would
1640         silently fail.
1641         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
1642         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
1643         no longer part of gnulib.
1644         Diagnose the failure.
1645
1646 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1647
1648         alloca: add support for HP NonStop TNS/E native
1649         * lib/alloca.in.h (alloca): Support the new host.
1650         From a suggestion by Joachim Schmitz in
1651         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
1652
1653 2012-07-02  Pádraig Brady  <P@draigBrady.com>
1654
1655         fsusage: remove code not needed on non GNU/Linux systems.
1656
1657         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1658         Don't include headers no longer needed in this case.
1659         * lib/fsusage.c [STAT_STATVFS &&
1660         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
1661         STAT_STATFS2_FRSIZE to exclude code not used in this case.
1662
1663 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1664
1665         fsusage: include files needed for glibc 2.6 fallback
1666         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1667         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
1668         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
1669         Problem reported by Ludovic Courtès in
1670         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
1671
1672         fsusage: avoid needless check on GNU/Linux
1673         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
1674         on GNU/Linux systems, since it can't possibly work.
1675
1676 2012-07-01  Bruno Haible  <bruno@clisp.org>
1677
1678         log: Fix an autoconf >= 2.64 warning.
1679         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
1680         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1681
1682 2012-06-28  Bruno Haible  <bruno@clisp.org>
1683
1684         log10f: Fix possible configuration problem.
1685         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
1686         $LOGF_LIBM.
1687         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1688
1689 2012-06-28  Bruno Haible  <bruno@clisp.org>
1690
1691         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
1692         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
1693         not gl_cv_func_unlink_works.
1694         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1695
1696 2012-06-27  Eric Blake  <eblake@redhat.com>
1697
1698         config: drop scripts that automake says are not independent
1699         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
1700         * build-aux/elisp-comp: Delete.
1701         * build-aux/missing: Likewise.
1702         * build-aux/ylwrap: Likewise.
1703         * modules/elisp-comp: Likewise.
1704         * MODULES.html.sh: Drop mention of elisp-comp.
1705         * NEWS: Mention this.
1706
1707 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
1708
1709         root-uid: new module
1710         This is for portability to Tandem's NonStop Kernel.
1711         * lib/root-uid.h, modules/root-uid: New files.
1712         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
1713         * lib/write-any-file.c, tests/test-sethostname2.c:
1714         Include "root-uid.h".
1715         * lib/euidaccess.c (euidaccess):
1716         * lib/pt_chown.c (main):
1717         * lib/unlinkdir.c (cannot_unlink_dir):
1718         * lib/write-any-file.c (can_write_any_file):
1719         * m4/mknod.m4 (gl_FUNC_MKNOD):
1720         * tests/test-sethostname2.c (geteuid, main):
1721         Don't assume ROOT_UID == 0.
1722         * modules/euidaccess (Depends-on):
1723         * modules/pt_chown (Depends-on):
1724         * modules/sethostname-tests (Depends-on):
1725         * modules/unlinkdir (Depends-on):
1726         * modules/write-any-file (Depends-on):
1727         Add root-uid.
1728
1729         regex: use locale-independent comparison for codeset name
1730         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
1731         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
1732         for codeset name.
1733         * lib/regex_internal.h: Do not include <strings.h>, since we
1734         no longer use strcasecmp.
1735         * modules/regex (Depends-on): Remove strcase.
1736
1737 2012-06-23  Bruno Haible  <bruno@clisp.org>
1738
1739         getopt-posix: No longer guarantee that option processing is resettable.
1740         * doc/posix-functions/getopt.texi: Drop description of problem with
1741         internal state. Fix info about mingw and msvc9.
1742         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
1743         option processing by getopt(). Run three test programs instead of one.
1744         Simplify cross-compilation guess.
1745         * NEWS: Mention the change.
1746         Reported by Rich Felker <dalias@aerifal.cx>.
1747
1748 2012-06-26  Bruno Haible  <bruno@clisp.org>
1749
1750         argp, regex: Ensure strcasecmp gets declared.
1751         * lib/argp-help.c: Include <strings.h>.
1752         * lib/regex_internal.h: Likewise.
1753         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
1754
1755 2012-06-24  Bruno Haible  <bruno@clisp.org>
1756
1757         ptsname_r: Make it consistent with ptsname on AIX.
1758         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
1759         implementation as for OSF/1.
1760         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
1761         a pty master.
1762
1763         ptsname_r: Make it consistent with ptsname on OSF/1.
1764         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1765         OSF/1.
1766
1767 2012-06-24  Bruno Haible  <bruno@clisp.org>
1768
1769         ttyname_r: Fix result on OSF/1, Solaris.
1770         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
1771
1772 2012-06-24  Bruno Haible  <bruno@clisp.org>
1773
1774         ptsname_r: Add support for Solaris.
1775         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1776         Solaris.
1777
1778         ptsname_r: Fix test failure on native Windows.
1779         * modules/ptsname_r (Depends-on): Add isatty.
1780
1781         ptsname_r: Fix test failures on IRIX, Solaris.
1782         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
1783         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
1784         accordingly.
1785         * lib/ptsname_r.c: Include <fcntl.h>.
1786         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
1787         set errno if fd is invalid.
1788         * tests/test-isatty.c (main): Update comments.
1789
1790 2012-06-24  Bruno Haible  <bruno@clisp.org>
1791
1792         ptsname test: Extend test.
1793         * tests/test-ptsname.c: Include <errno.h>.
1794         (main): Test behaviour with invalid file descriptor.
1795
1796 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1797
1798         time: fix obsolete comment
1799         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
1800         reference to HAVE_STRUCT_TIMESPEC in comment.
1801
1802 2012-06-23  Bruno Haible  <bruno@clisp.org>
1803
1804         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
1805         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
1806         does not handle abbreviated long options with equivalent
1807         disambiguations, set gl_replace_getopt to yes.
1808         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
1809
1810 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
1811
1812         time_r: fix typo that always overrode localtime_r decl
1813         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
1814         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
1815         not in a standard include.
1816
1817 2012-06-22  Bruno Haible  <bruno@clisp.org>
1818
1819         Write "Mac OS X" instead of "MacOS X".
1820         * README: Write "Mac OS X" instead of "MacOS X".
1821         * build-aux/bootstrap: Likewise.
1822         * build-aux/install-reloc: Likewise.
1823         * lib/acl-internal.h: Likewise.
1824         * lib/acl_entries.c: Likewise.
1825         * lib/argp-ba.c: Likewise.
1826         * lib/argp-pv.c: Likewise.
1827         * lib/config.charset: Likewise.
1828         * lib/copy-acl.c: Likewise.
1829         * lib/csharpexec.c: Likewise.
1830         * lib/euidaccess.c: Likewise.
1831         * lib/fbufmode.c: Likewise.
1832         * lib/fflush.c: Likewise.
1833         * lib/file-has-acl.c: Likewise.
1834         * lib/filemode.h: Likewise.
1835         * lib/fpurge.c: Likewise.
1836         * lib/freadable.c: Likewise.
1837         * lib/freadahead.c: Likewise.
1838         * lib/freading.c: Likewise.
1839         * lib/freadptr.c: Likewise.
1840         * lib/freadseek.c: Likewise.
1841         * lib/fseeko.c: Likewise.
1842         * lib/fseterr.c: Likewise.
1843         * lib/fsusage.c: Likewise.
1844         * lib/fwritable.c: Likewise.
1845         * lib/fwriting.c: Likewise.
1846         * lib/get-rusage-as.c: Likewise.
1847         * lib/get-rusage-data.c: Likewise.
1848         * lib/getdomainname.c: Likewise.
1849         * lib/idpriv-drop.c: Likewise.
1850         * lib/idpriv-droptemp.c: Likewise.
1851         * lib/localcharset.c: Likewise.
1852         * lib/locale.in.h: Likewise.
1853         * lib/localename.c: Likewise.
1854         * lib/mbsrtowcs-state.c: Likewise.
1855         * lib/nproc.c: Likewise.
1856         * lib/passfd.c: Likewise.
1857         * lib/posix_openpt.c: Likewise.
1858         * lib/printf-parse.c: Likewise.
1859         * lib/progreloc.c: Likewise.
1860         * lib/safe-read.h: Likewise.
1861         * lib/safe-write.h: Likewise.
1862         * lib/sched.in.h: Likewise.
1863         * lib/set-mode-acl.c: Likewise.
1864         * lib/signal.in.h: Likewise.
1865         * lib/stdint.in.h: Likewise.
1866         * lib/stdio-impl.h: Likewise.
1867         * lib/stdlib.in.h: Likewise.
1868         * lib/strtod.c: Likewise.
1869         * lib/sys_select.in.h: Likewise.
1870         * lib/tcgetsid.c: Likewise.
1871         * lib/unistd.in.h: Likewise.
1872         * lib/unlockpt.c: Likewise.
1873         * lib/vasnprintf.c: Likewise.
1874         * lib/vma-iter.c: Likewise.
1875         * lib/wcsrtombs-state.c: Likewise.
1876         * m4/acl.m4: Likewise.
1877         * m4/acosl.m4: Likewise.
1878         * m4/asinl.m4: Likewise.
1879         * m4/atanl.m4: Likewise.
1880         * m4/c-stack.m4: Likewise.
1881         * m4/cosl.m4: Likewise.
1882         * m4/expl.m4: Likewise.
1883         * m4/extensions.m4: Likewise.
1884         * m4/fdatasync.m4: Likewise.
1885         * m4/fmal.m4: Likewise.
1886         * m4/frexp.m4: Likewise.
1887         * m4/frexpf.m4: Likewise.
1888         * m4/frexpl.m4: Likewise.
1889         * m4/fsusage.m4: Likewise.
1890         * m4/getdomainname.m4: Likewise.
1891         * m4/getloadavg.m4: Likewise.
1892         * m4/getopt.m4: Likewise.
1893         * m4/gettext.m4: Likewise.
1894         * m4/gnulib-common.m4: Likewise.
1895         * m4/intdiv0.m4: Likewise.
1896         * m4/intlmacosx.m4: Likewise.
1897         * m4/largefile.m4: Likewise.
1898         * m4/ldexpl.m4: Likewise.
1899         * m4/link-follow.m4: Likewise.
1900         * m4/locale-ar.m4: Likewise.
1901         * m4/locale-fr.m4: Likewise.
1902         * m4/locale-ja.m4: Likewise.
1903         * m4/locale-tr.m4: Likewise.
1904         * m4/locale-zh.m4: Likewise.
1905         * m4/locale_h.m4: Likewise.
1906         * m4/lock.m4: Likewise.
1907         * m4/logl.m4: Likewise.
1908         * m4/mathfunc.m4: Likewise.
1909         * m4/minus-zero.m4: Likewise.
1910         * m4/mktime.m4: Likewise.
1911         * m4/mmap-anon.m4: Likewise.
1912         * m4/multiarch.m4: Likewise.
1913         * m4/nanosleep.m4: Likewise.
1914         * m4/nocrash.m4: Likewise.
1915         * m4/poll.m4: Likewise.
1916         * m4/printf-frexpl.m4: Likewise.
1917         * m4/printf.m4: Likewise.
1918         * m4/signbit.m4: Likewise.
1919         * m4/sinl.m4: Likewise.
1920         * m4/sqrtl.m4: Likewise.
1921         * m4/strerror_r.m4: Likewise.
1922         * m4/tanl.m4: Likewise.
1923         * m4/threadlib.m4: Likewise.
1924         * m4/ttyname_r.m4: Likewise.
1925         * m4/unlink.m4: Likewise.
1926         * m4/visibility.m4: Likewise.
1927         * m4/wcwidth.m4: Likewise.
1928         * tests/minus-zero.h: Likewise.
1929         * tests/test-alloca-opt.c: Likewise.
1930         * tests/test-copy-acl.sh: Likewise.
1931         * tests/test-copy-file.sh: Likewise.
1932         * tests/test-fdatasync.c: Likewise.
1933         * tests/test-file-has-acl.sh: Likewise.
1934         * tests/test-flock.c: Likewise.
1935         * tests/test-fsync.c: Likewise.
1936         * tests/test-localename.c: Likewise.
1937         * tests/test-malloca.c: Likewise.
1938         * tests/test-nonblocking-pipe.h: Likewise.
1939         * tests/test-nonblocking-socket.h: Likewise.
1940         * tests/test-openpty.c: Likewise.
1941         * tests/test-posix_openpt.c: Likewise.
1942         * tests/test-ptsname.c: Likewise.
1943         * tests/test-ptsname_r.c: Likewise.
1944         * tests/test-sameacls.c: Likewise.
1945         * tests/test-select.h: Likewise.
1946         * tests/test-set-mode-acl.sh: Likewise.
1947         * tests/test-snprintf-posix.h: Likewise.
1948         * tests/test-sprintf-posix.h: Likewise.
1949         * tests/test-strtod.c: Likewise.
1950         * tests/test-time.c: Likewise.
1951         * tests/test-vasnprintf-posix.c: Likewise.
1952         * tests/test-vasprintf-posix.c: Likewise.
1953         * doc/acl-resources.txt: Likewise.
1954         * doc/**/*.texi: Likewise.
1955         Reported by Max Horn <max@quendi.de>.
1956
1957 2012-06-22  Bruno Haible  <bruno@clisp.org>
1958
1959         grantpt: Relax requirement regarding invalid file descriptors.
1960         * lib/grantpt.c: Don't include <fcntl.h>.
1961         (grantpt): Don't verify the validity of the file descriptor.
1962         * modules/grantpt (Depends-on): Remove fcntl-h.
1963         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
1964         file descriptors.
1965         * doc/posix-functions/grantpt.texi: Document more platforms on which
1966         grantpt succeeds for invalid file descriptors.
1967         Reported by Rich Felker <dalias@aerifal.cx>.
1968
1969 2012-06-22  Bruno Haible  <bruno@clisp.org>
1970
1971         fbufmode test: Don't test unportable behaviour.
1972         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
1973         (main): Invoke it three times.
1974         Reported by Szabolcs Nagy <nsz@port70.net>
1975         and Rich Felker <dalias@aerifal.cx>.
1976
1977 2012-06-21  Bruno Haible  <bruno@clisp.org>
1978
1979         gnulib-tool: Refactor inctests variable.
1980         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
1981         (func_modules_transitive_closure,
1982         func_modules_transitive_closure_separately,
1983         func_import, func_create_testdir): Update.
1984
1985         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
1986         * gnulib-tool: Accept option --without-tests.
1987         (func_usage): Document --without-tests option. Rearrange.
1988         (inctests): Normalize according to the mode.
1989         * NEWS: Mention the change.
1990         Suggested by Simon Josefsson.
1991
1992 2012-06-21  Bruce Korb  <bkorb@gnu.org>
1993
1994         parse-duration test: Avoid spurious output.
1995         * tests/test-parse-duration.sh: Reindent with leading tabs.
1996
1997 2012-06-21  Jim Meyering  <meyering@redhat.com>
1998
1999         maint: disable the strncpy prohibition
2000         * cfg.mk: Do not prohibit strncpy here.
2001
2002 2012-06-21  Bruno Haible  <bruno@clisp.org>
2003
2004         nonblocking: Avoid compilation error on mingw64.
2005         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2006         fscanf.
2007         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2008         * modules/vfscanf (configure.ac): Likewise.
2009         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2010         definition only if stdio.h has prepared it.
2011         Reported by Daniel P. Berrange <berrange@redhat.com>.
2012
2013 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2014
2015         gnulib-tool: Use readlink if it is available.
2016         * gnulib-tool (func_readlink): Choose function more appropriately.
2017
2018 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2019
2020         posixtm-tests: port to buggy compiler
2021         Problem reported by Simon Josefsson in
2022         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2023         * modules/posixtm-tests (Depends-on): Add stdint.
2024         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2025         Now of type int_least64_t, not int64_t, both because that's
2026         what INT64_C returns and because int_least64_t works even
2027         on 72-bit hosts.
2028         (T): Use INT64_C on constants outside the traditional int range,
2029         to work around compiler bug noted by Simon.
2030
2031         mktime: fix integer overflow in 'configure'-time test
2032         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2033         after integer overflow.  Problem reported by Rich Felker in
2034         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2035         Also, don't look for further instances of a bug if we've already
2036         found one instance; this helps 'configure' run faster.
2037
2038 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2039
2040         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2041         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2042         GetVersionEx correctly.
2043         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2044
2045 2012-06-20  Bruno Haible  <bruno@clisp.org>
2046
2047         fdopen: Allow implementations that don't reject invalid fd arguments.
2048         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2049         succeeds.
2050         Reported by Rich Felker <dalias@aerifal.cx>.
2051
2052 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2053
2054         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2055         bring in LIBINTL.
2056
2057 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2058
2059         init.sh: do not rely on autoupated PWD
2060         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2061         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2062         Although Nelson's bug was not necessarily fixed by this patch,
2063         it seems wise to make the change for safety.
2064         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2065         automagically after 'cd'; this is not reliable on older shells.
2066         (setup_): Fail if we cannot cd to temporary directory.
2067
2068 2012-06-19  Bruno Haible  <bruno@clisp.org>
2069
2070         stat, fstat: Avoid warnings on mingw64.
2071         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2072         redefining.
2073         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2074         Reported by Daniel P. Berrange <berrange@redhat.com>.
2075
2076 2012-06-19  Bruno Haible  <bruno@clisp.org>
2077
2078         stdioext: Add support for musl libc.
2079
2080         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2081         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2082
2083         * m4/fseterr.m4: New file.
2084         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2085         function exists.
2086         * modules/fseterr (Files): Add m4/fseterr.m4.
2087         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2088         __fseterr does not exist.
2089         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2090
2091         * lib/freadable.h: Update comment.
2092
2093         * lib/fwritable.h: Update comment.
2094
2095         * lib/freading.h: Update comment.
2096
2097         * lib/fwriting.h: Update comment.
2098
2099         * m4/freadahead.m4: New file.
2100         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2101         that function exists.
2102         * modules/freadahead (Files): Add m4/freadahead.m4.
2103         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2104         __freadahead does not exist.
2105         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2106
2107         * m4/freadptr.m4: New file.
2108         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2109         function exists.
2110         * modules/freadptr (Files): Add m4/freadptr.m4.
2111         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2112         __freadptr does not exist.
2113         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2114
2115         * m4/freadseek.m4: New file.
2116         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2117         exists.
2118         * modules/freadseek (Files): Add m4/freadseek.m4.
2119         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2120
2121         * lib/fpurge.c (fpurge): Update comment.
2122
2123         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2124
2125 2012-06-19  Bruno Haible  <bruno@clisp.org>
2126
2127         *printf-posix: Put more info into config.log.
2128         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2129         exit code into config.log.
2130
2131 2012-06-19  Bruno Haible  <bruno@clisp.org>
2132
2133         getopt-gnu: Fix exit code overflow in autoconf test.
2134         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2135         to keep them below < 128.
2136
2137 2012-06-17  Jim Meyering  <meyering@redhat.com>
2138
2139         maint.mk: fix typo in code to derive GPG key at release time
2140         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2141
2142 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2143
2144         regex: avoid warning when pointers are not long
2145         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2146         and uintptr_t, not long, for portability to hosts where pointers and
2147         long have different sizes.  Issue noted by Daniel P. Berrange in
2148         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2149         and fix suggested by Bruno Haible in
2150         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2151
2152 2012-06-17  Bruno Haible  <bruno@clisp.org>
2153
2154         dummy: Relicense into the public domain.
2155         * modules/dummy (License): Set to "public domain".
2156         Suggested by Reuben Thomas.
2157
2158 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2159
2160         announce-gen: VPATH issues
2161         * build-aux/announce-gen (--srcdir): New option, used to trim the
2162         $srcdir part of the path from $builddir to NEWS.
2163         * top/maint.mk (announcement): Adjust.
2164
2165 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2166
2167         gnu-web-doc-update: VPATH builds
2168         * build-aux/gnu-web-doc-update (--builddir): New option.
2169         Revamp the handling of options.
2170         Prefer $(...) to `...`.
2171         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2172         the template, and it is GNU mktemp specific.
2173         Prefer set -e to long series of &&.
2174         Restore the initial git branch, not "master".
2175         Properly initialize submodules (don't rely only on bootstrap).
2176         Do not reconfigure blindly, use config.status.
2177         * top/README-release: Update instructions for gnu-web-doc-update.
2178
2179 2012-06-11  Jim Meyering  <meyering@redhat.com>
2180
2181         maint.mk: revert most of the previous change re "all these"
2182         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2183         For rationale, see the discussion at
2184         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2185
2186 2012-06-10  Karl Berry  <karl@gnu.org>
2187
2188         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2189
2190         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2191
2192 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2193
2194         parse-duration: Relicense under LGPLv2+.
2195         * modules/parse-duration (License): Change to LGPLv2+.
2196
2197 2012-06-10  Jim Meyering  <meyering@redhat.com>
2198
2199         maint.mk: prohibit common grammar error: "all these"
2200         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2201         the list of prohibited word sequences.  It should be "all of these".
2202         * lib/tempname.c (__gen_tempname): Fix one of them.
2203
2204 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2205
2206         do-release-commit-and-tag: support VPATH builds
2207         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2208         (noteworthy): Defined earlier to factor its value.
2209         (noteworthy_stub): New.
2210         Use it to factor.
2211         (help_version): Split into...
2212         (help, version): these.
2213         Adjust the option processing part.
2214         Support "--option=value" in addition to "--option value".
2215         (builddir): New.
2216         (--builddir): New option.
2217         * top/README-release: Document this.
2218         Reword slightly so that the reader cannot understand that he
2219         has to do these steps before calling do-release-commit-and-tag.
2220
2221 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2222
2223         readme-release: also require announce-gen and maintainer-makefile
2224         * modules/readme-release (Depends-on): here.
2225         * modules/announce-gen, modules/do-release-commit-and-tag,
2226         modules/gnu-web-doc-update, modules/maintainer-makefile
2227         (Description): Point to readme-release.
2228
2229 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2230
2231         maint.mk: fix VPATH issues.
2232         * top/maint.mk (news-check): GNU Make understand $< very well.
2233         (release-prep): NEWS is in $(srcdir).
2234
2235 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2236
2237         readme-release: require the promoted modules.
2238         * modules/readme-release (Depends-on): Add
2239         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2240         in this text.
2241
2242 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2243             Bruno Haible  <bruno@clisp.org>
2244
2245         error, strerror-override: Support mingw64 from Fedora 17.
2246         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2247         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2248         EINPROGRESS.
2249         * lib/strerror-override.h (strerror_override): Test it.
2250         * lib/strerror-override.c (strerror_override): Likewise.
2251         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2252
2253 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2254             Bruno Haible  <bruno@clisp.org>
2255
2256         error, strerror-override: Support mingw64 from Fedora 17.
2257         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2258         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2259         * lib/strerror-override.h (strerror_override): Test it.
2260         * lib/strerror-override.c (strerror_override): Likewise.
2261
2262 2012-06-03  Bruno Haible  <bruno@clisp.org>
2263
2264         error, strerror-override: Support new errno values from POSIX:2008.
2265         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2266         ENOTRECOVERABLE.
2267         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2268         platforms.
2269         * lib/strerror-override.c (strerror_override): Conditionalize the
2270         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2271         * lib/strerror-override.h (strerror_override): Declare also if
2272         GNULIB_defined_EOWNERDEAD is defined.
2273         * tests/test-errno.c (e130, e131): New variables.
2274         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2275         ENOTRECOVERABLE.
2276         Reported by Paolo Bonzini.
2277
2278 2012-05-31  Jim Meyering  <meyering@redhat.com>
2279
2280         savewd: add missing dependency on sys_wait module
2281         * modules/savewd (Depends-on): Add sys_wait, needed at least
2282         for MSVC.  Report and suggested change by Michael Goffioul.
2283
2284 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2285
2286         system-quote-tests: port to CentOS 5
2287         Problem reported by Tom G. Christensen in
2288         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2289         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2290
2291 2012-05-29  Jim Meyering  <meyering@redhat.com>
2292
2293         maint: fix typos in comments and ChangeLog
2294         Culprits identified and fixed mostly automatically using these commands:
2295         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2296         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2297         using http://github.com/lyda/misspell-check
2298         * ChangeLog: Fix typos.
2299         * doc/solaris-versions: Likewise.
2300         * lib/regexec.c (re_search_stub): Likewise.
2301         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2302
2303 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2304
2305         manywarnings: remove duplicate -Wmultichar entry
2306         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2307         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2308         so keep the entry marked as documented.
2309
2310 2012-05-27  Karl Berry  <karl@gnu.org>
2311
2312         * config/srclist.txt (mktime.c): remove last libc sync,
2313         perhaps just temporarily.
2314
2315 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2316
2317         regex: don't assume uint64_t or uint32_t
2318         * lib/regcomp.c (init_word_char): Don't assume that the types
2319         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2320         them, and on some 32-bit compilers there is no uint64_t.
2321         Problem reported by Gianluigi Tiesi in
2322         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2323
2324 2012-05-25  Jim Meyering  <meyering@redhat.com>
2325
2326         maint.mk: add strncpy-prohibiting syntax-check rule
2327         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2328
2329 2012-05-24  Jim Meyering  <meyering@redhat.com>
2330
2331         maint.mk: compute $(gpg_key_ID) more portably
2332         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2333         That use of sed is not portable to some fringe systems.
2334         Reported by Paul Eggert in
2335         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2336
2337 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2338
2339         mktime: sync from glibc
2340         * config/srclist.txt: Uncomment mktime.c.
2341         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2342         First, indent with tabs, since glibc uses tabs and doesn't want to
2343         change and we'd rather be identical to glibc.  Also, two small
2344         coding changes:
2345         (isdst_differ): Use &&, not &, as && is the usual style.
2346         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2347         for clarity.
2348
2349 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2350
2351         announce-gen: du -h is more portable than du --human
2352         * build-aux/announce-gen (sizes): Invoke du with -h instead
2353         of --human.  Accept leading white space in its output.
2354
2355 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2356
2357         announce-gen: Improve diagnostics.
2358         * build-aux/announce-gen: When parsing command line options,
2359         prefer "announce-gen: option --release-type requires an argument"
2360         to "Option release-type requires an argument".
2361
2362 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2363
2364         maint.mk: gpg_key_ID: use sed more portably
2365         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2366         the closing brace.
2367         (refresh-po): Fuse two sed invocations into one.
2368
2369 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2370
2371         gitlog-to-changelog: support the log message format used in Bison.
2372         * build-aux/gitlog-to-changelog: Support --strip-tab and
2373         --strip-cherry-picked.
2374
2375 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2376
2377         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2378         the rest of the current time slice to another thread in the current
2379         process. So if the thread that feeds the file decscriptor we're
2380         polling is not in the current process, we get busy-waiting.
2381         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2382         Patch from Theodore Leblond.
2383         * lib/select.c: Split polling out of the loop that sets the output
2384         fd_sets.  Check for zero result and loop if the wait timeout is
2385         infinite.
2386
2387 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2388
2389         select: Fix build error on IRIX 6.5.
2390         * lib/select.c: Include stddef.h for NULL.
2391
2392 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2393
2394         gc: fix libgcrypt detection on older machines.
2395         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2396         copyright years because the file has been distributed every year
2397         since it was created.
2398
2399 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2400
2401         crypto: fix bug in large buffer handling
2402         Problem reported by Serge Belyshev for glibc in
2403         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2404         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2405         * lib/md4.c (md4_process_block):
2406         * lib/md5.c (md5_process_block):
2407         * lib/sha1.c (sha1_process_block):
2408         * lib/sha256.c (sha256_process_block):
2409         Don't assume the buffer length is less than 2**32.
2410         * lib/sha512.c (sha512_process_block): Likewise.
2411         Here, the bug is present only in the rare case where the host does
2412         not support uint64_t or where size_t is wider than 64 bits.
2413         Use u64size to work around the problems.
2414         * lib/u64.h (u64size): New macro.
2415
2416 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2417
2418         fsusage: fix block size returned on older Linux 2.6
2419
2420         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2421         which is available since Linux 2.6.
2422         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2423         when the member is available so it can be used as a fallback.
2424         * doc/posix-functions/statvfs.texi: Mention the hang issue
2425         on Linux < 2.6.36.
2426
2427 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2428
2429         bootstrap: suppress stderr chatter
2430         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2431         Omit unnecessary chatter to stderr.  The main program chatter
2432         was there only inadvertantly.
2433
2434         bootstrap: .gitignore files created by autopoint, libtool
2435         I ran into this problem when bootstrapping the latest diffutils.
2436         After './bootstrap', 'git status' reported lots of untracked files
2437         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2438         autopoint and do not need to be version-controlled.
2439         * build-aux/bootstrap: Put into .gitignore the files that
2440         autopoint and libtool create, by keeping track of files that exist
2441         after but not before these programs are run.
2442         (version_controlled_file): Move up.  2nd arg is now full file
2443         name, not base name; this is more convenient.  Put CVS at the end,
2444         as it's now somewhat deprecated.
2445
2446 2012-05-14  Jim Meyering  <meyering@redhat.com>
2447
2448         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2449         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2450         definition.  Reported by Bruno Haible.
2451
2452 2012-05-13  Bruno Haible  <bruno@clisp.org>
2453             Paul Eggert  <eggert@cs.ucla.edu>
2454
2455         binary-io: Define set_binary_mode function.
2456         * lib/binary-io.h (set_binary_mode): New function.
2457         (SET_BINARY): Define in terms of set_binary_mode.
2458         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2459         * tests/test-binary-io.c (main): Accept an argument, and test either
2460         set_binary_mode or SET_BINARY depending on the argument.
2461         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2462         argument. Clean up also t-bin-out0.tmp.
2463
2464 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2465
2466         bootstrap: take advantage of POSIX shell features
2467
2468         The 'bootstrap' script offered by Gnulib script already uses POSIX
2469         shell features (like $((...)) arithmetic expansions) that are not
2470         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2471         means that bootstrap must already be run using a proper POSIX shell,
2472         which will thus provide more features, like ${var#pattern} parameter
2473         expansion or inversion of a command exit status with '!'.  We can
2474         thus use these features to improve the clarity and the performances
2475         of the bootstrap script.
2476
2477         Suggested by Eric Blake.
2478
2479         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2480         of sed/expr plus command substitutions, to save some forks.  While
2481         we are at it, prefer the POSIX $(...) form of command substitution,
2482         rather than the legacy form `...` (since the former is visually
2483         clearer and interacts better with quoting), and prefer the idiom:
2484           "if ! CMD; then ACTION ..."
2485         over the idiom:
2486           "if CMD; then :; else ACTION ..."
2487         which was required by legacy Bourne shells not supporting '!'.
2488
2489 2012-05-12  Bruno Haible  <bruno@clisp.org>
2490
2491         system-quote: Add more comments.
2492         * lib/system-quote.h: Add more comments about wilcards and limitations.
2493         Suggested by Eli Zaretskii <eliz@gnu.org>.
2494
2495         sh-quote, system-quote: Add comments about wildcards.
2496         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2497         * lib/system-quote.h: Likewise.
2498         Reported by Eli Zaretskii <eliz@gnu.org>.
2499
2500 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2501
2502         fsusage: check for GNU/Linux statvfs problem dynamically
2503         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2504         Define STAT_STATFS2_BSIZE too, since in this case the code now
2505         checks dynamically whether statvfs is reliable, falling back on
2506         Linux-style statfs otherwise.
2507         (statvfs_works): New function, for dynamically testing statvfs.
2508         (get_fs_usage) [STAT_STATVFS]: Use it.
2509         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2510         statvfs on GNU/Linux hosts, since it's now done dynamically.
2511
2512 2012-05-10  Bruno Haible  <bruno@clisp.org>
2513
2514         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2515         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2516         '?' character.
2517         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2518         * tests/test-system-quote-main.c (check_all): Check also strings like
2519         "??????????".
2520         Reported by Eli Zaretskii <eliz@gnu.org>.
2521
2522 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2523
2524         _Noreturn: port config.h to gcc -Wundef
2525         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2526         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2527         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2528
2529 2012-05-10  Bruno Haible  <bruno@clisp.org>
2530
2531         system-quote: Refactor.
2532         * lib/system-quote.h (system_quote_copy): Fix comment.
2533         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2534         New functions, extracted from system_quote_copy.
2535         (system_quote_length, system_quote_copy): Use these functions.
2536         Reported by Paul Eggert.
2537
2538 2012-05-08  Bruno Haible  <bruno@clisp.org>
2539
2540         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2541         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2542
2543 2012-05-08  Bruno Haible  <bruno@clisp.org>
2544
2545         Tests for module 'system-quote'.
2546         * modules/system-quote-tests: New file.
2547         * tests/test-system-quote.sh: New file.
2548         * tests/test-system-quote-main.c: New file.
2549         * tests/test-system-quote-child.c: New file.
2550
2551         New module 'system-quote'.
2552         * lib/system-quote.h: New file.
2553         * lib/system-quote.c: New file.
2554         * modules/system-quote: New file.
2555
2556 2012-05-08  Bruno Haible  <bruno@clisp.org>
2557
2558         sh-quote: Make C++ safe and allow multiple inclusion.
2559         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2560         declarations in extern "C".
2561
2562 2012-05-08  Bruno Haible  <bruno@clisp.org>
2563
2564         sh-quote tests: Make tests stricter.
2565         * tests/test-sh-quote.c (check_one): Check the return value of
2566         shell_quote_copy.
2567         (main): Check a string with a CR character. Check a string that
2568         contains UCHAR_MAX.
2569
2570 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2571
2572         warnings.m4: provide a means to specify the program to compile.
2573         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2574         (gl_WARN_ADD): here.
2575         Use gl_AS_VAR_APPEND.
2576         Support an argument to specify the program to compile.
2577         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2578         AC_SUBST the WARN_CFLAGS when they are used.
2579         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2580         leave this to gl_WARN_ADD.
2581
2582 2012-05-08  Eric Blake  <eblake@redhat.com>
2583
2584         doc: recommendations on gettext version
2585         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
2586         choice between versions.
2587         * DEPENDENCIES (gettext): Cover both approaches.
2588
2589 2012-05-08  Jim Meyering  <meyering@redhat.com>
2590
2591         init.sh: explain why EXEEXT support uses aliases rather than functions
2592         * tests/init.sh: Add a comment.
2593
2594         init.sh: don't let bash aliases interfere with tests
2595         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
2596         is bash.  This avoids problems for those who alias standard commands to
2597         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
2598         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
2599
2600 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2601
2602         stdint: be more consistent with glibc, SunOS libc
2603         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
2604         (gl_int_fast16_t, gl_uint_fast16_t)
2605         (gl_int_fast32_t, gl_uint_fast32_t)
2606         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
2607         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
2608         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
2609         Be consistent with glibc by default, and with SunOS 5.10 and later
2610         if __sun is defined.  This lessens the likelihood of clashes if
2611         code compiled for older hosts is combined with code compiled for
2612         newer ones.  Problem reported by Niels Möller in
2613         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
2614
2615 2012-05-07  Eric Blake  <eblake@redhat.com>
2616
2617         isatty: relax license to LGPLv2+
2618         * modules/isatty (License): Relax license.
2619
2620 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2621
2622         stat-size: comment fix
2623         * lib/stat-size.h: Remove obsolete comment about indenting.
2624
2625 2012-05-06  Bruno Haible  <bruno@clisp.org>
2626
2627         Tests for module 'sh-quote'.
2628         * modules/sh-quote-tests: New file.
2629         * tests/test-sh-quote.c: New file.
2630
2631 2012-05-06  Bruno Haible  <bruno@clisp.org>
2632
2633         sh-quote: Improve shell_quote_argv's signature.
2634         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
2635         * lib/sh-quote.c (shell_quote_argv): Likewise.
2636
2637 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2638
2639         stdint: document issues with int_fast8_t etc.
2640         * doc/posix-headers/stdint.texi (stdint.h): Say that other
2641         stdint.h substitutes may define these types differently.  See
2642         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
2643
2644 2012-05-05  Bruno Haible  <bruno@clisp.org>
2645
2646         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
2647         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
2648         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
2649         or 'guessing no (mishandles large arguments)'.
2650
2651 2012-05-05  Bruno Haible  <bruno@clisp.org>
2652
2653         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
2654         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
2655         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2656         set gl_cv_func_link_follows_symlink to "guessing no".
2657
2658 2012-05-05  Bruno Haible  <bruno@clisp.org>
2659
2660         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
2661         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
2662         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
2663         "guessing no".
2664         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
2665
2666 2012-05-05  Bruno Haible  <bruno@clisp.org>
2667
2668         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
2669         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
2670         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2671         set gl_cv_struct_dirent_d_ino to "guessing yes".
2672
2673 2012-05-05  Bruno Haible  <bruno@clisp.org>
2674
2675         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
2676         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
2677         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
2678         "guessing yes".
2679
2680 2012-05-05  Bruno Haible  <bruno@clisp.org>
2681
2682         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
2683         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
2684         compiling to a glibc system, set gl_cv_func_signbit and
2685         gl_cv_func_signbit_gcc to "guessing yes".
2686
2687 2012-05-05  Bruno Haible  <bruno@clisp.org>
2688
2689         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
2690         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
2691         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
2692         to "guessing yes".
2693         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
2694         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
2695
2696 2012-05-05  Bruno Haible  <bruno@clisp.org>
2697
2698         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
2699         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
2700         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
2701         gl_cv_func_realpath_works to "guessing yes".
2702
2703 2012-05-05  Bruno Haible  <bruno@clisp.org>
2704
2705         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
2706         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
2707         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
2708
2709 2012-05-04  Bruno Haible  <bruno@clisp.org>
2710
2711         Tweak last commit.
2712         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
2713         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2714
2715 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
2716
2717         unistd_h: make it easier to avoid sys_types_h
2718         This is useful for Emacs, which has its own method of porting to
2719         Windows, and which therefore does not need the sys_types_h module.
2720         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
2721         code moved here from gl_SYS_TYPES_H.
2722         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
2723         using the code directly.
2724         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
2725         gl_SYS_TYPES_H.
2726         * modules/sys_types (Files):
2727         * modules/unistd (Files): Add m4/off_t.m4.
2728
2729 2012-05-03  Bruno Haible  <bruno@clisp.org>
2730
2731         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
2732         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
2733         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
2734         "guessing yes" or "guessing no".
2735         (gl_FUNC_LSTAT): Update.
2736         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
2737         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2738         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
2739
2740 2012-05-03  Bruno Haible  <bruno@clisp.org>
2741
2742         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
2743         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
2744         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
2745         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
2746         cross-compiling, choose the first alternative on glibc systems.
2747         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
2748
2749 2012-05-03  Bruno Haible  <bruno@clisp.org>
2750
2751         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
2752         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
2753         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
2754
2755 2012-05-03  Bruno Haible  <bruno@clisp.org>
2756
2757         chown: Avoid "guessing no" when cross-compiling to glibc systems.
2758         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
2759
2760 2012-05-03  Bruno Haible  <bruno@clisp.org>
2761
2762         Avoid "guessing no" guesses when cross-compiling to glibc systems.
2763         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
2764         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
2765         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
2766         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
2767         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
2768         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
2769         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
2770         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
2771         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
2772         compiling to glibc systems, set gl_cv_func_chown_slash_works,
2773         gl_cv_func_chown_ctime_works to "guessing yes".
2774         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
2775         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
2776         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
2777         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
2778         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
2779         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
2780         compiling to glibc systems, set gl_cv_func_open_directory_works to
2781         "guessing yes".
2782         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
2783         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
2784         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
2785         "guessing yes".
2786         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
2787         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
2788         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
2789         compiling to glibc systems, set gl_cv_func_floorf_ieee to
2790         "guessing yes".
2791         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
2792         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
2793         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
2794         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
2795         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
2796         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
2797         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
2798         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
2799         "guessing yes".
2800         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
2801         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
2802         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
2803         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
2804         "guessing yes".
2805         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
2806         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
2807         "guessing yes".
2808         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
2809         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
2810         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
2811         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
2812         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
2813         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
2814         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
2815         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
2816         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
2817         compiling to glibc systems, set gl_cv_func_log10f_ieee to
2818         "guessing yes".
2819         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
2820         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
2821         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
2822         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
2823         "guessing yes".
2824         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
2825         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
2826         "guessing yes".
2827         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
2828         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
2829         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
2830         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
2831         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
2832         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
2833         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
2834         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
2835         compiling to glibc systems, set gl_cv_func_mkfifo_works to
2836         "guessing yes".
2837         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
2838         compiling to glibc systems, set gl_cv_func_mknod_works to
2839         "guessing yes".
2840         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
2841         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
2842         "guessing yes".
2843         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
2844         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
2845         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
2846         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
2847         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
2848         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
2849         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
2850         compiling to glibc systems, set gl_cv_func_svid_putenv to
2851         "guessing yes".
2852         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
2853         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
2854         "guessing yes".
2855         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
2856         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
2857         "guessing yes".
2858         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
2859         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
2860         to "guessing yes".
2861         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
2862         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
2863         to "guessing yes".
2864         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
2865         compiling to glibc systems, set gl_cv_func_rmdir_works to
2866         "guessing yes".
2867         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
2868         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
2869         gl_cv_func_unlink_parent_fails to "guessing yes".
2870         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
2871         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
2872         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
2873         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
2874         gl_cv_func_rename_dest_works to "guessing yes".
2875         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
2876         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
2877         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
2878         compiling to glibc systems, set gl_cv_func_roundf_ieee to
2879         "guessing yes".
2880         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
2881         compiling to glibc systems, set gl_cv_func_roundl_ieee to
2882         "guessing yes".
2883         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
2884         compiling to glibc systems, set gl_cv_func_setenv_works to
2885         "guessing yes".
2886         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
2887         compiling to glibc systems, set gl_cv_func_unsetenv_works to
2888         "guessing yes".
2889         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
2890         compiling to glibc systems, set gl_cv_func_sleep_works to
2891         "guessing yes".
2892         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
2893         compiling to glibc systems, set gl_cv_func_stat_file_slash to
2894         "guessing yes".
2895         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
2896         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
2897         "guessing yes".
2898         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
2899         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
2900         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
2901         compiling to glibc systems, set gl_cv_func_truncf_ieee to
2902         "guessing yes".
2903         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
2904         compiling to glibc systems, set gl_cv_func_truncl_ieee to
2905         "guessing yes".
2906         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
2907         compiling to glibc systems, set gl_cv_func_usleep_works to
2908         "guessing yes".
2909         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
2910         compiling to glibc systems, set gl_cv_func_futimesat_works to
2911         "guessing yes".
2912
2913 2012-05-03  Bruno Haible  <bruno@clisp.org>
2914
2915         Say "guessing yes" or "guessing no" when cross-compiling.
2916         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
2917         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
2918         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
2919         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
2920         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
2921         am_cv_func_working_getline to "guessing yes" or "guessing no".
2922         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
2923         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
2924         (gl_FUNC_MEMMEM): When cross-compiling, set
2925         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
2926         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
2927         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
2928         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
2929         set gl_cv_func_strcasestr_works_always to "guessing yes" or
2930         "guessing no".
2931         (gl_FUNC_STRCASESTR): When cross-compiling, set
2932         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
2933         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
2934         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
2935         (gl_FUNC_STRSTR): When cross-compiling, set
2936         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
2937         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
2938         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
2939         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
2940         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
2941
2942 2012-05-01  Bruno Haible  <bruno@clisp.org>
2943
2944         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
2945         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
2946         * build-aux/reloc-ldflags: Likewise.
2947         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
2948
2949 2012-05-01  Bruno Haible  <bruno@clisp.org>
2950
2951         gnulib-tool: Remove transitional code.
2952         * gnulib-tool: Don't warn about --import with 0 arguments any more.
2953         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2954
2955 2012-05-01  Bruno Haible  <bruno@clisp.org>
2956
2957         getcwd: Fix misindentation.
2958         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
2959
2960 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2961
2962         exclude: process exclude and include directives in order
2963         This restores the pre-2009 behavior, and is part of a fix of a
2964         grep bug reported by Quentin Arce in
2965         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
2966         * lib/exclude.c (struct exclude): Remove 'tail' member.
2967         (new_exclude_segment): Prepend the new segment instead of appending.
2968         Return void, since that's now more convenient.
2969         (file_pattern_matches): Renamed from excluded_file_pattern_p.
2970         (file_name_matches): Renamed from excluded_file_name_p.
2971         (file_pattern_matches, file_name_matches):
2972         Return true if the pattern matches, not if it excludes.
2973         All callers changed.
2974         (excluded_file_name): Process the list in reverse order;
2975         since the list is now reversed this restores the pre-2009 behavior.
2976         (add_exclude): Adjust to new reversed-order list.  Use local var
2977         rather than macro, for clarity.
2978         * tests/test-exclude7.sh: Adjust to corrected behavior.
2979
2980         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
2981         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
2982         it's not possible here.  Handle the case of \ at end of pattern
2983         without dumping core.
2984         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
2985
2986         _Noreturn: future-proof non-GNU and non-MSVC compilers
2987         * build-aux/snippet/_Noreturn.h (_Noreturn):
2988         * m4/gnulib-common.m4 (gl_COMMON_BODY):
2989         Do not define _Noreturn if __STDC_VERSION__ indicates this is
2990         C11 or later.  This is more likely to work with random future C
2991         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
2992         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
2993
2994         exclude: handle wildcards with FNM_EXTMATCH
2995         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
2996         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
2997         comment that "has wildcards" really means "has or may have
2998         wildcards".  Simplify by avoiding the need to call strcspn.
2999
3000 2012-04-29  Bruno Haible  <bruno@clisp.org>
3001
3002         gnulib-tool: Fix list of authors.
3003         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3004
3005 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3006
3007         bootstrap: support Automake-NG in $buildreq
3008         * bootstrap (check_versions): Handle automake and aclocal from
3009         Automake-NG specially.  They can be specified as respectively
3010         the "automake-ng" and "aclocal-ng" requirements.
3011
3012 2012-04-25  Eric Blake  <eblake@redhat.com>
3013
3014         bootstrap: only force latest Makefile.in.in for gettext module
3015         * build-aux/bootstrap (with_gettext): Only install latest
3016         Makefile.in.in for projects requesting bleeding edge gettext.
3017
3018 2012-04-22  Bruno Haible  <bruno@clisp.org>
3019
3020         doc: Mention reason for replacement on glibc/Linux systems.
3021         * doc/posix-functions/dprintf.texi: Mention the problem with special
3022         'long double' values.
3023         * doc/posix-functions/fprintf.texi: Likewise.
3024         * doc/posix-functions/printf.texi: Likewise.
3025         * doc/posix-functions/snprintf.texi: Likewise.
3026         * doc/posix-functions/sprintf.texi: Likewise.
3027         * doc/posix-functions/vdprintf.texi: Likewise.
3028         * doc/posix-functions/vfprintf.texi: Likewise.
3029         * doc/posix-functions/vprintf.texi: Likewise.
3030         * doc/posix-functions/vsnprintf.texi: Likewise.
3031         * doc/posix-functions/vsprintf.texi: Likewise.
3032         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3033         platforms with F_DUPFD_CLOEXEC problems.
3034         * doc/posix-functions/glob.texi: Mention which platforms are affected
3035         by the problem with symbolic links.
3036         * doc/posix-functions/linkat.texi: Mention the problem with
3037         AT_SYMLINK_FOLLOW on Linux.
3038
3039 2012-04-22  Bruno Haible  <bruno@clisp.org>
3040
3041         pwrite: Don't replace on all platforms.
3042         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3043
3044 2012-04-22  Bruno Haible  <bruno@clisp.org>
3045
3046         rint* tests: Avoid gcc warnings.
3047         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3048         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3049         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3050
3051 2012-04-21  Bruno Haible  <bruno@clisp.org>
3052
3053         users.txt: Update.
3054         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3055         switched from CVS to git, bzr, or svn.
3056
3057 2012-04-21  Bruno Haible  <bruno@clisp.org>
3058
3059         Large File Support for native Windows platforms.
3060
3061         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3062         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3063
3064         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3065         type.
3066         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3067         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3068         * doc/posix-headers/sys_types.texi: Mention the effect of the
3069         'largefile' module.
3070
3071         * lib/fcntl.in.h: Add comments about off_t.
3072         * modules/fcntl-h (Depends-on): Add sys_types.
3073
3074         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3075         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3076         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3077         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3078         * modules/unistd (Depends-on): Add sys_types.
3079         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3080
3081         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3082         instead of lseek.
3083         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3084         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3085         * modules/lseek (Depends-on): Add sys_types.
3086
3087         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3088         msvc-nothrow.h.
3089         (SetFileSize): New function.
3090         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3091         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3092         if Large File Support is requested.
3093         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3094         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3095
3096         * lib/stdio.in.h: Add comments about off_t.
3097         * modules/stdio (Depends-on): Add sys_types.
3098
3099         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3100         instead of ftello.
3101         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3102         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3103         (gl_PREREQ_FTELLO): New macro.
3104         * modules/ftello (Depends-on): Add sys_types.
3105         (configure.ac): Incoke gl_PREREQ_FTELLO.
3106
3107         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3108         instead of fseeko.
3109         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3110         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3111         (gl_PREREQ_FSEEKO): New macro.
3112         * modules/fseeko (Depends-on): Add sys_types.
3113         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3114
3115         * lib/sys_stat.in.h: Add comments about off_t.
3116         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3117         64-bit integer for st_size in 'struct stat'.
3118         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3119         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3120         * modules/sys_stat (Depends-on): Add sys_types.
3121         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3122
3123         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3124         instead of stat or _stat.
3125
3126         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3127         'struct _stati64' instead of fstat and 'struct stat'.
3128         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3129         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3130
3131         Reported by Ray Satiro <raysatiro@yahoo.com>.
3132
3133 2012-04-19  Eric Blake  <eblake@redhat.com>
3134
3135         bootstrap: accommodate older libtool
3136         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3137         Reported by Daniel P. Berrange.
3138
3139 2012-04-19  Jim Meyering  <meyering@redhat.com>
3140
3141         announce-gen: avoid failure due to lack of Digest::SHA1
3142         Even with the preferred Digest::SHA available, this script
3143         would fail when the backup module, Digest::SHA1, was not installed.
3144         * build-aux/announce-gen: Quote the conditional use of "use".
3145         Reported by Reuben Thomas in:
3146         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3147
3148         bootstrap: don't let a user's CDPATH setting affect this script
3149         When CDPATH is set, cd will sometimes generate output.
3150         When "cd" is run in a subshell whose output matters, that
3151         surprising-to-some output can cause malfunction.
3152         Unsetting CDPATH turns off this shell "feature."
3153         * build-aux/bootstrap (CDPATH): Unset.
3154         Reported by Reuben Thomas in:
3155         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3156         and inspired by his patch here:
3157         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3158
3159 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3160         and Jim Meyering  <meyering@redhat.com>
3161
3162         maint.mk: catch "see @xref{}" and similar
3163         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3164         prohibit "See also @xref{", "Also see @pxref{", and similar.
3165
3166 2012-04-16  Jim Meyering  <meyering@redhat.com>
3167
3168         bootstrap: really use gnulib's po/Makefile.in.in
3169         * build-aux/bootstrap: Correct the source file name in previous change.
3170         Reported by Akim Demaille.
3171
3172         configmake: correct minor inconsistency in Makefile rule
3173         * modules/configmake (Makefile.am): All other rules like this one
3174         run the final "mv -f ..." in the same backslash-continued command
3175         as the one that does everything else.  This one put the mv -f ...
3176         command on a separate, non-backslash-continued line.
3177         Make it like the others.
3178
3179         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3180         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3181         the one from gettext.  Reported by Akim Demaille.
3182
3183 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3184
3185         Fix recursion of install-* into po directories.
3186         Bison's install-pdf bug reported by Hans Aberg at
3187         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3188         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3189         (install-info, install-pdf, install-ps): New targets.
3190
3191 2012-04-16  Jim Meyering  <meyering@redhat.com>
3192
3193         maint: avoid spurious "make sc_maint" failure
3194         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3195         exempt all *.class file names, for lib/javaversion.class.
3196
3197 2012-04-15  Bruno Haible  <bruno@clisp.org>
3198
3199         lseek: Make configure test independent of environment.
3200         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3201         Windows, we know that lseek() on pipes is broken; skip the runtime
3202         test.
3203
3204 2012-04-14  Bruno Haible  <bruno@clisp.org>
3205
3206         stat: Bypass buggy override in mingw64.
3207         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3208         * lib/stat.c (stat) [mingw64]: Define to _stat.
3209         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3210
3211 2012-04-14  Bruno Haible  <bruno@clisp.org>
3212
3213         pathmax: Fix compilation error on MSVC 9.
3214         * modules/pathmax (Depends-on): Add unistd.
3215
3216 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3217
3218         README: document pointer comparison assumption
3219         * README (Portability guidelines): Document assumption about
3220         pointer comparisons, in response to a recent bug-gnulib comment by
3221         Jeffrey Kegler.
3222
3223 2012-04-12  Bruno Haible  <bruno@clisp.org>
3224
3225         Tests for module 'getrusage'.
3226         * modules/getrusage-tests: New file.
3227         * tests/test-getrusage.c: New file.
3228
3229         New module 'getrusage'.
3230         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3231         warn-on-use.h.
3232         (getrusage): New declaration.
3233         * lib/getrusage.c: New file.
3234         * m4/getrusage.m4: New file.
3235         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3236         is declared.
3237         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3238         HAVE_GETRUSAGE.
3239         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3240         snippet/c++defs, snippet/warn-on-use.
3241         (Makefile.am): Update generation of sys/resource.h. Substitute
3242         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3243         * modules/getrusage: New file.
3244         * doc/posix-functions/getrusage.texi: Mention the new module.
3245
3246 2012-04-12  Bruno Haible  <bruno@clisp.org>
3247
3248         Tests for module 'sys_resource'.
3249         * modules/sys_resource-tests: New file.
3250         * tests/test-sys_resource.c: New file.
3251
3252         New module 'sys_resource'.
3253         * lib/sys_resource.in.h: New file.
3254         * m4/sys_resource_h.m4: New file.
3255         * modules/sys_resource: New file.
3256         * doc/posix-headers/sys_resource.texi: Mention the new module.
3257
3258 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3259
3260         ioctl: Fix compilation error on mingw.
3261         * lib/ioctl.c: Include <windows.h>.
3262         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3263
3264 2012-04-04  Jim Meyering  <meyering@redhat.com>
3265
3266         regex: correct #pragma guard expression
3267         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3268         not 4.3.  Correct its cpp guard expression.
3269
3270 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3271
3272         regex: remove unnecessary type punning
3273         Problem reported by Vladimir Serbinenko in
3274         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3275         * lib/regex.h (struct re_pattern_buffer): Change the type of
3276         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3277         Fix comment to match code.
3278         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3279         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3280         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3281         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3282         (set_regs):
3283         Omit no-longer-necessary casts.
3284
3285 2012-04-03  Bruno Haible  <bruno@clisp.org>
3286
3287         Tests for module 'ilogbl'.
3288         * modules/ilogbl-tests: New file.
3289         * tests/test-ilogbl.c: New file.
3290
3291         New module 'ilogbl'.
3292         * lib/math.in.h (ilogbl): New declaration.
3293         * lib/ilogbl.c: New file.
3294         * m4/ilogbl.m4: New file.
3295         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3296         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3297         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3298         Split sed invocation, to avoid the limit of 100 substitutions of
3299         HP-UX 'sed'.
3300         * modules/ilogbl: New file.
3301         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3302         * doc/posix-functions/ilogbl.texi: Mention the new module.
3303
3304 2012-04-03  Bruno Haible  <bruno@clisp.org>
3305
3306         Tests for module 'ilogbf'.
3307         * modules/ilogbf-tests: New file.
3308         * tests/test-ilogbf.c: New file.
3309
3310         New module 'ilogbf'.
3311         * lib/math.in.h (ilogbf): New declaration.
3312         * lib/ilogbf.c: New file.
3313         * m4/ilogbf.m4: New file.
3314         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3315         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3316         REPLACE_ILOGBF.
3317         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3318         REPLACE_ILOGBF.
3319         * modules/ilogbf: New file.
3320         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3321         * doc/posix-functions/ilogbf.texi: Mention the new module.
3322
3323 2012-04-03  Bruno Haible  <bruno@clisp.org>
3324
3325         Tests for module 'ilogb'.
3326         * modules/ilogb-tests: New file.
3327         * tests/test-ilogb.c: New file.
3328         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3329         tests/test-logb-ieee.h.
3330
3331         New module 'ilogb'.
3332         * lib/math.in.h (ilogb): New declaration.
3333         * lib/ilogb.c: New file.
3334         * m4/ilogb.m4: New file.
3335         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3336         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3337         REPLACE_ILOGB.
3338         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3339         REPLACE_ILOGB.
3340         * modules/ilogb: New file.
3341         * tests/test-math-c++.cc: Check the declaration of ilogb.
3342         * doc/posix-functions/ilogb.texi: Mention the new module.
3343
3344 2012-04-03  Bruno Haible  <bruno@clisp.org>
3345
3346         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3347         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3348         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3349         (main): Check their values.
3350         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3351         problem.
3352
3353 2012-04-03  Bruno Haible  <bruno@clisp.org>
3354
3355         Tests for module 'logbl-ieee'.
3356         * modules/logbl-ieee-tests: New file.
3357         * tests/test-logbl-ieee.c: New file.
3358
3359         New module 'logbl-ieee'.
3360         * modules/logbl-ieee: New file.
3361
3362         Tests for module 'logb-ieee'.
3363         * modules/logb-ieee-tests: New file.
3364         * tests/test-logb-ieee.c: New file.
3365
3366         New module 'logb-ieee'.
3367         * modules/logb-ieee: New file.
3368
3369         Tests for module 'logbf-ieee'.
3370         * modules/logbf-ieee-tests: New file.
3371         * tests/test-logbf-ieee.c: New file.
3372         * tests/test-logb-ieee.h: New file.
3373
3374         New module 'logbf-ieee'.
3375         * modules/logbf-ieee: New file.
3376
3377 2012-04-03  Bruno Haible  <bruno@clisp.org>
3378
3379         Tests for module 'logbl'.
3380         * modules/logbl-tests: New file.
3381         * tests/test-logbl.c: New file.
3382
3383         New module 'logbl'.
3384         * lib/math.in.h (logbl): New declaration.
3385         * lib/logbl.c: New file.
3386         * m4/logbl.m4: New file.
3387         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3389         REPLACE_LOGBL.
3390         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3391         REPLACE_LOGBL.
3392         * modules/logbl: New file.
3393         * tests/test-math-c++.cc: Check the declaration of logbl.
3394         * doc/posix-functions/logbl.texi: Mention the new module.
3395
3396 2012-04-02  Bruno Haible  <bruno@clisp.org>
3397
3398         Tests for module 'logbf'.
3399         * modules/logbf-tests: New file.
3400         * tests/test-logbf.c: New file.
3401
3402         New module 'logbf'.
3403         * lib/math.in.h (logbf): New declaration.
3404         * lib/logbf.c: New file.
3405         * m4/logbf.m4: New file.
3406         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3407         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3408         REPLACE_LOGBF.
3409         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3410         REPLACE_LOGBF.
3411         * modules/logbf: New file.
3412         * tests/test-math-c++.cc: Check the declaration of logbf.
3413         * doc/posix-functions/logbf.texi: Mention the new module.
3414
3415 2012-04-02  Bruno Haible  <bruno@clisp.org>
3416
3417         logb tests: More tests.
3418         * tests/test-logb.h: New file, based on tests/test-logb.c and
3419         tests/test-frexp.h.
3420         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3421         (main): Just invoke test_function.
3422         * modules/logb-tests (Files): Add tests/test-logb.h,
3423         tests/minus-zero.h, tests/randomd.c.
3424         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3425
3426         logb: Provide replacement and workarounds.
3427         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3428         is 1.
3429         * lib/logb.c: New file.
3430         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3431         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3433         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3434         * modules/logb (Files): Add lib/logb.c.
3435         (Depends-on): Add isfinite, frexp, isnand.
3436         (configure.ac): Compile the replacement code logb.c if needed.
3437         * tests/test-math-c++.cc: Check the declaration of logb.
3438         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3439         with subnormal numbers.
3440
3441 2012-04-02  Bruno Haible  <bruno@clisp.org>
3442
3443         log10* tests: Speed up.
3444         * tests/test-log10.h (test_function): Reduce amount of random numbers
3445         to test.
3446
3447 2012-04-01  Bruno Haible  <bruno@clisp.org>
3448
3449         logf-ieee: Fix test whether logf works.
3450         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3451
3452 2012-04-01  Bruno Haible  <bruno@clisp.org>
3453
3454         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3455         * lib/log10l.c: Include <float.h>
3456         (log10l): On IRIX, normalize the +Infinity value.
3457         * modules/log10l (Depends-on): Add 'float'.
3458         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3459         +Infinity.
3460
3461         log10f-ieee: Work around test failure on NetBSD 5.1.
3462         * m4/log10f-ieee.m4: New file.
3463         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3464         test whether log10f works with a negative argument. Replace it if not.
3465         * lib/log10f.c (log10f): For negative arguments, return NaN.
3466         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3467         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3468         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3469
3470         log10f-ieee: Work around test failure on Solaris 9.
3471         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3472         (configure.ac): Require gl_FUNC_LOG10F.
3473
3474         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3475         * m4/log10-ieee.m4: New file.
3476         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3477         whether log10 works with a negative argument. Replace it if not.
3478         * lib/log10.c (log10): For negative arguments, return NaN.
3479         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3480         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3481         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3482
3483         Tests for module 'log10l-ieee'.
3484         * modules/log10l-ieee-tests: New file.
3485         * tests/test-log10l-ieee.c: New file.
3486
3487         New module 'log10l-ieee'.
3488         * modules/log10l-ieee: New file.
3489
3490         Tests for module 'log10-ieee'.
3491         * modules/log10-ieee-tests: New file.
3492         * tests/test-log10-ieee.c: New file.
3493
3494         New module 'log10-ieee'.
3495         * modules/log10-ieee: New file.
3496
3497         Tests for module 'log10f-ieee'.
3498         * modules/log10f-ieee-tests: New file.
3499         * tests/test-log10f-ieee.c: New file.
3500         * tests/test-log10-ieee.h: New file.
3501
3502         New module 'log10f-ieee'.
3503         * modules/log10f-ieee: New file.
3504
3505 2012-04-01  Bruno Haible  <bruno@clisp.org>
3506
3507         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3508         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3509         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3510         workaround.
3511         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3512         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3514         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3515         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3516         (Depends-on): Update conditions.
3517         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3518         IRIX 6.5, OSF/1 5.1 problems.
3519
3520 2012-04-01  Bruno Haible  <bruno@clisp.org>
3521
3522         log10f: Work around OSF/1 5.1 bug.
3523         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3524         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3525         workaround.
3526         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3527         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3529         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3530         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3531         (Depends-on): Update conditions.
3532         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3533
3534 2012-04-01  Bruno Haible  <bruno@clisp.org>
3535
3536         log10: Work around OSF/1 5.1 bug.
3537         * lib/math.in.h (log10): New declaration.
3538         * lib/log10.c: New file.
3539         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3540         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3541         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3543         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3544         * modules/log10 (Files): Add lib/log10.c.
3545         (Depends-on): Add math.
3546         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3547         * tests/test-math-c++.cc: Check the declaration of log10.
3548         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3549
3550 2012-03-31  Bruno Haible  <bruno@clisp.org>
3551
3552         log10l tests: More tests.
3553         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3554         tests/minus-zero.h, tests/randoml.c.
3555         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3556         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3557         (main): Invoke test_function.
3558
3559         log10f tests: More tests.
3560         * modules/log10f-tests (Files): Add tests/test-log10.h,
3561         tests/minus-zero.h, tests/randomf.c.
3562         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3563         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3564         (main): Invoke test_function.
3565
3566         log10 tests: More tests.
3567         * tests/test-log10.h: New file.
3568         * modules/log10-tests (Files): Add tests/test-log10.h,
3569         tests/minus-zero.h, tests/randomd.c.
3570         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3571         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3572         (main): Invoke test_function.
3573
3574 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3575
3576         fflush: Fix syntax error.
3577         * lib/fflush.c: Include unused-parameter.h, needed for
3578         _GL_UNUSED_PARAMETER.
3579         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3580
3581 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3582
3583         regex: pacify GCC when compiling GRUB
3584         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
3585         a diagnostic.  Reported by Vladimir Serbinenko in
3586         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
3587
3588 2012-03-29  Eric Blake  <eblake@redhat.com>
3589
3590         stdio: don't assume gets any more
3591         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
3592         support.
3593         * modules/stdio (Makefile.am): Likewise.
3594         * lib/stdio-read.c (gets): Likewise.
3595         * tests/test-stdio-c++.cc: Likewise.
3596         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
3597         * lib/stdio.in.h (gets): Make warning occur in more places.
3598         * doc/posix-functions/gets.texi (gets): Update documentation.
3599         Reported by Christer Solskogen.
3600
3601         maint.mk: fix syntax checks without exclusions
3602         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
3603         Reported by Daniel P. Berrange.
3604
3605         strerror_r: avoid compiler warning
3606         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
3607         level.
3608
3609         fflush: avoid compiler warning
3610         * lib/fflush.c (update_fpos_cache): Mark variables that are
3611         potentially unused.
3612
3613 2012-03-25  Bruno Haible  <bruno@clisp.org>
3614
3615         Tests for module 'localeconv'.
3616         * modules/localeconv-tests: New file.
3617         * tests/test-localeconv.c: New file.
3618
3619         New module 'localeconv'.
3620         * lib/locale.in.h (localeconv): New declaration.
3621         * lib/localeconv.c: New file.
3622         * m4/localeconv.m4: New file.
3623         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
3624         REPLACE_LOCALECONV.
3625         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
3626         REPLACE_LOCALECONV.
3627         * modules/localeconv: New file.
3628         * modules/nl_langinfo (Depends-on): Add localeconv.
3629         * modules/human (Depends-on): Likewise.
3630         * doc/posix-functions/localeconv.texi: Mention the new module.
3631
3632 2012-03-25  Bruno Haible  <bruno@clisp.org>
3633
3634         locale: Provide a complete 'struct lconv'.
3635         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3636         'struct lconv' does not contain int_p_cs_precedes.
3637         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3638         * doc/posix-headers/locale.texi: Update.
3639
3640         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
3641         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
3642         * doc/posix-headers/locale.texi: Update.
3643
3644         locale: Provide a working 'struct lconv'.
3645         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
3646         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3647         'struct lconv' does not even contain decimal_point.
3648         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
3649         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
3650         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3651         * doc/posix-headers/locale.texi: Mention the problems with
3652         'struct lconv'.
3653         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3654
3655 2012-03-24  Bruno Haible  <bruno@clisp.org>
3656
3657         Enable common subexpression optimization in GCC.
3658         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
3659         macros.
3660         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
3661         GCC attribute 'const'.
3662         (uc_locale_language): Declare with GCC attribute 'pure'.
3663         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
3664         with GCC attribute 'const'.
3665         * lib/unictype.in.h (uc_is_general_category_withtable,
3666         uc_combining_class, uc_combining_class_name,
3667         uc_combining_class_long_name, uc_bidi_class_name,
3668         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
3669         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
3670         uc_decimal_value, uc_digit_value, uc_numeric_value,
3671         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
3672         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
3673         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
3674         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
3675         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
3676         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
3677         Declare with GCC attribute 'const'.
3678         (uc_general_category_name, uc_general_category_long_name,
3679         uc_general_category_byname, uc_general_category,
3680         uc_is_general_category, uc_combining_class_byname,
3681         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
3682         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
3683         Declare with GCC attribute 'pure'.
3684         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
3685         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
3686         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
3687         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
3688         with GCC attribute 'pure'.
3689         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
3690         'const'.
3691         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
3692         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
3693         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
3694         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
3695         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
3696         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
3697         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
3698         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
3699         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
3700         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
3701         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
3702         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
3703         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
3704         GCC attribute 'pure'.
3705         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
3706         'const'.
3707         * lib/uniwidth.in.h (uc_width): Simplify declaration.
3708         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
3709         u32_strwidth): Declare with GCC attribute 'pure'.
3710
3711         Enable common subexpression optimization in GCC.
3712         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3713         (alphasort): Declare with GCC attribute 'pure'.
3714         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3715         (atoll): Declare with GCC attribute 'pure'.
3716         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3717         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3718         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
3719         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3720         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
3721         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
3722         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
3723
3724 2012-03-24  Bruno Haible  <bruno@clisp.org>
3725
3726         gnulib-tool: Avoid unintended error output from 'cmp'.
3727         * gnulib-tool (func_add_file, func_update_file, func_import): Use
3728         "cmp -s", not "cmp > /dev/null".
3729
3730 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3731
3732         gnulib-tool: fix imprecise comments w.r.t. an automake bug
3733
3734         It's not just Automake versions < 1.9b that creates an empty
3735         pkgdatadir at installation time if pkgdata_DATA is specified
3736         to empty; modern automake versions do this as well, at least
3737         until automake 1.11.4 (not yet released at the moment of writing,
3738         but soon to appear).  That behaviour was generally considered a
3739         feature rather than a bug, at least until this discussion:
3740         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
3741
3742         See also automake bugs #10997 and #11030.
3743
3744         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
3745         reference to relevant automake bug numbers.
3746         (func_emit_tests_Makefile_am): Likewise.
3747
3748 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3749
3750         announce-gen: use Digest::SHA when possible
3751         * build-aux/announce-gen: Use Digest::SHA when possible, falling
3752         back to Digest::SHA1 if necessary.
3753
3754 2012-03-20  Jim Meyering  <meyering@redhat.com>
3755
3756         tests: avoid gcc warnings about argv vs. const initializers
3757         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
3758         warnings about discarding 'const' qualifier from pointer target type.
3759         * tests/test-posix_spawn2.c (main): Likewise.
3760
3761 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3762
3763         README-release: simplify slightly
3764         * top/README-release: Run "git checkout master" only once.
3765
3766 2012-03-15  Mark Wielaard  <mark@klomp.org>
3767
3768         git-merge-changelog: add specific example on how to use with hg.
3769         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
3770
3771 2012-03-18  Mark Wielaard  <mark@klomp.org>
3772
3773         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
3774
3775 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
3776
3777         git-version-gen: don't let "prefix" envvar cause trouble
3778         * build-aux/git-version-gen (prefix): Initialize properly,
3779         so as not to use a value specified via the environment.
3780         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
3781
3782 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3783
3784         regex: diagnose too-large repeat counts in EREs
3785         Previously, the code did not diagnose the too-large repeat count
3786         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
3787         as if it were 'b\{1000000000}', which is unexpected.
3788         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
3789         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
3790         is a reasonable one for this problem.  Another option would be to
3791         create a new REG_OVERFLOW error for repeat counts that are too large.
3792         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
3793         count is too large, so that the caller can distinguish the two cases.
3794         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
3795         "Too large" return code, and that repeat counts are one example of this.
3796
3797 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3798
3799         doc: some glibc x32 integer width issues
3800         * doc/posix-headers/sys_types.texi (sys/types.h):
3801         * doc/posix-headers/time.texi (time.h):
3802         Mention that glibc x32 does not conform to POSIX in a couple of
3803         areas related to integer widths.
3804
3805 2012-03-15  Bruno Haible  <bruno@clisp.org>
3806
3807         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
3808         * lib/fma.c (VOLATILE): New macro.
3809         (FUNC): Use it to work around a GCC compiler bug.
3810
3811 2012-03-13  Bruno Haible  <bruno@clisp.org>
3812
3813         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3814         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
3815         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
3816         REPLACE_HYPOTL to 1.
3817         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
3818
3819 2012-03-13  Bruno Haible  <bruno@clisp.org>
3820
3821         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3822         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
3823         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
3824         REPLACE_REMAINDERL to 1.
3825         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
3826         bug.
3827
3828 2012-03-13  Bruno Haible  <bruno@clisp.org>
3829
3830         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3831         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
3832         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
3833         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
3834         too big rounding errors.
3835         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
3836         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
3837         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
3838         (Depends-on): Update conditions.
3839         * tests/test-sqrtl.c (my_ldexpl): New function.
3840         (main): Add test of a particular value.
3841         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3842
3843 2012-03-13  Pádraig Brady  <P@draigBrady.com>
3844
3845         doc: Update timer_* platform portability notes.
3846         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
3847         that always return ENOSYS.
3848         * doc/posix-functions/timer_delete.texi: Likewise.
3849         * doc/posix-functions/timer_gettime.texi: Likewise.
3850         * doc/posix-functions/timer_settime.texi: Likewise.
3851
3852 2012-03-13  Bruno Haible  <bruno@clisp.org>
3853
3854         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3855         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
3856         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
3857         REPLACE_CBRTL to 1.
3858         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3859
3860 2012-03-13  Bruno Haible  <bruno@clisp.org>
3861
3862         remainderl: Avoid compilation error on AIX >= 5.2.
3863         * lib/math.in.h (remainderl): Undefine macro from the system header.
3864
3865 2012-03-13  Bruno Haible  <bruno@clisp.org>
3866
3867         Avoid compilation errors with MSVC option -fp:strict.
3868         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
3869         * lib/cbrtf.c: Likewise.
3870         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3871
3872 2012-03-12  Bruno Haible  <bruno@clisp.org>
3873
3874         uninorm: Don't crash in out-of-memory conditions.
3875         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
3876         gracefully.
3877         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
3878         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
3879
3880 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
3881
3882         quote: fix syntax-check
3883         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
3884         also exports quote_quoting_options.
3885
3886 2012-03-12  Simon Josefsson  <simon@josefsson.org>
3887
3888         Collapse list of copyright years to ranges.  See
3889         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
3890         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
3891         build-aux/csharpexec.sh.in, build-aux/gnupload,
3892         build-aux/install-reloc, build-aux/javacomp.sh.in,
3893         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
3894         build-aux/move-if-change, build-aux/reloc-ldflags,
3895         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
3896
3897 2012-03-11  Bruno Haible  <bruno@clisp.org>
3898
3899         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3900         * m4/log2f-ieee.m4: New file.
3901         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
3902         whether log2f works with a minus zero argument. Replace it if not.
3903         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
3904         (Depends-on): Add log2-ieee.
3905         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
3906         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
3907
3908         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3909         * m4/log2-ieee.m4: New file.
3910         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
3911         whether log2 works with a minus zero argument. Replace it if not.
3912         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
3913         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
3914         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
3915
3916         Tests for module 'log2l-ieee'.
3917         * modules/log2l-ieee-tests: New file.
3918         * tests/test-log2l-ieee.c: New file.
3919
3920         New module 'log2l-ieee'.
3921         * modules/log2l-ieee: New file.
3922
3923         Tests for module 'log2-ieee'.
3924         * modules/log2-ieee-tests: New file.
3925         * tests/test-log2-ieee.c: New file.
3926
3927         New module 'log2-ieee'.
3928         * modules/log2-ieee: New file.
3929
3930         Tests for module 'log2f-ieee'.
3931         * modules/log2f-ieee-tests: New file.
3932         * tests/test-log2f-ieee.c: New file.
3933         * tests/test-log2-ieee.h: New file.
3934
3935         New module 'log2f-ieee'.
3936         * modules/log2f-ieee: New file.
3937
3938 2012-03-11  Bruno Haible  <bruno@clisp.org>
3939
3940         Tests for module 'log2l'.
3941         * modules/log2l-tests: New file.
3942         * tests/test-log2l.c: New file.
3943
3944         New module 'log2l'.
3945         * lib/math.in.h (log2l): New declaration.
3946         * lib/log2l.c: New file.
3947         * m4/log2l.m4: New file.
3948         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
3949         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
3950         REPLACE_LOG2L.
3951         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
3952         REPLACE_LOG2L.
3953         * modules/log2l: New file.
3954         * tests/test-math-c++.cc: Check the declaration of log2l.
3955         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
3956         and OSF/1 problems.
3957
3958 2012-03-11  Bruno Haible  <bruno@clisp.org>
3959
3960         Tests for module 'log2f'.
3961         * modules/log2f-tests: New file.
3962         * tests/test-log2f.c: New file.
3963
3964         New module 'log2f'.
3965         * lib/math.in.h (log2f): New declaration.
3966         * lib/log2f.c: New file.
3967         * m4/log2f.m4: New file.
3968         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
3969         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
3970         REPLACE_LOG2F.
3971         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
3972         REPLACE_LOG2F.
3973         * modules/log2f: New file.
3974         * tests/test-math-c++.cc: Check the declaration of log2f.
3975         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
3976         and OSF/1 and Cygwin problems.
3977
3978 2012-03-11  Bruno Haible  <bruno@clisp.org>
3979
3980         Tests for module 'log2'.
3981         * modules/log2-tests: New file.
3982         * tests/test-log2.c: New file.
3983         * tests/test-log2.h: New file.
3984
3985         New module 'log2'.
3986         * lib/math.in.h (log2): New declaration.
3987         * lib/log2.c: New file.
3988         * m4/log2.m4: New file.
3989         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
3990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
3991         REPLACE_LOG2.
3992         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
3993         REPLACE_LOG2.
3994         * modules/log2: New file.
3995         * tests/test-math-c++.cc: Check the declaration of log2.
3996         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
3997         and OSF/1 and Cygwin problems.
3998
3999 2012-03-11  Bruno Haible  <bruno@clisp.org>
4000
4001         exp2* tests: More tests.
4002         * tests/test-exp2.h (test_function): Test all integral arguments that
4003         don't need to overflow or denormalized numbers.
4004         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4005         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4006         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4007
4008 2012-03-10  Bruno Haible  <bruno@clisp.org>
4009
4010         log1pl-ieee: Work around test failure on AIX 7.1.
4011         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4012
4013         log1pl-ieee: Work around test failure on IRIX 6.5.
4014         * m4/log1pl-ieee.m4: New file.
4015         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4016         test whether log1pl works with a minus zero argument. Replace it if
4017         not.
4018         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4019         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4020         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4021         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4022         (Depends-on): Update conditions.
4023         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4024         m4/signbit.m4.
4025         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4026         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4027
4028         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4029         * m4/log1pf-ieee.m4: New file.
4030         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4031         test whether log1pf works with a minus zero argument. Replace it if
4032         not.
4033         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4034         m4/signbit.m4.
4035         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4036         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4037
4038         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4039         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4040         (configure.ac): Require gl_FUNC_LOG1PF.
4041
4042         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4043         * m4/log1p-ieee.m4: New file.
4044         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4045         whether log1p works with a minus zero argument. Replace it if not.
4046         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4047         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4048         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4049         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4050         (Depends-on): Update conditions.
4051         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4052         m4/signbit.m4.
4053         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4054         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4055
4056         Tests for module 'log1pl-ieee'.
4057         * modules/log1pl-ieee-tests: New file.
4058         * tests/test-log1pl-ieee.c: New file.
4059
4060         New module 'log1pl-ieee'.
4061         * modules/log1pl-ieee: New file.
4062
4063         Tests for module 'log1p-ieee'.
4064         * modules/log1p-ieee-tests: New file.
4065         * tests/test-log1p-ieee.c: New file.
4066
4067         New module 'log1p-ieee'.
4068         * modules/log1p-ieee: New file.
4069
4070         Tests for module 'log1pf-ieee'.
4071         * modules/log1pf-ieee-tests: New file.
4072         * tests/test-log1pf-ieee.c: New file.
4073         * tests/test-log1p-ieee.h: New file.
4074
4075         New module 'log1pf-ieee'.
4076         * modules/log1pf-ieee: New file.
4077
4078 2012-03-10  Bruno Haible  <bruno@clisp.org>
4079
4080         Tests for module 'log1pl'.
4081         * modules/log1pl-tests: New file.
4082         * tests/test-log1pl.c: New file.
4083
4084         New module 'log1pl'.
4085         * lib/math.in.h (log1pl): New declaration.
4086         * lib/log1pl.c: New file.
4087         * m4/log1pl.m4: New file.
4088         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4090         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4091         * modules/log1pl: New file.
4092         * tests/test-math-c++.cc: Check the declaration of log1pl.
4093         * doc/posix-functions/log1pl.texi: Mention the new module.
4094
4095 2012-03-10  Bruno Haible  <bruno@clisp.org>
4096
4097         Tests for module 'log1pf'.
4098         * modules/log1pf-tests: New file.
4099         * tests/test-log1pf.c: New file.
4100
4101         New module 'log1pf'.
4102         * lib/math.in.h (log1pf): New declaration.
4103         * lib/log1pf.c: New file.
4104         * m4/log1pf.m4: New file.
4105         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4106         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4107         REPLACE_LOG1PF.
4108         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4109         REPLACE_LOG1PF.
4110         * modules/log1pf: New file.
4111         * tests/test-math-c++.cc: Check the declaration of log1pf.
4112         * doc/posix-functions/log1pf.texi: Mention the new module.
4113
4114 2012-03-10  Bruno Haible  <bruno@clisp.org>
4115
4116         log1p tests: More tests.
4117         * tests/test-log1p.h: New file.
4118         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4119         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4120         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4121         (main): Invoke test_function.
4122
4123         log1p: Provide replacement for Minix and MSVC.
4124         * lib/math.in.h (log1p): New declaration.
4125         * lib/log1p.c: New file.
4126         * m4/log1p.m4: New file.
4127         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4128         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4129         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4130         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4131         (Depends-on): Add math, isnand, log, round.
4132         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4133         HAVE_LOG1P is 0.
4134         * tests/test-math-c++.cc: Check the declaration of log1p.
4135         * doc/posix-functions/log1p.texi: Mention the replacement.
4136
4137 2012-03-10  Bruno Haible  <bruno@clisp.org>
4138
4139         math tests: Small simplification.
4140         * tests/test-exp.h (test_function): Use the same err_bound for
4141         'double' on platforms with sizeof (long double) == sizeof (double)
4142         than on platforms with sizeof (long double) > sizeof (double).
4143         * tests/test-exp2.h (test_function): Likewise.
4144         * tests/test-expm1.h (test_function): Likewise.
4145         * tests/test-log.h (test_function): Likewise.
4146
4147 2012-03-10  Bruno Haible  <bruno@clisp.org>
4148
4149         Fix some comments.
4150         * lib/expl.c: Fix an ambiguous comment.
4151         * lib/expm1.c: Likewise.
4152         * lib/expm1l.c: Likewise.
4153         * lib/exp2.c: Likewise.
4154         * lib/exp2l.c: Likewise.
4155
4156 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4157
4158         regex: allow inclusion of <regex.h> before <limits.h>
4159         Without this patch, portable programs had to include <limits.h> before
4160         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4161         I ran into this problem with a test version of GNU grep on Solaris 8.
4162         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4163         This is done conditionally so that this change can be merged
4164         back to glibc.
4165         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4166         using the included regex.
4167
4168         fts: depend on fdopendir
4169         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4170         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4171         problem was introduced when fdopendir was split out.
4172
4173 2012-03-10  Bruno Haible  <bruno@clisp.org>
4174
4175         Remove unused variables.
4176         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4177         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4178
4179 2012-03-10  Bruno Haible  <bruno@clisp.org>
4180
4181         isnanf-nolibm: Fix last commit.
4182         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4183
4184         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4185         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4186
4187 2012-03-10  Bruno Haible  <bruno@clisp.org>
4188
4189         logf-ieee: Work around test failure on NetBSD 5.1.
4190         * m4/logf-ieee.m4: New file.
4191         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4192         whether logf works with a negative argument. Replace it if not.
4193         * lib/logf.c (logf): For negative arguments, return NaN.
4194         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4195         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4196         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4197
4198         logf-ieee: Work around test failure on Solaris 9.
4199         * modules/logf-ieee (Depends-on): Add log-ieee.
4200         (configure.ac): Require gl_FUNC_LOGF.
4201
4202         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4203         * m4/log-ieee.m4: New file.
4204         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4205         log works with a negative argument. Replace it if not.
4206         * lib/log.c (log): For negative arguments, return NaN.
4207         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4208         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4209         * doc/posix-functions/log.texi: Mention the log-ieee module.
4210
4211         Tests for module 'logl-ieee'.
4212         * modules/logl-ieee-tests: New file.
4213         * tests/test-logl-ieee.c: New file.
4214
4215         New module 'logl-ieee'.
4216         * modules/logl-ieee: New file.
4217
4218         Tests for module 'log-ieee'.
4219         * modules/log-ieee-tests: New file.
4220         * tests/test-log-ieee.c: New file.
4221
4222         New module 'log-ieee'.
4223         * modules/log-ieee: New file.
4224
4225         Tests for module 'logf-ieee'.
4226         * modules/logf-ieee-tests: New file.
4227         * tests/test-logf-ieee.c: New file.
4228         * tests/test-log-ieee.h: New file.
4229
4230         New module 'logf-ieee'.
4231         * modules/logf-ieee: New file.
4232
4233 2012-03-10  Bruno Haible  <bruno@clisp.org>
4234
4235         log: Fix bug introduced on 2012-03-09.
4236         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4237
4238 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4239
4240         timer-time: link explicitly with pthreads on glibc
4241         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4242         to support static linking, when newer glibc is
4243         detected, as that contains pthread emulation of
4244         POSIX timer functions where required.
4245         * modules/timer-time: Depend on threadlib to
4246         pull in the appropriate library to link.
4247
4248 2012-03-10  Bruno Haible  <bruno@clisp.org>
4249
4250         log* tests: More tests.
4251         * tests/test-log.h: New file.
4252         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4253         (main): Invoke test_function.
4254         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4255         (main): Invoke test_function.
4256         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4257         (main): Invoke test_function.
4258         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4259         tests/randomd.c.
4260         (Makefile.am): Add randomd.c to test_log_SOURCES.
4261         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4262         tests/randomf.c.
4263         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4264         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4265         tests/randoml.c.
4266         (Depends-on): Add 'float'.
4267         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4268
4269 2012-03-09  Bruno Haible  <bruno@clisp.org>
4270
4271         logl: Work around OSF/1 5.1 bug.
4272         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4273         * lib/logl.c (logl): If logl exists, use it and provide just the
4274         workaround.
4275         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4276         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4277         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4278         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4279         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4280         (Depends-on): Update conditions.
4281         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4282
4283 2012-03-09  Bruno Haible  <bruno@clisp.org>
4284
4285         logf: Work around OSF/1 5.1 bug.
4286         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4287         * lib/logf.c (logf): If logf exists, use it and provide just the
4288         workaround.
4289         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4290         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4292         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4293         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4294         (Depends-on): Update conditions.
4295         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4296
4297 2012-03-09  Bruno Haible  <bruno@clisp.org>
4298
4299         log: Work around OSF/1 5.1 bug.
4300         * lib/math.in.h (log): New declaration.
4301         * lib/log.c: New file.
4302         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4303         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4304         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4305         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4306         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4307         * modules/log (Files): Add lib/log.c.
4308         (Depends-on): Add math.
4309         (configure.ac): If REPLACE_LOG is 1, compile an override.
4310         * tests/test-math-c++.cc: Check the declaration of log.
4311         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4312
4313 2012-03-09  Jim Meyering  <meyering@redhat.com>
4314
4315         readtokens.c: adjust wording in a comment
4316         * lib/readtokens.c: Insert omitted "that" in a comment.
4317
4318 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4319
4320         modechange: add notations +40, 00440, etc.
4321         * lib/modechange.c (mode_compile): Support new notations
4322         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4323
4324 2012-03-08  Bruno Haible  <bruno@clisp.org>
4325
4326         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4327         * m4/exp2l-ieee.m4: New file.
4328         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4329         test whether exp2l works with a NaN argument and with a negative
4330         infinity argument. Replace it if not.
4331         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4333         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4334         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4335         (Depends-on): Update conditions.
4336         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4337         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4338         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4339
4340         Tests for module 'exp2l-ieee'.
4341         * modules/exp2l-ieee-tests: New file.
4342         * tests/test-exp2l-ieee.c: New file.
4343
4344         New module 'exp2l-ieee'.
4345         * modules/exp2l-ieee: New file.
4346
4347         Tests for module 'exp2-ieee'.
4348         * modules/exp2-ieee-tests: New file.
4349         * tests/test-exp2-ieee.c: New file.
4350
4351         New module 'exp2-ieee'.
4352         * modules/exp2-ieee: New file.
4353
4354         Tests for module 'exp2f-ieee'.
4355         * modules/exp2f-ieee-tests: New file.
4356         * tests/test-exp2f-ieee.c: New file.
4357         * tests/test-exp2-ieee.h: New file.
4358
4359         New module 'exp2f-ieee'.
4360         * modules/exp2f-ieee: New file.
4361
4362 2012-03-08  Bruno Haible  <bruno@clisp.org>
4363
4364         Tests for module 'exp2l'.
4365         * modules/exp2l-tests: New file.
4366         * tests/test-exp2l.c: New file.
4367
4368         New module 'exp2l'.
4369         * lib/math.in.h (exp2l): New declaration.
4370         * lib/exp2l.c: New file.
4371         * lib/expl-table.c: New file, extracted from lib/expl.c.
4372         * lib/expl.c (gl_expl_table): New declaration.
4373         (expl): Remove expl_table. Update reference.
4374         * m4/exp2l.m4: New file.
4375         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4377         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4378         * modules/exp2l: New file.
4379         * modules/expl (Files): Add lib/expl-table.c.
4380         (configure.ac): Compile also expl-table.c.
4381         * tests/test-math-c++.cc: Check the declaration of exp2l.
4382         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4383         problem.
4384
4385 2012-03-08  Bruno Haible  <bruno@clisp.org>
4386
4387         Tests for module 'exp2f'.
4388         * modules/exp2f-tests: New file.
4389         * tests/test-exp2f.c: New file.
4390
4391         New module 'exp2f'.
4392         * lib/math.in.h (exp2f): New declaration.
4393         * lib/exp2f.c: New file.
4394         * m4/exp2f.m4: New file.
4395         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4397         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4398         * modules/exp2f: New file.
4399         * tests/test-math-c++.cc: Check the declaration of exp2f.
4400         * doc/posix-functions/exp2f.texi: Mention the new module and the
4401         IRIX problem.
4402
4403 2012-03-08  Bruno Haible  <bruno@clisp.org>
4404
4405         Tests for module 'exp2'.
4406         * modules/exp2-tests: New file.
4407         * tests/test-exp2.c: New file.
4408         * tests/test-exp2.h: New file.
4409
4410         New module 'exp2'.
4411         * lib/math.in.h (exp2): New declaration.
4412         * lib/exp2.c: New file.
4413         * m4/exp2.m4: New file.
4414         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4415         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4416         REPLACE_EXP2.
4417         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4418         REPLACE_EXP2.
4419         * modules/exp2: New file.
4420         * tests/test-math-c++.cc: Check the declaration of exp2.
4421         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4422         and OpenBSD problems.
4423
4424 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4425
4426         savedir: fix comment typo
4427         * lib/savedir.c (savedirstream): Fix typo in comment.
4428
4429 2012-03-08  Bruno Haible  <bruno@clisp.org>
4430
4431         test-readtokens.c: use const; remove unwarranted cast
4432         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4433
4434 2012-03-08  Bruno Haible  <bruno@clisp.org>
4435
4436         fmal: Avoid compilation error on AIX.
4437         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4438         AIX 5.2..7.1.
4439
4440 2012-03-08  Bruno Haible  <bruno@clisp.org>
4441
4442         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4443         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4444         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4445         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4446         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4447         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4448         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4449
4450 2012-03-08  Bruno Haible  <bruno@clisp.org>
4451
4452         remainderf: Override buggy system function on IRIX 6.5.
4453         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4454         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4455         when it exists.
4456         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4457
4458 2012-03-08  Jim Meyering  <meyering@redhat.com>
4459
4460         test-readtokens.c: avoid const-related compilation warnings
4461         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4462
4463 2012-03-07  Jim Meyering  <meyering@redhat.com>
4464             Bruno Haible  <bruno@clisp.org>
4465
4466         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4467         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4468         tests/randomd.c.
4469         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4470         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4471         tests/randoml.c.
4472         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4473
4474 2012-03-07  Bruno Haible  <bruno@clisp.org>
4475
4476         expm1l: Avoid compilation error on AIX.
4477         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4478         AIX 5.2..7.1.
4479
4480 2012-03-07  Bruno Haible  <bruno@clisp.org>
4481
4482         expm1l: Don't override undeclared system function on IRIX 6.5.
4483         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4484         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4485         it exists. Set HAVE_DECL_EXPM1L.
4486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4487         HAVE_EXPM1L.
4488         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4489         HAVE_EXPM1L.
4490         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4491
4492 2012-03-07  Bruno Haible  <bruno@clisp.org>
4493
4494         remainderl: Don't override undeclared system function on IRIX 6.5.
4495         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4496         HAVE_REMAINDERL.
4497         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4498         declared when it exists. Set HAVE_DECL_REMAINDERL.
4499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4500         not HAVE_REMAINDERL.
4501         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4502         HAVE_REMAINDERL.
4503         * doc/posix-functions/remainderl.texi: Mention missing declaration
4504         problem.
4505
4506 2012-03-07  Bruno Haible  <bruno@clisp.org>
4507
4508         rintf: Don't override undeclared system function on IRIX 6.5.
4509         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4510         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4511         exists. Set HAVE_DECL_RINTF.
4512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4513         HAVE_RINTF.
4514         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4515         HAVE_RINTF.
4516         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4517
4518 2012-03-07  Bruno Haible  <bruno@clisp.org>
4519
4520         roundl: Avoid compilation error on AIX.
4521         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4522         AIX 5.2..7.1.
4523
4524 2012-03-07  Bruno Haible  <bruno@clisp.org>
4525
4526         roundl: Don't override undeclared system function on IRIX 6.5.
4527         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4528         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4529         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4530         * modules/roundl (configure.ac): For replacement code, test
4531         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4532         (Depends-on): Update conditions.
4533         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4534
4535 2012-03-07  Bruno Haible  <bruno@clisp.org>
4536
4537         roundf: Don't override undeclared system function on IRIX 6.5.
4538         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4539         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4540         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4541         * modules/roundf (configure.ac): For replacement code, test
4542         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4543         (Depends-on): Update conditions.
4544         * modules/roundf-ieee (Depends-on): Update conditions.
4545         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4546
4547 2012-03-07  Bruno Haible  <bruno@clisp.org>
4548
4549         round: Don't override undeclared system function on IRIX 6.5.
4550         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4551         argument.
4552         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4553         also when it is not declared. Set HAVE_ROUND. For replacement code,
4554         test HAVE_ROUND, not HAVE_DECL_ROUND.
4555         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4556         not HAVE_DECL_ROUND.
4557         (Depends-on): Update conditions.
4558         * modules/round-ieee (Depends-on): Update conditions.
4559         * doc/posix-functions/round.texi: Mention the IRIX problem.
4560
4561 2012-03-07  Bruno Haible  <bruno@clisp.org>
4562
4563         copysignf: Don't override undeclared system function on IRIX 6.5.
4564         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4565         HAVE_COPYSIGNF.
4566         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4567         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4569         not HAVE_COPYSIGNF.
4570         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4571         HAVE_COPYSIGNF.
4572         * doc/posix-functions/copysignf.texi: Mention missing declaration
4573         problem.
4574
4575 2012-03-07  Jim Meyering  <meyering@redhat.com>
4576
4577         readtokens: add tests
4578         * modules/readtokens-tests: New file.
4579         * tests/test-readtokens.c: New file.
4580
4581 2012-03-07  Jim Meyering  <meyering@redhat.com>
4582
4583         quotearg: the module must now include quote.h
4584         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
4585         So must the module.
4586         * modules/quotearg (Files): Add quote.h.
4587
4588 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
4589
4590         readtokens: avoid core dumps with unusual calling patterns
4591         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
4592         * lib/readtokens.c: Include limits.h.
4593         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
4594         (readtoken): Don't cache the delimiters; the cache code was buggy
4595         if !delim && saved_delim, or if the new n_delim differs from the old.
4596         Also, it wasn't thread-safe.
4597
4598 2012-03-07  Bruno Haible  <bruno@clisp.org>
4599
4600         quote: Adhere to common module description layout.
4601         * modules/quote (Makefile.am): Add back empty section.
4602
4603 2012-03-06  Akim Demaille  <demaille@gostai.com>
4604
4605         quote: fuse into quotearg
4606         This patch is made for the benefit of Bison.
4607         quote does not leave the choice of the quoting style to the user.
4608         quoting_style provides poor customizability, yet quoting_options,
4609         which is very rich, is hidden inside quotearg.c.  So in order to
4610         allow quote customization, move its implementation to quotearg.c.
4611         * lib/quote.c: Remove.
4612         * modules/quote: Adjust.
4613         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
4614         warning: provide all the members of literal structs.
4615         (quote_quoting_options): New.
4616         (quote, quote_n): Import implementation from quote.c.
4617         * lib/quote.h: Import the comments from quote.c.
4618         (quote_quoting_options): New.
4619
4620 2012-03-06  Bruno Haible  <bruno@clisp.org>
4621
4622         Tests for module 'expm1l-ieee'.
4623         * modules/expm1l-ieee-tests: New file.
4624         * tests/test-expm1l-ieee.c: New file.
4625
4626         New module 'expm1l-ieee'.
4627         * modules/expm1l-ieee: New file.
4628
4629         Tests for module 'expm1f-ieee'.
4630         * modules/expm1f-ieee-tests: New file.
4631         * tests/test-expm1f-ieee.c: New file.
4632
4633         New module 'expm1f-ieee'.
4634         * modules/expm1f-ieee: New file.
4635
4636         Tests for module 'expm1-ieee'.
4637         * modules/expm1-ieee-tests: New file.
4638         * tests/test-expm1-ieee.c: New file.
4639         * tests/test-expm1-ieee.h: New file.
4640
4641         New module 'expm1-ieee'.
4642         * modules/expm1-ieee: New file.
4643         * m4/expm1-ieee.m4: New file.
4644         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
4645         whether expm1 works with a minus zero argument. Replace it if not.
4646         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
4647         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
4648         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
4649         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
4650         (Depends-on): Update conditions.
4651         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
4652         AIX problem.
4653
4654 2012-03-06  Bruno Haible  <bruno@clisp.org>
4655
4656         Work around expm1f bug on IRIX 6.5.
4657         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
4658         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
4659         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
4660         not work.
4661         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
4662         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
4663         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
4664         (Depends-on): Update conditions.
4665         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
4666
4667 2012-03-06  Bruno Haible  <bruno@clisp.org>
4668
4669         Tests for module 'expm1l'.
4670         * modules/expm1l-tests: New file.
4671         * tests/test-expm1l.c: New file.
4672
4673         New module 'expm1l'.
4674         * lib/math.in.h (expm1l): New declaration.
4675         * lib/expm1l.c: New file.
4676         * m4/expm1l.m4: New file.
4677         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
4678         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
4679         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
4680         * modules/expm1l: New file.
4681         * tests/test-math-c++.cc: Check the declaration of expm1l.
4682         * doc/posix-functions/expm1l.texi: Mention the new module.
4683
4684 2012-03-06  Bruno Haible  <bruno@clisp.org>
4685
4686         Tests for module 'expm1f'.
4687         * modules/expm1f-tests: New file.
4688         * tests/test-expm1f.c: New file.
4689
4690         New module 'expm1f'.
4691         * lib/math.in.h (expm1f): New declaration.
4692         * lib/expm1f.c: New file.
4693         * m4/expm1f.m4: New file.
4694         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
4695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
4696         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
4697         * modules/expm1f: New file.
4698         * tests/test-math-c++.cc: Check the declaration of expm1f.
4699         * doc/posix-functions/expm1f.texi: Mention the new module.
4700
4701 2012-03-06  Bruno Haible  <bruno@clisp.org>
4702
4703         Tests for module 'expm1'.
4704         * modules/expm1-tests: New file.
4705         * tests/test-expm1.c: New file.
4706         * tests/test-expm1.h: New file.
4707
4708         New module 'expm1'.
4709         * lib/math.in.h (expm1): New declaration.
4710         * lib/expm1.c: New file.
4711         * m4/expm1.m4: New file.
4712         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
4713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
4714         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
4715         * modules/expm1: New file.
4716         * tests/test-math-c++.cc: Check the declaration of expm1.
4717         * doc/posix-functions/expm1.texi: Mention the new module.
4718
4719 2012-03-06  Bruno Haible  <bruno@clisp.org>
4720
4721         math: Ensure declarations of math functions.
4722         * modules/acosf (Depends-on): Add 'extensions'.
4723         * modules/asinf (Depends-on): Likewise.
4724         * modules/atan2f (Depends-on): Likewise.
4725         * modules/atanf (Depends-on): Likewise.
4726         * modules/cbrt (Depends-on): Likewise.
4727         * modules/cbrtf (Depends-on): Likewise.
4728         * modules/cbrtl (Depends-on): Likewise.
4729         * modules/copysignf (Depends-on): Likewise.
4730         * modules/copysignl (Depends-on): Likewise.
4731         * modules/cosf (Depends-on): Likewise.
4732         * modules/coshf (Depends-on): Likewise.
4733         * modules/expf (Depends-on): Likewise.
4734         * modules/fabsf (Depends-on): Likewise.
4735         * modules/fabsl (Depends-on): Likewise.
4736         * modules/fmaf (Depends-on): Likewise.
4737         * modules/fmal (Depends-on): Likewise.
4738         * modules/fmodf (Depends-on): Likewise.
4739         * modules/fmodl (Depends-on): Likewise.
4740         * modules/frexpf (Depends-on): Likewise.
4741         * modules/frexpl (Depends-on): Likewise.
4742         * modules/hypot (Depends-on): Likewise.
4743         * modules/hypotf (Depends-on): Likewise.
4744         * modules/hypotl (Depends-on): Likewise.
4745         * modules/ldexpf (Depends-on): Likewise.
4746         * modules/ldexpl (Depends-on): Likewise.
4747         * modules/log10f (Depends-on): Likewise.
4748         * modules/log10l (Depends-on): Likewise.
4749         * modules/log1p (Depends-on): Likewise.
4750         * modules/logb (Depends-on): Likewise.
4751         * modules/logf (Depends-on): Likewise.
4752         * modules/modff (Depends-on): Likewise.
4753         * modules/modfl (Depends-on): Likewise.
4754         * modules/powf (Depends-on): Likewise.
4755         * modules/remainderf (Depends-on): Likewise.
4756         * modules/remainderl (Depends-on): Likewise.
4757         * modules/rintf (Depends-on): Likewise.
4758         * modules/rintl (Depends-on): Likewise.
4759         * modules/sinf (Depends-on): Likewise.
4760         * modules/sinhf (Depends-on): Likewise.
4761         * modules/sqrtf (Depends-on): Likewise.
4762         * modules/tanf (Depends-on): Likewise.
4763         * modules/tanhf (Depends-on): Likewise.
4764         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
4765         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
4766         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
4767         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
4768         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
4769         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
4770         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
4771         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
4772         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
4773         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
4774         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
4775         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
4776         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
4777         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
4778         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
4779         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
4780         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4781         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4782         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
4783         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
4784         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4785         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
4786         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
4787         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
4788         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4789         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
4790         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
4791         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4792         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
4793         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4794         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4795         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
4796         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4797         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4798         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4799         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4800         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
4801         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
4802         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
4803         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
4804         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
4805
4806 2012-03-06  Bruno Haible  <bruno@clisp.org>
4807
4808         math: Update module names in warnings.
4809         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
4810         tanl): Use specific module name in warn-on-use warning.
4811
4812 2012-03-06  Bruno Haible  <bruno@clisp.org>
4813
4814         expl: Simplify computation.
4815         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
4816
4817 2012-03-05  Bruno Haible  <bruno@clisp.org>
4818
4819         exp* tests: More tests.
4820         * tests/test-exp.h: New file.
4821         * tests/test-exp.c: Include <float.h> and test-exp.h.
4822         (main): Invoke test_function.
4823         * tests/test-expf.c: Include <float.h> and test-exp.h.
4824         (main): Invoke test_function.
4825         * tests/test-expl.c: Include <float.h> and test-exp.h.
4826         (main): Invoke test_function.
4827         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
4828         (Makefile.am): Add randomd.c to test_exp_SOURCES.
4829         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
4830         (Makefile.am): Add randomf.c to test_expf_SOURCES.
4831         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
4832         (Depends-on): Add 'float'.
4833         (Makefile.am): Add randoml.c to test_expl_SOURCES.
4834
4835         expl: Fix precision of computed result.
4836         * lib/expl.c: Completely rewritten.
4837         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
4838         (Maintainer): Add me.
4839         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
4840
4841 2012-03-05  Bruno Haible  <bruno@clisp.org>
4842
4843         cbrt* tests: More tests.
4844         * tests/test-cbrt.h: New file.
4845         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
4846         (main): Invoke test_function.
4847         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
4848         (main): Invoke test_function.
4849         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
4850         (main): Invoke test_function.
4851         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
4852         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
4853         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
4854         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
4855         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
4856         (Depends-on): Add 'float'.
4857         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
4858
4859 2012-03-05  Bruno Haible  <bruno@clisp.org>
4860
4861         hypot* tests: More tests.
4862         * tests/test-hypot.h: New file, partially extracted from
4863         tests/test-hypotl.c.
4864         * tests/test-hypot.c: Include test-hypot.h.
4865         (main): Invoke test_function.
4866         * tests/test-hypotf.c: Include test-hypot.h.
4867         (main): Invoke test_function.
4868         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
4869         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
4870         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
4871         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
4872         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
4873         tests/randomf.c.
4874         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
4875         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
4876         tests/randoml.c.
4877         (Depends-on): Add 'fpucw', 'float'.
4878         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
4879
4880 2012-03-05  Bruno Haible  <bruno@clisp.org>
4881
4882         fpucw: Doc about FreeBSD.
4883         * lib/fpucw.h: Mention FreeBSD in comments.
4884
4885 2012-03-04  Bruno Haible  <bruno@clisp.org>
4886
4887         sqrt* tests: More tests.
4888         * tests/test-sqrt.h: New file.
4889         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
4890         (main): Invoke test_function.
4891         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
4892         (main): Invoke test_function.
4893         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
4894         (main): Invoke test_function.
4895         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
4896         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
4897         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
4898         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
4899         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
4900         (Depends-on): Add 'float'.
4901         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
4902
4903 2012-03-04  Bruno Haible  <bruno@clisp.org>
4904
4905         remainder* tests: More tests.
4906         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
4907         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
4908         (main): Invoke test_function.
4909         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
4910         (main): Invoke test_function.
4911         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
4912         (main): Invoke test_function.
4913         * modules/remainder-tests (Files): Add tests/test-remainder.h,
4914         tests/randomd.c.
4915         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
4916         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
4917         tests/randomf.c.
4918         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
4919         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
4920         tests/randoml.c.
4921         (Depends-on): Add 'float'.
4922         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
4923
4924 2012-03-04  Bruno Haible  <bruno@clisp.org>
4925
4926         remainder, remainderf, remainderl: Fix computation for large quotients.
4927         * lib/remainder.c: Completely rewritten.
4928         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
4929         USE_FLOAT.
4930         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
4931         USE_LONG_DOUBLE.
4932         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
4933         isnand, isinf. Remove round, fma.
4934         * modules/remainderf (Files): Add lib/remainder.c.
4935         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
4936         Remove roundf, fmaf.
4937         * modules/remainderl (Files): Add lib/remainder.c.
4938         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
4939         isinf. Remove roundl, fmal.
4940         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
4941         REMAINDER_LIBM.
4942         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
4943         REMAINDERF_LIBM.
4944         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
4945         REMAINDERL_LIBM.
4946
4947 2012-03-04  Bruno Haible  <bruno@clisp.org>
4948
4949         fmod* tests: More tests.
4950         * tests/test-fmod.h (my_ldexp): New function.
4951         (test_function): Reduce amount of random numbers to test. Add tests
4952         of very large quotients x / y.
4953         * tests/test-fmod.c (MAX_EXP): New macro.
4954         * tests/test-fmodf.c (MAX_EXP): Likewise.
4955         * tests/test-fmodl.c (MAX_EXP): Likewise.
4956
4957 2012-03-04  Bruno Haible  <bruno@clisp.org>
4958
4959         fmod, fmodl: Fix computation for large quotients x / y.
4960         * lib/fmod.c: Completely rewritten.
4961         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
4962         USE_LONG_DOUBLE.
4963         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
4964         isnand. Remove fma.
4965         * modules/fmodl (Files): Add lib/fmod.c.
4966         (Depends-on): Add float, isfinite, signbit, fabsl,
4967         frexpl, ldexpl, isnanl. Remove fma.
4968         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
4969         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
4970
4971 2012-03-03  Bruno Haible  <bruno@clisp.org>
4972
4973         fmod* tests: More tests.
4974         * tests/test-fmod.h: New file.
4975         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
4976         (main): Invoke test_function.
4977         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
4978         (main): Invoke test_function.
4979         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
4980         (main): Invoke test_function.
4981         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
4982         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
4983         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
4984         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
4985         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
4986         (Depends-on): Add 'float'.
4987         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
4988
4989 2012-03-03  Bruno Haible  <bruno@clisp.org>
4990
4991         rint* tests: More tests.
4992         * tests/test-rint.h: New file, partially extracted from
4993         tests/test-rintl.c.
4994         * tests/test-rint.c: Include test-rint.h.
4995         (main): Invoke test_function.
4996         * tests/test-rintf.c: Include test-rint.h.
4997         (main): Invoke test_function.
4998         * tests/test-rintl.c: Include test-rint.h.
4999         (main): Invoke test_function.
5000         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5001         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5002         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5003         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5004         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5005         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5006
5007 2012-03-03  Bruno Haible  <bruno@clisp.org>
5008
5009         modf* tests: More tests.
5010         * tests/test-modf.h: New file.
5011         * tests/test-modf.c: Include <float.h> and test-modf.h.
5012         (main): Invoke test_function.
5013         * tests/test-modff.c: Include <float.h> and test-modf.h.
5014         (main): Invoke test_function.
5015         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5016         (main): Invoke test_function.
5017         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5018         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5019         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5020         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5021         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5022         (Depends-on): Add 'float'.
5023         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5024
5025 2012-03-03  Bruno Haible  <bruno@clisp.org>
5026
5027         fabs* tests: More tests.
5028         * tests/test-fabs.h: New file, partially extracted from
5029         tests/test-fabsl.c.
5030         * tests/test-fabs.c (RANDOM): New macro.
5031         * tests/test-fabsf.c (RANDOM): New macro.
5032         * tests/test-fabsl.c (RANDOM): New macro.
5033         * modules/fabs-tests (Files): Add tests/randomd.c.
5034         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5035         * modules/fabsf-tests (Files): Add tests/randomf.c.
5036         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5037         * modules/fabsl-tests (Files): Add tests/randoml.c.
5038         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5039
5040 2012-03-03  Bruno Haible  <bruno@clisp.org>
5041
5042         ldexp* tests: More tests.
5043         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5044         * tests/test-ldexp.c (RANDOM): New macro.
5045         * tests/test-ldexpf.c (RANDOM): New macro.
5046         * tests/test-ldexpl.c (RANDOM): New macro.
5047         * modules/ldexp-tests (Files): Add tests/randomd.c.
5048         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5049         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5050         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5051         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5052         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5053
5054 2012-03-03  Bruno Haible  <bruno@clisp.org>
5055
5056         frexp* tests: More tests.
5057         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5058         * tests/test-frexp.c (RANDOM): New macro.
5059         * tests/test-frexpf.c (RANDOM): New macro.
5060         * tests/test-frexpl.c (RANDOM): New macro.
5061         * modules/frexp-tests (Files): Add tests/randomd.c.
5062         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5063         * modules/frexpf-tests (Files): Add tests/randomf.c.
5064         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5065         * modules/frexpl-tests (Files): Add tests/randoml.c.
5066         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5067
5068 2012-03-03  Bruno Haible  <bruno@clisp.org>
5069
5070         Support for pseudo-random numbers in tests.
5071         * tests/randomf.c: New file.
5072         * tests/randomd.c: New file.
5073         * tests/randoml.c: New file.
5074         * tests/macros.h (randomf, randomd, randoml): New declarations.
5075
5076 2012-03-03  Bruno Haible  <bruno@clisp.org>
5077
5078         frexp* tests: Refactor.
5079         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5080         * tests/test-frexp.c: Include and use it.
5081         * tests/test-frexpf.c: Likewise.
5082         * tests/test-frexpl.c: Likewise.
5083         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5084         * modules/frexpf-tests (Files): Likewise.
5085         * modules/frexpl-tests (Files): Likewise.
5086
5087 2012-03-02  Jim Meyering  <meyering@redhat.com>
5088
5089         maint: don't specify XZ_OPT=-9ev in dist-related rule
5090         Using xz's -9 option is warranted only if you have a very large
5091         tarball (see xz's documentation for the sizes vs. presets), and
5092         requires 64MiB of memory at decompression time.
5093         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5094         Automake's default of just "-e" is fine.  Override on a
5095         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5096
5097 2012-03-01  Eric Blake  <eblake@redhat.com>
5098
5099         maint.mk: allow announcement for non-gnulib project
5100         * maint.mk (announcement): Skip gnulib version if not used.
5101
5102 2012-03-01  Jim Meyering  <meyering@redhat.com>
5103
5104         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5105         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5106         envvar settings cannot interfere.  Otherwise, setting envvars like
5107         prohibit=foo require=bar, etc. would cause spurious test failures.
5108
5109 2012-03-01  Eric Blake  <eblake@redhat.com>
5110
5111         maint.mk: add per-line exclusions to prohibitions
5112         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5113         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5114         (sc_const_long_option): Use it.
5115
5116 2012-03-01  Bruno Haible  <bruno@clisp.org>
5117
5118         Tests for module 'expl-ieee'.
5119         * modules/expl-ieee-tests: New file.
5120         * tests/test-expl-ieee.c: New file.
5121
5122         New module 'expl-ieee'.
5123         * modules/expl-ieee: New file.
5124
5125         Tests for module 'exp-ieee'.
5126         * modules/exp-ieee-tests: New file.
5127         * tests/test-exp-ieee.c: New file.
5128
5129         New module 'exp-ieee'.
5130         * modules/exp-ieee: New file.
5131
5132         Tests for module 'expf-ieee'.
5133         * modules/expf-ieee-tests: New file.
5134         * tests/test-expf-ieee.c: New file.
5135         * tests/test-exp-ieee.h: New file.
5136
5137         New module 'expf-ieee'.
5138         * modules/expf-ieee: New file.
5139
5140 2012-02-29  Bruno Haible  <bruno@clisp.org>
5141
5142         cbrtl-ieee: Work around test failure on IRIX 6.5.
5143         * m4/cbrtl-ieee.m4: New file.
5144         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5145         test whether cbrtl works with a minus zero argument. Replace it if not.
5146         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5147         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5148         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5149         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5150         (Depends-on): Update conditions.
5151         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5152         m4/signbit.m4.
5153         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5154         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5155         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5156
5157         Tests for module 'cbrtl-ieee'.
5158         * modules/cbrtl-ieee-tests: New file.
5159         * tests/test-cbrtl-ieee.c: New file.
5160
5161         New module 'cbrtl-ieee'.
5162         * modules/cbrtl-ieee: New file.
5163
5164         Tests for module 'cbrt-ieee'.
5165         * modules/cbrt-ieee-tests: New file.
5166         * tests/test-cbrt-ieee.c: New file.
5167
5168         New module 'cbrt-ieee'.
5169         * modules/cbrt-ieee: New file.
5170
5171         Tests for module 'cbrtf-ieee'.
5172         * modules/cbrtf-ieee-tests: New file.
5173         * tests/test-cbrtf-ieee.c: New file.
5174         * tests/test-cbrt-ieee.h: New file.
5175
5176         New module 'cbrtf-ieee'.
5177         * modules/cbrtf-ieee: New file.
5178
5179 2012-02-29  Bruno Haible  <bruno@clisp.org>
5180
5181         cbrtf: Work around bug in IRIX 6.5 system function.
5182         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5183         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5184         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5185         work.
5186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5187         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5188         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5189         (Depends-on): Update conditions.
5190         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5191
5192 2012-02-29  Bruno Haible  <bruno@clisp.org>
5193
5194         Tests for module 'cbrtl'.
5195         * modules/cbrtl-tests: New file.
5196         * tests/test-cbrtl.c: New file.
5197
5198         New module 'cbrtl'.
5199         * lib/math.in.h (cbrtl): New declaration.
5200         * lib/cbrtl.c: New file.
5201         * m4/cbrtl.m4: New file.
5202         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5204         HAVE_DECL_CBRTL.
5205         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5206         HAVE_DECL_CBRTL.
5207         * modules/cbrtl: New file.
5208         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5209         * doc/posix-functions/cbrtl.texi: Mention the new module.
5210
5211 2012-02-29  Bruno Haible  <bruno@clisp.org>
5212
5213         Tests for module 'cbrtf'.
5214         * modules/cbrtf-tests: New file.
5215         * tests/test-cbrtf.c: New file.
5216
5217         New module 'cbrtf'.
5218         * lib/math.in.h (cbrtf): New declaration.
5219         * lib/cbrtf.c: New file.
5220         * m4/cbrtf.m4: New file.
5221         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5223         HAVE_DECL_CBRTF.
5224         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5225         HAVE_DECL_CBRTF.
5226         * modules/cbrtf: New file.
5227         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5228         * doc/posix-functions/cbrtf.texi: Mention the new module.
5229
5230 2012-02-29  Bruno Haible  <bruno@clisp.org>
5231
5232         cbrt: Provide replacement on MSVC and Minix.
5233         * lib/math.in.h (cbrt): New declaration.
5234         * lib/cbrt.c: New file.
5235         * m4/cbrt.m4: New file.
5236         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5237         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5238         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5239         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5240         (Depends-on): Add dependencies.
5241         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5242         * tests/test-math-c++.cc: Check the declaration of cbrt.
5243         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5244         replacement.
5245
5246 2012-02-29  Bruno Haible  <bruno@clisp.org>
5247
5248         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5249         * m4/hypotl-ieee.m4: New file.
5250         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5251         test whether hypotl works with mixed NaN and Infinity arguments.
5252         Replace it if not.
5253         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5255         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5256         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5257         (Depends-on): Update conditions.
5258         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5259         (Depends-on): Add hypot-ieee.
5260         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5261         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5262
5263         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5264         * m4/hypotf-ieee.m4: New file.
5265         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5266         test whether hypotf works with mixed NaN and Infinity arguments.
5267         Replace it if not.
5268         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5269         (Depends-on): Add hypot-ieee.
5270         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5271         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5272
5273         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5274         * lib/math.in.h (hypot): New declaration.
5275         * lib/hypot.c: New file.
5276         * m4/hypot-ieee.m4: New file.
5277         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5278         whether hypot works with mixed NaN and Infinity arguments. Replace it
5279         if not.
5280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5281         REPLACE_HYPOT.
5282         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5283         * modules/hypot (Files): Add lib/hypot.c.
5284         (Depends-on): Add dependencies.
5285         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5286         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5287         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5288         * tests/test-math-c++.cc: Check the declaration of hypot.
5289         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5290
5291         Tests for module 'hypotl-ieee'.
5292         * modules/hypotl-ieee-tests: New file.
5293         * tests/test-hypotl-ieee.c: New file.
5294
5295         New module 'hypotl-ieee'.
5296         * modules/hypotl-ieee: New file.
5297
5298         Tests for module 'hypot-ieee'.
5299         * modules/hypot-ieee-tests: New file.
5300         * tests/test-hypot-ieee.c: New file.
5301
5302         New module 'hypot-ieee'.
5303         * modules/hypot-ieee: New file.
5304
5305         Tests for module 'hypotf-ieee'.
5306         * modules/hypotf-ieee-tests: New file.
5307         * tests/test-hypotf-ieee.c: New file.
5308         * tests/test-hypot-ieee.h: New file.
5309
5310         New module 'hypotf-ieee'.
5311         * modules/hypotf-ieee: New file.
5312
5313 2012-02-29  Bruno Haible  <bruno@clisp.org>
5314
5315         Remove unused variables.
5316         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5317         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5318         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5319         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5320
5321 2012-02-29  Eric Blake  <eblake@redhat.com>
5322
5323         termios: fix pid_t always, not just for tcgetsid
5324         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5325         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5326         just when building tcgetsid.
5327
5328 2012-02-29  Bruno Haible  <bruno@clisp.org>
5329
5330         Tests for module 'hypotl'.
5331         * modules/hypotl-tests: New file.
5332         * tests/test-hypotl.c: New file.
5333
5334         New module 'hypotl'.
5335         * lib/math.in.h (hypotl): New declaration.
5336         * lib/hypotl.c: New file.
5337         * m4/hypotl.m4: New file.
5338         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5339         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5340         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5341         * modules/hypotl: New file.
5342         * tests/test-math-c++.cc: Check the hypotl declaration.
5343         * doc/posix-functions/hypotl.texi: Mention the new module.
5344
5345 2012-02-29  Eric Blake  <eblake@redhat.com>
5346
5347         tcgetsid: fix cygwin header bug
5348         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5349
5350         docs: update cygwin progress
5351         * doc/posix-functions/llround.texi (llround): Added in cygwin
5352         1.7.8.
5353         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5354         * doc/glibc-functions/program_invocation_name.texi
5355         (program_invocation_name): Likewise.
5356         * doc/glibc-functions/program_invocation_short_name.texi
5357         (program_invocation_short_name): Likewise.
5358         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5359         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5360         Likewise.
5361         * doc/posix-functions/pthread_spin_destroy.texi
5362         (pthread_spin_destroy): Added in cygwin 1.7.10.
5363         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5364         Likewise.
5365         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5366         Likewise.
5367         * doc/posix-functions/pthread_spin_trylock.texi
5368         (pthread_spin_trylock): Likewise.
5369         * doc/posix-functions/pthread_spin_unlock.texi
5370         (pthread_spin_unlock): Likewise.
5371         * doc/posix-functions/pthread_setschedprio.texi
5372         (pthread_setschedprio): Likewise.
5373         * doc/posix-functions/pthread_attr_getstack.texi
5374         (pthread_attr_getstack): Likewise.
5375         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5376         (pthread_attr_getstackaddr): Likewise.
5377         * doc/glibc-functions/pthread_getattr_np.texi
5378         (pthread_getattr_np): Likewise.
5379         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5380         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5381         * doc/posix-functions/clock_settime.texi (clock_settime):
5382         Likewise.
5383         * doc/posix-functions/pthread_attr_getguardsize.texi
5384         (pthread_attr_getguardsize): Likewise.
5385         * doc/posix-functions/pthread_attr_setguardsize.texi
5386         (pthread_attr_setguardsize): Likewise.
5387         * doc/posix-functions/pthread_attr_setstack.texi
5388         (pthread_attr_setstack): Likewise.
5389         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5390         (pthread_attr_setstackaddr): Likewise.
5391         * doc/posix-functions/clock_getcpuclockid.texi
5392         (clock_getcpuclockid): Likewise.
5393         * doc/posix-functions/pthread_getcpuclockid.texi
5394         (pthread_getcpuclockid): Likewise.
5395         * doc/glibc-functions/error.texi (error): Likewise.
5396         * doc/glibc-functions/error_at_line.texi (error_at_line):
5397         Likewise.
5398         * doc/glibc-functions/error_message_count.texi
5399         (error_message_count): Likewise.
5400         * doc/glibc-functions/error_one_per_line.texi
5401         (error_one_per_line): Likewise.
5402         * doc/glibc-functions/error_print_progname.texi
5403         (error_print_progname): Likewise.
5404         * doc/posix-functions/pthread_condattr_getclock.texi
5405         (pthread_condattr_getclock): Likewise.
5406         * doc/posix-functions/pthread_condattr_setclock.texi
5407         (pthread_condattr_setclock): Likewise.
5408         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5409         Likewise.
5410         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5411         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5412         * doc/glibc-functions/get_current_dir_name.texi
5413         (get_current_dir_name): Likewise.
5414         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5415         Likewise.
5416         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5417         wrong return type.
5418         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5419         1.7.11.
5420
5421 2012-02-29  Bruno Haible  <bruno@clisp.org>
5422
5423         Tests for module 'hypotf'.
5424         * modules/hypotf-tests: New file.
5425         * tests/test-hypotf.c: New file.
5426
5427         New module 'hypotf'.
5428         * lib/math.in.h (hypotf): New declaration.
5429         * lib/hypotf.c: New file.
5430         * m4/hypotf.m4: New file.
5431         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5433         REPLACE_HYPOTF.
5434         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5435         REPLACE_HYPOTF.
5436         * modules/hypotf: New file.
5437         * tests/test-math-c++.cc: Check the hypotf declaration.
5438         * doc/posix-functions/hypotf.texi: Mention the new module.
5439
5440         hypot: Prepare for hypotf module.
5441         * m4/hypot.m4: New file.
5442         * modules/hypot (Files): Add m4/hypot.m4.
5443         (configure.ac): Invoke gl_FUNC_HYPOT.
5444
5445 2012-02-29  Bruno Haible  <bruno@clisp.org>
5446
5447         hypot tests: More tests.
5448         * tests/test-hypot.c: Include <float.h>.
5449         (main): Add tests about overflow and underflow.
5450
5451 2012-02-29  Bruno Haible  <bruno@clisp.org>
5452
5453         math code: Add comments.
5454         * lib/acosl.c: Add comment about related glibc source files.
5455         * lib/asinl.c: Likewise.
5456         * lib/atanl.c: Likewise.
5457         * lib/expl.c: Likewise.
5458         * lib/logl.c: Likewise.
5459         * lib/sincosl.c: Likewise.
5460         * lib/sinl.c: Likewise.
5461         * lib/tanl.c: Likewise.
5462         * lib/trigl.c: Likewise.
5463         * lib/cosl.c: Likewise. Fix comments.
5464
5465 2012-02-28  Bruno Haible  <bruno@clisp.org>
5466
5467         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5468         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5469         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5470         HUGE_VALL are defined.
5471         (numeric_equald): Renamed from numeric_equal.
5472         (numeric_equalf, numeric_equall): New functions.
5473         (main): Check also HUGE_VALF, HUGE_VALL.
5474         * modules/math-tests (Files): Add tests/macros.h.
5475         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5476         HUGE_VALL.
5477
5478 2012-02-28  Bruno Haible  <bruno@clisp.org>
5479
5480         doc: Move ISO C11 feature notes into POSIX chapters.
5481         * doc/posix-functions/aligned_alloc.texi: Renamed from
5482         doc/glibc-functions/aligned_alloc.texi.
5483         * doc/posix-functions/quick_exit.texi: Renamed from
5484         doc/glibc-functions/quick_exit.texi.
5485         * doc/posix-headers/uchar.texi: Renamed from
5486         doc/glibc-headers/uchar.texi.
5487         * doc/posix-functions/c16rtomb.texi: Renamed from
5488         doc/glibc-functions/c16rtomb.texi.
5489         * doc/posix-functions/c32rtomb.texi: Renamed from
5490         doc/glibc-functions/c32rtomb.texi.
5491         * doc/posix-functions/mbrtoc16.texi: Renamed from
5492         doc/glibc-functions/mbrtoc16.texi.
5493         * doc/posix-functions/mbrtoc32.texi: Renamed from
5494         doc/glibc-functions/mbrtoc32.texi.
5495         * doc/gnulib.texi: Update.
5496         (Glibc uchar.h): Remove section.
5497         Suggested by Eric Blake.
5498
5499 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5500
5501         stdnoreturn: port to MSVC better
5502         MSVC standard headers use __declspec(noreturn), so #define noreturn
5503         to empty on that platform.  Reported by Bruno Haible in
5504         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5505         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5506         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5507
5508 2012-02-28  Bruno Haible  <bruno@clisp.org>
5509
5510         doc: Mention new glibc headers and functions.
5511         * doc/glibc-headers/uchar.texi: New file.
5512         * doc/glibc-functions/aligned_alloc.texi: New file.
5513         * doc/glibc-functions/c16rtomb.texi: New file.
5514         * doc/glibc-functions/c32rtomb.texi: New file.
5515         * doc/glibc-functions/clock_adjtime.texi: New file.
5516         * doc/glibc-functions/fanotify_init.texi: New file.
5517         * doc/glibc-functions/fanotify_mark.texi: New file.
5518         * doc/glibc-functions/inet6_opt_append.texi: New file.
5519         * doc/glibc-functions/inet6_opt_find.texi: New file.
5520         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5521         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5522         * doc/glibc-functions/inet6_opt_init.texi: New file.
5523         * doc/glibc-functions/inet6_opt_next.texi: New file.
5524         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5525         * doc/glibc-functions/inet6_rth_add.texi: New file.
5526         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5527         * doc/glibc-functions/inet6_rth_init.texi: New file.
5528         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5529         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5530         * doc/glibc-functions/inet6_rth_space.texi: New file.
5531         * doc/glibc-functions/login.texi: New file.
5532         * doc/glibc-functions/mbrtoc16.texi: New file.
5533         * doc/glibc-functions/mbrtoc32.texi: New file.
5534         * doc/glibc-functions/name_to_handle_at.texi: New file.
5535         * doc/glibc-functions/ntp_gettimex.texi: New file.
5536         * doc/glibc-functions/open_by_handle_at.texi: New file.
5537         * doc/glibc-functions/prlimit.texi: New file.
5538         * doc/glibc-functions/process_vm_readv.texi: New file.
5539         * doc/glibc-functions/process_vm_writev.texi: New file.
5540         * doc/glibc-functions/recvmmsg.texi: New file.
5541         * doc/glibc-functions/scandirat.texi: New file.
5542         * doc/glibc-functions/sendmmsg.texi: New file.
5543         * doc/glibc-functions/setns.texi: New file.
5544         * doc/glibc-functions/timespec_get.texi: New file.
5545         * doc/gnulib.texi: Include them.
5546         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5547         sections.
5548         Reported by Eric Blake.
5549
5550 2012-02-28  Bruno Haible  <bruno@clisp.org>
5551
5552         Avoid compilation errors with MSVC option -fp:strict.
5553         * lib/floor.c: Use MSVC specific pragma fenv_access.
5554         * lib/ceil.c: Likewise.
5555         * lib/trunc.c: Likewise.
5556         * lib/round.c: Likewise.
5557         * lib/rint.c: Likewise.
5558         * lib/fma.c: Likewise.
5559         * lib/integer_length.c: Likewise.
5560         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5561         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5562         * tests/test-floor2.c: Likewise.
5563         * tests/test-floorf2.c: Likewise.
5564         * tests/test-ceil2.c: Likewise.
5565         * tests/test-ceilf2.c: Likewise.
5566         * tests/test-trunc2.c: Likewise.
5567         * tests/test-truncf2.c: Likewise.
5568         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5569
5570 2012-02-27  Bruno Haible  <bruno@clisp.org>
5571
5572         Tests for module 'sqrtl-ieee'.
5573         * modules/sqrtl-ieee-tests: New file.
5574         * tests/test-sqrtl-ieee.c: New file.
5575
5576         New module 'sqrtl-ieee'.
5577         * modules/sqrtl-ieee: New file.
5578
5579         Tests for module 'sqrt-ieee'.
5580         * modules/sqrt-ieee-tests: New file.
5581         * tests/test-sqrt-ieee.c: New file.
5582
5583         New module 'sqrt-ieee'.
5584         * modules/sqrt-ieee: New file.
5585
5586         Tests for module 'sqrtf-ieee'.
5587         * modules/sqrtf-ieee-tests: New file.
5588         * tests/test-sqrtf-ieee.c: New file.
5589         * tests/test-sqrt-ieee.h: New file.
5590
5591         New module 'sqrtf-ieee'.
5592         * modules/sqrtf-ieee: New file.
5593
5594 2012-02-27  Bruno Haible  <bruno@clisp.org>
5595
5596         remainderl-ieee: Work around test failure on OSF/1.
5597         * m4/remainderl-ieee.m4: New file.
5598         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
5599         present, test whether remainderl works with a zero second argument.
5600         Replace it if not.
5601         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
5602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
5603         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
5604         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
5605         (Depends-on): Update conditions.
5606         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
5607         (Depends-on): Add remainder-ieee.
5608         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
5609         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
5610         module.
5611
5612         remainderf-ieee: Work around test failure on OSF/1.
5613         * m4/remainderf-ieee.m4: New file.
5614         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
5615         present, test whether remainderf works with a zero second argument.
5616         Replace it if not.
5617         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
5618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
5619         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
5620         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
5621         (Depends-on): Update conditions.
5622         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
5623         (Depends-on): Add remainder-ieee.
5624         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
5625         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
5626         module.
5627
5628         remainder-ieee: Work around test failure on OSF/1.
5629         * m4/remainder-ieee.m4: New file.
5630         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
5631         present, test whether remainder works with a zero second argument.
5632         Replace it if not.
5633         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
5634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
5635         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
5636         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
5637         (Depends-on): Update dependencies.
5638         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
5639         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
5640         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
5641
5642         Tests for module 'remainderl-ieee'.
5643         * modules/remainderl-ieee-tests: New file.
5644         * tests/test-remainderl-ieee.c: New file.
5645
5646         New module 'remainderl-ieee'.
5647         * modules/remainderl-ieee: New file.
5648
5649         Tests for module 'remainder-ieee'.
5650         * modules/remainder-ieee-tests: New file.
5651         * tests/test-remainder-ieee.c: New file.
5652
5653         New module 'remainder-ieee'.
5654         * modules/remainder-ieee: New file.
5655
5656         Tests for module 'remainderf-ieee'.
5657         * modules/remainderf-ieee-tests: New file.
5658         * tests/test-remainderf-ieee.c: New file.
5659         * tests/test-remainder-ieee.h: New file.
5660
5661         New module 'remainderf-ieee'.
5662         * modules/remainderf-ieee: New file.
5663
5664 2012-02-27  Bruno Haible  <bruno@clisp.org>
5665
5666         modff, modfl: Fix configure syntax error.
5667         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
5668         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5669
5670 2012-02-27  Bruno Haible  <bruno@clisp.org>
5671
5672         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
5673         * m4/fmodl-ieee.m4: New file.
5674         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
5675         whether fmodl works with zero arguments. Replace it if not.
5676         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
5677         (Depends-on): Add fmod-ieee.
5678         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
5679         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
5680
5681         fmodf-ieee: Work around test failure on OSF/1.
5682         * m4/fmodf-ieee.m4: New file.
5683         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
5684         whether fmodf works with zero arguments. Replace it if not.
5685         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
5686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
5687         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
5688         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
5689         (Depends-on): Update dependencies.
5690         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
5691         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
5692         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
5693
5694         fmodf-ieee: Work around test failure on MSVC 9.
5695         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
5696         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
5697
5698         fmod-ieee: Work around test failures on OSF/1, mingw.
5699         * m4/fmod-ieee.m4: New file.
5700         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
5701         whether fmod works with zero arguments. Replace it if not.
5702         * lib/math.in.h (fmod): New declaration.
5703         * lib/fmod.c: New file.
5704         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
5705         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
5706         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
5707         * modules/fmod (Files): Add lib/fmod.c.
5708         (Depends-on): Add math, isinf, trunc, fma.
5709         (configure.ac): Arrange to compile lib/fmod.c if needed.
5710         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
5711         m4/signbit.m4.
5712         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
5713         * tests/test-math-c++.cc: Check the declaration of fmod.
5714         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
5715
5716         fmodl-ieee: Fix test failures.
5717         * lib/fmodl.c (fmodl): Treat Inf specially.
5718         * modules/fmodl (Depends-on): Add isinf.
5719
5720         Tests for module 'fmodl-ieee'.
5721         * modules/fmodl-ieee-tests: New file.
5722         * tests/test-fmodl-ieee.c: New file.
5723
5724         New module 'fmodl-ieee'.
5725         * modules/fmodl-ieee: New file.
5726
5727         Tests for module 'fmod-ieee'.
5728         * modules/fmod-ieee-tests: New file.
5729         * tests/test-fmod-ieee.c: New file.
5730
5731         New module 'fmod-ieee'.
5732         * modules/fmod-ieee: New file.
5733
5734         Tests for module 'fmodf-ieee'.
5735         * modules/fmodf-ieee-tests: New file.
5736         * tests/test-fmodf-ieee.c: New file.
5737         * tests/test-fmod-ieee.h: New file.
5738
5739         New module 'fmodf-ieee'.
5740         * modules/fmodf-ieee: New file.
5741
5742 2012-02-27  Bruno Haible  <bruno@clisp.org>
5743
5744         Tests for module 'rintl-ieee'.
5745         * modules/rintl-ieee-tests: New file.
5746         * tests/test-rintl-ieee.c: New file.
5747
5748         New module 'rintl-ieee'.
5749         * modules/rintl-ieee: New file.
5750
5751         Tests for module 'rint-ieee'.
5752         * modules/rint-ieee-tests: New file.
5753         * tests/test-rint-ieee.c: New file.
5754
5755         New module 'rint-ieee'.
5756         * modules/rint-ieee: New file.
5757
5758         Tests for module 'rintf-ieee'.
5759         * modules/rintf-ieee-tests: New file.
5760         * tests/test-rintf-ieee.c: New file.
5761         * tests/test-rint-ieee.h: New file.
5762
5763         New module 'rintf-ieee'.
5764         * modules/rintf-ieee: New file.
5765
5766 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
5767
5768         regex: re_search etc. should return -2 when memory exhausted
5769         This bug was uncovered when testing 'grep'.  Without the fix,
5770         re_search and friends return -1 when memory is exhausted, but -1
5771         means no match, and this causes grep to falsely report no-match
5772         instead of memory-exhaustion.  See
5773         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
5774         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
5775         trouble; this can occur if re_search_internal ran out of memory.
5776
5777 2012-02-26  Bruno Haible  <bruno@clisp.org>
5778
5779         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
5780         * m4/modfl-ieee.m4: New file.
5781         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
5782         whether modfl works with Inf. Replace it if not.
5783         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
5784         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
5785         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
5786         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
5787         (Depends-on): Update dependencies.
5788         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
5789         m4/signbit.m4.
5790         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
5791         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
5792
5793         modfl-ieee: Fix dependencies.
5794         * modules/modfl-ieee (Depends-on): Add modf-ieee.
5795
5796         modfl-ieee: Fix test failures.
5797         * lib/modfl.c (modfl): Treat NaN and Inf specially.
5798         * modules/modfl (Depends-on): Add isfinite, isinf.
5799
5800         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
5801         * m4/modff-ieee.m4: New file.
5802         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
5803         whether modff works with NaN and Inf. Replace it if not.
5804         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
5805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
5806         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
5807         * modules/modff (configure.ac): Consider REPLACE_MODFF.
5808         (Depends-on): Update dependencies.
5809         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
5810         m4/signbit.m4.
5811         (Depends-on): Add modf-ieee.
5812         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
5813         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
5814
5815         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
5816         * m4/modf-ieee.m4: New file.
5817         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
5818         whether modf works with NaN and Inf. Replace it if not.
5819         * lib/math.in.h (modf): New declaration.
5820         * lib/modf.c: New file.
5821         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
5822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
5823         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
5824         * modules/modf (Files): Add lib/modf.c.
5825         (Depends-on): Add math, isfinite, trunc, isinf.
5826         (configure.ac): Addrange to compile lib/modf.c if needed.
5827         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
5828         m4/signbit.m4.
5829         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
5830         * tests/test-math-c++.cc: Check the declaration of modf.
5831         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
5832
5833         Tests for module 'modfl-ieee'.
5834         * modules/modfl-ieee-tests: New file.
5835         * tests/test-modfl-ieee.c: New file.
5836
5837         New module 'modfl-ieee'.
5838         * modules/modfl-ieee: New file.
5839
5840         Tests for module 'modf-ieee'.
5841         * modules/modf-ieee-tests: New file.
5842         * tests/test-modf-ieee.c: New file.
5843
5844         New module 'modf-ieee'.
5845         * modules/modf-ieee: New file.
5846
5847         Tests for module 'modff-ieee'.
5848         * modules/modff-ieee-tests: New file.
5849         * tests/test-modff-ieee.c: New file.
5850         * tests/test-modf-ieee.h: New file.
5851
5852         New module 'modff-ieee'.
5853         * modules/modff-ieee: New file.
5854
5855 2012-02-26  Bruno Haible  <bruno@clisp.org>
5856
5857         Tests for module 'fabsl-ieee'.
5858         * modules/fabsl-ieee-tests: New file.
5859         * tests/test-fabsl-ieee.c: New file.
5860
5861         New module 'fabsl-ieee'.
5862         * modules/fabsl-ieee: New file.
5863
5864         Tests for module 'fabs-ieee'.
5865         * modules/fabs-ieee-tests: New file.
5866         * tests/test-fabs-ieee.c: New file.
5867
5868         New module 'fabs-ieee'.
5869         * modules/fabs-ieee: New file.
5870
5871         Tests for module 'fabsf-ieee'.
5872         * modules/fabsf-ieee-tests: New file.
5873         * tests/test-fabsf-ieee.c: New file.
5874         * tests/test-fabs-ieee.h: New file.
5875
5876         New module 'fabsf-ieee'.
5877         * modules/fabsf-ieee: New file.
5878
5879 2012-02-26  Bruno Haible  <bruno@clisp.org>
5880
5881         Tests for module 'fmal-ieee'.
5882         * modules/fmal-ieee-tests: New file.
5883         * tests/test-fmal-ieee.c: New file.
5884
5885         New module 'fmal-ieee'.
5886         * modules/fmal-ieee: New file.
5887
5888         Tests for module 'fma-ieee'.
5889         * modules/fma-ieee-tests: New file.
5890         * tests/test-fma-ieee.c: New file.
5891
5892         New module 'fma-ieee'.
5893         * modules/fma-ieee: New file.
5894
5895         Tests for module 'fmaf-ieee'.
5896         * modules/fmaf-ieee-tests: New file.
5897         * tests/test-fmaf-ieee.c: New file.
5898         * tests/test-fma-ieee.h: New file.
5899
5900         New module 'fmaf-ieee'.
5901         * modules/fmaf-ieee: New file.
5902
5903 2012-02-26  Bruno Haible  <bruno@clisp.org>
5904
5905         Tests for module 'ldexpl-ieee'.
5906         * modules/ldexpl-ieee-tests: New file.
5907         * tests/test-ldexpl-ieee.c: New file.
5908
5909         New module 'ldexpl-ieee'.
5910         * modules/ldexpl-ieee: New file.
5911
5912         Tests for module 'ldexp-ieee'.
5913         * modules/ldexp-ieee-tests: New file.
5914         * tests/test-ldexp-ieee.c: New file.
5915
5916         New module 'ldexp-ieee'.
5917         * modules/ldexp-ieee: New file.
5918
5919         Tests for module 'ldexpf-ieee'.
5920         * modules/ldexpf-ieee-tests: New file.
5921         * tests/test-ldexpf-ieee.c: New file.
5922         * tests/test-ldexp-ieee.h: New file.
5923
5924         New module 'ldexpf-ieee'.
5925         * modules/ldexpf-ieee: New file.
5926
5927 2012-02-26  Bruno Haible  <bruno@clisp.org>
5928
5929         Refactor frexp*-ieee tests.
5930         * tests/test-frexp-ieee.h: New file.
5931         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
5932         (main): Just call test_function.
5933         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
5934         (main): Just call test_function.
5935         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
5936         (main): Just call test_function.
5937         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
5938         * modules/frexp-ieee-tests (Files): Likewise.
5939         * modules/frexpl-ieee-tests (Files): Likewise.
5940
5941         Tests for module 'frexpl-ieee'.
5942         * modules/frexpl-ieee-tests: New file.
5943         * tests/test-frexpl-ieee.c: New file.
5944
5945         New module 'frexpl-ieee'.
5946         * modules/frexpl-ieee: New file.
5947
5948         Tests for module 'frexp-ieee'.
5949         * modules/frexp-ieee-tests: New file.
5950         * tests/test-frexp-ieee.c: New file.
5951
5952         New module 'frexp-ieee'.
5953         * modules/frexp-ieee: New file.
5954
5955         Tests for module 'frexpf-ieee'.
5956         * modules/frexpf-ieee-tests: New file.
5957         * tests/test-frexpf-ieee.c: New file.
5958
5959         New module 'frexpf-ieee'.
5960         * modules/frexpf-ieee: New file.
5961
5962 2012-02-26  Bruno Haible  <bruno@clisp.org>
5963
5964         roundl-ieee tests: More tests.
5965         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5966         (main): Add tests for [MX] shaded specification in POSIX.
5967         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5968         (Depends-on): Add isnanl-nolibm.
5969
5970         round-ieee tests: More tests.
5971         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5972         (main): Add tests for [MX] shaded specification in POSIX.
5973         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5974         (Depends-on): Add isnand-nolibm.
5975
5976         roundf-ieee tests: More tests.
5977         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5978         (main): Add tests for [MX] shaded specification in POSIX.
5979         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5980         (Depends-on): Add isnanf-nolibm.
5981
5982         truncl-ieee tests: More tests.
5983         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5984         (main): Add tests for [MX] shaded specification in POSIX.
5985         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5986         (Depends-on): Add isnanl-nolibm.
5987
5988         trunc-ieee tests: More tests.
5989         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5990         (main): Add tests for [MX] shaded specification in POSIX.
5991         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5992         (Depends-on): Add isnand-nolibm.
5993
5994         truncf-ieee tests: More tests.
5995         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5996         (main): Add tests for [MX] shaded specification in POSIX.
5997         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5998         (Depends-on): Add isnanf-nolibm.
5999
6000         ceill-ieee tests: More tests.
6001         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6002         (main): Add tests for [MX] shaded specification in POSIX.
6003         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6004         (Depends-on): Add isnanl-nolibm.
6005
6006         ceil-ieee tests: More tests.
6007         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6008         (main): Add tests for [MX] shaded specification in POSIX.
6009         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6010         (Depends-on): Add isnand-nolibm.
6011
6012         ceilf-ieee tests: More tests.
6013         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6014         (main): Add tests for [MX] shaded specification in POSIX.
6015         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6016         (Depends-on): Add isnanf-nolibm.
6017
6018         floorl-ieee tests: More tests.
6019         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6020         (main): Add tests for [MX] shaded specification in POSIX.
6021         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6022         (Depends-on): Add isnanl-nolibm.
6023
6024         floor-ieee tests: More tests.
6025         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6026         (main): Add tests for [MX] shaded specification in POSIX.
6027         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6028         (Depends-on): Add isnand-nolibm.
6029
6030         floorf-ieee tests: More tests.
6031         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6032         (main): Add tests for [MX] shaded specification in POSIX.
6033         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6034         (Depends-on): Add isnanf-nolibm.
6035
6036 2012-02-26  Bruno Haible  <bruno@clisp.org>
6037
6038         fpieee: More comments.
6039         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6040
6041 2012-02-25  Bruno Haible  <bruno@clisp.org>
6042
6043         Tests for module 'log10l'.
6044         * modules/log10l-tests: New file.
6045         * tests/test-log10l.c: New file.
6046         * tests/test-math-c++.cc: Check the declaration of log10l.
6047
6048         New module 'log10l'.
6049         * lib/math.in.h (log10l): New declaration.
6050         * lib/log10l.c: New file.
6051         * m4/log10l.m4: New file.
6052         * modules/log10l: New file.
6053         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6054         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6055         HAVE_DECL_LOG10L.
6056         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6057         HAVE_DECL_LOG10L.
6058         * doc/posix-functions/log10l.texi: Mention the new module.
6059
6060 2012-02-25  Bruno Haible  <bruno@clisp.org>
6061
6062         fmodl, remainder*: Avoid wrong results due to rounding errors.
6063         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6064         expected bounds.
6065         * lib/remainderf.c (remainderf): Likewise.
6066         * lib/remainder.c (remainder): Likewise.
6067         * lib/remainderl.c (remainderl): Likewise.
6068
6069 2012-02-25  Bruno Haible  <bruno@clisp.org>
6070
6071         Tests for module 'remainderl'.
6072         * modules/remainderl-tests: New file.
6073         * tests/test-remainderl.c: New file.
6074         * tests/test-math-c++.cc: Check the declaration of remainderl.
6075
6076         New module 'remainderl'.
6077         * lib/math.in.h (remainderl): New declaration.
6078         * lib/remainderl.c: New file.
6079         * m4/remainderl.m4: New file.
6080         * modules/remainderl: New file.
6081         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6082         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6083         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6084         HAVE_REMAINDERL.
6085         * doc/posix-functions/remainderl.texi: Mention the new module.
6086
6087 2012-02-25  Bruno Haible  <bruno@clisp.org>
6088
6089         Tests for module 'remainderf'.
6090         * modules/remainderf-tests: New file.
6091         * tests/test-remainderf.c: New file.
6092         * tests/test-math-c++.cc: Check the declaration of remainderf.
6093
6094         New module 'remainderf'.
6095         * lib/math.in.h (remainderf): New declaration.
6096         * lib/remainderf.c: New file.
6097         * m4/remainderf.m4: New file.
6098         * modules/remainderf: New file.
6099         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6101         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6102         HAVE_REMAINDERF.
6103         * doc/posix-functions/remainderf.texi: Mention the new module.
6104
6105 2012-02-25  Bruno Haible  <bruno@clisp.org>
6106
6107         remainder: Support for MSVC.
6108         * lib/math.in.h (remainder): New declaration.
6109         * lib/remainder.c: New file.
6110         * m4/remainder.m4: New file.
6111         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6112         (Depends-on): Add math, round, fma.
6113         (configure.ac): Use results of gl_FUNC_REMAINDER.
6114         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6116         HAVE_DECL_REMAINDER.
6117         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6118         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6119         * tests/test-math-c++.cc: Check the declaration of remainder.
6120         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6121         problems are fixed.
6122
6123 2012-02-25  Bruno Haible  <bruno@clisp.org>
6124
6125         Tests for module 'fmodl'.
6126         * modules/fmodl-tests: New file.
6127         * tests/test-fmodl.c: New file.
6128         * tests/test-math-c++.cc: Check the declaration of fmodl.
6129
6130         New module 'fmodl'.
6131         * lib/math.in.h (fmodl): New declaration.
6132         * lib/fmodl.c: New file.
6133         * m4/fmodl.m4: New file.
6134         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6135         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6136         REPLACE_FMODL.
6137         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6138         REPLACE_FMODL.
6139         * modules/fmodl: New file.
6140         * doc/posix-functions/fmodl.texi: Mention the new module.
6141
6142 2012-02-25  Bruno Haible  <bruno@clisp.org>
6143
6144         Tests for module 'modfl'.
6145         * modules/modfl-tests: New file.
6146         * tests/test-modfl.c: New file.
6147         * tests/test-math-c++.cc: Check the declaration of modfl.
6148
6149         New module 'modfl'.
6150         * lib/math.in.h (modfl): New declaration.
6151         * lib/modfl.c: New file.
6152         * m4/modfl.m4: New file.
6153         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6155         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6156         * modules/modfl: New file.
6157         * doc/posix-functions/modfl.texi: Mention the new module.
6158
6159 2012-02-25  Bruno Haible  <bruno@clisp.org>
6160
6161         Tests for module 'fabsl'.
6162         * modules/fabsl-tests: New file.
6163         * tests/test-fabsl.c: New file.
6164         * tests/test-math-c++.cc: Check the declaration of fabsl.
6165
6166         New module 'fabsl'.
6167         * lib/math.in.h (fabsl): New declaration.
6168         * lib/fabsl.c: New file.
6169         * m4/fabsl.m4: New file.
6170         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6171         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6172         REPLACE_FABSL.
6173         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6174         REPLACE_FABSL.
6175         * modules/fabsl: New file.
6176         * doc/posix-functions/fabsl.texi: Mention the new module.
6177
6178 2012-02-25  Bruno Haible  <bruno@clisp.org>
6179
6180         fabs tests: More tests.
6181         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6182         (zero): New variable.
6183         (main): Add tests for signed zero.
6184         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6185
6186         fabsf tests: More tests.
6187         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6188         (zero): New variable.
6189         (main): Add tests for signed zero.
6190         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6191
6192 2012-02-24  Bruno Haible  <bruno@clisp.org>
6193
6194         atanl: Provide function definition on MSVC.
6195         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6196         function pointer.
6197         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6198
6199 2012-02-24  Bruno Haible  <bruno@clisp.org>
6200
6201         acosl: Provide function definition on MSVC.
6202         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6203         function pointer.
6204         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6205
6206 2012-02-24  Bruno Haible  <bruno@clisp.org>
6207
6208         asinl: Provide function definition on MSVC.
6209         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6210         function pointer.
6211         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6212
6213 2012-02-24  Bruno Haible  <bruno@clisp.org>
6214
6215         tanl: Provide function definition on MSVC.
6216         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6217         function pointer.
6218         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6219
6220 2012-02-24  Bruno Haible  <bruno@clisp.org>
6221
6222         cosl: Provide function definition on MSVC.
6223         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6224         function pointer.
6225         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6226
6227 2012-02-24  Bruno Haible  <bruno@clisp.org>
6228
6229         sinl: Provide function definition on MSVC.
6230         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6231         function pointer.
6232         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6233
6234 2012-02-24  Bruno Haible  <bruno@clisp.org>
6235
6236         logl: Provide function definition on MSVC.
6237         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6238         function pointer.
6239         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6240
6241 2012-02-24  Bruno Haible  <bruno@clisp.org>
6242
6243         expl: Provide function definition on MSVC.
6244         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6245         function pointer.
6246         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6247
6248 2012-02-24  Bruno Haible  <bruno@clisp.org>
6249
6250         sqrtl: Provide function definition on MSVC.
6251         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6252         a function pointer.
6253         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6254
6255 2012-02-24  Bruno Haible  <bruno@clisp.org>
6256
6257         ceill: Provide function definition on MSVC.
6258         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6259         used as a function pointer.
6260         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6261
6262 2012-02-24  Bruno Haible  <bruno@clisp.org>
6263
6264         floorl: Provide function definition on MSVC.
6265         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6266         used as a function pointer.
6267         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6268
6269 2012-02-24  Bruno Haible  <bruno@clisp.org>
6270
6271         ceilf: Provide function definition on MSVC.
6272         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6273         used as a function pointer.
6274         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6275
6276 2012-02-24  Bruno Haible  <bruno@clisp.org>
6277
6278         floorf: Provide function definition on MSVC.
6279         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6280         used as a function pointer.
6281         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6282
6283 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6284
6285         stdnoreturn: new module
6286         This implements a replacement for C11's <stdnoreturn.h>.
6287         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6288         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6289         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6290         * tests/test-stdnoreturn.c: New files.
6291
6292 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6293
6294         regex: fix false multibyte matches in some regular expressions
6295         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6296         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6297         * lib/regex_internal.c (re_string_skip_chars):
6298         Fix miscomputation of remain_len that may cause incomplete
6299         multi-byte character and false match.
6300
6301 2012-02-24  Jim Meyering  <meyering@redhat.com>
6302
6303         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6304         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6305         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6306         Remove now-unnecessary str''cmp obfuscation.
6307         Suggested by Akim Demaille.
6308
6309 2012-02-24  Bruno Haible  <bruno@clisp.org>
6310
6311         streq: Rename macro.
6312         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6313         * NEWS: Mention the change.
6314         * lib/mbrtowc.c (mbrtowc): Update.
6315         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6316         * lib/wcwidth.c (wcwidth): Update.
6317         Suggested by Akim Demaille and Jim Meyering.
6318
6319 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6320
6321         regex: fix typo in definition of MIN
6322         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6323         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6324
6325 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6326             Bruno Haible  <bruno@clisp.org>
6327
6328         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6329         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6330         entries into a stack-allocated buffer directly.
6331         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6332
6333 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6334             Bruno Haible  <bruno@clisp.org>
6335
6336         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6337
6338          - There were several instances of this pattern:
6339
6340              for (;;) {
6341                n = acl (f, GETACLCNT, 0, NULL);
6342                [ allocate an array A of size N ]
6343                if (acl (f, GETACL, n, a) == n)
6344                  break;
6345              }
6346
6347            This loop might never terminate if some other process is constantly
6348            manipulating the file's ACL.  The loop should be rewritten to
6349            terminate.
6350
6351          - The acl (... GETACLNT ...) call is merely an optimization; its value
6352            is merely a hint as to how big to make the array.  A better
6353            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6354            and just guess a reasonably-big size, growing the size and trying
6355            again if it's not large enough.  This guarantees termination, and
6356            saves a system call.
6357
6358         * lib/acl-internal.h: Include <limits.h>.
6359         (MIN, SIZE_MAX): New macros.
6360         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6361         a stack-allocated buffer, and use malloc if it does not fit. Don't
6362         use GETACLCNT.
6363         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6364
6365 2012-02-19  Bruno Haible  <bruno@clisp.org>
6366
6367         acl: Fix endless loop on Solaris with vxfs.
6368         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6369         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6370         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6371         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6372         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6373         Reported by Bill Jones in
6374         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6375
6376 2012-02-19  Bruno Haible  <bruno@clisp.org>
6377
6378         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6379         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6380         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6381         that this function returns 0 in some more cases.
6382
6383 2012-02-19  Bruno Haible  <bruno@clisp.org>
6384
6385         acl: Update doc references.
6386         * doc/acl-resources.txt: Update links to Solaris documentation.
6387
6388 2012-02-19  Bruno Haible  <bruno@clisp.org>
6389
6390         Fix test failure in many locales on Solaris 11.
6391         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6392         'tr' arguments.
6393         * tests/test-pipe-filter-ii1.c (main): Likewise.
6394         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6395         expressions in the C locale.
6396         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6397         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6398
6399 2012-02-19  Bruno Haible  <bruno@clisp.org>
6400
6401         gnulib-tool: Improve usage message.
6402         * gnulib-tool (func_usage): Move doc of --help and --version to the
6403         section "Operation modes".
6404
6405 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6406
6407         README-release: make it easier to execute commands
6408         * top/README-release: break commands out on to separate lines.
6409
6410 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6411
6412         GNUmakefile: simplify detection of unconfigured trees
6413         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6414         whether the tree make is being run from is already configured or
6415         not.  Related simplifications.
6416
6417 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6418
6419         * gnulib-tool (func_usage): Document --help and --version.
6420
6421 2012-02-11  Jim Meyering  <meyering@redhat.com>
6422
6423         bootstrap: don't exit 0 upon gnulib-tool failure
6424         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6425         its exit status, not 0.
6426
6427 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6428
6429         README-release: various improvements
6430         * top/README-release: Give a command to push changes for the
6431         release.  Add "distcheck" to list of other pre-release checks.
6432         Fix instance of "make stable" which should be "make TYPE".
6433
6434 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6435
6436         maint: replace FSF snail-mail addresses with URLs
6437         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6438         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6439         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6440         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6441         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6442         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6443         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6444         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6445         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6446         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6447         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6448         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6449         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6450         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6451         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6452         * lib/glthread/thread.c, lib/glthread/thread.h:
6453         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6454         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6455         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6456         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6457         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6458         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6459         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6460         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6461         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6462         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6463         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6464         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6465         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6466         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6467         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6468         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6469         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6470         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6471         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6472         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6473         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6474         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6475         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6476         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6477         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6478         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6479         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6480         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6481         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6482         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6483         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6484         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6485         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6486         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6487         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6488         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6489         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6490         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6491         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6492         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6493         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6494         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6495         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6496         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6497         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6498         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6499         * tests/test-poll.c, tests/test-quotearg-simple.c:
6500         * tests/test-quotearg.c, tests/test-quotearg.h:
6501         * tests/test-round-ieee.c, tests/test-round1.c:
6502         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6503         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6504         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6505         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6506         * tests/test-strerror.c, tests/test-strerror_r.c:
6507         * tests/test-strsignal.c, tests/test-strverscmp.c:
6508         * tests/test-xmemdup0.c:
6509         Replace FSF snail mail addresses with URLs, as per GNU coding
6510         standards.  See glibc bug
6511         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6512
6513 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6514
6515         README-release: capitalize a word and split a line
6516         * top/README-release: Fix punctuation and spacing.
6517
6518 2012-02-08  Akim Demaille  <demaille@gostai.com>
6519
6520         fatal-signal: use C prototypes (with explicit void).
6521         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6522         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6523
6524 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6525
6526         regex: spelling fix
6527         * lib/regexec.c: spelling fix
6528
6529         regex: rely on stdint.h for SIZE_MAX
6530         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6531
6532 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6533
6534         regex: merge glibc changes
6535
6536         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6537         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6538         (init_word_char): Work even if bitset words are not exactly 32 or
6539         64 bits wide.  Don't assume there are no padding bits.
6540         * lib/regex.c [_LIBC]: Do not include <config.h>.
6541         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6542         and -Wtype-limits.
6543         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6544         needless disagreement with glibc.  All uses changed.  Define it to
6545         1 only if _GNU_SOURCE, to match glibc.
6546         (_REG_RM_NAME): Remove; no longer needed, since the names in
6547         question are now all protected by __USE_GNU.
6548         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6549         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6550         * lib/regex_internal.h (MIN): New macro.
6551
6552         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6553         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6554
6555         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6556         * lib/regex_internal.c (re_string_fetch_byte_case):
6557         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6558         is miscompiled, and it turns out it is because of an incorrect
6559         attribute on re_string_fetch_byte_case.  Unlike
6560         re_string_peek_byte_case, this one is really not pure, it modifies
6561         memory (increments pstr->cur_idx), and with the pure attribute GCC
6562         assumed it doesn't and it cached the presumed value of
6563         regexp->cur_idx in a variable across the
6564          for (;; ++i)
6565            {
6566              if (i >= BRACKET_NAME_BUF_SIZE)
6567                return REG_EBRACK;
6568              if (token->type == OP_OPEN_CHAR_CLASS)
6569                ch = re_string_fetch_byte_case (regexp);
6570              else
6571                ch = re_string_fetch_byte (regexp);
6572              if (re_string_eoi(regexp))
6573                return REG_EBRACK;
6574              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6575                break;
6576              elem->opr.name[i] = ch;
6577            }
6578
6579         2011-11-29 Andreas Schwab <schwab@redhat.com>
6580         * lib/regcomp.c (build_equiv_class):
6581         Fix access after end of search string in regex matcher.
6582
6583         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6584         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
6585
6586         2011-10-12 Ulrich Drepper <drepper@redhat.com>
6587         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
6588
6589         2011-10-11 Ulrich Drepper <drepper@redhat.com>
6590         * lib/regcomp.c (parse_branch, parse_sub_exp):
6591         More regex memory leak fixes and tests.
6592         (parse_sub_exp, parse_bracket_exp):
6593         Fix memory leak for some invalid regular expressions.
6594
6595         2011-05-28 Ulrich Drepper <drepper@gmail.com>
6596         * lib/regex_internal.c, lib/regexec.c:
6597         Fix unnecessary overallocation due to incomplete character.  When
6598         incomplete characters are found at the end of a string the code
6599         ran amok and allocated lots of memory.  Stricter limits are now in
6600         place.
6601
6602         2011-05-20 Reuben Thomas <rrt@sc3d.org>
6603         * lib/regex.h: Update documentation.
6604
6605         2011-05-16 Aharon Robbins <arnold@skeeve.com>
6606         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
6607
6608         2010-05-05 Andreas Schwab <schwab@redhat.com>
6609         * lib/regexec.c (find_collation_sequence_value):
6610         Fix lookup of collation sequence value during regexp matching.
6611
6612         2010-01-22 Ulrich Drepper <drepper@redhat.com>
6613         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
6614
6615         2008-01-16 Ulrich Drepper <drepper@redhat.com>
6616         * lib/regex.h: Cleanup namespace.
6617
6618         2007-11-26 Ulrich Drepper <drepper@redhat.com>
6619         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
6620
6621         2007-08-26 Ulrich Drepper <drepper@redhat.com>
6622         * lib/regex_internal.h: Prevent some declarations and definitions
6623         to be seen when used in tests.
6624
6625         2005-05-06 Ulrich Drepper <drepper@redhat.com>
6626         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
6627         __libc_lock_* macros if not _LIBC.
6628         (struct re_dfa_t): Add lock.
6629
6630 2012-02-07  Eric Blake  <eblake@redhat.com>
6631
6632         maint.mk: also prohibit lower-case @var@
6633         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
6634         lower case, like @top_srcdir@.
6635
6636 2012-02-04  Eric Blake  <eblake@redhat.com>
6637
6638         canonicalize: avoid uninitialized memory use
6639         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
6640         random '/' left in dest.
6641         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
6642
6643 2012-02-04  Bruno Haible  <bruno@clisp.org>
6644
6645         isatty: Fix test failure of ptsname_r on native Windows.
6646         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
6647         and don't set errno.
6648         (isatty): Test first whether fd is valid. Set errno when returning 0.
6649
6650 2012-02-04  Bruno Haible  <bruno@clisp.org>
6651
6652         spawn-pipe tests: Fix a NULL program name in a diagnostic.
6653         * tests/test-spawn-pipe-main.c: Include progname.h.
6654         (main): Invoke set_program_name.
6655         * modules/spawn-pipe-tests (Depends-on): Add progname.
6656
6657         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
6658         * tests/test-nonblocking-socket-main.c: Include progname.h.
6659         (main): Invoke set_program_name.
6660         * modules/nonblocking-socket-tests (Depends-on): Add progname.
6661
6662         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
6663         * tests/test-nonblocking-pipe-main.c: Include progname.h.
6664         (main): Invoke set_program_name.
6665         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
6666
6667 2012-02-04  Eric Blake  <eblake@redhat.com>
6668
6669         canonicalize-lgpl: fix // handling
6670         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
6671
6672         canonicalize: fix // handling
6673         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
6674         /// to //, since only // is special.
6675
6676 2012-02-04  Bruno Haible  <bruno@clisp.org>
6677
6678         ioctl: Fix test failure on native Windows.
6679         * lib/ioctl.c: Include msvc-nothrow.h.
6680         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
6681
6682 2012-02-04  Bruno Haible  <bruno@clisp.org>
6683
6684         fsync: Avoid test failure on native Windows.
6685         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
6686         read-only.
6687
6688 2012-02-04  Bruno Haible  <bruno@clisp.org>
6689
6690         sys_select: Avoid syntax error on OpenBSD 5.0.
6691         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
6692         currently being included, just include the system's <sys/select.h>.
6693
6694 2012-02-04  Bruno Haible  <bruno@clisp.org>
6695
6696         sys_select: Avoid syntax error on OpenBSD 5.0.
6697         * lib/sys_select.in.h: Include <signal.h> only after the include_next
6698         <sys/select.h>, not before.
6699         Reported by Jiri B <jirib@devio.us>.
6700
6701 2012-02-04  Bruno Haible  <bruno@clisp.org>
6702
6703         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
6704         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
6705         global variables.
6706         * tests/test-get-rusage-data.c (main): Likewise.
6707         Reported by Jim Meyering.
6708
6709 2012-02-04  Bruno Haible  <bruno@clisp.org>
6710
6711         stdioext: Fix last commit.
6712         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
6713
6714 2012-02-03  Bruno Haible  <bruno@clisp.org>
6715
6716         stdioext: Add tentative support for Plan9.
6717         * lib/stdio-impl.h: Include <errno.h>.
6718         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
6719         * lib/freadable.c (freadable): Likewise.
6720         * lib/fwritable.c (fwritable): Likewise.
6721         * lib/fbufmode.c (fbufmode): Likewise.
6722         * lib/freading.c (freading): Likewise.
6723         * lib/fwriting.c (fwriting): Likewise.
6724         * lib/freadptr.c (freadptr): Likewise.
6725         * lib/freadseek.c (freadptrinc): Likewise.
6726         * lib/freadahead.c (freadahead): Likewise.
6727         * lib/fpurge.c (fpurge): Likewise.
6728         * lib/fseeko.c (rpl_fseeko): Likewise.
6729         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
6730         Reported by Jens Staal <staal1978@gmail.com>.
6731
6732 2012-02-02  Jim Meyering  <meyering@redhat.com>
6733
6734         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
6735         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
6736         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
6737         not even to try to add the attribute.  Instead, add a pragma to suppress
6738         the suggestion/warning.
6739
6740 2012-01-31  Karl Berry  <karl@gnu.org>
6741
6742         setstate doc: typo.
6743         * doc/posix-functions/setstate.texi (setstate): { not (.
6744
6745 2012-01-31  Bruno Haible  <bruno@clisp.org>
6746
6747         popen: Make more robust on Windows.
6748         * lib/popen.c: On native Windows, use the _popen based code even if
6749         HAVE_POPEN is set.
6750         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
6751         environment variable on native Windows.
6752
6753 2012-01-30  Bruno Haible  <bruno@clisp.org>
6754
6755         pclose: Fix typo.
6756         * lib/stdio.in.h (pclose): Fix typo in warning message.
6757
6758 2012-01-30  Bruno Haible  <bruno@clisp.org>
6759
6760         doc about getlogin_r, setstate.
6761         * doc/posix-functions/getlogin_r.texi: List the incompatible
6762         declaration problem under "not fixed by gnulib".
6763         * doc/posix-functions/setstate.texi: Mention incompatible declaration
6764         problem on Solaris 11 and other platforms.
6765
6766 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
6767             Bruno Haible  <bruno@clisp.org>
6768
6769         poll tests: Make test more robust.
6770         * tests/test-poll.c: Include macros.h.
6771         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
6772         return value of various I/O operations.
6773         * modules/poll-tests (Files): Add tests/macros.h.
6774
6775 2012-01-30  Bruno Haible  <bruno@clisp.org>
6776
6777         sys_stat: Fix support for mingw64 and MSVC.
6778         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
6779         header files already do it.
6780         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
6781         stat itself.
6782         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6783
6784 2012-01-30  Bruno Haible  <bruno@clisp.org>
6785
6786         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
6787         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
6788         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
6789
6790 2012-01-29  Bruno Haible  <bruno@clisp.org>
6791
6792         quotearg: Fix test failure on MacOS X 10.5.
6793         * tests/test-quotearg-simple.c: Include localcharset.h.
6794         (main): If the locale encoding is not ASCII, bypass the tests of
6795         locale_quoting_style and clocale_quoting_style.
6796         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
6797
6798 2012-01-29  Jim Meyering  <meyering@redhat.com>
6799
6800         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
6801         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
6802         detect uses of canonicalize_file_name.
6803
6804 2012-01-28  Bruno Haible  <bruno@clisp.org>
6805
6806         test-framework-sh: Fix test failure with AIX 7.1 diff.
6807         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
6808         in column 1, like 'diff -c' does.
6809         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
6810         whether 'diff -u' is used. Instead, test whether the output contains
6811         some '@' character.
6812
6813 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6814
6815         strtoimax: eliminate need for stdint.h, inttypes.h checks
6816         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
6817         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
6818         the prerequisites for a recently-introduced strtoimax test.
6819         I guess this might cause strtoimax to be replaced when not
6820         strictly necessary on older hosts, but this shouldn't introduce
6821         any bugs and it should make Emacs 'configure' faster on typical
6822         modern hosts.  Problem discovered when importing the latest gnulib
6823         to an Emacs test version.
6824         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
6825
6826 2012-01-28  Bruno Haible  <bruno@clisp.org>
6827
6828         sys_time: Override 'struct timeval' on some native Windows platforms.
6829         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
6830         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
6831         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
6832         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
6833         needs to be overridden.
6834         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
6835         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
6836         * tests/test-sys_select.c: Check that the tv_sec member has the same
6837         size as a 'time_t'.
6838         * tests/test-sys_time.c: Likewise.
6839         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
6840         is set, set also REPLACE_GETTIMEOFDAY.
6841         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
6842         convert the resulting 'struct timeval' before returning.
6843         * lib/select.c: Include <sys/time.h>.
6844         (select, timeval): Undefine at the right place.
6845         * modules/select (Depends-on): Add sys_time.
6846         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
6847         some Windows platforms.
6848         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6849
6850 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6851
6852         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
6853         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
6854         an integer.
6855         * lib/fcntl.c (dupfd): Likewise.
6856         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
6857
6858 2012-01-28  Bruno Haible  <bruno@clisp.org>
6859
6860         fcntl: Avoid compilation error on native Windows.
6861         * modules/fcntl (Depends-on): Add 'close'.
6862
6863 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6864
6865         select, poll, isatty: Avoid warnings on x86_64 mingw64.
6866         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
6867         pointer to an integer.
6868         * lib/poll.c (IsConsoleHandle): Likewise.
6869         * lib/isatty.c (IsConsoleHandle): Likewise.
6870
6871 2012-01-28  Jim Meyering  <meyering@redhat.com>
6872
6873         doc: clarify README-release
6874         * top/README-release: Clarify: you should make a point to have
6875         the latest stable versions of build tools in your PATH, and the
6876         reference to buildreq is solely for its list of tool names, not
6877         for its minimal-functional version numbers.
6878         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
6879
6880         maint.mk: use more readable (yet functionally equivalent) quoting
6881         It is common to quote a single quote in a single quoted string like
6882         this:  '...'\''...'.  Unless you know the idiom, that looks like
6883         gibberish, so prefer to double-quote the string when possible.
6884         Then you can use a more readable, lone single quote: "...'..."
6885         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
6886         "don't" is more readable than the equivalent 'don'\''t'.
6887         (sc_cast_of_x_alloc_return_value): Likewise.
6888         (sc_cast_of_alloca_return_value): Likewise.
6889         (sc_makefile_path_separator_check): Similar: use ":" in '...',
6890         rather than '\'':'\''.
6891
6892 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6893
6894         stdalign: relax _Alignof and tighten _Alignas test
6895         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
6896         as it was too strict: alignof must divide offsetof, but it need
6897         not equal offsetof.  Inspired by Joseph S. Myers's comment
6898         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
6899         Conversely, tighten the _Alignas test a bit, as the resulting
6900         alignment must be exactly 8.
6901
6902 2012-01-27  Bruno Haible  <bruno@clisp.org>
6903
6904         stdalign: Document the last change.
6905         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
6906
6907 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6908
6909         stdalign: check that alignof and offsetof are consistent
6910         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
6911         Problem reported for gnulib by Richard W.M. Jones in
6912         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
6913
6914 2012-01-27  Jim Meyering  <meyering@redhat.com>
6915
6916         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
6917         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
6918         convert a sequence with gaps to the minimal containing range.
6919         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
6920         * tests/test-update-copyright.sh: Test for this.
6921         The FSF confirmed it is ok to do this, assuming there is at
6922         least one significant change per year in the affected range:
6923         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
6924
6925 2012-01-26  Bruno Haible  <bruno@clisp.org>
6926
6927         pipe2: refine doc about thread-safety
6928         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
6929         multithread-safety problem.
6930         * doc/glibc-functions/accept4.texi: Likewise.
6931
6932 2012-01-26  Bruno Haible  <bruno@clisp.org>
6933
6934         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
6935         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
6936         In the test program, include <fcntl.h>, for O_RDONLY.
6937
6938 2012-01-26  Eric Blake  <eblake@redhat.com>
6939
6940         pipe2: document lack of thread-safety in replacement
6941         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
6942         issue in replacement.
6943         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6944         Based on a report by Eric Wong.
6945
6946 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6947             Bruno Haible  <bruno@clisp.org>
6948
6949         malloca: Avoid warnings on x86_64 mingw64.
6950         * lib/malloca.c: Include <stdint.h>.
6951         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
6952         * modules/malloca (Depends-on): Add stdint.
6953         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
6954
6955 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6956
6957         obstack: remove __STDC__ conditionals
6958         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
6959         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
6960         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
6961         m4/include_next.m4 as the only gnulib-maintained places that still
6962         refer to __STDC__.
6963
6964 2012-01-24  Bruno Haible  <bruno@clisp.org>
6965
6966         havelib: Modern quoting.
6967         * build-aux/config.rpath: Quote 'like this', not `like this', as per
6968         the recent change to the GNU coding standards.
6969
6970 2012-01-24  Bruno Haible  <bruno@clisp.org>
6971
6972         stdint: Improve support for Android.
6973         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
6974         Reported by Simon Josefsson <simon@josefsson.org>.
6975
6976 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6977
6978         doc: omit trailing empty lines from INSTALL etc.
6979         * doc/Makefile (INSTALL): Omit trailing empty lines.
6980         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
6981         omit trailing empty lines.  This simplifies the build procedure.
6982
6983 2012-01-23  Jim Meyering  <meyering@redhat.com>
6984
6985         tests: avoid spurious warnings about gl_sockets_startup
6986         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
6987         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
6988         reporting a "statement with no effect".
6989         * tests/test-accept.c (main): Mark as "(void)".
6990         * tests/test-accept4.c (main): Likewise.
6991         * tests/test-bind.c (main): Likewise.
6992         * tests/test-connect.c (main): Likewise.
6993         * tests/test-getpeername.c (main): Likewise.
6994         * tests/test-getsockname.c (main): Likewise.
6995         * tests/test-getsockopt.c (main): Likewise.
6996         * tests/test-listen.c (main): Likewise.
6997         * tests/test-recv.c (main): Likewise.
6998         * tests/test-recvfrom.c (main): Likewise.
6999         * tests/test-send.c (main): Likewise.
7000         * tests/test-sendto.c (main): Likewise.
7001         * tests/test-setsockopt.c (main): Likewise.
7002         * tests/test-shutdown.c (main): Likewise.
7003
7004 2012-01-21  Bruno Haible  <bruno@clisp.org>
7005
7006         locale-fr.m4: Fix for Android.
7007         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7008         failure of the test program on Bionic libc.
7009
7010 2012-01-21  Jim Meyering  <meyering@redhat.com>
7011
7012         bootstrap: fail when bootstrap_post_import_hook fails
7013         Otherwise, it's far too easy to miss diagnostics emitted
7014         between gnulib-tool's output and that of running configure.
7015         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7016
7017 2012-01-17  Jim Meyering  <meyering@redhat.com>
7018
7019         maint: enable sc_trailing_blank
7020         * build-aux/pmccabe.css: Remove trailing blanks.
7021         * doc/acl-cygwin.txt: Likewise.
7022         * doc/gnu-oids.texi: Likewise
7023         * cfg.mk: Enable sc_trailing_blank.
7024         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7025
7026 2012-01-17  Jim Meyering  <meyering@redhat.com>
7027
7028         maint: enable sc_prohibit_openat_without_use
7029         * cfg.mk: Enable sc_prohibit_openat_without_use.
7030         Exempt lib/selinux-at.c.
7031
7032 2012-01-17  Jim Meyering  <meyering@redhat.com>
7033
7034         maint: enable sc_prohibit_cloexec_without_use
7035         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7036         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7037
7038 2012-01-17  Jim Meyering  <meyering@redhat.com>
7039
7040         maint: enable sc_prohibit_intprops_without_use
7041         * cfg.mk: Enable sc_prohibit_intprops_without_use
7042         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7043
7044 2012-01-17  Jim Meyering  <meyering@redhat.com>
7045
7046         maint: enable sc_prohibit_hash_pjw_without_use
7047         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7048         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7049         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7050         following " (".
7051
7052 2012-01-17  Jim Meyering  <meyering@redhat.com>
7053
7054         maint: enable double-word-prohibiting rule
7055         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7056         Exempt three files.
7057
7058 2012-01-17  Jim Meyering  <meyering@redhat.com>
7059
7060         maint: remove empty lines at EOF, but excluding modules/*
7061         Apply syntax rules at home as well as abroad.  Most changes
7062         were induced by running this:
7063           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7064             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7065             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7066         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7067         Exempt modules/* and two binary files.
7068         Also exempt doc/INSTALL*, per request from Bruno Haible.
7069         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7070         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7071         * doc/Copyright/request-assign.future: Likewise.
7072         * doc/Copyright/request-disclaim.changes: Likewise.
7073         * doc/INSTALL: Likewise.
7074         * doc/INSTALL.ISO: Likewise.
7075         * doc/INSTALL.UTF-8: Likewise.
7076         * doc/acl-cygwin.txt: Likewise.
7077         * doc/acl-resources.txt: Likewise.
7078         * doc/fdl-1.2.texi: Likewise.
7079         * doc/fdl-1.3.texi: Likewise.
7080         * doc/fdl.texi: Likewise.
7081         * lib/argp-pin.c: Likewise.
7082         * lib/round.c: Likewise.
7083         * lib/unicase/u16-totitle.c: Likewise.
7084         * lib/unictype/block_test.c: Likewise.
7085         * lib/uninorm/canonical-decomposition.c: Likewise.
7086         * m4/README: Likewise.
7087         * m4/relocatable-lib.m4: Likewise.
7088         * tests/test-isnand-nolibm.c: Likewise.
7089         * tests/test-isnand.c: Likewise.
7090         * tests/uninorm/NormalizationTest.txt: Likewise.
7091
7092 2012-01-17  Jim Meyering  <meyering@redhat.com>
7093
7094         maint: add framework to run syntax-check rules against gnulib sources
7095         * cfg.mk: New file, to disable all currently-failing tests.
7096         We'll enable them one by one, as they are made to pass.
7097         * Makefile (sc_maint): New rule.
7098
7099 2012-01-21  Bruno Haible  <bruno@clisp.org>
7100
7101         stdint: Add support for Android.
7102         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7103         include the system's <stdint.h>.
7104         Reported by Simon Josefsson <simon@josefsson.org>.
7105
7106 2012-01-19  Jim Meyering  <meyering@redhat.com>
7107
7108         bootstrap: add bootstrap_post_import_hook
7109         Bison does still need something like the gnulib_mk_hook whose
7110         invocation I had to remove along with slurp in commit 767ccd40.
7111         Technically, we could get along without it, but doing so would
7112         have required living with a warning and a mandatory post-bootstrap
7113         automake rerun.
7114         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7115         (bootstrap_post_import_hook): New function.
7116         Invoke it after gnulib-tool --import and before autoreconf.
7117
7118 2012-01-18  Jim Meyering  <meyering@redhat.com>
7119
7120         gitlog-to-changelog: don't use "no_"-prefixed variable name
7121         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7122         to enable both --cluster and --no-cluster.  Change variable name,
7123         s/\$no_cluster/$cluster/, and reverse usage to match.
7124
7125         gitlog-to-changelog: use "||", not "or" in expressions
7126         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7127         expressions.
7128
7129 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7130
7131         gitlog-to-changelog: new option --no-cluster
7132         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7133         clustering of adjacent commit messages.
7134
7135 2012-01-17  Jim Meyering  <meyering@redhat.com>
7136
7137         maint: spell file systems with two words, not one
7138         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7139         two words, not one.
7140
7141 2012-01-16  Jim Meyering  <meyering@redhat.com>
7142
7143         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7144         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7145
7146 2012-01-16  Eric Blake  <eblake@redhat.com>
7147
7148         bootstrap: cater to autoconf 2.59
7149         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7150         is not available.
7151
7152         bootstrap: properly check for libtool
7153         * build-aux/bootstrap (libtoolize): Also run libtool when older
7154         usage is detected.
7155
7156 2012-01-15  Bruno Haible  <bruno@clisp.org>
7157
7158         Improve support for MSVC 9.
7159         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7160         clashes on MSVC.
7161         * lib/fcntl.in.h: Likewise.
7162         * lib/stdlib.in.h: Likewise.
7163         * lib/sys_stat.in.h: Likewise.
7164
7165 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7166
7167         gnupload: we hold the master copy of this script now
7168         For motivation and more information, see:
7169         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7170         * build-aux/gnupload: Make it clear in the heading comments that the
7171         master copy of this file is maintained by gnulib.  Since we are at
7172         it, bump its copyright year and ...
7173         ($scriptversion): ... the date in its version.
7174         ($usage): Patches and bug reports should be sent to the gnulib list,
7175         not the automake one.
7176         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7177         anymore.
7178
7179 2012-01-15  Bruno Haible  <bruno@clisp.org>
7180
7181         Fix module 'random'.
7182         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7183         initstate, setstate are declared.
7184
7185 2012-01-14  Bruno Haible  <bruno@clisp.org>
7186
7187         Tests for module 'random'.
7188         * modules/random-tests: New file.
7189         * tests/test-random.c: New file, based on tests/test-random_r.c.
7190
7191         New module 'random'.
7192         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7193         declarations.
7194         * lib/random.c: New file, based on glibc/stdlib/random.c.
7195         * m4/random.m4: New file.
7196         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7197         HAVE_RANDOM.
7198         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7199         * modules/random: New file.
7200         * config/srclist.txt: Add an entry for random.c.
7201         * doc/posix-functions/random.texi: Mention the 'random' module.
7202         * doc/posix-functions/initstate.texi: Likewise.
7203         * doc/posix-functions/setstate.texi: Likewise.
7204         * doc/posix-functions/srandom.texi: Likewise.
7205
7206 2012-01-12  Bruno Haible  <bruno@clisp.org>
7207
7208         random_r: Use common idioms.
7209         * lib/random_r.c: Include <stdlib.h> first.
7210
7211         random_r: Override incompatible API on AIX, OSF/1.
7212         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7213         Override the system function if REPLACE_RANDOM_R is 1.
7214         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7215         and OSF/1, set REPLACE_RANDOM_R.
7216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7217         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7218         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7219         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7220         * doc/glibc-functions/random_r.texi: Likewise.
7221         * doc/glibc-functions/setstate_r.texi: Likewise.
7222
7223         random_r: Support for MSVC 9.
7224         * lib/random_r.c: Include stdint.h, not inttypes.h.
7225
7226 2012-01-12  Eric Blake  <eblake@redhat.com>
7227
7228         inet_ntop: guard extra work by IF_LINT
7229         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7230         better code generation when not checking for warnings.
7231         Suggested by Paul Eggert and Jim Meyering.
7232
7233         strptime: fix regression on mingw
7234         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7235         Fix regression.  Reported by Bruno Haible.
7236
7237 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7238             Bruno Haible  <bruno@clisp.org>
7239
7240         copy-file: add error-code-returning variant.
7241         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7242         (qcopy_file_preserving): New declaration.
7243         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7244         copy_file_preserving. Change return type to 'int'. Don't emit an error
7245         message here.
7246         (copy_file_preserving): New function.
7247         * tests/test-copy-file.c: Include <stdlib.h>.
7248         (main): Test qcopy_file_preserving if the environment variable
7249         NO_STDERR_OUTPUT is set.
7250         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7251         with NO_STDERR_OUTPUT
7252         * tests/test-copy-file-2.sh: Likewise.
7253
7254 2012-01-10  Bruno Haible  <bruno@clisp.org>
7255
7256         copy-file: Use 'quote' module consistently.
7257         * lib/copy-file.c (copy_file_preserving): Use quote().
7258
7259         copy-file: Refactor.
7260         * lib/copy-file.c: Include quote.h.
7261         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7262         message here.
7263         * modules/copy-file (Depends-on): Add quote.
7264
7265         acl: Export qcopy_acl.
7266         * lib/acl.h (qcopy_acl): New declaration.
7267         * lib/copy-acl.c (qcopy_acl): Make non-static.
7268
7269         acl: Rename a local variable.
7270         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7271
7272         acl: Align return values of copy_acl and qcopy_acl.
7273         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7274         maybe < -1.
7275
7276 2012-01-11  Eric Blake  <eblake@redhat.com>
7277
7278         strptime: silence gcc warnings
7279         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7280         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7281         Reported by Daniel P. Berrange.
7282
7283         inet_ntop: silence gcc warning
7284         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7285         Reported by Daniel P. Berrange.
7286
7287 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7288
7289         getloadavg test: skip the test on GNU/Linux without /proc mounted
7290         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7291         file.  When /proc is not mounted, it always fails with ENOENT.
7292         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7293         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7294
7295 2012-01-10  Bruno Haible  <bruno@clisp.org>
7296
7297         regex: Avoid link error on MSVC 9.
7298         * modules/regex (Depends-on): Add wctype.
7299
7300 2012-01-10  Bruno Haible  <bruno@clisp.org>
7301
7302         doc: Mention --with-tests option.
7303         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7304         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7305         --with-tests.
7306         Reported by Reuben Thomas.
7307
7308 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7309
7310         users.txt: order package names lexicographically.
7311         * users.txt: Order package names lexicographically.
7312
7313 2012-01-10  Jim Meyering  <meyering@redhat.com>
7314
7315         maint.mk: fix description in comment
7316         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7317
7318         ignore-value: remove deprecated ignore_ptr function
7319         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7320         * NEWS: Note this.
7321
7322 2012-01-09  Jim Meyering  <meyering@redhat.com>
7323
7324         test-init.sh: avoid a subshell
7325         * tests/test-init.sh: Remove protective subshell.
7326         Suggested by Bernhard Voelker.  While a subshell is normally
7327         required to protect against older shells (Solaris, FreeBSD) that
7328         warn about a missing program before performing redirection, the
7329         shell-selection tests performed by init.sh probably exclude any
7330         offending shell.
7331
7332 2012-01-08  Bruno Haible  <bruno@clisp.org>
7333
7334         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7335         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7336         variable.
7337
7338 2012-01-08  Bruno Haible  <bruno@clisp.org>
7339
7340         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7341         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7342         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7343         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7344         macro.
7345         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7346         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7347         * lib/spawn_faction_addopen.c: Add workaround implementation if
7348         HAVE_WORKING_POSIX_SPAWN.
7349         * modules/spawn (Makefile): Substitute
7350         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7351         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7352         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7353         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7354         (Depends-on): Update conditions.
7355         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7356         the Solaris 11 bug.
7357
7358 2012-01-08  Bruno Haible  <bruno@clisp.org>
7359
7360         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7361         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7362         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7363         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7364         macro.
7365         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7366         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7367         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7368         HAVE_WORKING_POSIX_SPAWN.
7369         * modules/spawn (Makefile): Substitute
7370         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7371         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7372         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7373         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7374         (Depends-on): Update conditions.
7375         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7376         the Solaris 11 bug.
7377
7378 2012-01-08  Bruno Haible  <bruno@clisp.org>
7379
7380         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7381         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7382         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7383         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7384         HAVE_WORKING_POSIX_SPAWN.
7385         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7386         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7387         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7388         * lib/spawn_faction_addclose.c: Add workaround implementation if
7389         HAVE_WORKING_POSIX_SPAWN.
7390         * modules/spawn (Makefile): Substitute
7391         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7392         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7393         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7394         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7395         (Depends-on): Update conditions.
7396         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7397         the Solaris 11 bug.
7398
7399 2012-01-08  Bruno Haible  <bruno@clisp.org>
7400
7401         doc: Update for Solaris 11 2011-11.
7402         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7403         * m4/printf.m4: Update comments.
7404
7405 2012-01-08  Bruno Haible  <bruno@clisp.org>
7406
7407         mktime: Avoid compilation error on Solaris 11.
7408         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7409
7410 2012-01-08  Bruno Haible  <bruno@clisp.org>
7411
7412         doc: Small fix.
7413         * doc/posix-headers/nl_types.texi: Correct platforms list.
7414
7415 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7416
7417         Add lgpl-3.0 module.
7418         * MODULES.html.sh (Support for building documentation): Add
7419         lgpl-3.0.
7420         * modules/lgpl-3.0: New file.
7421
7422 2012-01-08  Jim Meyering  <meyering@redhat.com>
7423
7424         select.c: indent with spaces, not TABs
7425         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7426
7427 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7428
7429         quotearg: do not use grave accent for left quote
7430         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7431         locale_quoting_style.
7432         (quotearg_buffer_restyled): Fix example.
7433         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7434
7435 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7436
7437         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7438         Most programs do not have translation catalogs for English and much
7439         less separate catalogs for British and American English.  Drop the
7440         suggestion to translators about these two, and provide it
7441         automatically for Unicode locales.  Like most programs, even those
7442         using American English, we use single quotation marks.  This conflicts
7443         with the American typographic convention, but works better when you
7444         cite the entire error message within double quotes.  It also tries not
7445         to clash with established practice and with what non-gnulib programs
7446         will usually do.
7447         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7448         using an UTF-8 or GB-18030 locale.  The list of other locales with
7449         quotes was provided by Bruno Haible.
7450         (quotearg_buffer_restyled): Adjust instructions to translators.
7451         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7452         text, since this would be wrong when using Unicode.
7453         * modules/quotearg: Depend on c-strcaseeq.
7454
7455 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7456
7457         quotearg: fix Wikipedia link
7458         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7459
7460 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7461
7462         Fix for mingw with MSVC9.
7463         * m4/ld-version-script.m4: Check that compiler rejects version
7464         scripts with syntax errors.  Reported by Bruno Haible
7465         <bruno@clisp.org>.
7466
7467 2012-01-06  Bruno Haible  <bruno@clisp.org>
7468
7469         Talk about "native Windows API", not "Woe32".
7470         * lib/accept4.c: Update comments to mention native Windows.
7471         * lib/execute.c: Likewise.
7472         * lib/fatal-signal.c: Likewise.
7473         * lib/localcharset.c: Likewise.
7474         * lib/nanosleep.c: Likewise.
7475         * lib/nl_langinfo.c: Likewise.
7476         * lib/pclose.c: Likewise.
7477         * lib/pipe-filter-gi.c: Likewise.
7478         * lib/pipe-filter-ii.c: Likewise.
7479         * lib/pipe.c: Likewise.
7480         * lib/pipe2.c: Likewise.
7481         * lib/popen.c: Likewise.
7482         * lib/progreloc.c: Likewise.
7483         * lib/relocatable.c: Likewise.
7484         * lib/sigaction.c: Likewise.
7485         * lib/sigprocmask.c: Likewise.
7486         * lib/spawn-pipe.h: Likewise.
7487         * lib/spawn-pipe.c: Likewise.
7488         * lib/spawni.c: Likewise.
7489         * lib/stat-time.h: Likewise.
7490         * lib/w32spawn.h: Likewise.
7491         * tests/test-isatty.c: Likewise.
7492         * lib/config.charset: More comments.
7493         * doc/gnulib-intro.texi: Mention native Windows.
7494         * doc/posix-functions/_Exit_C99.texi: Likewise.
7495         * doc/posix-headers/fcntl.texi: Likewise.
7496
7497 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7498
7499         argp: Avoid crash if translator uses % characters in a translation.
7500         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7501         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7502
7503 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7504
7505         doc: C11 and C++11 are now official
7506         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7507         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7508         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7509         * modules/stdalign:
7510         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7511
7512 2012-01-06  Bruno Haible  <bruno@clisp.org>
7513
7514         uc-is-grapheme-break tests: Tweak.
7515         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7516         message.
7517
7518 2012-01-06  Bruno Haible  <bruno@clisp.org>
7519
7520         test-init.sh: correct the test for diff -u
7521         * tests/test-init.sh: Also redirect stdout to /dev/null.
7522
7523 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7524
7525         Use ', not `, for quoting output.
7526         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7527         (print_changelog_deltas, get_tool_versions, main program):
7528         * build-aux/git-version-gen:
7529         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7530         * build-aux/move-if-change (help):
7531         * build-aux/useless-if-before-free (usage, main program):
7532         * check-module (parse_module_file, usage)
7533         (find_included_lib_files, check_module):
7534         * lib/argmatch.c (main) [TEST]:
7535         * lib/argp-help.c (_help):
7536         * lib/getopt1.c (main) [TEST]:
7537         * lib/git-merge-changelog.c (usage):
7538         * lib/xstrtol-error.c (xstrtol_error):
7539         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7540         * m4/argz.m4 (gl_FUNC_ARGZ):
7541         * m4/bison.m4 (gl_BISON):
7542         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7543         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7544         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7545         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7546         * m4/gc-random.m4 (gl_GC_RANDOM):
7547         * m4/intl.m4 (gt_CHECK_DECL):
7548         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7549         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7550         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7551         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7552         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7553         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7554         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7555         * tests/test-dirname.c (main):
7556         * tests/test-getpass.c (main):
7557         * tests/test-iconvme.c (main):
7558         * tests/test-parse-datetime.c (LOG):
7559         * tests/test-xstrtoimax.sh:
7560         * tests/test-xstrtol.sh:
7561         * tests/test-xstrtoll.sh:
7562         * tests/test-xstrtoumax.sh:
7563         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7564         * top/GNUmakefile (abort-due-to-no-makefile):
7565         Quote 'like this', not `like this', as per the recent change to
7566         the GNU coding standards.
7567
7568 2012-01-05  Bruno Haible  <bruno@clisp.org>
7569
7570         strtoimax: Don't force a replacement on systems where intmax_t is int.
7571         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7572         'intmax_t' is not larger than 'int'.
7573         Reported by Pádraig Brady <P@draigBrady.com>.
7574
7575 2012-01-05  Bruno Haible  <bruno@clisp.org>
7576
7577         doc: Mention NetBSD bugs.
7578         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7579         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7580
7581 2012-01-05  Bruno Haible  <bruno@clisp.org>
7582
7583         strtoumax tests: Enhance tests.
7584         * tests/test-strtoumax.c (main): Add tests for large values.
7585
7586 2012-01-05  Bruno Haible  <bruno@clisp.org>
7587
7588         strtoimax: Work around AIX 5.1 bug.
7589         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
7590         definition.
7591         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
7592         Set HAVE_STRTOIMAX.
7593         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
7594         REPLACE_STRTOIMAX.
7595         * modules/inttypes-incomplete (Makefile.am): Substitute
7596         REPLACE_STRTOIMAX.
7597         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
7598         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
7599         (Depends-on): Update conditions.
7600         * tests/test-strtoimax.c (main): Add tests for large values.
7601         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
7602
7603 2012-01-05  Bruno Haible  <bruno@clisp.org>
7604
7605         inttypes: Modernize.
7606         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
7607         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
7608         (Makefile.am): Update inttypes.h rule.
7609
7610 2012-01-05  Jim Meyering  <meyering@redhat.com>
7611
7612         init.sh: don't waste a subshell just to redirect stderr
7613         * tests/init.sh: In testing for diff -u and diff -c, use a
7614         stderr-redirecting exec inside `...` rather than a subshell.
7615
7616         test-init.sh: avoid failure on HP-UX 11.00
7617         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
7618         resolves to diff -c or cmp.  Reported by Bruno Haible.
7619
7620 2012-01-05  Bruno Haible  <bruno@clisp.org>
7621
7622         Tests for module 'strtoull'.
7623         * modules/strtoull-tests: New file.
7624         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
7625
7626 2012-01-05  Bruno Haible  <bruno@clisp.org>
7627
7628         Tests for module 'strtoll'.
7629         * modules/strtoll-tests: New file.
7630         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
7631
7632 2012-01-05  Bruno Haible  <bruno@clisp.org>
7633
7634         Tests for module 'strtoul'.
7635         * modules/strtoul-tests: New file.
7636         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
7637
7638 2012-01-05  Bruno Haible  <bruno@clisp.org>
7639
7640         Tests for module 'strtol'.
7641         * modules/strtol-tests: New file.
7642         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
7643
7644 2012-01-04  Jim Meyering  <meyering@redhat.com>
7645
7646         test-init.sh: accommodate Solaris 5.10's different diff -u output
7647         * tests/test-init.sh: Also exempt @@ lines from the comparison
7648         of diff output, since Solaris 5.10 and GNU diff formats differ.
7649         Reported by Stefano Lattarini.
7650
7651 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7652
7653         test-posixtm: don't assume signed integer wraparound
7654         * tests/test-posixtm.c (main): Don't assume wraparound semantics
7655         after signed integer overflow.  Inspired by (though it may not
7656         fix) Bruno Haible's bug report in
7657         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
7658
7659         Spell out "Windows 9x" and "Windows XP".
7660         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
7661         "Windows 9x" and "WinXP" with "Windows XP".
7662
7663 2012-01-04  Jim Meyering  <meyering@redhat.com>
7664
7665         test-vc-list-files-cvs.sh: remove obsolete comment
7666         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
7667         double exit.  Now that's all encapsulated via skip_ and Exit.
7668
7669 2012-01-04  Bruno Haible  <bruno@clisp.org>
7670
7671         Talk about "native Windows API", not "Win32".
7672         * lib/classpath.c: Update comments to mention native Windows.
7673         * lib/csharpexec.c: Likewise.
7674         * lib/dup2.c: Likewise.
7675         * lib/error.c: Likewise.
7676         * lib/fcntl.c: Likewise.
7677         * lib/filename.h: Likewise.
7678         * lib/findprog.c: Likewise.
7679         * lib/get-rusage-as.c: Likewise.
7680         * lib/get-rusage-data.c: Likewise.
7681         * lib/getpagesize.c: Likewise.
7682         * lib/javaexec.c: Likewise.
7683         * lib/msvc-inval.c: Likewise.
7684         * lib/msvc-nothrow.c: Likewise.
7685         * lib/nanosleep.c: Likewise.
7686         * lib/nonblocking.c: Likewise.
7687         * lib/printf-parse.c: Likewise.
7688         * lib/setlocale.c: Likewise.
7689         * lib/sigaction.c: Likewise.
7690         * lib/strerror_r.c: Likewise.
7691         * lib/tmpdir.c: Likewise.
7692         * lib/vasnprintf.c: Likewise.
7693         * lib/w32spawn.h: Likewise.
7694         * lib/waitpid.c: Likewise.
7695         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
7696         * m4/locale-ar.m4: Likewise.
7697         * m4/locale-fr.m4: Likewise.
7698         * m4/locale-ja.m4: Likewise.
7699         * m4/locale-tr.m4: Likewise.
7700         * m4/locale-zh.m4: Likewise.
7701         * m4/printf.m4: Likewise.
7702         * tests/test-cloexec.c: Likewise.
7703         * tests/test-copy-acl.sh: Likewise.
7704         * tests/test-copy-file.sh: Likewise.
7705         * tests/test-file-has-acl.sh: Likewise.
7706         * tests/test-set-mode-acl.sh: Likewise.
7707         * tests/test-dup-safer.c: Likewise.
7708         * tests/test-dup2.c: Likewise.
7709         * tests/test-dup3.c: Likewise.
7710         * tests/test-fcntl.c: Likewise.
7711         * tests/test-nonblocking-pipe.h: Likewise.
7712         * tests/test-nonblocking-socket.h: Likewise.
7713         * tests/test-pipe.c: Likewise.
7714         * tests/test-pipe2.c: Likewise.
7715         * tests/test-spawn-pipe-child.c: Likewise.
7716         * doc/acl-resources.txt: Likewise.
7717         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7718         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
7719         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
7720         * lib/localcharset.c: Update comments to mention native Windows.
7721         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7722         * lib/localename.c: Likewise.
7723         * lib/progreloc.c: Likewise.
7724         * lib/relocatable.c: Likewise.
7725         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7726         (windows_compute_revents): Renamed from win32_compute_revents.
7727         (windows_compute_revents_socket): Renamed from
7728         win32_compute_revents_socket.
7729         * lib/select.c: Update comments to mention native Windows.
7730         (windows_poll_handle): Renamed from win32_poll_handle.
7731         * m4/threadlib.m4: Update comments to mention native Windows.
7732         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
7733         --enable-threads=windows instead of --enable-threads=win32. Set
7734         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
7735         * lib/glthread/lock.h: Update comments to mention native Windows.
7736         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
7737         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
7738         USE_WIN32_THREADS.
7739         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
7740         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
7741         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
7742         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
7743         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
7744         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
7745         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
7746         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
7747         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
7748         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
7749         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
7750         * tests/test-tls.c: Likewise.
7751         Rationale:
7752         Microsoft renamed the "Win32 API" to "Windows API", as it is available
7753         on both 32-bit and 64-bit Windows systems.
7754         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
7755         line of distinction is between "native Windows" on one side and Unix/
7756         POSIX systems on the other side. More details in
7757         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
7758         Suggested by Paul Eggert.
7759
7760 2012-01-03  Bruno Haible  <bruno@clisp.org>
7761
7762         isatty: Support for MSVC 9.
7763         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
7764         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
7765         (_isatty_nothrow): New function.
7766         (isatty): Use it instead of _isatty.
7767         (IsConsoleHandle): Add comment, from Paolo Bonzini.
7768         * lib/poll.c (IsConsoleHandle): Likewise.
7769         * lib/select.c (IsConsoleHandle): Likewise.
7770         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
7771         (gl_PREREQ_ISATTY): New macro.
7772         * modules/isatty (Depends-on): Add msvc-inval.
7773         (configure.ac): Invoke gl_PREREQ_ISATTY.
7774
7775 2012-01-03  Jim Meyering  <meyering@redhat.com>
7776
7777         maint.mk: remove temporary transition aid from over 1.5 years ago
7778         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
7779         purpose was to aid in the transition (avoiding silent malfunction)
7780         from that old name to the new _sc_search_regexp.  This shim was
7781         added by commit 219c504b.
7782
7783         init.sh: do not try to accommodate compare arguments starting with "-"
7784         * tests/init.sh (compare_dev_null_): Do not try to accommodate
7785         compare arguments that start with "-".  Besides, we do not worry
7786         about this when invoking diff or cmp; why start now with sed?
7787         Using "--" to separate options from argument would trigger sed
7788         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
7789         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
7790
7791 2012-01-02  Bruno Haible  <bruno@clisp.org>
7792
7793         Enhance tests for module 'isatty'.
7794         * modules/isatty-tests (Depends-on): Add pipe-posix.
7795         * tests/test-isatty.c: Include <fcntl.h>.
7796         (DEV_NULL): New macro.
7797         (main): Test the resut of isatty() also on regular files, pipes, and
7798         /dev/null.
7799
7800         New module 'isatty'.
7801         * lib/unistd.in.h (isatty): New declaration.
7802         * lib/isatty.c: New file, based on an idea of
7803         Bastien Roucariès <roucaries.bastien@gmail.com>.
7804         * m4/isatty.m4: New file.
7805         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
7806         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
7807         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
7808         REPLACE_ISATTY.
7809         * modules/isatty: New file.
7810         * doc/posix-functions/isatty.texi: Mention the new module.
7811         Suggested by Paolo Bonzini.
7812
7813 2012-01-02  Bruno Haible  <bruno@clisp.org>
7814
7815         canonicalize: Tweak 2011-12-29 commit.
7816         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
7817         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
7818
7819 2012-01-02  Jim Meyering  <meyering@redhat.com>
7820
7821         gitlog-to-changelog: describe input syntax in --help output
7822         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
7823
7824         gitlog-to-changelog: fix typo in --help: show backslash before email @
7825         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
7826         in sources, but not in actual output.
7827
7828 2011-12-30  Jim Meyering  <meyering@redhat.com>
7829
7830         gitlog-to-changelog: don't malfunction when name contains %-directive
7831         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
7832         in a name string cause trouble.  E.g., with a user name of "%s",
7833         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
7834
7835 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
7836
7837         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
7838         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
7839         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
7840         the "  (tiny change)" notation that is appended to the standard
7841         ChangeLog "date  name  email" header line.
7842
7843 2012-01-01  Jim Meyering  <meyering@redhat.com>
7844
7845         test-framework-sh: init.sh: fix "make dist" failure
7846         When using gnulib-tool's --with-tests option and any module that
7847         depends on test-framework-sh, "make dist" would fail due to the
7848         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
7849         in the gltests directory, and not in the gllib/ directory.
7850         One way to work around that is to move the EXTRA_DIST += init.sh
7851         from the primary module to the -tests one:
7852         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
7853         * modules/test-framework-sh (Makefile.am): ...not here.
7854         Reported by Tom G. Christensen in
7855         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
7856
7857         version-etc: update copyright year reported by --version
7858         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
7859
7860 2011-12-31  Pádraig Brady  <P@draigBrady.com>
7861
7862         canonicalize: only stat() if required
7863         * lib/canonicalize.c (canonicalize_filename_mode):
7864         Avoid calling l?stat() when both CAN_MISSING,
7865         and CAN_NOLINKS are set, as we neither need
7866         to resolve symlinks or test component existence.
7867
7868 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7869
7870         doc: cover st_ino issues once; add OpenVMS etc.
7871         * doc/posix-functions/stat.texi (stat):
7872         * doc/posix-functions/lstat.texi (lstat):
7873         * doc/posix-functions/fstatat.texi (fstatat):
7874         * doc/posix-functions/fstat.texi (fstat):
7875         Move general 'struct stat' stuff to sys_stat.texi,
7876         leaving behind a pointer.
7877         * doc/posix-headers/sys_stat.texi (sys/stat.h):
7878         Merge duplicate info about 'struct stat' problems into here.
7879         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
7880         and suggest partial workarounds.
7881
7882         same-inode: port to OpenVMS
7883         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
7884         three st_ino values.
7885
7886 2011-12-30  Pádraig Brady  <P@draigBrady.com>
7887
7888         canonicalize: fix references to stat() and lstat()
7889         * lib/canonicalize.c (canonicalize_filename_mode):
7890         Ensure references always resolve to a replacement
7891         function if required (even via a macro).
7892
7893 2011-12-30  Jim Meyering  <meyering@redhat.com>
7894
7895         gitlog-to-changelog: remove a little duplication
7896         * build-aux/gitlog-to-changelog (main): Grep @lines once,
7897         rather than twice.
7898
7899 2011-12-29  Pádraig Brady  <P@draigBrady.com>
7900
7901         canonicalize: add support for not resolving symlinks
7902         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
7903         indicate we don't want to follow symlinks.  Also
7904         provide CAN_MODE_MASK to aid setting these existing
7905         mutually exclusive values.
7906         * lib/canonicalize.c (canonicalize_filename_mode):
7907         Extract the flags from can_mode parameter, which
7908         are currently just used to select between stat()
7909         and lstat().  Also ensure that mutually exclusive
7910         values are flagged immediately as invalid.
7911         * tests/test-canonicalize.c: Verify symlinks are
7912         not followed, and that invalid flag combinations
7913         are diagnosed.
7914
7915 2011-12-25  Jim Meyering  <meyering@redhat.com>
7916
7917         gitlog-to-changelog: do not clump multi-paragraph entries
7918         Identical header lines (date,name,email+coauthors) are suppressed,
7919         thus putting all entries with those same characteristics under
7920         a single header.  However, when a log entry consists of two or
7921         more paragraphs, it may not be clear where it starts and ends.
7922         This change makes it so that such an entry is always separated
7923         from others by a header line, even when that header would
7924         otherwise be suppressed.
7925         * build-aux/gitlog-to-changelog: Implement the above.
7926         Inspired by a related request from Stefano Lattarini in
7927         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
7928
7929 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7930
7931         announce-gen: fix `cmd' typo in diagnostic
7932         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
7933         diagnostic: a missing '$' meant that the command was not output.
7934
7935 2011-12-23  Jim Meyering  <meyering@redhat.com>
7936
7937         test-framework-sh: distribute init.sh
7938         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
7939         Otherwise, "make -C gnulib-tests check" (at least in grep) would
7940         fail due to the lack of init.sh.
7941
7942         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
7943         * modules/atexit-tests: Rather than listing tests/init.sh,
7944         now that there's a module for it, simply depend on that new module.
7945         * modules/closein-tests: Likewise.
7946         * modules/exclude-tests: Likewise.
7947         * modules/getcwd-tests: Likewise.
7948         * modules/perror-tests: Likewise.
7949         * modules/pread-tests: Likewise.
7950         * modules/pwrite-tests: Likewise.
7951         * modules/vc-list-files-tests: Likewise.
7952         * modules/verify-tests: Likewise.
7953         * modules/xalloc-die-tests: Likewise.
7954         * modules/xstrtoimax-tests: Likewise.
7955         * modules/xstrtol-tests: Likewise.
7956         * modules/xstrtoll-tests: Likewise.
7957         * modules/xstrtoumax-tests: Likewise.
7958         * modules/yesno-tests: Likewise.
7959
7960 2011-12-22  Jim Meyering  <meyering@redhat.com>
7961
7962         test-framework-sh: add minimal tests of init.sh's compare function
7963         * modules/test-framework-sh-tests: New file.
7964         * tests/test-init.sh: New file.
7965
7966         test-framework-sh: new module
7967         * modules/test-framework-sh: New file.
7968         * MODULES.html.sh (Support for maintaining and releasing projects):
7969         List it.
7970
7971         init.sh: do not emit simulated diff output to stderr
7972         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
7973
7974 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7975
7976         .gitignore: ignore gnulib.dvi and regex.info
7977         * doc/.gitignore:add gnulib.dvi and regex.info
7978
7979 2011-12-22  Jim Meyering  <meyering@redhat.com>
7980
7981         init.sh: correct previous change
7982         * tests/init.sh (compare): My previous change was wrong.
7983         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
7984
7985         init.sh: avoid unwarranted test failure when using "set -e"
7986         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
7987         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
7988         a use like "compare exp out" would get evoke an unconditional failure.
7989
7990 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
7991
7992         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
7993         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
7994         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
7995         autoreconf that did not.
7996         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
7997         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7998
7999 2011-12-17  Jim Meyering  <meyering@redhat.com>
8000
8001         bootstrap: remove some now-unneeded code
8002         This script arose back when gnulib-tool was young.
8003         Since then, it has seen improvements that render much of this
8004         script unnecessary.  In particular, it can now make symlinks
8005         to the files it uses.  Also, I no longer see as much value in
8006         marking files as read-only via comments.
8007         If you relied on the symlink-creation feature of the preceding
8008         version of this script, you can get most of that functionality
8009         by adding the --symlink option to the definition of
8010         gnulib_tool_option_extras in your bootstrap.conf file.
8011         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8012         Run autopoint and libtoolize *before* gnulib-tool.
8013         After it, run an abbreviated autoreconf, rather than a loop around
8014         all tools.
8015         (slirp, bt_mark_as_generated): Remove functions.
8016
8017 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8018
8019         ftoastr: fix typo
8020         * lib/ftoastr.h: Fix misspelling in comment.
8021
8022 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8023
8024         * top/README-release: fix punctuation.
8025
8026 2011-12-17  Jim Meyering  <meyering@redhat.com>
8027
8028         bootstrap: correct the recent buildreq change
8029         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8030         had no effect.
8031         * build-aux/bootstrap (buildreq): Bracket each search term with
8032         "*...*", so that the shell "case" statement works as intended.
8033         Add comments.
8034
8035 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8036
8037         build: let bootstrap resort to wget when downloading .po files
8038         * build-aux/bootstrap (download_po_files): Fallback to wget when
8039         downloading the .po files via rsync fails.  This is necessary to
8040         bootstrap from behind a strict firewall.
8041
8042 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8043
8044         stdint: don't assume C++11 when compiling with g++
8045         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8047         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8048         work also in C++ before C++11, as that improperly inhibits
8049         generating a substitute stdint.h for that case.
8050
8051 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8052
8053         alloca: protect comment from gnulib-tool
8054         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8055         that gnulib-tool doesn't think it's a license, and munge it to
8056         say "GCC version 3".
8057
8058 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8059
8060         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8061         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8062         $(abs_top_builddir) instead of $(top_builddir).
8063
8064 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8065
8066         strftime-tests: also test nanoseconds
8067         * tests/test-strftime.c (T): Add a test of %N.
8068
8069 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8070
8071         inttypes, stdint: add C++11 support
8072         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8073         when including inttypes.h and stdint.h.  Support this change to
8074         the standard.
8075         * doc/posix-headers/inttypes.texi (inttypes.h):
8076         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8077         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8078         Define if not defined already, for the benefit of pre-C++11 hosts.
8079         Define the standard format macros (e.g., PRId8) always.
8080         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8081         Likewise, if __cpluspus.  Define the standard constant and limit
8082         macros (e.g., INT8_C, INT8_MAX) always.
8083         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8084         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8085         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8086         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8087         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8088         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8089         Likewise.
8090
8091 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8092
8093         nonblocking tests: Fix test failure on Linux/PPC.
8094         Suggested by Prerna Saxena in
8095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8096         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8097         Set to 1100000.
8098
8099 2011-12-12  Jim Meyering  <meyering@redhat.com>
8100
8101         argmatch: don't hard-code `' when listing valid option arguments
8102         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8103         use the quote function to add quotes.  Use fputs rather than
8104         fprintf for the format string with no format directive.
8105
8106 2011-12-07  Eric Blake  <eblake@redhat.com>
8107
8108         bootstrap: detect tools required by gnulib-tool
8109         * build-aux/bootstrap (buildreq): Provide minimum implicit
8110         dependencies.
8111         * DEPENDENCIES: Mention patch as a prereq.
8112
8113 2011-12-04  Bruno Haible  <bruno@clisp.org>
8114
8115         sethostname: Port to Windows platforms.
8116         * lib/sethostname.c: Provide an alternate implementation for Windows
8117         platforms.
8118         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8119         (main): Skip the test if sethostname() fails with EPERM. On Windows
8120         platforms, don't check the result of gethostname().
8121
8122 2011-12-04  Bruno Haible  <bruno@clisp.org>
8123             Jim Meyering  <meyering@redhat.com>
8124
8125         tests: Avoid spurious error message on platforms without mktemp program.
8126         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8127
8128 2011-12-04  Bruno Haible  <bruno@clisp.org>
8129
8130         sethostname: Fix documentation.
8131         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8132         "not fixed" section.
8133
8134 2011-12-03  Bruno Haible  <bruno@clisp.org>
8135
8136         gnulib-tool: Verify that the License field is present and non-empty.
8137         * gnulib-tool (func_get_license_raw): New function, extracted from
8138         func_get_license.
8139         (func_get_license): Use it. Warn if the module is not a test module and
8140         has no license.
8141         Suggested by Jim Meyering.
8142
8143 2011-12-03  Bruno Haible  <bruno@clisp.org>
8144
8145         sethostname tests: Fix link error on mingw.
8146         * tests/test-sethostname1.c: New file, extracted from
8147         tests/test-sethostname.c.
8148         * tests/test-sethostname2.c: New file, extracted from
8149         tests/test-sethostname.c.
8150         * tests/test-sethostname.c: Remove file.
8151         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8152         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8153         (Depends-on): Add gethostname.
8154         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8155         Link the latter with $(GETHOSTNAME_LIB).
8156
8157         sethostname tests: Fix compilation error on mingw.
8158         * tests/test-sethostname.c: Don't include <sys/types.h>.
8159         (geteuid): Use a dummy value without uid_t.
8160         * modules/sethostname-tests (Depends-on): Remove sys_types.
8161
8162         sethostname tests: Avoid a gcc warning.
8163         * tests/test-sethostname.c (main): Remove an unused variable.
8164
8165         Tweak last commit.
8166         * modules/sethostname-tests (Files): Sort by decreasing importance.
8167         (configure.ac): Check for geteuid.
8168         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8169         the test when there's nothing to test. Drop an unnecessary cast.
8170         Improve an error message. Verify that the final sethostname() call
8171         succeeds.
8172
8173 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8174
8175         Add a test suite for the sethostname module.
8176         * modules/sethostname-tests: New file.  A test program
8177         for the sethostname module.
8178         * tests/test-sethostname.c: Likewise.
8179
8180 2011-12-03  Bruno Haible  <bruno@clisp.org>
8181
8182         Tweak last commit.
8183         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8184         Fix preprocessor directives indentation. Fix typos.
8185         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8186         * modules/unistd (Makefile): Likewise.
8187
8188 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8189
8190         Integrate the sethostname module into unistd.
8191         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8192         into the unistd.h header.
8193         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8194         preprocessor directives.
8195         * modules/unistd: Setup the Makefile substitutions of the
8196         SETHOSTNAME preprocessor directives.
8197
8198 2011-12-03  Bruno Haible  <bruno@clisp.org>
8199
8200         Tweak last commit.
8201         * lib/sethostname.c: Don't include <string.h>.
8202         (sethostname): No need to copy the argument string to the stack. Don't
8203         call clearerr. Preserve errno when fprintf failed.
8204         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8205         Don't invoke AC_REPLACE_FUNCS.
8206         * modules/sethostname (Link): Remove empty section.
8207         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8208         failure problem.
8209
8210 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8211
8212         New module 'sethostname'.
8213         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8214         for systems that lack it.
8215         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8216         sethostname declaration and function.
8217         * modules/sethostname: New file.  Define the sethostname module.
8218
8219 2011-12-03  Bruno Haible  <bruno@clisp.org>
8220
8221         Tweak last commit.
8222         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8223
8224 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8225
8226         Split the HOST_NAME_MAX detection into a separate m4 macro.
8227         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8228         macro so it can be used by the pending sethostname module.
8229
8230 2011-12-03  Bruno Haible  <bruno@clisp.org>
8231
8232         Fix module descriptions syntax.
8233         * modules/argv-iter (License): Fix syntax.
8234         * modules/di-set (License): Likewise.
8235         * modules/ino-map (License): Likewise.
8236         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8237
8238 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8239
8240         stdalign: port to Clang 3.0
8241         Problem reported by Simon Josefsson in
8242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8243         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8244         which has <stdalign.h> but which does not define alignof.
8245         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8246
8247 2011-12-01  Eric Blake  <eblake@redhat.com>
8248
8249         mktempd: silence dd usage
8250         * build-aux/mktempd (rand_bytes): Silence dd.
8251
8252 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8253
8254         manywarnings: Don't mention gcc version in docstring.
8255         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8256         Jim Meyering <meyering@redhat.com>.
8257
8258 2011-11-30  Jim Meyering  <meyering@redhat.com>
8259
8260         hash: mark a few floating point constants with "f" suffix
8261         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8262         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8263         floating point constants with "f", since they're destined to be
8264         saved/used as "float"s.
8265
8266 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8267
8268         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8269         * tests/test-float.c (test_long_double): Correct and re-enable the
8270         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8271
8272 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8273
8274         Avoid subtracting two pointers that don't point into the same block.
8275         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8276         only pointers into the same memory block are subtracted. We cannot
8277         assume that sizeof (ptrdiff_t) == sizeof (void *).
8278
8279 2011-11-29  Eric Blake  <eblake@redhat.com>
8280
8281         maint.mk: add syntax check for use of compare from init.sh
8282         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8283         moved here from coreutils.
8284
8285         manywarnings: drop -Wunsuffixed-float-constants
8286         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8287         '1.0D', which is the only way to silence this warning for 'double'.
8288
8289 2011-11-29  Jim Meyering  <meyering@redhat.com>
8290
8291         hash: mark compute_bucket_size with the pure attribute
8292         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8293
8294         quotearg, propername: correct pragma guard expression
8295         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8296         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8297
8298 2011-11-28  Jim Meyering  <meyering@redhat.com>
8299
8300         propername: do not mark proper_name with the const attribute
8301         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8302         since it examines data pointed to by its parameter.
8303         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8304         the suggestion from -Wsuggest-attribute=const.
8305
8306         propername: mark one more function as const
8307         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8308
8309 2011-11-27  Jim Meyering  <meyering@redhat.com>
8310
8311         mark functions with const and pure attributes
8312
8313         Mark functions per suggestions from gcc-4.6 when using these options:
8314         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8315         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8316         Follow these guidelines: when possible, apply the attribute to
8317         an extern declaration, not to its definition.  Apply it to the
8318         definition only when the definition is static.
8319         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8320         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8321         * lib/base64.h (isbase64): Likewise.
8322         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8323         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8324         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8325         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8326         (c_tolower, c_toupper): Likewise.
8327         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8328         * lib/chdir-long.c (find_non_slash): Likewise.
8329         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8330         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8331         * lib/file-type.h (file_type): Likewise.
8332         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8333         * lib/filevercmp.c (verrevcmp): Likewise.
8334         * lib/freadahead.h (freadahead): Likewise.
8335         * lib/fts.c (fts_maxarglen): Likewise.
8336         * lib/hash-pjw.h (hash_pjw): Likewise.
8337         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8338         * lib/hash.c (is_prime, next_prime): Likewise.
8339         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8340         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8341         (hash_table_ok, hash_get_first, hash_string): Likewise.
8342         (compute_bucket_size): Likewise.
8343         * lib/i-ring.h (i_ring_empty): Likewise.
8344         * lib/isnan.c (isnanl): Likewise.
8345         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8346         * lib/memcasecmp.h (memcasecmp): Likewise.
8347         * lib/memchr2.h (memchr2): Likewise.
8348         * lib/memcmp2.h (memcmp2): Likewise.
8349         * lib/parse-datetime.y (lookup_zone): Likewise.
8350         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8351         [!WINDOWS_SOCKETS]: Likewise.
8352         * lib/strnlen1.h (strnlen1): Likewise.
8353         * lib/uniwidth.in.h (uc_width): Likewise.
8354         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8355         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8356         (quoting_options_from_style): Add a comment.
8357         * lib/propername.h (proper_name): Add a comment.
8358
8359 2011-11-27  Bruno Haible  <bruno@clisp.org>
8360
8361         Remove unused macros from !_LIBC code in glibc-borrowed files.
8362         * lib/fnmatch.c (STRCOLL): Remove macro.
8363         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8364         * lib/glob.c (__stat, __readdir64): Remove macros.
8365         * lib/tempname.c (__open64, __xstat64): Remove macros.
8366         Suggested by Paul Eggert.
8367
8368 2011-11-27  Bruno Haible  <bruno@clisp.org>
8369
8370         getcwd: Fix link error on MSVC 9.
8371         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8372
8373 2011-11-27  Bruno Haible  <bruno@clisp.org>
8374
8375         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8376         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8377         HAVE_OPENDIR is 0.
8378         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8379         HAVE_CLOSEDIR is 0.
8380         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8381         is 0.
8382         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8383
8384 2011-11-27  Bruno Haible  <bruno@clisp.org>
8385
8386         getcwd: Fix bug from 2011-08-17.
8387         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8388         platforms that need it.
8389         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8390         code of 4 to be a failure, not a success. This ensures that
8391         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8392
8393 2011-11-27  Bruno Haible  <bruno@clisp.org>
8394
8395         binary-io tests: Avoid test failure on mingw when libtool is used.
8396         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8397         Don't verify the size of t-bin-out1.tmp here.
8398         * tests/test-binary-io.sh: Verify it here.
8399         Reported by Simon Josefsson.
8400
8401 2011-11-26  Bruno Haible  <bruno@clisp.org>
8402
8403         Fix conflict between two instantiations of module 'unistd'.
8404         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8405         ${include_guard_prefix} also in the autoconf snippet.
8406         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8408         GNULIB_UNISTD_H_GETOPT.
8409         * modules/getopt-posix (configure.ac): Set the
8410         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8411         * modules/getopt-gnu (configure.ac): Likewise.
8412         * modules/unistd (Makefile.am): Change the substitution value of
8413         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8414         Reported by Simon Josefsson.
8415
8416 2011-11-25  Bruno Haible  <bruno@clisp.org>
8417
8418         pagealign_alloc: Doc and comments.
8419         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8420         module.
8421         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8422
8423 2011-11-25  Jim Meyering  <meyering@redhat.com>
8424
8425         test-update-copyright.sh: avoid false-positive failure
8426         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8427         around false positive failure on Cygwin/Windows.  The latter was
8428         matching erroneously-created files with names like
8429         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8430
8431 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8432
8433         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8434         * m4/valgrind-tests.m4: Check that the parameters that will be
8435         used works, not just a subset of them.  Reported by Bruno Haible
8436         <bruno@clisp.org>.
8437
8438 2011-11-24  Jim Meyering  <meyering@redhat.com>
8439
8440         test-stdalign.c: comment out long double tests
8441         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8442         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8443         error: '_Alignas' specifiers cannot reduce alignment of \
8444         'static_longdouble_alignas'.
8445
8446 2011-11-22  Jim Meyering  <meyering@redhat.com>
8447
8448         init.sh: make "compare /dev/null FILE" output more readable
8449         * tests/init.sh (compare_): Document the preferred order of arguments.
8450         (emit_diff_u_header_): New function.
8451         (compare_dev_null_): Emit a simulated diff, rather than just the
8452         contents of the unexpected file.  Suggestion from Bruno Haible.
8453
8454 2011-11-21  Jim Meyering  <meyering@redhat.com>
8455             Eric Blake  <eblake@redhat.com>
8456
8457         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8458         * tests/init.sh: Make our compare function slightly more portable.
8459         Reported by Bruno Haible in
8460         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8461
8462 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8463
8464         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8465         before using it, in code that ends up in config.h.
8466
8467 2011-11-20  Bruno Haible  <bruno@clisp.org>
8468
8469         getcwd: Work around getcwd bug on AIX 5..7.
8470         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8471         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8472         Use a different value for gl_cv_func_getcwd_path_max. Move the
8473         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8474         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8475         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8476         Define HAVE_MINIMALLY_WORKING_GETCWD.
8477         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8478         where it is not even minimally working, that is, on AIX.
8479         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8480         m4/getcwd-path-max.m4.
8481         (main): Update exit code computation.
8482         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8483         getcwd does not handle long file names.
8484
8485 2011-11-20  Bruno Haible  <bruno@clisp.org>
8486
8487         getcwd: Fix bug from 2009-09-10.
8488         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8489         like "no".
8490
8491 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8492
8493         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8494
8495 2011-11-20  Bruno Haible  <bruno@clisp.org>
8496
8497         fma tests: Avoid shadowing local variables.
8498         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8499         expected.
8500
8501 2011-11-20  Bruno Haible  <bruno@clisp.org>
8502
8503         copysignf tests: Fix.
8504         * tests/test-copysignf.c: Fix signature check.
8505
8506 2011-11-20  Bruno Haible  <bruno@clisp.org>
8507
8508         fma: Remove unused code.
8509         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8510         unused macros.
8511
8512 2011-11-20  Bruno Haible  <bruno@clisp.org>
8513
8514         sethostname: Fix doc about AIX.
8515         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8516         sethostname; it has it.
8517
8518         sethostname: Mention more portability problems.
8519         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8520         problem.
8521         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8522
8523 2011-11-19  Bruno Haible  <bruno@clisp.org>
8524
8525         Depend on module fcntl-h when AT_FDCWD is used.
8526         * modules/utimens (Depends-on): Add fcntl-h.
8527         * modules/areadlinkat (Depends-on): Likewise.
8528         * modules/areadlinkat-with-size (Depends-on): Likewise.
8529         * modules/faccessat (Depends-on): Likewise.
8530         * modules/fchmodat (Depends-on): Likewise.
8531         * modules/fchownat (Depends-on): Likewise.
8532         * modules/getcwd (Depends-on): Likewise.
8533         * modules/mkdirat (Depends-on): Likewise.
8534         * modules/mkfifoat (Depends-on): Likewise.
8535         * modules/readlinkat (Depends-on): Likewise.
8536         * modules/symlinkat (Depends-on): Likewise.
8537         * modules/dup2-tests (Depends-on): Likewise.
8538         * modules/fdutimensat-tests (Depends-on): Likewise.
8539         * modules/futimens-tests (Depends-on): Likewise.
8540
8541 2011-11-19  Bruno Haible  <bruno@clisp.org>
8542
8543         euidaccess: Update a comment.
8544         * lib/euidaccess.c: Update comment about platforms with faccessat.
8545
8546 2011-11-19  Bruno Haible  <bruno@clisp.org>
8547
8548         openat: Fix file list.
8549         * modules/openat (Files): Remove lib/at-func.c.
8550
8551 2011-11-19  Bruno Haible  <bruno@clisp.org>
8552
8553         fstatat: Simplify.
8554         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8555         gnulib should define rpl_fstatat, there is a
8556         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8557
8558 2011-11-19  Bruno Haible  <bruno@clisp.org>
8559
8560         Ensure 'inline' can be used in tests/test-utimens-common.h.
8561         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8562         * modules/futimens-tests (configure.ac): Likewise.
8563         * modules/utimens-tests (configure.ac): Likewise.
8564         * modules/utimensat-tests (configure.ac): Likewise.
8565
8566 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8567
8568         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8569         not hash_insert0.
8570         (hash_insert_if_absent): Doc fix.
8571
8572 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8573
8574         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8575
8576 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8577
8578         test-getcwd: disambiguate exit status
8579         * tests/test-getcwd.c (test_long_name): Return 0..7.
8580         (main): Exit with an unambiguous exit status.  The old
8581         code yielded a mysterious mixture of two failure codes.
8582
8583         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8584         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
8585         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
8586         rpl_fstatat or fstatat.  This should fix the other problem
8587         reported by Kai Habel in
8588         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8589         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
8590         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
8591         and I reproduced it on a Solaris 8 host we still have in production.
8592
8593 2011-11-18  Jim Meyering  <meyering@redhat.com>
8594
8595         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
8596         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
8597         Add a sentence to the comment.
8598         (hash_insert0): New function that simply calls hash_insert_if_absent.
8599         * lib/hash.h (hash_insert_if_absent): Declare it.
8600         (hash_insert0): Add deprecation attribute.
8601         (_GL_ATTRIBUTE_DEPRECATED): Define.
8602         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
8603         not hash_insert0.
8604         * NEWS: Mention it, even though it's not really an incompatible change.
8605
8606 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
8607
8608         openat: avoid compilation failure due to lack of <errno.h> inclusion
8609         * lib/openat.c: Include <errno.h>.
8610
8611 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8612
8613         * modules/getcwd (Depends-on): Add fdopendir.
8614         This fixes one of the two problems reported by Kai Habel in
8615         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8616
8617         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
8618         stdalign problem reported by Ian Beckwith in
8619         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
8620         * modules/crypto/gc-arcfour (Depends-on):
8621         Depend conditionally on crypto/arcfour.
8622         * modules/crypto/gc-arctwo (Depends-on):
8623         Depend conditionally on crypto/arctwo.
8624         * modules/crypto/gc-des (Depends-on):
8625         Depend conditionally on crypto/des.
8626         * modules/crypto/gc-hmac-md5 (Depends-on):
8627         Depend conditionally on crypto/hmac-md5.
8628         * modules/crypto/gc-hmac-sha1 (Depends-on):
8629         Depend conditionally on crypto/hmac-sha1.
8630         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
8631         * modules/crypto/gc-md4 (Depends-on):
8632         Depend conditionally on crypto/md4.
8633         * modules/crypto/gc-md5 (Depends-on):
8634         Depend conditionally on crypto/md5.
8635         * modules/crypto/gc-rijndael (Depends-on):
8636         Depend conditionally on crypto/rijndael.
8637         * modules/crypto/gc-sha1 (Depends-on):
8638         Depend conditionally on crypto/sha1.
8639         * modules/crypto/gc-arcfour:
8640         * modules/crypto/gc-arctwo:
8641         * modules/crypto/gc-des:
8642         * modules/crypto/gc-hmac-md5:
8643         * modules/crypto/gc-hmac-sha1:
8644         * modules/crypto/gc-md2:
8645         * modules/crypto/gc-md4:
8646         * modules/crypto/gc-md5:
8647         * modules/crypto/gc-rijndael:
8648         * modules/crypto/gc-sha1:
8649         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
8650         now that the conditional dependencies do the work for us.
8651
8652 2011-11-17  Jim Meyering  <meyering@redhat.com>
8653
8654         tests: factor st_ctime-comparison out of two headers
8655         * tests/test-utimens-common.h (ctime_compare): Define.
8656         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
8657         * tests/test-lutimens.h (test_lutimens): Likewise.
8658         * tests/test-utimens.h (test_utimens): Likewise.
8659
8660         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
8661         Invoke the test program via an init.sh-using wrapper.
8662         * tests/test-getcwd.sh: New file.
8663         * modules/getcwd-tests (Files): Add it.
8664         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
8665
8666 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
8667
8668         gitlog-to-changelog: support multi-author commits.
8669         The FSF cares about keeping track of all authors of patches to its
8670         projects, but Git doesn't provide obvious support for multi-author
8671         changesets. Consensus seems to be forming around the use of extra
8672         Signed-off-by inspired lines in the log message formatted as
8673         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
8674         multi-author commits between version control systems.
8675         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
8676         log message and output in standard ChangeLog multi-author format.
8677         Reported by Peter Rosin <peda@lysator.liu.se>
8678
8679 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
8680             Bruno Haible  <bruno@clisp.org>
8681
8682         Fix some modules' file list.
8683         * modules/fstatat (Files): Add m4/lstat.m4.
8684         * modules/openat (Files): Likewise.
8685         * modules/unlinkat (Files): Likewise.
8686
8687 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
8688
8689         maint.mk: fix tight-scope.mk generation in VPATH builds.
8690         * top/maint.mk (tight-scope.mk): Make sure to prefix file
8691         reference with $(srcdir) so that the file is found correctly even
8692         when running `make syntax-check' in a VPATH build.
8693
8694 2011-11-13  Bruno Haible  <bruno@clisp.org>
8695             Jim Meyering  <meyering@redhat.com>
8696
8697         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
8698         * tests/init.sh (compare): Remove "No differences encountered" or
8699         synonymous output from the 'diff' program.
8700
8701 2011-11-13  Bruno Haible  <bruno@clisp.org>
8702
8703         Makefile: Tweak indentation.
8704         * Makefile: Use tab as first character in every line that contains rule
8705         commands.
8706
8707 2011-11-13  Bruno Haible  <bruno@clisp.org>
8708
8709         Syntax check for copyright statements.
8710         * check-copyright: New file.
8711         * Makefile (sc_check_copyright): New rule.
8712
8713 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8714
8715         * build-aux/git-version-gen: Add --prefix to configure the tag
8716         match string.
8717
8718 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8719
8720         * build-aux/git-version-gen: Add --help and --version.
8721
8722 2011-11-12  Jim Meyering  <meyering@redhat.com>
8723
8724         revamp the other test-exclude?.sh scripts to use init.sh, too
8725         * tests/test-exclude1.sh: Use init.sh.
8726         * tests/test-exclude2.sh: Likewise.
8727         * tests/test-exclude3.sh: Likewise.
8728         * tests/test-exclude4.sh: Likewise.
8729         * tests/test-exclude5.sh: Likewise.
8730         * tests/test-exclude6.sh: Likewise.
8731         * tests/test-exclude7.sh: Likewise.
8732         * tests/test-exclude8.sh: Likewise.
8733         * modules/exclude-tests (Files): List init.sh.
8734
8735         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
8736         These shell scripts ignored failure of the binary test-exclude,
8737         so making the latter return 77 didn't cause them to be skipped.
8738         * tests/test-exclude5.sh: Exit with test-exclude's error status
8739         when that program fails.  Revamp to use init.sh.
8740         * tests/test-exclude2.sh: Likewise.
8741
8742         test-exclude: fix a typo
8743         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
8744
8745 2011-11-11  Bruno Haible  <bruno@clisp.org>
8746
8747         obstack: Fix compilation error on MSVC 9.
8748         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
8749
8750 2011-11-11  Jim Meyering  <meyering@redhat.com>
8751
8752         test-exclude: skip tests rather than failing on deficient systems
8753         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
8754         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
8755         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
8756         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
8757
8758 2011-11-10  Bruno Haible  <bruno@clisp.org>
8759
8760         ptsname_r test: Avoid gcc warning on glibc systems.
8761         * tests/test-ptsname_r.c (null_ptr): New function.
8762         (test_errors): Use it.
8763
8764 2011-11-10  Bruno Haible  <bruno@clisp.org>
8765
8766         ptsname_r: Avoid compilation error on OSF/1 5.1.
8767         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
8768         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
8769         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
8770         function is not declared or incompatibly declared.
8771         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
8772         * modules/ptsname_r (Depends-on, configure.ac): Update.
8773         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
8774
8775 2011-11-10  Bruno Haible  <bruno@clisp.org>
8776
8777         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
8778         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
8779         When cross-compiling, guess yes on all platforms except AIX.
8780         Reported by Ludovic Courtès <ludo@gnu.org>.
8781
8782 2011-11-09  Bruno Haible  <bruno@clisp.org>
8783
8784         ptsname_r tests: Fix bugs.
8785         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
8786         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
8787
8788 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8789
8790         fstatat: work with cross-compilation
8791         Problem reported by Ludovic Courtès in
8792         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
8793         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
8794         "cross-compiling" and assume the bug is present.  Replace
8795         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
8796         an inverted sense, to be more conservative about our assumptions.
8797         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
8798
8799 2011-11-09  Bruno Haible  <bruno@clisp.org>
8800
8801         Improve MODULES.html output.
8802         * modules/mkfifoat (Description): Use the word "function".
8803         * modules/readlinkat (Description): Likewise.
8804         * modules/symlinkat (Description): Likewise.
8805
8806 2011-11-09  Eric Blake  <eblake@redhat.com>
8807
8808         ptsname_r-tests: new test module
8809         * modules/ptsname_r-tests: New module.
8810         * tests/test-ptsname_r.c: New file.
8811
8812         ptsname_r: new module
8813         * modules/ptsname_r: New module.
8814         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
8815         * lib/ptsname.c (__ptsname_r): Split...
8816         * lib/ptsname_r.c: ...into new file.
8817         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8818         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
8819         * modules/stdlib (Makefile.am): Substitute witnesses.
8820         * lib/stdlib.in.h (ptsname_r): Declare it.
8821         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
8822         * MODULES.html.sh (Misc): Likewise.
8823         * modules/ptsname (Depends-on): Alter dependency.
8824         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
8825
8826 2011-11-09  Jim Meyering  <meyering@redhat.com>
8827
8828         announce-gen: be more concise when there's only one URL+tarball
8829         * build-aux/announce-gen (get_tool_versions): When you distribute
8830         only one type of tarball, combine the first two "Here are..."
8831         sections and make the key-checking grammar independent of
8832         how many tarballs there are.
8833
8834 2011-11-09  Eric Blake  <eblake@redhat.com>
8835
8836         openpty: provide a stub on mingw
8837         * lib/pty.in.h (includes): Provide forward declarations.
8838         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
8839
8840         raise: fix mingw handling of SIGPIPE
8841         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
8842
8843 2011-11-08  Bruno Haible  <bruno@clisp.org>
8844
8845         More conditional dependencies.
8846         * modules/faccessat (Depends-on): Add conditions.
8847         * modules/fchmodat (Depends-on): Likewise.
8848         * modules/fchownat (Depends-on): Likewise.
8849         * modules/fstatat (Depends-on): Likewise.
8850         * modules/mkfifoat (Depends-on): Likewise.
8851         * modules/readlinkat (Depends-on): Likewise.
8852         * modules/symlinkat (Depends-on): Likewise.
8853         * modules/unlinkat (Depends-on): Likewise.
8854         * modules/utimensat (Depends-on): Likewise.
8855         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
8856         * modules/linkat (Depends-on): Refine the conditions.
8857         * modules/renameat (Depends-on): Likewise.
8858
8859 2011-11-08  Bruno Haible  <bruno@clisp.org>
8860
8861         faccessat: Move AC_LIBOBJ invocation to module description.
8862         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
8863         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
8864         invocation from here...
8865         * modules/faccessat (configure.ac): ... to here. Invoke
8866         gl_PREREQ_FACCESSAT.
8867
8868 2011-11-08  Bruno Haible  <bruno@clisp.org>
8869
8870         faccessat: Simplify autoconf macro.
8871         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
8872         gl_FUNC_EUIDACCESS.
8873
8874 2011-11-08  Bruno Haible  <bruno@clisp.org>
8875
8876         renameat: Fix dependencies.
8877         * modules/renameat (Depends-on): Add stdbool.
8878
8879 2011-11-08  Bruno Haible  <bruno@clisp.org>
8880
8881         mkfifoat: Fix module description.
8882         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
8883         not gl_UNISTD_MODULE_INDICATOR.
8884
8885 2011-11-08  Bruno Haible  <bruno@clisp.org>
8886
8887         fstatat: Remove unused dependency.
8888         * modules/fstatat (Depends-on): Remove fstat.
8889
8890 2011-11-08  Simon Josefsson  <simon@josefsson.org>
8891
8892         GNUmakefile: behave when Makefile is missing.
8893         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
8894
8895 2011-11-08  Bruno Haible  <bruno@clisp.org>
8896
8897         openat: Conditionalize dependencies.
8898         * lib/openat.c: Reduce the scope of some #includes.
8899         * modules/openat (Depends-on): Add conditions.
8900
8901 2011-11-07  Jim Meyering  <meyering@redhat.com>
8902
8903         maint.mk: extract GPG key ID without using a temporary file
8904         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
8905         without using a temporary file.  Based on a suggestion from Werner Koch
8906         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
8907
8908 2011-11-07  Eric Blake  <eblake@redhat.com>
8909
8910         grantpt: fix typo
8911         * lib/stdlib.in.h (grantpt): Check correct function.
8912
8913         maint.mk: silence new syntax check
8914         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
8915
8916 2011-11-06  Bruno Haible  <bruno@clisp.org>
8917
8918         Doc about floating-point and math API.
8919         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
8920         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
8921
8922 2011-11-06  Bruno Haible  <bruno@clisp.org>
8923
8924         stdalign tests: Skip the test when compiled by Sun C.
8925         * tests/test-stdalign.c (main): Skip the test on Sun C.
8926
8927 2011-11-06  Bruno Haible  <bruno@clisp.org>
8928
8929         ansi-c++-opt: Complete the 2011-06-05 change.
8930         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
8931         does not support namespaces, set the variable to "no", not to ":".
8932
8933 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8934
8935         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
8936
8937 2011-11-06  Bruno Haible  <bruno@clisp.org>
8938
8939         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
8940         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
8941         (minus_zerol) [HP-UX]: New macro.
8942         (unary_minus) [HP-UX]: New function.
8943         (copysignl) [HP-UX]: Use unary_minus function.
8944
8945 2011-11-06  Bruno Haible  <bruno@clisp.org>
8946
8947         ldexp, ldexpf, ldexpl: Enhance tests.
8948         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
8949         and tests/test-ldexpl.c.
8950         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
8951         LDEXP, MIN_EXP, MAX_EXP): New macros.
8952         Include test-ldexp.h.
8953         (main): Just call test_function.
8954         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
8955         infinity.h, nan.h.
8956         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8957         MAX_EXP): New macros.
8958         Include test-ldexp.h.
8959         (x, y): Remove variables.
8960         (main): Just call test_function.
8961         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
8962         infinity.h, nan.h.
8963         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8964         MAX_EXP): New macros.
8965         Include test-ldexp.h.
8966         (x, y): Remove variables.
8967         (main): Just call test_function.
8968         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
8969         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
8970         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8971         (Depends-on): Add isnand-nolibm, signbit, float.
8972         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
8973         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8974         (Depends-on): Add isnanf-nolibm, signbit, float.
8975
8976 2011-11-06  Bruno Haible  <bruno@clisp.org>
8977
8978         math tests: Cosmetics.
8979         * tests/test-math-c++.cc: Reorder declarations.
8980
8981 2011-11-05  Bruno Haible  <bruno@clisp.org>
8982
8983         fma*: Simplify test.
8984         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
8985         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
8986
8987         Tests for module 'fmal'.
8988         * modules/fmal-tests: New file.
8989         * tests/test-fmal1.c: New file.
8990         * tests/test-fmal2.c: New file.
8991
8992         New module 'fmal'.
8993         * lib/math.in.h (fmal): New declaration.
8994         * lib/fmal.c: New file.
8995         * m4/fmal.m4: New file.
8996         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
8997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
8998         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
8999         REPLACE_FMAL.
9000         * modules/fmal: New file.
9001         * doc/posix-functions/fmal.texi: Mention the new module and the various
9002         bugs.
9003
9004         Tests for module 'fmaf'.
9005         * modules/fmaf-tests: New file.
9006         * tests/test-fmaf1.c: New file.
9007         * tests/test-fmaf2.c: New file.
9008
9009         New module 'fmaf'.
9010         * lib/math.in.h (fmaf): New declaration.
9011         * lib/fmaf.c: New file.
9012         * m4/fmaf.m4: New file.
9013         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9014         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9015         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9016         REPLACE_FMAF.
9017         * modules/fmaf: New file.
9018         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9019         bugs.
9020
9021         Tests for module 'fma'.
9022         * modules/fma-tests: New file.
9023         * tests/test-fma1.c: New file.
9024         * tests/test-fma1.h: New file.
9025         * tests/test-fma2.c: New file.
9026         * tests/test-fma2.h: New file.
9027
9028         New module 'fma'.
9029         * lib/math.in.h (fma): New declaration.
9030         * lib/fma.c: New file.
9031         * m4/fma.m4: New file.
9032         * m4/fegetround.m4: New file.
9033         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9034         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9035         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9036         REPLACE_FMA.
9037         * modules/fma: New file.
9038         * doc/posix-functions/fma.texi: Mention the new module and the various
9039         bugs.
9040
9041         Extend gl_MATHFUNC.
9042         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9043         Support 'void' as argument type.
9044         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9045
9046 2011-11-05  Jim Meyering  <meyering@redhat.com>
9047
9048         maint.mk: also prohibit inclusion of dirent.h without use
9049         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9050
9051 2011-11-05  Bruno Haible  <bruno@clisp.org>
9052
9053         ldexpl tests: Avoid test failure on MSVC 9.
9054         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9055         value. Needed in order to enforce the conversion from a value greater
9056         than LDBL_MAX to Infinity.
9057
9058 2011-11-05  Bruno Haible  <bruno@clisp.org>
9059
9060         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9061         * modules/at-internal: New file, extracted from modules/openat.
9062         * modules/openat-h: New file.
9063         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9064         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9065         * modules/openat (Description): Add reference to POSIX function.
9066         (Files): Remove lib/openat.h, lib/openat-proc.c.
9067         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9068         intprops, unistd.
9069         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9070         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9071         gl_FCNTL_MODULE_INDICATOR.
9072         (Include): Remove unistd.h, openat.h.
9073         * modules/areadlinkat (Files): Add lib/at-func.c.
9074         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9075         openat-die, openat-h, save-cwd.
9076         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9077         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9078         openat-die, openat-h, save-cwd, unistd.
9079         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9080         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9081         openat-h, save-cwd. Remove fcntl-h, openat.
9082         * modules/fchmodat (Files): Remove lib/openat.h.
9083         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9084         openat, stdbool, unistd.
9085         * modules/fchownat (Files): Remove lib/openat.h.
9086         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9087         openat, stdbool, sys_stat.
9088         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9089         lib/openat-proc.c.
9090         (Depends-on): Add at-internal.
9091         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9092         * modules/fstatat (Files): Remove lib/openat.h.
9093         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9094         stdbool, unistd.
9095         * modules/fts (Depends-on): Add openat-h.
9096         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9097         openat.
9098         * modules/mkdirat (Files): Remove lib/openat.h.
9099         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9100         openat, stdbool, sys_stat.
9101         * modules/mkfifoat (Files): Add lib/at-func.c.
9102         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9103         openat-h, save-cwd. Remove fcntl-h, openat.
9104         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9105         * modules/readlinkat (Files): Add lib/at-func.c.
9106         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9107         openat-h, save-cwd. Remove fcntl-h, openat.
9108         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9109         openat.
9110         * modules/selinux-at (Files): Add lib/at-func.c.
9111         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9112         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9113         * modules/symlinkat (Files): Add lib/at-func.c.
9114         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9115         openat-h, save-cwd. Remove fcntl-h, openat.
9116         * modules/unlinkat (Files): Remove lib/openat.h.
9117         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9118         stdbool.
9119         * modules/utimensat (Files): Add lib/at-func.c.
9120         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9121         openat-die, openat-h, save-cwd.
9122         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9123         * modules/fdutimensat-tests (Depends-on): Add openat.
9124         * modules/fstatat-tests (Depends-on): Add openat-h.
9125         * modules/readlinkat-tests (Depends-on): Add openat.
9126         * modules/symlinkat-tests (Depends-on): Add openat.
9127
9128 2011-11-05  Bruno Haible  <bruno@clisp.org>
9129
9130         openat: Include <stdbool.h>.
9131         * lib/openat.c: Include <stdbool.h>.
9132
9133 2011-11-04  Bruno Haible  <bruno@clisp.org>
9134
9135         fchownat, renameat, unlinkat: Fix dependencies.
9136         * modules/fchownat (Depends-on): Add fstatat.
9137         * modules/renameat (Depends-on): Likewise.
9138         * modules/unlinkat (Depends-on): Likewise.
9139
9140 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9141
9142         openat: remove direct dependency on dirent
9143         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9144         and hasn't been needed ever since fdopendir was split into its own
9145         module on 2009-08-31.
9146         * modules/openat (Depends-on): Remove dirent.
9147
9148 2011-11-04  Bruno Haible  <bruno@clisp.org>
9149
9150         renameat: Optimize code size.
9151         * modules/renameat (configure.ac): Don't compile at-func2.c if
9152         REPLACE_RENAMEAT is 1.
9153
9154 2011-11-04  Bruno Haible  <bruno@clisp.org>
9155
9156         openat tests: Fix file list.
9157         * modules/openat-tests (Files): Add tests/test-open.h.
9158
9159 2011-11-04  Bruno Haible  <bruno@clisp.org>
9160
9161         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9162         * modules/fchmodat (Depends-on): Add openat-die.
9163         * modules/fchownat (Depends-on): Likewise.
9164         * modules/linkat (Depends-on): Likewise.
9165         * modules/renameat (Depends-on): Likewise.
9166         * modules/openat (Depends-on): Add dirent.
9167
9168 2011-11-04  Jim Meyering  <meyering@redhat.com>
9169
9170         at-func*.c: fix comments
9171         * lib/at-func2.c: Correct/improve first-line comment.
9172         * lib/at-func.c: Correct grammar in first-line comment.
9173
9174 2011-11-04  Bruno Haible  <bruno@clisp.org>
9175
9176         New module 'mkdirat', split off from module 'openat'.
9177         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9178         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9179         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9180         * modules/mkdirat: New file, extracted from modules/openat.
9181         * modules/openat (Files): Remove lib/mkdirat.c.
9182         (Depends-on): Remove mkdir.
9183         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9184         (Include): Remove <sys/stat.h>.
9185         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9186         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9187         tests/test-mkdir.h.
9188         (Depends-on): Remove ignore-value.
9189         (Makefile.am): Remove rules for test-mkdirat.
9190         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9191         of module 'openat'.
9192         * NEWS: Mention the change.
9193
9194 2011-11-04  Bruno Haible  <bruno@clisp.org>
9195
9196         closedir: Avoid warning on mingw.
9197         * lib/closedir.c: Include <unistd.h>.
9198
9199 2011-11-04  Bruno Haible  <bruno@clisp.org>
9200
9201         New module 'fstatat', split off from module 'openat'.
9202         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9203         defined.
9204         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9205         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9206         gl_FUNC_FSTATAT.
9207         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9208         * modules/fstatat: New file, extracted from modules/openat.
9209         * modules/openat (Files): Remove lib/fstatat.c.
9210         (Depends-on): Remove lstat.
9211         (configure.ac): Remove AC_LIBOBJ of fstatat.
9212         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9213         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9214         tests/test-lstat.h, tests/test-stat.h.
9215         (Depends-on): Remove getcwd-lgpl.
9216         (Makefile.am): Remove rules for test-fstatat.
9217         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9218         of module 'openat'.
9219         * NEWS: Mention the change.
9220         * modules/getcwd (Depends-on): Add fstatat.
9221         * modules/linkat (Depends-on): Likewise.
9222         * modules/mkfifoat-tests (Depends-on): Likewise.
9223         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9224
9225 2011-11-03  Bruno Haible  <bruno@clisp.org>
9226
9227         New module 'unlinkat', split off from module 'openat'.
9228         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9229         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9230         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9231         * modules/unlinkat: New file, extracted from modules/openat. Correct
9232         the dependency conditions.
9233         * modules/openat (Files): Remove lib/unlinkat.c.
9234         (Depends-on): Remove rmdir, unlink.
9235         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9236         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9237         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9238         tests/test-rmdir.h, tests/test-unlink.h.
9239         (Depends-on): Remove unlinkdir.
9240         (Makefile.am): Remove rules for test-unlinkat.
9241         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9242         of module 'openat'.
9243         * NEWS: Mention the change.
9244         * modules/linkat-tests (Depends-on): Add unlinkat.
9245         * modules/mkfifoat-tests (Depends-on): Likewise.
9246         * modules/readlinkat-tests (Depends-on): Likewise.
9247
9248 2011-11-02  Bruno Haible  <bruno@clisp.org>
9249
9250         New module 'fchmodat', split off from module 'openat'.
9251         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9252         defined.
9253         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9254         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9255         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9256         * modules/fchmodat: New file, extracted from modules/openat.
9257         * modules/openat (Files): Remove lib/fchmodat.c.
9258         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9259         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9260         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9261         (Makefile.am): Remove rules for test-fchmodat.
9262         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9263         of module 'openat'.
9264         * NEWS: Mention the change.
9265
9266 2011-11-02  Jim Meyering  <meyering@redhat.com>
9267
9268         putenv: indent #definition of "environ" to placate cppi
9269         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9270
9271         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9272         Git logs are often treated as immutable, because editing them
9273         changes the SHA1 checksums of all descendants.  Thus, errors in
9274         git logs tend to stay there forever.  However, when we generate
9275         a ChangeLog file -- typically for distribution -- from that git log,
9276         we can actually make corrections in the generated file.  The key
9277         lies in recording in machine-readable/applicable form the desired
9278         corrections.  See --help for description and an example.
9279         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9280         (usage): Describe it; alphabetize option descriptions.
9281         (main): Honor the new option, carefully.
9282
9283 2011-11-01  Jim Meyering  <meyering@redhat.com>
9284
9285         gitlog-to-changelog: avoid an infloop
9286         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9287         that ends up being empty.
9288
9289 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9290
9291         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9292         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9293         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9294         contains (possibly-quoted) backslashes.  This should avoid
9295         all-too-common shell bugs if COMPLICATED contains backslashes in
9296         the "wrong" places.  Reported by David Evans in
9297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9298         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9299         because we want ASCII ranges.  Is there some reason we don't use
9300         the C locale everywhere in this script?
9301         (func_module, top level): Avoid unwanted pathname expansion when
9302         $repo_url_prefix or $repo_url_suffix_repl contain shell
9303         metacharacters like '?' and '*'.
9304
9305 2011-11-01  Bruno Haible  <bruno@clisp.org>
9306
9307         fchownat: Improve description.
9308         * modules/fchownat (Description): Add link to function.
9309
9310 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9311
9312         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9313         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9314         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9315         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9316
9317 2011-11-01  Bruno Haible  <bruno@clisp.org>
9318
9319         alignof: Avoid collision with stdalign module.
9320         * lib/alignof.h (alignof): Remove macro.
9321         * NEWS: Mention the change.
9322         Reported by Paul Eggert.
9323
9324 2011-11-01  Bruno Haible  <bruno@clisp.org>
9325
9326         New module 'fchownat', split off from module 'openat'.
9327         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9328         defined.
9329         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9330         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9331         invoke gl_FUNC_FCHOWNAT.
9332         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9333         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9334         * modules/fchownat: New file, extracted from modules/openat.
9335         * modules/openat (Files): Remove lib/fchownat.c.
9336         (Depends-on): Remove lchown.
9337         (configure.ac): Remove AC_LIBOBJ of fchownat.
9338         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9339         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9340         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9341         (Depends-on): Remove mgetgroups, usleep, stat-time.
9342         (configure.ac): Remove test for getegid.
9343         (Makefile.am): Remove rules for test-fchownat.
9344         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9345         of module 'openat'.
9346         * NEWS: Mention the change.
9347
9348 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9349
9350         stdalign: port better to MSVC and to Sun C 5.11
9351         This fixes some of the problems reported by Bruno Haible in
9352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9353         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9354         shortcomings of MSVC and of Sun C 5.11.
9355         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9356         around __declspec arg.
9357         * modules/stdalign-tests (Files): Add tests/macros.h.
9358         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9359         Include macros.h, for ASSERT.
9360         (DECLARE_ALIGNED): Remove.
9361         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9362         to catch bug), and to 1 if not (simplifies the rest of the code).
9363         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9364         (CHECK_AUTO): Remove.
9365         (CHECK_ALIGNED): Check only the alignment of the static vars,
9366         since auto var alignment isn't supported by Sun C 5.11.
9367         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9368         ASSERT failures are easier to diagnose.
9369
9370 2011-10-31  Bruno Haible  <bruno@clisp.org>
9371
9372         doc about some IRIX 5.3 problems.
9373         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9374         on IRIX 5.3.
9375         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9376         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9377         5.3.
9378         * doc/posix-functions/grantpt.texi: Likewise.
9379         * doc/posix-functions/unlockpt.texi: Likewise.
9380         * doc/posix-functions/lgamma.texi: Likewise.
9381         * doc/posix-functions/nextafter.texi: Likewise.
9382         * doc/posix-functions/remainder.texi: Likewise.
9383         * doc/posix-functions/select.texi: Mention misplaced declaration on
9384         IRIX 5.3.
9385         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9386
9387 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9388
9389         gitlog-to-changelog: fix git-log invocation.
9390         git-log mishandles date strings before 1970-01-01 UTC, and there is
9391         no use to specify --since=1970-01-01 by default anyway.
9392         * build-aux/gitlog-to-changelog: By default, when no --since option
9393         was given, do not specify explicit --since option to git-log.
9394
9395 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9396
9397         gitlog-to-changelog: new option --append-dot.
9398         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9399         first non-blank line of each commit message terminated with a dot.
9400
9401 2011-10-30  Bruno Haible  <bruno@clisp.org>
9402
9403         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9404         * lib/ffsl.h: Include <config.h>.
9405         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9406
9407 2011-10-30  Jim Meyering  <meyering@redhat.com>
9408
9409         GNUmakefile: reenable "make syntax-check" for most projects
9410         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9411         build-aux variable", "syntax-check" would do nothing but succeed with
9412         the "No version control files detected..." diagnostic (unless you
9413         happened to override _build-aux via cfg.mk).
9414         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9415         to precede inclusion of maint.mk.  Otherwise, these variables would
9416         be used undefined in any project that does not override the default.
9417
9418 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9419
9420         gitlog-to-changelog: treat a message with only blank lines as empty.
9421         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9422         trailing blank lines before the code that issues a warning about an
9423         empty commit message.
9424
9425 2011-10-30  Jim Meyering  <meyering@redhat.com>
9426
9427         test-parse-datetime.c: avoid new DST-related false positive test failure
9428         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9429         based on the time/date we'll convert, not the current time.
9430         Otherwise, the moment we cross a DST boundary like today's in
9431         Europe, (CEST to CET), that offset ends up being one hour off.
9432
9433 2011-10-27  Bruno Haible  <bruno@clisp.org>
9434
9435         fstat: Tweak documentation.
9436         * modules/fstat (Description): More precise description.
9437
9438 2011-10-27  Bruno Haible  <bruno@clisp.org>
9439
9440         Update documentation regarding 'largefile' module.
9441         * doc/posix-functions/fstat.texi: Tweak wording.
9442         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9443         problems with huge directories and/or small ino_t types.
9444         * doc/posix-functions/readdir.texi: Likewise.
9445         * doc/posix-functions/rewinddir.texi: Likewise.
9446
9447 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9448
9449         maint.mk: don't maintain a second build-aux variable.
9450         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9451         depends on GNUmakefile, which already maintains a cfg.mk
9452         overridable $(_build-aux) for projects with a non-standard
9453         build-aux directory location, although without the $(srcdir)
9454         prefix.  Use that variable consistently instead of introducing a
9455         second one.  Adjust all call sites.
9456
9457 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9458
9459         Add stdalign module and use it in other modules.
9460         This is based on a previous proposal by Bruno Haible
9461         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9462
9463         stdalign: new module
9464         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9465         * modules/stdalign: New files.
9466         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9467         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9468
9469         stdalign-tests: new module
9470         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9471
9472         argp: use stdalign
9473         * lib/argp-parse.c: Include <stdalign.h>.
9474         (alignof): Remove.
9475         * modules/argp (Depends-on): Add stdalign.
9476
9477         crypto libraries: use stdalign
9478         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9479         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9480         Do not include <stdlib.h> twice, in md4.c.
9481         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9482         because we are accessing a pointer's bit-pattern, not a size.
9483         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9484         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9485         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9486         * modules/crypto/sha512: Likewise.
9487
9488         sys_socket: use stdalign, not alignof
9489         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9490         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9491
9492 2011-10-27  Bruno Haible  <bruno@clisp.org>
9493
9494         raise test: Avoid a test failure on Linux/MIPS.
9495         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9496         because 99 is a valid signal on Linux/MIPS.
9497
9498 2011-10-27  Bruno Haible  <bruno@clisp.org>
9499
9500         nonblocking tests: Fix test failure on Linux/MIPS.
9501         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9502         Set to 270000.
9503
9504 2011-10-27  Bruno Haible  <bruno@clisp.org>
9505
9506         utimensat: Work around problem on Linux/hppa.
9507         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9508         values.
9509         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9510
9511 2011-10-25  Jim Meyering  <meyering@redhat.com>
9512
9513         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9514         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9515         after symbols like NULL, size_t, etc.
9516         Reported by Alfred M. Szmidt.
9517
9518         maint.mk: exempt ENODATA from a syntax-check rule
9519         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9520         from the sc_prohibit_always-defined_macros syntax-check rule.
9521         Add a comment.  See this for more details:
9522         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9523
9524 2011-10-23  Jim Meyering  <meyering@redhat.com>
9525
9526         fts: close parent dir FD before returning from post-traversal fts_read
9527         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9528         unlink A, even though an FD open on A remained.  This is suboptimal
9529         (holding a file descriptor open longer than needed), but otherwise not
9530         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9531         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9532         that represents a real problem: it causes the removal of A to fail
9533         with e.g., "rm: cannot remove `A': Device or resource busy"
9534
9535         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9536         directory file descriptors.  After completing the final, FTS_DP,
9537         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9538         cache, but then proceeded to add a new FD to it via the subsequent
9539         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9540         final file descriptor would be closed only via fts_close's call to
9541         fd_ring_clear.  Now, it is usually closed earlier, via the final
9542         FTS_DP-returning fts_read call.
9543         * lib/fts.c (restore_initial_cwd): New function, converted from
9544         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9545         Update callers.
9546         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9547         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9548
9549 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9550             Bruno Haible  <bruno@clisp.org>
9551             Jim Meyering  <jim@meyering.net>
9552
9553         readme-release: improve safety of release prep instructions.
9554         * README-release: Don't git pull all branches when only master
9555         is needed for the release process.
9556         Run make maintainer-clean before changing trees and merging.
9557         Don't try to run ./configure right after git pull in case files
9558         that influence the bootstrap process have changed, move the
9559         ./configure step to after running ./bootstrap.
9560         Don't bootstrap "one last time"... it's the first time!
9561
9562 2011-10-22  Bruno Haible  <bruno@clisp.org>
9563
9564         errno, strerror-override: Support for MSVC 10.
9565         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9566         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9567         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9568         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9569         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9570         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9571         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9572         Assign values compatible with MSVC 10.
9573         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9574         New macros.
9575         (GNULIB_defined_EWINSOCK): New macro.
9576         * lib/strerror-override.c (strerror_override): Update accordingly.
9577         * lib/strerror-override.h: Likewise.
9578         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9579         longer equal to the corresponding errno value.
9580         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9581
9582 2011-10-22  Bruno Haible  <bruno@clisp.org>
9583
9584         perror: Recognize when test program crashes.
9585         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
9586         strerror, set gl_cv_func_perror_works to no.
9587         Reported by Daniel Richard G. <skunk@iskunk.org>.
9588
9589         perror: Fix indentation.
9590         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
9591
9592 2011-10-22  Bruno Haible  <bruno@clisp.org>
9593
9594         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
9595         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
9596         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
9597         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
9598         functions, not as a macro.
9599         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
9600         macros.
9601         (isfinite, isinf, isnan, signbit): Check overloaded functions and
9602         absence of macro.
9603         Suggested by Eric Blake.
9604         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9605
9606 2011-10-21  Bruno Haible  <bruno@clisp.org>
9607
9608         relocatable-prog-wrapper: Don't leave object files behind.
9609         * build-aux/install-reloc: Re-synchronize list of .o files to be
9610         removed with list of compilation units.
9611
9612 2011-10-20  Bruno Haible  <bruno@clisp.org>
9613
9614         openpty, posix_openpt: Remove code duplication.
9615         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
9616         * lib/openpty.c: Include <stdlib.h>.
9617         (openpty): Use posix_openpt on all platforms except IRIX.
9618         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
9619
9620 2011-10-20  Bruno Haible  <bruno@clisp.org>
9621
9622         unlockpt: Detect invalid argument.
9623         * lib/unlockpt.c: Include <fcntl.h>.
9624         (unlockpt): Check whether fd is valid, using fcntl().
9625         * modules/unlockpt (Depends-on): Add fcntl-h.
9626
9627 2011-10-20  Bruno Haible  <bruno@clisp.org>
9628
9629         openpty: Avoid compilation error on AIX 6.1.
9630         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
9631
9632 2011-10-20  Bruno Haible  <bruno@clisp.org>
9633
9634         posix_openpt: Support for OpenBSD.
9635         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
9636         (posix_openpt) [OpenBSD]: New code.
9637         * lib/grantpt.c: Include <fcntl.h>.
9638         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
9639         * modules/grantpt (Depends-on): Add fcntl-h.
9640
9641 2011-10-20  Bruno Haible  <bruno@clisp.org>
9642
9643         posix_openpt test: Coding style.
9644         * tests/test-posix_openpt.c: Use GNU coding style.
9645
9646 2011-10-20  Bruno Haible  <bruno@clisp.org>
9647
9648         grantpt: Support --avoid=pt_chown.
9649         * modules/grantpt (Files): Add lib/pty-private.h.
9650
9651 2011-10-20  Bruno Haible  <bruno@clisp.org>
9652
9653         posix_openpt: Fix autoconf macro.
9654         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
9655         unneeded check for _getpty.
9656
9657 2011-10-20  Bruno Haible  <bruno@clisp.org>
9658
9659         openpty: Update comments.
9660         * lib/openpty.c: Add comments about Minix.
9661
9662 2011-10-19  Eric Blake  <eblake@redhat.com>
9663
9664         openpty: relax license
9665         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
9666
9667         pt_chown: use configmake to simplify build
9668         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
9669
9670         ptsname and others: relax license
9671         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
9672         * modules/unlockpt (License): Likewise.
9673         * modules/pt_chown (License): Likewise.
9674         * modules/ptsname (License): Likewise.
9675         * modules/ttyname_r (License): Likewise.
9676
9677 2011-10-19  Jim Meyering  <meyering@redhat.com>
9678
9679         posix_openpt: remove spurious #endif
9680         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
9681
9682 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
9683
9684         maint.mk: Respect $(build_aux) in web-manual rule.
9685         * top/maint.mk (web-manual): Find gen-announce script in user's
9686         $(build_aux) directory instead of hard-coding 'build-aux'.
9687
9688 2011-10-19  Bruno Haible  <bruno@clisp.org>
9689
9690         posix_openpt: Fix compilation error.
9691         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
9692         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
9693         Mention the openpty module as an alternative.
9694
9695 2011-10-19  Bruno Haible  <bruno@clisp.org>
9696
9697         Support for old NeXTstep 3.3 frexp().
9698         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
9699         execution time of the test to 5 seconds.
9700         Reported by Daniel Richard G. <skunk@iskunk.org>.
9701
9702 2011-10-19  Bruno Haible  <bruno@clisp.org>
9703
9704         Support for old NeXTstep 3.3 sed.
9705         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
9706         part, use /.../, not \|...|. Escape periods in the header file name.
9707         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9708         Reported by Daniel Richard G. <skunk@iskunk.org>.
9709
9710 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9711
9712         Support for old NeXTstep 3.3 gcc.
9713         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
9714         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
9715         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
9716         * lib/spawn.in.h (_Restrict_arr_): Likewise.
9717         * lib/regex.h (_Restrict_arr_): Likewise.
9718         * lib/regex_internal.h (re_token_t): Likewise.
9719         * lib/regexec.c (check_node_accept_bytes): Likewise.
9720         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
9721
9722 2011-10-18  Eric Blake  <eblake@redhat.com>
9723
9724         posix_openpt: new module
9725         * modules/posix_openpt: New module.
9726         * m4/posix_openpt.m4: New file.
9727         * lib/posix_openpt.c: Likewise.
9728         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9729         (gl_STDLIB_H_DEFAULTS): Set defaults.
9730         * modules/stdlib (Makefile.am): Substitute macros.
9731         * lib/stdlib.in.h (posix_openpt): Declare.
9732         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
9733         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
9734         * modules/posix_openpt-tests: New test module.
9735         * tests/test-posix_openpt.c: New test.
9736
9737 2011-10-15  Bruno Haible  <bruno@clisp.org>
9738
9739         xstrtoll: Fix compilation failure.
9740         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
9741         from lib/strtol.c.
9742         * doc/posix-headers/limits.texi: Mention missing numerical limits on
9743         some platforms.
9744         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9745
9746 2011-10-15  Bruno Haible  <bruno@clisp.org>
9747
9748         vasnprintf: Optimize bit search operation.
9749         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
9750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
9751         gl_DOUBLE_EXPONENT_LOCATION.
9752         * modules/vasnprintf (Files): Add m4/exponentd.m4.
9753         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9754         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9755         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9756         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9757         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9758         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9759         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9760         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
9761
9762 2011-10-15  Bruno Haible  <bruno@clisp.org>
9763
9764         vasnprintf: Fix comments.
9765         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
9766
9767 2011-10-14  Bruno Haible  <bruno@clisp.org>
9768
9769         Tests for module 'integer_length_ll'.
9770         * modules/integer_length_ll-tests: New file.
9771         * tests/test-integer_length_ll.c: New file.
9772
9773         New module 'integer_length_ll'.
9774         * lib/integer_length_ll.c: New file.
9775         * modules/integer_length_ll: New file.
9776
9777 2011-10-14  Bruno Haible  <bruno@clisp.org>
9778
9779         Tests for module 'integer_length_l'.
9780         * modules/integer_length_l-tests: New file.
9781         * tests/test-integer_length_l.c: New file.
9782
9783         New module 'integer_length_l'.
9784         * lib/integer_length_l.c: New file.
9785         * modules/integer_length_l: New file.
9786
9787 2011-10-14  Bruno Haible  <bruno@clisp.org>
9788
9789         Tests for module 'integer_length'.
9790         * modules/integer_length-tests: New file.
9791         * tests/test-integer_length.c: New file.
9792
9793         New module 'integer_length'.
9794         * lib/integer_length.h: New file.
9795         * lib/integer_length.c: New file.
9796         * modules/integer_length: New file.
9797
9798 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9799
9800         popen: Fix dependency conditions.
9801         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
9802
9803 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9804
9805         perror: Fix autoconf test.
9806         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
9807         <stdlib.h> and <string.h>.
9808
9809 2011-10-14  Bruno Haible  <bruno@clisp.org>
9810
9811         ffsl: Optimize on 64-bit platforms.
9812         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
9813         unrolling.
9814
9815 2011-10-13  Bruno Haible  <bruno@clisp.org>
9816
9817         ffsl: Optimize on 32-bit platforms.
9818         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
9819         use ffs() without a loop.
9820
9821         ffsl, ffsll: Optimize for GCC.
9822         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
9823         * lib/ffsl.c (GCC_BUILTIN): New macro.
9824         * lib/ffsll.c (GCC_BUILTIN): Likewise.
9825
9826 2011-10-13  Bruno Haible  <bruno@clisp.org>
9827
9828         ffs, bcopy, memset: Support symbol renaming via config.h.
9829         * lib/ffs.c: Include <config.h>.
9830         * lib/bcopy.c: Likewise.
9831         * lib/memset.c: Likewise.
9832
9833 2011-10-10  Bruno Haible  <bruno@clisp.org>
9834
9835         atanl: Simplify for platforms where 'long double' == 'double'.
9836         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9837         alternative implementation.
9838         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9839         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9840         * modules/atanl (Depends-on): Add atan. Update conditions.
9841
9842 2011-10-10  Bruno Haible  <bruno@clisp.org>
9843
9844         acosl: Simplify for platforms where 'long double' == 'double'.
9845         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9846         alternative implementation.
9847         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9848         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9849         * modules/acosl (Depends-on): Add acos. Update conditions.
9850
9851 2011-10-10  Bruno Haible  <bruno@clisp.org>
9852
9853         asinl: Simplify for platforms where 'long double' == 'double'.
9854         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9855         alternative implementation.
9856         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9857         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9858         * modules/asinl (Depends-on): Add asin. Update conditions.
9859
9860 2011-10-10  Bruno Haible  <bruno@clisp.org>
9861
9862         tanl: Simplify for platforms where 'long double' == 'double'.
9863         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9864         implementation.
9865         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9866         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9867         * modules/tanl (Depends-on): Add tan. Update conditions.
9868         (configure.ac): Don't compile trigl.c if
9869         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9870
9871 2011-10-10  Bruno Haible  <bruno@clisp.org>
9872
9873         cosl: Simplify for platforms where 'long double' == 'double'.
9874         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9875         implementation.
9876         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9877         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9878         * modules/cosl (Depends-on): Add cos. Update conditions.
9879         (configure.ac): Don't compile sincosl.c and trigl.c if
9880         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9881
9882 2011-10-10  Bruno Haible  <bruno@clisp.org>
9883
9884         sinl: Simplify for platforms where 'long double' == 'double'.
9885         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9886         implementation.
9887         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9888         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9889         * modules/sinl (Depends-on): Add sin. Update conditions.
9890         (configure.ac): Don't compile sincosl.c and trigl.c if
9891         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9892
9893 2011-10-10  Bruno Haible  <bruno@clisp.org>
9894
9895         logl: Simplify for platforms where 'long double' == 'double'.
9896         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9897         implementation.
9898         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9899         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9900         * modules/logl (Depends-on): Add log. Update conditions.
9901
9902 2011-10-10  Bruno Haible  <bruno@clisp.org>
9903
9904         expl: Simplify for platforms where 'long double' == 'double'.
9905         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9906         implementation.
9907         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9908         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9909         * modules/expl (Depends-on): Add exp. Update conditions.
9910
9911 2011-10-10  Bruno Haible  <bruno@clisp.org>
9912
9913         sqrtl: Simplify for platforms where 'long double' == 'double'.
9914         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9915         alternative implementation.
9916         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9917         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9918         * modules/sqrtl (Depends-on): Update conditions.
9919
9920 2011-10-10  Bruno Haible  <bruno@clisp.org>
9921
9922         ldexpl: Simplify for platforms where 'long double' == 'double'.
9923         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9924         alternative implementation.
9925         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9926         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9927         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
9928
9929 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
9930
9931         ffsll: set correct witness
9932         * modules/ffsll (configure.ac): Fix typo.
9933
9934 2011-10-10  Bruno Haible  <bruno@clisp.org>
9935
9936         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
9937         * lib/printf-frexpl.c: Include <config.h>.
9938         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9939         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
9940         second time.
9941         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
9942         gl_LONG_DOUBLE_VS_DOUBLE.
9943         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
9944         conditions.
9945
9946 2011-10-10  Bruno Haible  <bruno@clisp.org>
9947
9948         frexpl: Simplify for platforms where 'long double' == 'double'.
9949         * lib/frexpl.c: Include <config.h>.
9950         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9951         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9952         time.
9953         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9954         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9955         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
9956         * modules/frexpl (Depends-on): Add frexp. Update conditions.
9957         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
9958         conditions.
9959
9960 2011-10-10  Jim Meyering  <meyering@redhat.com>
9961
9962         test-renameat: don't leave behind a temporary file
9963         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
9964           ERROR: files left in build directory after distclean:
9965           ./gltests/test-renameat.too
9966           make[1]: *** [distcleancheck] Error 1
9967         Reported by Tom G. Christensen.
9968
9969 2011-10-09  Bruno Haible  <bruno@clisp.org>
9970
9971         rint: Determine RINT_LIBM correctly on AIX 7.
9972         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
9973         directly, not only through a function pointer. Also accept an optional
9974         4th argument with extra code.
9975         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
9976         rintf() call by gcc when optimizing.
9977
9978         mathfunc.m4: Refactor.
9979         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
9980         m4 variable.
9981
9982 2011-10-09  Bruno Haible  <bruno@clisp.org>
9983
9984         rintl: Simplify for platforms where 'long double' == 'double'.
9985         * lib/rintl.c: Include <config.h>.
9986         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9987         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9988         time.
9989         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9990         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9991         * modules/rintl (Depends-on): Add rint. Update conditions.
9992
9993 2011-10-09  Bruno Haible  <bruno@clisp.org>
9994
9995         roundl: Simplify for platforms where 'long double' == 'double'.
9996         * lib/roundl.c: Include <config.h>.
9997         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9998         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9999         time.
10000         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10001         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10002         * modules/roundl (Depends-on): Add round. Update conditions.
10003
10004 2011-10-09  Bruno Haible  <bruno@clisp.org>
10005
10006         truncl: Simplify for platforms where 'long double' == 'double'.
10007         * lib/truncl.c: Include <config.h>.
10008         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10009         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10010         time.
10011         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10012         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10013         * modules/truncl (Depends-on): Add trunc. Update conditions.
10014
10015 2011-10-09  Bruno Haible  <bruno@clisp.org>
10016
10017         ceill: Simplify for platforms where 'long double' == 'double'.
10018         * lib/ceill.c: Include <config.h>.
10019         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10020         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10021         time.
10022         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10023         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10024         * modules/ceill (Depends-on): Add ceil. Update conditions.
10025
10026 2011-10-09  Bruno Haible  <bruno@clisp.org>
10027
10028         floorl: Simplify for platforms where 'long double' == 'double'.
10029         * lib/floorl.c: Include <config.h>.
10030         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10031         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10032         time.
10033         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10034         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10035         * modules/floorl (Depends-on): Add floor. Update conditions.
10036
10037 2011-10-09  Bruno Haible  <bruno@clisp.org>
10038
10039         rint: Fix ordering constraints.
10040         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10041         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10042         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10043
10044 2011-10-09  Bruno Haible  <bruno@clisp.org>
10045
10046         copysignl: Simplify for platforms where 'long double' == 'double'.
10047         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10048         alternative.
10049         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10050         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10051         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10052
10053 2011-10-09  Bruno Haible  <bruno@clisp.org>
10054
10055         Tests for module 'rintl'.
10056         * modules/rintl-tests: New file.
10057         * tests/test-rintl.c: New file.
10058
10059         New module 'rintl'.
10060         * lib/math.in.h (rintl): New declaration.
10061         * lib/rintl.c: New file.
10062         * m4/rintl.m4: New file.
10063         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10065         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10066         * modules/rintl: New file.
10067         * tests/test-math-c++.cc: Check the declaration of rintl.
10068         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10069         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10070         * doc/posix-functions/rintl.texi: Mention the new module.
10071
10072 2011-10-09  Bruno Haible  <bruno@clisp.org>
10073
10074         Tests for module 'rintf'.
10075         * modules/rintf-tests: New file.
10076         * tests/test-rintf.c: New file.
10077
10078         New module 'rintf'.
10079         * lib/math.in.h (rintf): New declaration.
10080         * lib/rintf.c: New file.
10081         * m4/rintf.m4: New file.
10082         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10083         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10084         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10085         * modules/rintf: New file.
10086         * tests/test-math-c++.cc: Check the declaration of rintf.
10087         * doc/posix-functions/rintf.texi: Mention the new module.
10088
10089 2011-10-09  Bruno Haible  <bruno@clisp.org>
10090
10091         rint: Support for MSVC.
10092         * lib/math.in.h (rint): New declaration.
10093         * lib/rint.c: New file.
10094         * m4/rint.m4: New file.
10095         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10097         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10098         * modules/rint (Description): Fix.
10099         (Files): Add lib/rint.c, m4/rint.m4.
10100         (Depends-on): Add math.
10101         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10102         gl_MATH_MODULE_INDICATOR.
10103         * tests/test-math-c++.cc: Check the declaration of rint.
10104         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10105         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10106         * doc/posix-functions/rint.texi: Mention the replacement provided by
10107         the module.
10108
10109         rint tests: More tests.
10110         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10111         minus-zero.h, infinity.h, nan.h.
10112         (main): Skip the test if the current rounding mode is not standard. Add
10113         tests for negative numbers, minus zero, infinity, NaN.
10114         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10115         tests/nan.h.
10116         (Depends-on): Add isnand-nolibm.
10117
10118 2011-10-09  Bruno Haible  <bruno@clisp.org>
10119
10120         Tests for module 'copysignl'.
10121         * modules/copysignl-tests: New file.
10122         * tests/test-copysignl.c: New file.
10123
10124         New module 'copysignl'.
10125         * lib/math.in.h (copysignl): New declaration.
10126         * lib/copysignl.c: New file.
10127         * m4/copysignl.m4: New file.
10128         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10129         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10130         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10131         HAVE_COPYSIGNL.
10132         * modules/copysignl: New file.
10133         * tests/test-math-c++.cc: Check the declaration of copysignl.
10134         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10135         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10136         * doc/posix-functions/copysignl.texi: Mention the new module.
10137
10138 2011-10-09  Bruno Haible  <bruno@clisp.org>
10139
10140         Tests for module 'copysignf'.
10141         * modules/copysignf-tests: New file.
10142         * tests/test-copysignf.c: New file.
10143
10144         New module 'copysignf'.
10145         * lib/math.in.h (copysignf): New declaration.
10146         * lib/copysignf.c: New file.
10147         * m4/copysignf.m4: New file.
10148         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10150         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10151         HAVE_COPYSIGNF.
10152         * modules/copysignf: New file.
10153         * tests/test-math-c++.cc: Check the declaration of copysignf.
10154         * doc/posix-functions/copysignf.texi: Mention the new module.
10155
10156 2011-10-09  Bruno Haible  <bruno@clisp.org>
10157
10158         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10159         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10160         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10161         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10162         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10163         gl_SIGNAL_H_DEFAULTS.
10164
10165 2011-10-09  Bruno Haible  <bruno@clisp.org>
10166
10167         poll: Make macro safer.
10168         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10169         ac_cv_header_poll_h is not set.
10170
10171 2011-10-09  Bruno Haible  <bruno@clisp.org>
10172
10173         copysign: Provide replacement.
10174         * lib/math.in.h (copysign): New declaration.
10175         * lib/copysign.c: New file.
10176         * m4/copysign.m4: New file.
10177         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10179         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10180         HAVE_COPYSIGN.
10181         * modules/copysign (Description): Clarify.
10182         (Files): Add lib/copysign.c, m4/copysign.m4.
10183         (Depends-on): Add math, signbit.
10184         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10185         gl_MATH_MODULE_INDICATOR.
10186         * tests/test-math-c++.cc: Check the declaration of copysign.
10187         * doc/posix-functions/copysign.texi: Mention the effects of the module
10188         on Minix and MSVC.
10189
10190 2011-10-09  Bruno Haible  <bruno@clisp.org>
10191
10192         isinf: Ensure macro on AIX 5.1.
10193         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10194         macro.
10195         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10196
10197 2011-10-09  Bruno Haible  <bruno@clisp.org>
10198
10199         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10200         * modules/snprintf-posix-tests (configure.ac): Require
10201         gl_LONG_DOUBLE_VS_DOUBLE.
10202         * modules/sprintf-posix-tests (configure.ac): Likewise.
10203         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10204         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10205         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10206         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10207         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10208         tests on platforms where 'long double' is the same as 'double'.
10209         * tests/test-sprintf-posix.h (test_function): Likewise.
10210         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10211         * tests/test-vasprintf-posix.c (test_function): Likewise.
10212
10213         *printf: Fix for platforms where 'long double' == 'double'.
10214         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10215         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10216         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10217         * modules/fprintf-posix (Files): Likewise.
10218         * modules/obstack-printf-posix (Files): Likewise.
10219         * modules/snprintf-posix (Files): Likewise.
10220         * modules/sprintf-posix (Files): Likewise.
10221         * modules/vasnprintf (Files): Likewise.
10222         * modules/vasnprintf-posix (Files): Likewise.
10223         * modules/vasprintf-posix (Files): Likewise.
10224         * modules/vdprintf-posix (Files): Likewise.
10225         * modules/vfprintf-posix (Files): Likewise.
10226         * modules/vsnprintf-posix (Files): Likewise.
10227         * modules/vsprintf-posix (Files): Likewise.
10228         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10229         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10230         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10231         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10232         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10233         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10234         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10235
10236         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10237         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10238         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10239         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10240         'long double'.
10241         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10242
10243         isinf: Fix for platforms where 'long double' == 'double'.
10244         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10245         Don't blindly assume 80-bit 'long double'.
10246
10247         isfinite: Fix for platforms where 'long double' == 'double'.
10248         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10249         Don't blindly assume 80-bit 'long double'.
10250
10251         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10252         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10253         * modules/isfinite-tests (configure.ac): Require
10254         gl_LONG_DOUBLE_VS_DOUBLE.
10255         * modules/isinf-tests (configure.ac): Likewise.
10256         * modules/isnan-tests (configure.ac): Likewise.
10257         * modules/isnanl-tests (configure.ac): Likewise.
10258         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10259         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10260         tests on platforms where 'long double' is the same as 'double'.
10261         * tests/test-isinf.c (test_isinfl): Likewise.
10262         * tests/test-isnan.c (test_long_double): Likewise.
10263         * tests/test-isnanl.h (main): Likewise.
10264
10265 2011-10-08  Bruno Haible  <bruno@clisp.org>
10266
10267         Tests for module 'tanhf'.
10268         * modules/tanhf-tests: New file.
10269         * tests/test-tanhf.c: New file.
10270
10271         New module 'tanhf'.
10272         * lib/math.in.h (tanhf): New declaration.
10273         * lib/tanhf.c: New file.
10274         * m4/tanhf.m4: New file.
10275         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10277         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10278         * modules/tanhf: New file.
10279         * tests/test-math-c++.cc: Check the declaration of tanhf.
10280         * doc/posix-functions/tanhf.texi: Mention the new module.
10281
10282         tanh: Use a .m4 file.
10283         * m4/tanh.m4: New file.
10284         * modules/tanh (Files): Add it.
10285         (configure.ac): Just invoke gl_FUNC_TANH.
10286
10287 2011-10-08  Bruno Haible  <bruno@clisp.org>
10288
10289         Tests for module 'coshf'.
10290         * modules/coshf-tests: New file.
10291         * tests/test-coshf.c: New file.
10292
10293         New module 'coshf'.
10294         * lib/math.in.h (coshf): New declaration.
10295         * lib/coshf.c: New file.
10296         * m4/coshf.m4: New file.
10297         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10298         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10299         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10300         * modules/coshf: New file.
10301         * tests/test-math-c++.cc: Check the declaration of coshf.
10302         * doc/posix-functions/coshf.texi: Mention the new module.
10303
10304         cosh: Use a .m4 file.
10305         * m4/cosh.m4: New file.
10306         * modules/cosh (Files): Add it.
10307         (configure.ac): Just invoke gl_FUNC_COSH.
10308
10309 2011-10-08  Bruno Haible  <bruno@clisp.org>
10310
10311         Tests for module 'sinhf'.
10312         * modules/sinhf-tests: New file.
10313         * tests/test-sinhf.c: New file.
10314
10315         New module 'sinhf'.
10316         * lib/math.in.h (sinhf): New declaration.
10317         * lib/sinhf.c: New file.
10318         * m4/sinhf.m4: New file.
10319         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10321         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10322         * modules/sinhf: New file.
10323         * tests/test-math-c++.cc: Check the declaration of sinhf.
10324         * doc/posix-functions/sinhf.texi: Mention the new module.
10325
10326         sinh: Use a .m4 file.
10327         * m4/sinh.m4: New file.
10328         * modules/sinh (Files): Add it.
10329         (configure.ac): Just invoke gl_FUNC_SINH.
10330
10331 2011-10-08  Bruno Haible  <bruno@clisp.org>
10332
10333         Tests for module 'atan2f'.
10334         * modules/atan2f-tests: New file.
10335         * tests/test-atan2f.c: New file.
10336
10337         New module 'atan2f'.
10338         * lib/math.in.h (atan2f): New declaration.
10339         * lib/atan2f.c: New file.
10340         * m4/atan2f.m4: New file.
10341         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10342         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10343         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10344         * modules/atan2f: New file.
10345         * tests/test-math-c++.cc: Check the declaration of atan2f.
10346         * doc/posix-functions/atan2f.texi: Mention the new module.
10347
10348         atan2: Use a .m4 file.
10349         * m4/atan2.m4: New file.
10350         * modules/atan2 (Files): Add it.
10351         (configure.ac): Just invoke gl_FUNC_ATAN2.
10352
10353 2011-10-08  Bruno Haible  <bruno@clisp.org>
10354
10355         Tests for module 'atanf'.
10356         * modules/atanf-tests: New file.
10357         * tests/test-atanf.c: New file.
10358
10359         New module 'atanf'.
10360         * lib/math.in.h (atanf): New declaration.
10361         * lib/atanf.c: New file.
10362         * m4/atanf.m4: New file.
10363         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10364         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10365         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10366         * modules/atanf: New file.
10367         * tests/test-math-c++.cc: Check the declaration of atanf.
10368         * doc/posix-functions/atanf.texi: Mention the new module.
10369
10370         atan: Use a .m4 file.
10371         * m4/atan.m4: New file.
10372         * modules/atan (Files): Add it.
10373         (configure.ac): Just invoke gl_FUNC_ATAN.
10374
10375 2011-10-08  Bruno Haible  <bruno@clisp.org>
10376
10377         Tests for module 'acosf'.
10378         * modules/acosf-tests: New file.
10379         * tests/test-acosf.c: New file.
10380
10381         New module 'acosf'.
10382         * lib/math.in.h (acosf): New declaration.
10383         * lib/acosf.c: New file.
10384         * m4/acosf.m4: New file.
10385         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10386         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10387         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10388         * modules/acosf: New file.
10389         * tests/test-math-c++.cc: Check the declaration of acosf.
10390         * doc/posix-functions/acosf.texi: Mention the new module.
10391
10392         acos: Use a .m4 file.
10393         * m4/acos.m4: New file.
10394         * modules/acos (Files): Add it.
10395         (configure.ac): Just invoke gl_FUNC_ACOS.
10396
10397 2011-10-08  Bruno Haible  <bruno@clisp.org>
10398
10399         Tests for module 'asinf'.
10400         * modules/asinf-tests: New file.
10401         * tests/test-asinf.c: New file.
10402
10403         New module 'asinf'.
10404         * lib/math.in.h (asinf): New declaration.
10405         * lib/asinf.c: New file.
10406         * m4/asinf.m4: New file.
10407         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10409         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10410         * modules/asinf: New file.
10411         * tests/test-math-c++.cc: Check the declaration of asinf.
10412         * doc/posix-functions/asinf.texi: Mention the new module.
10413
10414         asin: Use a .m4 file.
10415         * m4/asin.m4: New file.
10416         * modules/asin (Files): Add it.
10417         (configure.ac): Just invoke gl_FUNC_ASIN.
10418
10419 2011-10-08  Bruno Haible  <bruno@clisp.org>
10420
10421         Tests for module 'tanf'.
10422         * modules/tanf-tests: New file.
10423         * tests/test-tanf.c: New file.
10424
10425         New module 'tanf'.
10426         * lib/math.in.h (tanf): New declaration.
10427         * lib/tanf.c: New file.
10428         * m4/tanf.m4: New file.
10429         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10430         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10431         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10432         * modules/tanf: New file.
10433         * tests/test-math-c++.cc: Check the declaration of tanf.
10434         * doc/posix-functions/tanf.texi: Mention the new module.
10435
10436         tan: Use a .m4 file.
10437         * m4/tan.m4: New file.
10438         * modules/tan (Files): Add it.
10439         (configure.ac): Just invoke gl_FUNC_TAN.
10440
10441 2011-10-08  Bruno Haible  <bruno@clisp.org>
10442
10443         Tests for module 'cosf'.
10444         * modules/cosf-tests: New file.
10445         * tests/test-cosf.c: New file.
10446
10447         New module 'cosf'.
10448         * lib/math.in.h (cosf): New declaration.
10449         * lib/cosf.c: New file.
10450         * m4/cosf.m4: New file.
10451         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10452         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10453         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10454         * modules/cosf: New file.
10455         * tests/test-math-c++.cc: Check the declaration of cosf.
10456         * doc/posix-functions/cosf.texi: Mention the new module.
10457
10458         cos: Use a .m4 file.
10459         * m4/cos.m4: New file.
10460         * modules/cos (Files): Add it.
10461         (configure.ac): Just invoke gl_FUNC_COS.
10462
10463 2011-10-08  Bruno Haible  <bruno@clisp.org>
10464
10465         Tests for module 'sinf'.
10466         * modules/sinf-tests: New file.
10467         * tests/test-sinf.c: New file.
10468
10469         New module 'sinf'.
10470         * lib/math.in.h (sinf): New declaration.
10471         * lib/sinf.c: New file.
10472         * m4/sinf.m4: New file.
10473         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10474         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10475         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10476         * modules/sinf: New file.
10477         * tests/test-math-c++.cc: Check the declaration of sinf.
10478         * doc/posix-functions/sinf.texi: Mention the new module.
10479
10480         sin: Use a .m4 file.
10481         * m4/sin.m4: New file.
10482         * modules/sin (Files): Add it.
10483         (configure.ac): Just invoke gl_FUNC_SIN.
10484
10485 2011-10-08  Bruno Haible  <bruno@clisp.org>
10486
10487         Tests for module 'powf'.
10488         * modules/powf-tests: New file.
10489         * tests/test-powf.c: New file.
10490
10491         New module 'powf'.
10492         * lib/math.in.h (powf): New declaration.
10493         * lib/powf.c: New file.
10494         * m4/powf.m4: New file.
10495         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10496         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10497         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10498         * modules/powf: New file.
10499         * tests/test-math-c++.cc: Check the declaration of powf.
10500         * doc/posix-functions/powf.texi: Mention the new module.
10501
10502         pow: Use a .m4 file.
10503         * m4/pow.m4: New file.
10504         * modules/pow (Files): Add it.
10505         (configure.ac): Just invoke gl_FUNC_POW.
10506
10507 2011-10-08  Bruno Haible  <bruno@clisp.org>
10508
10509         Tests for module 'log10f'.
10510         * modules/log10f-tests: New file.
10511         * tests/test-log10f.c: New file.
10512
10513         New module 'log10f'.
10514         * lib/math.in.h (log10f): New declaration.
10515         * lib/log10f.c: New file.
10516         * m4/log10f.m4: New file.
10517         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10518         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10519         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10520         * modules/log10f: New file.
10521         * tests/test-math-c++.cc: Check the declaration of log10f.
10522         * doc/posix-functions/log10f.texi: Mention the new module.
10523
10524         log10: Use a .m4 file.
10525         * m4/log10.m4: New file.
10526         * modules/log10 (Files): Add it.
10527         (configure.ac): Just invoke gl_FUNC_LOG10.
10528
10529 2011-10-08  Bruno Haible  <bruno@clisp.org>
10530
10531         Tests for module 'logf'.
10532         * modules/logf-tests: New file.
10533         * tests/test-logf.c: New file.
10534
10535         New module 'logf'.
10536         * lib/math.in.h (logf): New declaration.
10537         * lib/logf.c: New file.
10538         * m4/logf.m4: New file.
10539         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10540         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10541         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10542         * modules/logf: New file.
10543         * tests/test-math-c++.cc: Check the declaration of logf.
10544         * doc/posix-functions/logf.texi: Mention the new module.
10545
10546         log: Use a .m4 file.
10547         * m4/log.m4: New file.
10548         * modules/log (Files): Add it.
10549         (configure.ac): Just invoke gl_FUNC_LOG.
10550
10551 2011-10-08  Bruno Haible  <bruno@clisp.org>
10552
10553         Tests for module 'expf'.
10554         * modules/expf-tests: New file.
10555         * tests/test-expf.c: New file.
10556
10557         New module 'expf'.
10558         * lib/math.in.h (expf): New declaration.
10559         * lib/expf.c: New file.
10560         * m4/expf.m4: New file.
10561         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10563         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10564         * modules/expf: New file.
10565         * tests/test-math-c++.cc: Check the declaration of expf.
10566         * doc/posix-functions/expf.texi: Mention the new module.
10567
10568         exp: Use a .m4 file.
10569         * m4/exp.m4: New file.
10570         * modules/exp (Files): Add it.
10571         (configure.ac): Just invoke gl_FUNC_EXP.
10572
10573 2011-10-08  Bruno Haible  <bruno@clisp.org>
10574
10575         Tests for module 'sqrtf'.
10576         * modules/sqrtf-tests: New file.
10577         * tests/test-sqrtf.c: New file.
10578
10579         New module 'sqrtf'.
10580         * lib/math.in.h (sqrtf): New declaration.
10581         * lib/sqrtf.c: New file.
10582         * m4/sqrtf.m4: New file.
10583         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
10585         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
10586         * modules/sqrtf: New file.
10587         * tests/test-math-c++.cc: Check the declaration of sqrtf.
10588         * doc/posix-functions/sqrtf.texi: Mention the new module.
10589
10590 2011-10-08  Bruno Haible  <bruno@clisp.org>
10591
10592         Tests: Avoid link failures w.r.t. libintl.
10593         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
10594         $(LIBINTL).
10595         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
10596         $(LIBINTL).
10597         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
10598         against $(LIBINTL).
10599         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
10600         $(LIBINTL).
10601         * modules/openat-tests (Makefile.am): Link test-fchmodat against
10602         $(LIBINTL).
10603         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
10604
10605 2011-10-08  Bruno Haible  <bruno@clisp.org>
10606
10607         pow tests: Defeat compiler optimizations.
10608         * tests/test-pow.c (main): Assign arguments to x and y before use.
10609
10610 2011-10-08  Bruno Haible  <bruno@clisp.org>
10611
10612         gnulib-tool: Improve last commit.
10613         * gnulib-tool (func_modules_transitive_closure): Simplify code.
10614         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
10615         ignore dependencies that are not among the modules list.
10616
10617 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
10618
10619         gnulib-tool: don't follow dependencies to avoided modules
10620         This fixes a bug that is related to the previous one.
10621         * gnulib-tool (func_modules_transitive_closure)
10622         (func_emit_autoconf_snippets):
10623         Check whether a dependency is acceptable before using it.
10624         (--extract-dependencies): Report an error if --avoid is also used,
10625         since this combination of options is not yet supported.
10626
10627         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
10628         Problem reported by Peter Dyballa in
10629         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
10630         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
10631         when echoing "$condition".
10632
10633 2011-10-07  Bruno Haible  <bruno@clisp.org>
10634
10635         Fix documentation about math functions on MacOS X.
10636         * doc/posix-functions/exp2.texi: Don't say the function is missing on
10637         MacOS X 10.5.
10638         * doc/posix-functions/fdim.texi: Likewise.
10639         * doc/posix-functions/feclearexcept.texi: Likewise.
10640         * doc/posix-functions/fegetenv.texi: Likewise.
10641         * doc/posix-functions/fegetround.texi: Likewise.
10642         * doc/posix-functions/feholdexcept.texi: Likewise.
10643         * doc/posix-functions/feraiseexcept.texi: Likewise.
10644         * doc/posix-functions/fesetenv.texi: Likewise.
10645         * doc/posix-functions/fesetround.texi: Likewise.
10646         * doc/posix-functions/fetestexcept.texi: Likewise.
10647         * doc/posix-functions/feupdateenv.texi: Likewise.
10648         * doc/posix-functions/fmax.texi: Likewise.
10649         * doc/posix-functions/fmin.texi: Likewise.
10650         * doc/posix-functions/log2.texi: Likewise.
10651         * doc/posix-functions/modff.texi: Likewise.
10652         * doc/posix-functions/nan.texi: Likewise.
10653         * doc/posix-functions/nanf.texi: Likewise.
10654         * doc/posix-functions/nextafterf.texi: Likewise.
10655         * doc/posix-functions/remquo.texi: Likewise.
10656
10657 2011-10-07  Bruno Haible  <bruno@clisp.org>
10658
10659         modff: Drop assumption about library that defines modff.
10660         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
10661         AC_CHECK_FUNCS.
10662         * modules/modff (Files): Add m4/mathfunc.m4.
10663
10664 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
10665
10666         raise tests: Avoid a GCC warning.
10667         * tests/test-raise.c (handler): Use _Noreturn.
10668
10669 2011-10-07  Bruno Haible  <bruno@clisp.org>
10670
10671         Tests for module 'ldexpf'.
10672         * modules/ldexpf-tests: New file.
10673         * tests/test-ldexpf.c: New file.
10674
10675         New module 'ldexpf'.
10676         * lib/math.in.h (ldexpf): New declaration.
10677         * lib/ldexpf.c: New file.
10678         * m4/ldexpf.m4: New file.
10679         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
10680         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
10681         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
10682         * modules/ldexpf: New file.
10683         * tests/test-math-c++.cc: Check the declaration of ldexpf.
10684         * doc/posix-functions/ldexpf.texi: Mention the new module.
10685
10686 2011-10-06  Bruno Haible  <bruno@clisp.org>
10687
10688         frexpf: Work around problems on IRIX and mingw.
10689         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
10690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
10691         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
10692         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
10693         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
10694         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
10695         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
10696
10697 2011-10-06  Bruno Haible  <bruno@clisp.org>
10698
10699         fabsf: Drop assumption about library that defines fabsf.
10700         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
10701         AC_CHECK_FUNCS.
10702         * modules/fabsf (Files): Add m4/mathfunc.m4.
10703
10704 2011-10-06  Bruno Haible  <bruno@clisp.org>
10705
10706         frexpf: Drop assumption about library that defines frexpf.
10707         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
10708         'int *', 'float *', 'long double *', 'float', 'long double'.
10709         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
10710         AC_CHECK_FUNCS.
10711         * modules/frexpf (Files): Add m4/mathfunc.m4.
10712
10713         Tests for module 'frexpf'.
10714         * modules/frexpf-tests: New file.
10715         * tests/test-frexpf.c: New file.
10716
10717         New module 'frexpf'.
10718         * lib/math.in.h (frexpf): New declaration.
10719         * lib/frexpf.c: New file.
10720         * m4/frexpf.m4: New file.
10721         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
10722         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
10723         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
10724         * modules/frexpf: New file.
10725         * tests/test-math-c++.cc: Check the declaration of frexpf.
10726         * doc/posix-functions/frexpf.texi: Mention the new module.
10727
10728 2011-10-06  Bruno Haible  <bruno@clisp.org>
10729
10730         math: Sort function declarations of math.in.h.
10731         * lib/math.in.h (frexp, logb): Move declarations.
10732
10733 2011-10-05  Bruno Haible  <bruno@clisp.org>
10734
10735         Tests for module 'modff'.
10736         * modules/modff-tests: New file.
10737         * tests/test-modff.c: New file.
10738
10739         New module 'modff'.
10740         * lib/math.in.h (modff): New declaration.
10741         * lib/modff.c: New file.
10742         * m4/modff.m4: New file.
10743         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
10744         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
10745         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
10746         * modules/modff: New file.
10747         * tests/test-math-c++.cc: Check the declaration of modff.
10748         * doc/posix-functions/modff.texi: Mention the new module.
10749
10750         modf tests: Make test sharper.
10751         * tests/test-modf.c (main): Strengthen upper bound.
10752
10753         modf: Use a .m4 file.
10754         * m4/modf.m4: New file.
10755         * modules/modf (Files): Add it.
10756         (configure.ac): Just invoke gl_FUNC_MODF.
10757
10758 2011-10-05  Bruno Haible  <bruno@clisp.org>
10759
10760         Tests for module 'fmodf'.
10761         * modules/fmodf-tests: New file.
10762         * tests/test-fmodf.c: New file.
10763
10764         New module 'fmodf'.
10765         * lib/math.in.h (fmodf): New declaration.
10766         * lib/fmodf.c: New file.
10767         * m4/fmodf.m4: New file.
10768         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
10769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
10770         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
10771         * modules/fmodf: New file.
10772         * tests/test-math-c++.cc: Check the declaration of fmodf.
10773         * doc/posix-functions/fmodf.texi: Mention the new module.
10774
10775         fmod: Use a .m4 file.
10776         * m4/fmod.m4: New file.
10777         * modules/fmod (Files): Add it.
10778         (configure.ac): Just invoke gl_FUNC_FMOD.
10779
10780 2011-10-05  Bruno Haible  <bruno@clisp.org>
10781
10782         Tests for module 'fabsf'.
10783         * modules/fabsf-tests: New file.
10784         * tests/test-fabsf.c: New file.
10785
10786         New module 'fabsf'.
10787         * lib/math.in.h (fabsf): New declaration.
10788         * lib/fabsf.c: New file.
10789         * m4/fabsf.m4: New file.
10790         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
10791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
10792         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
10793         * modules/fabsf: New file.
10794         * tests/test-math-c++.cc: Check the declaration of fabsf.
10795         * doc/posix-functions/fabsf.texi: Mention the new module.
10796
10797         fabs: Use a .m4 file.
10798         * m4/fabs.m4: New file.
10799         * modules/fabs (Files): Add it.
10800         (configure.ac): Just invoke gl_FUNC_FABS.
10801
10802 2011-10-05  Jim Meyering  <meyering@redhat.com>
10803
10804         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
10805         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
10806         ls -lL regression introduced in coreutils-8.12, it does so at the
10807         cost of an additional stat call in the common case.  Besides, now
10808         that the kernel change that prompted commit 95f7c57f has been reverted
10809         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
10810         we have no use for commit 95f7c57f, "file-has-acl: use
10811         acl_extended_file_nofollow if available".
10812
10813 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
10814
10815         file-has-acl: revert unintended change in behavior of ls -L
10816         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
10817         derived from...
10818         (file_has_acl): ...code here.  Call it.
10819         This problem was introduced with 2011-07-22 commit 95f7c57f,
10820         "file-has-acl: use acl_extended_file_nofollow if available".
10821         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
10822
10823 2011-10-03  Bruno Haible  <bruno@clisp.org>
10824
10825         poll: Avoid link errors on MSVC.
10826         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
10827         * modules/poll (Depends-on): Add sockets.
10828         (Link): New section.
10829         * NEWS: Mention the change.
10830         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
10831         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
10832         $(LIB_POLL) instead of $(LIBSOCKET).
10833
10834 2011-10-03  Bruno Haible  <bruno@clisp.org>
10835
10836         sys_select tests: Fix link error on MSVC 9.
10837         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
10838         with $(LIB_SELECT) instead of $(LIBSOCKET).
10839
10840 2011-10-03  Bruno Haible  <bruno@clisp.org>
10841
10842         sys_select: Fix compilation error on mingw.
10843         * lib/sys_select.in.h: On native Windows, include <io.h>.
10844
10845 2011-10-03  Bruno Haible  <bruno@clisp.org>
10846
10847         wmemset: Support for MSVC.
10848         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
10849         whether wmemset() exists.
10850
10851 2011-10-03  Bruno Haible  <bruno@clisp.org>
10852
10853         wmemmove: Support for MSVC.
10854         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
10855         whether wmemmove() exists.
10856
10857 2011-10-03  Bruno Haible  <bruno@clisp.org>
10858
10859         wmemcpy: Support for MSVC.
10860         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
10861         whether wmemcpy() exists.
10862
10863 2011-10-03  Bruno Haible  <bruno@clisp.org>
10864
10865         wmemcmp: Support for MSVC.
10866         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
10867         whether wmemcmp() exists.
10868
10869 2011-10-03  Bruno Haible  <bruno@clisp.org>
10870
10871         wmemchr: Support for MSVC.
10872         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
10873         whether wmemchr() exists.
10874
10875 2011-10-03  Bruno Haible  <bruno@clisp.org>
10876
10877         glthread/*, strsignal: Support for MSVC.
10878         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
10879         including <winsock.h> on MSVC 9.
10880         * lib/glthread/lock.h: Likewise.
10881         * lib/glthread/thread.h: Likewise.
10882         * lib/glthread/tls.h: Likewise.
10883         * lib/glthread/yield.h: Likewise.
10884         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
10885         if HAVE_UNISTD_H is false.
10886         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
10887
10888 2011-10-03  Bruno Haible  <bruno@clisp.org>
10889
10890         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
10891         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
10892         Set to 100000.
10893
10894 2011-10-03  Bruno Haible  <bruno@clisp.org>
10895
10896         acl: Fix specification.
10897         * lib/file-has-acl.c (file_has_acl): Fix specification.
10898
10899 2011-10-03  Bruno Haible  <bruno@clisp.org>
10900
10901         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
10902         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
10903         (compute_curr_prefix, shared_library_fullname,
10904         find_shared_library_fullname, get_shared_library_fullname, relocate):
10905         Use it together with PIC && INSTALLDIR.
10906         Reported by <jojelino@gmail.com>
10907         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
10908
10909 2011-10-01  Jim Meyering  <meyering@redhat.com>
10910
10911         maint.mk: adjust a release-related rule not to require use of gzip
10912         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
10913         Instead, check each file in $(DIST_ARCHIVES).  This is better for
10914         projects that build only .tar.xz files.  Also fix an erroneous test.
10915
10916         test-linkat: don't leave behind a temporary file
10917         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
10918         Otherwise, coreutils' "make distcheck" would fail with this:
10919           Only in /c/cu/tests/torture/coreutils/test/\
10920             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
10921           make[2]: *** [my-distcheck] Error 1
10922
10923         float, math: add omitted file
10924         * lib/itold.c: Add file, required for yesterday's float change.
10925
10926 2011-10-01  Bruno Haible  <bruno@clisp.org>
10927
10928         isinf: Fix for OpenBSD/x86.
10929         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
10930         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
10931         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
10932
10933 2011-10-01  Bruno Haible  <bruno@clisp.org>
10934
10935         isfinite: Fix syntax error in configure test.
10936         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
10937
10938         isfinite: Fix typo.
10939         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
10940         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
10941
10942 2011-10-01  Bruno Haible  <bruno@clisp.org>
10943
10944         nonblocking tests: Fix test failure on Linux/IA-64.
10945         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
10946         Set to 270000.
10947
10948 2011-10-01  Bruno Haible  <bruno@clisp.org>
10949
10950         mkfifoat tests: Fix a test failure on mingw.
10951         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
10952         with error ENOSYS.
10953
10954 2011-09-30  Bruno Haible  <bruno@clisp.org>
10955
10956         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
10957         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
10958         'long double'. Set REPLACE_ITOLD.
10959         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
10960         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
10961         * lib/itold.c: New file.
10962         * modules/float (Files): Add lib/itold.c.
10963         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
10964         (Makefile.am): Substitute REPLACE_ITOLD.
10965         * modules/math (Depends-on): Add float.
10966         (Makefile.am): Substitute REPLACE_ITOLD.
10967         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
10968         * doc/posix-headers/math.texi: Likewise.
10969         * doc/posix-functions/logl.texi: Likewise.
10970
10971 2011-09-30  Bruno Haible  <bruno@clisp.org>
10972
10973         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
10974         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
10975         Set to 140000.
10976
10977 2011-09-30  Bruno Haible  <bruno@clisp.org>
10978
10979         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
10980         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
10981         invocation, say "right after AC_PROG_CC_STDC", not "right after
10982         AC_PROG_CC".
10983         Reported by Gary V. Vaughan <gary@gnu.org>.
10984
10985 2011-09-30  Bruno Haible  <bruno@clisp.org>
10986
10987         Centralize C99 requirement.
10988         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
10989         * modules/stdarg (configure.ac-early): Invoke it instead of
10990         AC_PROG_CC_STDC.
10991         Reported by Gary V. Vaughan and Paul Eggert.
10992
10993 2011-09-29  Bruno Haible  <bruno@clisp.org>
10994
10995         float: Fix LDBL_MAX value on Linux/PowerPC.
10996         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
10997         on Linux/PowerPC.
10998         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
10999         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11000         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11001         platform.
11002         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11003
11004 2011-09-29  Bruno Haible  <bruno@clisp.org>
11005
11006         doc: Improve doc about gl_EARLY.
11007         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11008         AC_PROG_CC_STDC invocation.
11009         Reported by Gary V. Vaughan <gary@gnu.org>.
11010
11011 2011-09-28  Bruno Haible  <bruno@clisp.org>
11012
11013         fgetc, fputc, fread, fwrite tests: Fix link error.
11014         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11015         on non-MSVC platforms.
11016         * tests/test-fputc.c (main): Likewise.
11017         * tests/test-fread.c (main): Likewise.
11018         * tests/test-fwrite.c (main): Likewise.
11019         Reported by Jim Meyering.
11020
11021 2011-09-27  Bruno Haible  <bruno@clisp.org>
11022
11023         fputc, fwrite tests: Avoid test failure on MSVC.
11024         * tests/test-fgetc.c: Include msvc-inval.h.
11025         (main): Invoke gl_msvc_inval_ensure_handler.
11026         * tests/test-fputc.c: Include msvc-inval.h.
11027         (main): Invoke gl_msvc_inval_ensure_handler.
11028         * tests/test-fread.c: Include msvc-inval.h.
11029         (main): Invoke gl_msvc_inval_ensure_handler.
11030         * tests/test-fwrite.c: Include msvc-inval.h.
11031         (main): Invoke gl_msvc_inval_ensure_handler.
11032         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11033         * modules/fputc-tests (Depends-on): Likewise.
11034         * modules/fread-tests (Depends-on): Likewise.
11035         * modules/fwrite-tests (Depends-on): Likewise.
11036
11037 2011-09-27  Bruno Haible  <bruno@clisp.org>
11038
11039         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11040         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11041         (raise): Remove older, duplicated declaration.
11042         (_gl_raise_SIGPIPE): New declaration.
11043         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11044         (rpl_raise): Remove function.
11045         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11046         a gnulib-defined SIGPIPE here.
11047         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11048         'sigprocmask' has detected missing signal-blocking and the module
11049         'sigpipe' is enabled.
11050         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11051
11052 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11053
11054         base64-tests: avoid memory leak
11055         * tests/test-base64.c (main): Plug memory leak.
11056
11057         base32: new module
11058         * modules/base32: New module.
11059         * lib/base32.c: New file.
11060         * lib/base32.h: Likewise.
11061         * m4/base32.m4: Likewise.
11062         * modules/base32-tests: New test.
11063         * tests/test-base32.c: Likewise.
11064         * MODULES.html.sh (Misc): Mention it.
11065
11066 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11067
11068         gnulib: use more-standard license notice wording
11069         * gnulib-tool (func_emit_copyright_notice): When emitting a
11070         license notice into a file, use the standard wording as suggested
11071         by the current information for GNU maintainers, except say "file"
11072         rather than "program".  The new wording gives a license version
11073         number, which addresses an issue raised by Glenn Morris in
11074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11075         * m4/onceonly.m4: Use that same wording here, too.
11076
11077         dup2: minor simplification
11078         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11079         as lib/dup2.c no longer uses 'inline'.
11080
11081 2011-09-25  Bruno Haible  <bruno@clisp.org>
11082
11083         strings: Fix compilation error on MSVC.
11084         * lib/strings.in.h: Include <stddef.h> for size_t.
11085
11086 2011-09-25  Bruno Haible  <bruno@clisp.org>
11087
11088         fflush et al.: Document limitation on MSVC.
11089         * doc/posix-functions/fflush.texi: Document possible crash in handling
11090         mode other than DEFAULT_HANDLING.
11091         * doc/posix-functions/fgetc.texi: Likewise.
11092         * doc/posix-functions/fputc.texi: Likewise.
11093         * doc/posix-functions/fread.texi: Likewise.
11094         * doc/posix-functions/fwrite.texi: Likewise.
11095
11096 2011-09-25  Bruno Haible  <bruno@clisp.org>
11097
11098         msvc-inval: Allow three invalid parameter handling modes.
11099         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11100         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11101         macros.
11102         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11103         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11104         SANE_LIBRARY_HANDLING as a no-op.
11105         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11106         <stdlib.h>.
11107         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11108
11109 2011-09-25  Bruno Haible  <bruno@clisp.org>
11110
11111         msvc-inval: Make handler multithread-safe.
11112         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11113         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11114         declarations.
11115         (gl_msvc_inval_current): New declaration.
11116         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11117         Operate on the structure returned by gl_msvc_inval_current().
11118         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11119         Remove varaiables.
11120         (tls_index, tls_initialized): New variables.
11121         (not_per_thread): New variable.
11122         (gl_msvc_inval_current): New function.
11123         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11124         returned by gl_msvc_inval_current().
11125
11126 2011-09-25  Bruno Haible  <bruno@clisp.org>
11127
11128         msvc-inval: Install handler globally.
11129         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11130         !_MSC_VER.
11131         (gl_msvc_invalid_parameter_handler): Remove declaration.
11132         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11133         declarations.
11134         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11135         Install the handler globally, don't uninstall it.
11136         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11137         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11138         currently valid, call RaiseException instead.
11139         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11140         for !_MSC_VER.
11141
11142 2011-09-25  Bruno Haible  <bruno@clisp.org>
11143
11144         strerror_r-posix: Fix for MSVC 9.
11145         * lib/strerror_r.c (local_snprintf): New function.
11146         (snprintf): Define to local_snprintf, not to _snprintf.
11147
11148 2011-09-25  Bruno Haible  <bruno@clisp.org>
11149
11150         ftruncate: Support for MSVC 9.
11151         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11152         (chsize_nothrow): New function.
11153         (chsize): Redefine as a macro.
11154         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11155         * modules/ftruncate (Depends-on): Add msvc-inval.
11156
11157 2011-09-25  Bruno Haible  <bruno@clisp.org>
11158
11159         New module 'fstat'.
11160         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11161         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11162         * lib/fchdir.c (rpl_fstat): Remove function.
11163         * m4/fstat.m4: New file.
11164         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11165         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11166         declared.
11167         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11168         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11169         * modules/fstat: New file.
11170         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11171         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11172         is set.
11173         * doc/posix-functions/fstat.texi: Mention the new module and the
11174         problem on MSVC.
11175         * NEWS: Mention the change.
11176         * modules/acl (Depends-on): Add fstat.
11177         * modules/chdir-safer (Depends-on): Likewise.
11178         * modules/chown (Depends-on): Likewise.
11179         * modules/copy-file (Depends-on): Likewise.
11180         * modules/fchdir (Depends-on): Likewise.
11181         * modules/fdopendir (Depends-on): Likewise.
11182         * modules/fopen (Depends-on): Likewise.
11183         * modules/fts (Depends-on): Likewise.
11184         * modules/getcwd (Depends-on): Likewise.
11185         * modules/isapipe (Depends-on): Likewise.
11186         * modules/linkat (Depends-on): Likewise.
11187         * modules/lseek (Depends-on): Likewise.
11188         * modules/mkdir-p (Depends-on): Likewise.
11189         * modules/open (Depends-on): Likewise.
11190         * modules/openat (Depends-on): Likewise.
11191         * modules/read-file (Depends-on): Likewise.
11192         * modules/renameat (Depends-on): Likewise.
11193         * modules/utimens (Depends-on): Likewise.
11194
11195 2011-09-25  Bruno Haible  <bruno@clisp.org>
11196
11197         linkat: Fix compilation on MSVC 9.
11198         * lib/linkat.c: Don't include <stdint.h>.
11199
11200 2011-09-25  Bruno Haible  <bruno@clisp.org>
11201
11202         fclose: Support for MSVC 9.
11203         * lib/fclose.c: Include msvc-inval.h.
11204         (fclose_nothrow): New function.
11205         (rpl_fclose): Use it.
11206         * modules/fclose (Depends-on): Add msvc-inval.
11207         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11208
11209 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11210
11211         dup2: minor simplifications
11212         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11213         that it's a performance win.
11214         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11215         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11216
11217 2011-09-24  Jim Meyering  <meyering@redhat.com>
11218
11219         test-futimens: avoid a warning from gcc -Wshadow
11220         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11221         to avoid a shadowing warning.
11222
11223 2011-09-24  Bruno Haible  <bruno@clisp.org>
11224
11225         fdopen: Support for MSVC 9.
11226         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11227         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11228         * lib/fdopen.c: Include msvc-inval.h.
11229         (fdopen_nothrow): New function.
11230         (rpl_fdopen): Use it.
11231         * modules/fdopen (Depends-on): Add msvc-inval.
11232         * modules/fclose-tests (Depends-on): Add fdopen.
11233         * modules/fflush-tests (Depends-on): Likewise.
11234         * modules/fgetc-tests (Depends-on): Likewise.
11235         * modules/fputc-tests (Depends-on): Likewise.
11236         * modules/fread-tests (Depends-on): Likewise.
11237         * modules/freopen-tests (Depends-on): Likewise.
11238         * modules/fseeko-tests (Depends-on): Likewise.
11239         * modules/ftello-tests (Depends-on): Likewise.
11240         * modules/fwrite-tests  (Depends-on): Likewise.
11241         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11242
11243 2011-09-24  Bruno Haible  <bruno@clisp.org>
11244
11245         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11246         * modules/fgetc-tests (Depends-on): Add unistd.
11247         * modules/fputc-tests (Depends-on): Likewise.
11248         * modules/fread-tests (Depends-on): Likewise.
11249         * modules/fwrite-tests (Depends-on): Likewise.
11250
11251 2011-09-24  Bruno Haible  <bruno@clisp.org>
11252
11253         dup: Simplify autoconf test.
11254         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11255         on gl_MSVC_INVAL's result.
11256
11257 2011-09-24  Bruno Haible  <bruno@clisp.org>
11258
11259         Tests for function fwrite().
11260         * modules/fwrite-tests: New file.
11261         * tests/test-fwrite.c: New file.
11262         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11263
11264         Tests for function fread().
11265         * modules/fread-tests: New file.
11266         * tests/test-fread.c: New file.
11267         * modules/stdio-tests (Depends-on): Add fread-tests.
11268
11269         Activate fputc tests.
11270         * modules/stdio-tests (Depends-on): Add fputc-tests.
11271
11272         Enhance fgetc, fputc tests.
11273         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11274         * tests/test-fputc.c (main): Likewise.
11275
11276 2011-09-24  Bruno Haible  <bruno@clisp.org>
11277
11278         write: Support for MSVC 9.
11279         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11280         is not 1.
11281         * lib/write.c (write_nothrow): New function.
11282         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11283         not 1. Use write_nothrow.
11284         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11285         invalid parameter handler.
11286         (gl_PREREQ_WRITE): New macro.
11287         * modules/write (Depends-on): Add msvc-inval.
11288         (configure.ac): Invoke gl_PREREQ_WRITE.
11289         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11290
11291 2011-09-24  Bruno Haible  <bruno@clisp.org>
11292
11293         read: Fix last commit.
11294         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11295
11296 2011-09-24  Bruno Haible  <bruno@clisp.org>
11297
11298         dup2: Fix last commit.
11299         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11300         (rpl_dup2): Disable fcntl workaround on native Windows.
11301
11302         sigprocmask: Make code safer.
11303         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11304         section that changes macro definitions for this compilation unit.
11305
11306 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11307
11308         dup2: clarify by coalescing Windows-specific material
11309         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11310         "msvc-nothrow.h"' to the Windows-specific section, so that the
11311         Emacs source need not contain these include files.
11312         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11313         Windows-specific fixes into this function rather than just the
11314         nothrow fix, as this shortens and clarifies the code.  Always
11315         define as a function, as that's a bit cleaner than having it be
11316         sometimes a function and sometimes a macro.
11317         (rpl_dup2): Move the Windows-specific stuff out of here and into
11318         ms_windows_dup2.  Don't protect the Haiku-related fix with
11319         "#if !defined __linux__", as the same code also works around
11320         a Linux kernel bug, and it doesn't add any system calls on any
11321         platform.  Add comment about FreeBSD 6.1.
11322
11323         sigprocmask: move #include directive
11324         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11325         Windows-specific section, so that the Emacs source need not
11326         contain msvc-inval.h.
11327
11328 2011-09-23  Bruno Haible  <bruno@clisp.org>
11329
11330         read: Support for MSVC 9.
11331         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11332         is not 1.
11333         * lib/read.c (read_nothrow): New function.
11334         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11335         read_nothrow.
11336         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11337         invalid parameter handler.
11338         (gl_PREREQ_READ): New macro.
11339         * modules/read (Depends-on): Add msvc-inval.
11340         (configure.ac): Invoke gl_PREREQ_READ.
11341         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11342
11343 2011-09-23  Bruno Haible  <bruno@clisp.org>
11344
11345         close: Support for MSVC 9.
11346         * lib/close.c: Include <errno.h>, msvc-inval.h.
11347         (close_nothrow): New function.
11348         (rpl_close): Use it.
11349         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11350         invalid parameter handler.
11351         * modules/close (Depends-on): Add msvc-inval.
11352         * modules/dup2-tests (Depends-on): Add close.
11353         * modules/dup3-tests (Depends-on): Likewise.
11354         * modules/fcntl-tests (Depends-on): Likewise.
11355         * modules/spawn-pipe-tests (Depends-on): Likewise.
11356         * modules/unistd-safer-tests (Depends-on): Likewise.
11357         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11358
11359 2011-09-23  Bruno Haible  <bruno@clisp.org>
11360
11361         New module 'dup'.
11362         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11363         Allow replacement.
11364         * lib/dup.c: New file.
11365         * lib/fchdir.c (rpl_dup): Remove function.
11366         * m4/dup.m4: New file.
11367         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11368         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11369         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11370         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11371         * modules/dup: New file.
11372         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11373         'dup' module is in use.
11374         * modules/fdopendir (Depends-on): Add dup.
11375         * modules/fdutimensat-tests (Depends-on): Likewise.
11376         * modules/fts (Depends-on): Likewise.
11377         * modules/futimens-tests (Depends-on): Likewise.
11378         * modules/posix_spawnp-tests (Depends-on): Likewise.
11379         * modules/unistd-safer-tests (Depends-on): Likewise.
11380         * modules/utimens-tests (Depends-on): Likewise.
11381         * doc/posix-functions/dup.texi: Mention the new module and the problem
11382         on MSVC.
11383
11384 2011-09-23  Bruno Haible  <bruno@clisp.org>
11385
11386         getdtablesize: Support for MSVC 9.
11387         * lib/getdtablesize.c: Include msvc-inval.h.
11388         (_setmaxstdio_nothrow): New function.
11389         (_setmaxstdio): Redefine it.
11390         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11391         * modules/getdtablesize (Depends-on): Add msvc-inval.
11392         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11393
11394 2011-09-23  Bruno Haible  <bruno@clisp.org>
11395
11396         signal-h: Rename from signal.
11397         * modules/signal-h: Renamed from modules/signal.
11398         * modules/pthread_sigmask (Depends-on): Update.
11399         * modules/raise (Depends-on): Likewise.
11400         * modules/sigaction (Depends-on): Likewise.
11401         * modules/sigpipe (Depends-on): Likewise.
11402         * modules/sigprocmask (Depends-on): Likewise.
11403         * modules/sys_select (Depends-on): Likewise.
11404         * modules/signal-h-tests: Renamed from modules/signal-tests.
11405         (Files, Depends-on, Makefile.am): Update.
11406         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11407         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11408         (Files, Makefile.am): Update.
11409         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11410         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11411         * modules/signal: New placeholder file.
11412         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11413         * doc/posix-headers/signal.texi: Update.
11414         * NEWS: Mention the change.
11415
11416 2011-09-23  Bruno Haible  <bruno@clisp.org>
11417
11418         sigprocmask: Avoid crashes through signal() on MSVC 9.
11419         * lib/sigprocmask.c: Include msvc-inval.h.
11420         (signal_nothrow): New function.
11421         (signal): Redefine it.
11422         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11423         * modules/sigprocmask (Depends-on): Add msvc-inval.
11424         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11425
11426 2011-09-23  Bruno Haible  <bruno@clisp.org>
11427
11428         Tests for module 'raise'.
11429         * modules/raise-tests: New file.
11430         * tests/test-raise.c: New file.
11431
11432         raise: Support for MSVC.
11433         * lib/signal.in.h (raise): New declaration.
11434         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11435         for native Windows platforms.
11436         * m4/raise.m4: New file.
11437         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11438         HAVE_RAISE, REPLACE_RAISE.
11439         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11440         REPLACE_RAISE.
11441         * modules/raise (Status, Notice): Remove fields.
11442         (Files): Add m4/raise.m4.
11443         (Depends-on): Add signal, msvc-inval.
11444         (configure.ac): Use the common idioms.
11445         (Maintainer): Add me.
11446         * tests/test-signal-c++.cc: Check the signature of raise.
11447         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11448
11449 2011-09-23  Bruno Haible  <bruno@clisp.org>
11450
11451         pipe2: Fix compilation on pre-C99 compilers.
11452         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11453
11454 2011-09-23  Bruno Haible  <bruno@clisp.org>
11455
11456         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11457         * lib/msvc-nothrow.h: New file.
11458         * lib/msvc-nothrow.c: New file.
11459         * m4/msvc-nothrow.m4: New file.
11460         * modules/msvc-nothrow: New file.
11461         * lib/dup2.c: Include msvc-nothrow.h.
11462         (rpl_dup2): No need to protect _get_osfhandle call here.
11463         * lib/accept4.c: Include msvc-nothrow.h.
11464         * lib/error.c: Likewise.
11465         * lib/fcntl.c: Likewise.
11466         * lib/lseek.c: Likewise.
11467         * lib/nonblocking.c: Likewise.
11468         * lib/poll.c: Likewise.
11469         * lib/read.c: Likewise.
11470         * lib/select.c: Likewise.
11471         * lib/sockets.h: Likewise.
11472         * lib/sockets.c: Likewise.
11473         * lib/stdio-read.c: Likewise.
11474         * lib/stdio-write.c: Likewise.
11475         * lib/write.c: Likewise.
11476         * lib/w32sock.h: Likewise.
11477         * lib/w32spawn.h: Likewise.
11478         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11479         * lib/fsync.c: Likewise.
11480         * lib/isapipe.c: Likewise.
11481         * modules/dup2 (Depends-on): Add msvc-nothrow.
11482         * modules/accept4 (Depends-on): Likewise.
11483         * modules/error (Depends-on): Likewise.
11484         * modules/fcntl (Depends-on): Likewise.
11485         * modules/lseek (Depends-on): Likewise.
11486         * modules/nonblocking (Depends-on): Likewise.
11487         * modules/poll (Depends-on): Likewise.
11488         * modules/read (Depends-on): Likewise.
11489         * modules/select (Depends-on): Likewise.
11490         * modules/sockets (Depends-on): Likewise.
11491         * modules/sigpipe (Depends-on): Likewise.
11492         * modules/write (Depends-on): Likewise.
11493         * modules/accept (Depends-on): Likewise.
11494         * modules/bind (Depends-on): Likewise.
11495         * modules/connect (Depends-on): Likewise.
11496         * modules/gethostname (Depends-on): Likewise.
11497         * modules/getpeername (Depends-on): Likewise.
11498         * modules/getsockname (Depends-on): Likewise.
11499         * modules/getsockopt (Depends-on): Likewise.
11500         * modules/ioctl (Depends-on): Likewise.
11501         * modules/listen (Depends-on): Likewise.
11502         * modules/recv (Depends-on): Likewise.
11503         * modules/recvfrom (Depends-on): Likewise.
11504         * modules/send (Depends-on): Likewise.
11505         * modules/sendto (Depends-on): Likewise.
11506         * modules/setsockopt (Depends-on): Likewise.
11507         * modules/shutdown (Depends-on): Likewise.
11508         * modules/socket (Depends-on): Likewise.
11509         * modules/execute (Depends-on): Likewise.
11510         * modules/spawn-pipe (Depends-on): Likewise.
11511         * modules/flock (Depends-on): Likewise.
11512         * modules/fsync (Depends-on): Likewise.
11513         * modules/isapipe (Depends-on): Likewise.
11514         * tests/test-cloexec.c: Include msvc-nothrow.h.
11515         * tests/test-dup-safer.c: Likewise.
11516         * tests/test-dup2.c: Likewise.
11517         * tests/test-dup3.c: Likewise.
11518         * tests/test-fcntl.c: Likewise.
11519         * tests/test-pipe.c: Likewise.
11520         * tests/test-pipe2.c: Likewise.
11521         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11522         * modules/unistd-safer-tests (Depends-on): Likewise.
11523         * modules/dup2-tests (Depends-on): Likewise.
11524         * modules/dup3-tests (Depends-on): Likewise.
11525         * modules/fcntl-tests (Depends-on): Likewise.
11526         * modules/pipe-posix-tests (Depends-on): Likewise.
11527         * modules/pipe2-tests (Depends-on): Likewise.
11528
11529 2011-09-23  Bruno Haible  <bruno@clisp.org>
11530
11531         dup2: Make code more maintainable.
11532         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11533         (rpl_dup2): Use it.
11534         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11535         * modules/dup2 (configure.ac): Invoke it.
11536         Reported by Paul Eggert.
11537
11538 2011-09-23  Bruno Haible  <bruno@clisp.org>
11539
11540         msvc-inval: Fix compilation error.
11541         * lib/msvc-inval.h: Include <excpt.h>.
11542
11543 2011-09-23  Bruno Haible  <bruno@clisp.org>
11544
11545         mkdir: Tweak for MSVC 9.
11546         * lib/sys_stat.in.h: Update comments.
11547         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11548
11549         Tests for module 'chdir'.
11550         * modules/chdir-tests: New file.
11551         * tests/test-chdir.c: New file.
11552
11553         New module 'chdir'.
11554         * modules/chdir: New file.
11555         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11556         (chdir): New declaration.
11557         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11558         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11559         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11560         * tests/test-unistd-c++.cc: Check signature of chdir.
11561         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11562         * modules/chdir-long (Depends-on): Add chdir.
11563         * modules/fchdir (Depends-on): Likewise.
11564         * modules/rename (Depends-on): Likewise.
11565         * modules/savewd (Depends-on): Likewise.
11566
11567         rmdir: Support for mingw, MSVC 9.
11568         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11569         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11570
11571         getcwd: Tweak for MSVC 9.
11572         * lib/unistd.in.h: Update comments.
11573         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11574
11575 2011-09-22  Bruno Haible  <bruno@clisp.org>
11576
11577         strerror_r-posix: Avoid a link error on MSVC.
11578         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11579         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11580
11581 2011-09-22  Bruno Haible  <bruno@clisp.org>
11582
11583         select: Avoid link errors on MSVC.
11584         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
11585         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
11586         * modules/pselect (Link): Likewise.
11587         * NEWS: Mention the change.
11588         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
11589         test-select-stdin against $(LIB_SELECT).
11590         * modules/pselect-tests (Makefile.am): Link test-pselect against
11591         $(LIB_SELECT).
11592
11593 2011-09-22  Bruno Haible  <bruno@clisp.org>
11594
11595         select: Avoid compilation error on MSVC.
11596         * lib/select.c: Don't include <stdbool.h>.
11597
11598 2011-09-21  Bruno Haible  <bruno@clisp.org>
11599
11600         Consolidate all uses of PATH_MAX in *.m4 files.
11601         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
11602         macros.
11603         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
11604         and gl_PATHMAX_SNIPPET.
11605         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11606         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11607         * modules/chdir-long (Files): Add m4/pathmax.m4.
11608         * modules/getcwd (Files): Likewise.
11609
11610 2011-09-21  Bruno Haible  <bruno@clisp.org>
11611
11612         ftruncate: Un-deprecate, concentrate on Win32 support.
11613         * modules/ftruncate (Status, Notice): Remove sections.
11614         (Depends-on): Add largefile.
11615         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
11616         non-mingw platforms.
11617         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
11618         include <io.h>.
11619         * modules/perror-tests (Depends-on): Add ftruncate.
11620         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
11621         'ftruncate' module.
11622
11623 2011-09-21  Bruno Haible  <bruno@clisp.org>
11624
11625         Add dependencies to new dirent related modules.
11626         * modules/opendir (Depends-on): Add closedir.
11627         * modules/getcwd (Depends-on): Add opendir, closedir.
11628         * modules/dirent-safer-tests (Depends-on): Likewise.
11629         * modules/fdopendir-tests (Depends-on): Likewise.
11630         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
11631         * modules/renameat-tests (Depends-on): Likewise.
11632
11633 2011-09-21  Bruno Haible  <bruno@clisp.org>
11634
11635         opendir: Avoid compilation error on mingw.
11636         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
11637         * modules/opendir (Depends-on): Add unistd.
11638
11639 2011-09-21  Bruno Haible  <bruno@clisp.org>
11640
11641         ftruncate tests: Avoid a test failure on mingw.
11642         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
11643
11644 2011-09-21  Bruno Haible  <bruno@clisp.org>
11645
11646         select tests: Avoid test failures on OSF/1 5.1 and mingw.
11647         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
11648         native Windows.
11649
11650 2011-09-21  Bruno Haible  <bruno@clisp.org>
11651
11652         New module 'fdopen'.
11653         * lib/stdio.in.h (fdopen): New declaration.
11654         * lib/fdopen.c: New file.
11655         * m4/fdopen.m4: New file.
11656         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
11657         REPLACE_FDOPEN.
11658         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
11659         REPLACE_FDOPEN.
11660         * modules/fdopen: New file.
11661         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
11662         * tests/test-stdio-c++.cc: Check signature of fdopen.
11663         * doc/posix-functions/fdopen.texi: Mention the new module.
11664
11665 2011-09-21  Bruno Haible  <bruno@clisp.org>
11666
11667         unlockpt tests: Avoid test failure on NetBSD 5.1.
11668         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
11669         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
11670
11671 2011-09-21  Bruno Haible  <bruno@clisp.org>
11672
11673         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
11674         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
11675         * tests/test-getlogin_r.c (main): Likewise.
11676
11677 2011-09-20  Bruno Haible  <bruno@clisp.org>
11678
11679         time tests: Don't require pid_t.
11680         * doc/posix-headers/time.texi: Revert last change.
11681         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
11682         * tests/test-time.c: Comment out the check for pid_t.
11683
11684 2011-09-20  Bruno Haible  <bruno@clisp.org>
11685
11686         fsync tests: Avoid a test failure on mingw.
11687         * tests/test-fsync.c (main): Allow a failure with EIO.
11688
11689 2011-09-20  Bruno Haible  <bruno@clisp.org>
11690
11691         euidaccess: Update comments.
11692         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
11693
11694 2011-09-20  Bruno Haible  <bruno@clisp.org>
11695
11696         Ensure EBADF returns for socket functions on mingw.
11697         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
11698         descriptor is invalid.
11699         * lib/bind.c (rpl_bind): Likewise.
11700         * lib/connect.c (rpl_connect): Likewise.
11701         * lib/getpeername.c (rpl_getpeername): Likewise.
11702         * lib/getsockname.c (rpl_getsockname): Likewise.
11703         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11704         * lib/listen.c (rpl_listen): Likewise.
11705         * lib/recv.c (rpl_recv): Likewise.
11706         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11707         * lib/send.c (rpl_send): Likewise.
11708         * lib/sendto.c (rpl_sendto): Likewise.
11709         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11710         * lib/shutdown.c (rpl_shutdown): Likewise.
11711
11712 2011-09-20  Bruno Haible  <bruno@clisp.org>
11713
11714         select tests: EBADF tests.
11715         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
11716         test_bad_fd): New functions.
11717         (test_function): Invoke also test_bad_fd.
11718
11719 2011-09-20  Bruno Haible  <bruno@clisp.org>
11720
11721         Tests for module 'posix_spawn_file_actions_addopen.
11722         * modules/posix_spawn_file_actions_addopen-tests: New file.
11723         * tests/test-posix_spawn_file_actions_addopen.c: New file.
11724
11725         Tests for module 'posix_spawn_file_actions_adddup2'.
11726         * modules/posix_spawn_file_actions_adddup2-tests: New file.
11727         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
11728
11729         Tests for module 'posix_spawn_file_actions_addclose'.
11730         * modules/posix_spawn_file_actions_addclose-tests: New file.
11731         * tests/test-posix_spawn_file_actions_addclose.c: New file.
11732
11733 2011-09-20  Bruno Haible  <bruno@clisp.org>
11734
11735         Tests for module 'unlockpt'.
11736         * modules/unlockpt-tests: New file.
11737         * tests/test-unlockpt.c: New file.
11738         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
11739
11740         Tests for module 'grantpt'.
11741         * modules/grantpt-tests: New file.
11742         * tests/test-grantpt.c: New file.
11743         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
11744
11745 2011-09-20  Bruno Haible  <bruno@clisp.org>
11746
11747         freopen tests: EBADF tests.
11748         * tests/test-freopen.c: Include errno.h, unistd.h.
11749         (main): Add tests for EBADF, commented out for the moment.
11750
11751         fclose tests: EBADF tests.
11752         * tests/test-fclose.c (main): Add tests for EBADF.
11753
11754         fflush tests: EBADF tests.
11755         * tests/test-fflush.c: Include errno.h, macros.h.
11756         (main): Add tests for EBADF.
11757
11758         ftello tests: EBADF tests.
11759         * tests/test-ftello4.sh: New file.
11760         * tests/test-ftello4.c: New file.
11761         * modules/ftello-tests (Files): Add them.
11762         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
11763
11764         fseeko tests: EBADF tests.
11765         * tests/test-fseeko4.sh: New file.
11766         * tests/test-fseeko4.c: New file.
11767         * modules/fseeko-tests (Files): Add them.
11768         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
11769
11770         Tests for function fputc().
11771         * modules/fputc-tests: New file.
11772         * tests/test-fputc.c: New file.
11773         * modules/stdio-tests (Depends-on): Add fputc-tests.
11774
11775         Tests for function fgetc().
11776         * modules/fgetc-tests: New file.
11777         * tests/test-fgetc.c: New file.
11778         * modules/stdio-tests (Depends-on): Add fgetc-tests.
11779
11780         Tests for function fdopen().
11781         * modules/fdopen-tests: New file.
11782         * tests/test-fdopen.c: New file.
11783         * modules/stdio-tests (Depends-on): Add fdopen-tests.
11784
11785         Tests for module 'vdprintf'.
11786         * modules/vdprintf-tests: New file.
11787         * tests/test-vdprintf.c: New file.
11788
11789         Tests for module 'dprintf'.
11790         * modules/dprintf-tests: New file.
11791         * tests/test-dprintf.c: New file.
11792
11793 2011-09-20  Bruno Haible  <bruno@clisp.org>
11794
11795         Tests for module 'ioctl'.
11796         * modules/ioctl-tests: New file.
11797         * tests/test-ioctl.c: New file.
11798
11799 2011-09-20  Bruno Haible  <bruno@clisp.org>
11800
11801         fcntl tests: EBADF tests.
11802         * tests/test-fcntl.c (main): Add more tests for EBADF.
11803
11804 2011-09-20  Bruno Haible  <bruno@clisp.org>
11805
11806         utimensat tests: EBADF tests.
11807         * tests/test-utimensat.c (main): Add tests for EBADF.
11808
11809         renameat tests: EBADF tests.
11810         * tests/test-renameat.c (main): Add tests for EBADF.
11811
11812         mkfifoat tests: EBADF tests.
11813         * tests/test-mkfifoat.c (main): Add tests for EBADF.
11814
11815         readlinkat tests: EBADF tests.
11816         * tests/test-readlinkat.c (main): Add tests for EBADF.
11817
11818         symlinkat tests: EBADF tests.
11819         * tests/test-symlinkat.c (main): Add tests for EBADF.
11820
11821         linkat tests: EBADF tests.
11822         * tests/test-linkat.c (main): Add tests for EBADF.
11823
11824         Tests for module 'faccessat'.
11825         * modules/faccessat-tests: New file.
11826         * tests/test-faccessat.c: New file.
11827
11828         fdopendir tests: EBADF tests.
11829         * tests/test-fdopendir.c (main): Add more tests for EBADF.
11830
11831         openat tests: EBADF tests.
11832         * tests/test-fchownat.c (main): Add tests for EBADF.
11833         * tests/test-fstatat.c (main): Likewise.
11834         * tests/test-mkdirat.c (main): Likewise.
11835         * tests/test-openat.c (main): Likewise.
11836         * tests/test-unlinkat.c (main): Likewise.
11837         * tests/test-fchmodat.c: New file.
11838         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
11839         (Makefile.am): Also run 'test-fchmodat'.
11840
11841 2011-09-20  Bruno Haible  <bruno@clisp.org>
11842
11843         utimens, futimens, fdutimensat tests: EBADF tests.
11844         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
11845
11846         Tests for function fstat().
11847         * modules/fstat-tests: New file.
11848         * tests/test-fstat.c: New file.
11849         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
11850
11851 2011-09-20  Bruno Haible  <bruno@clisp.org>
11852
11853         test-ttyname_r tests: EBADF tests.
11854         * tests/test-ttyname_r.c (main): Add tests for EBADF.
11855
11856         Tests for module 'isatty'.
11857         * modules/isatty-tests: New file.
11858         * tests/test-isatty.c: New file.
11859
11860         Tests for module 'write'.
11861         * modules/write-tests: New file.
11862         * tests/test-write.c: New file.
11863
11864         Tests for module 'read'.
11865         * modules/read-tests: New file.
11866         * tests/test-read.c: New file.
11867
11868         pwrite tests: EBADF tests.
11869         * tests/test-pwrite.c (main): Add tests for EBADF.
11870
11871         pread tests: EBADF tests.
11872         * tests/test-pread.c (main): Add tests for EBADF.
11873
11874         lseek tests: EBADF tests.
11875         * tests/test-lseek.c (main): Add more tests for EBADF.
11876
11877         Tests for module 'ftruncate'.
11878         * modules/ftruncate-tests: New file.
11879         * tests/test-ftruncate.sh: New file.
11880         * tests/test-ftruncate.c: New file.
11881
11882         fsync tests: EBADF tests.
11883         * tests/test-fsync.c (main): Add more tests for EBADF.
11884
11885         fdatasync tests: EBADF tests.
11886         * tests/test-fdatasync.c (main): Add more tests for EBADF.
11887
11888         Tests for module 'fchown'.
11889         * modules/fchown-tests: New file.
11890         * tests/test-fchown.c: New file.
11891
11892         Tests for module 'fchmod'.
11893         * modules/fchmod-tests: New file.
11894         * tests/test-fchmod.c: New file.
11895
11896         fchdir tests: EBADF tests.
11897         * tests/test-fchdir.c (main): Add more tests for EBADF.
11898
11899         dup2 tests: EBADF tests.
11900         * tests/test-dup2.c (main): Add more tests for EBADF.
11901
11902         Tests for module 'dup'.
11903         * modules/dup-tests: New file.
11904         * tests/test-dup.c: New file.
11905
11906         Tests for module 'close'.
11907         * modules/close-tests: New file.
11908         * tests/test-close.c: New file.
11909
11910 2011-09-20  Bruno Haible  <bruno@clisp.org>
11911
11912         Tests for module 'shutdown'.
11913         * modules/shutdown-tests: New file.
11914         * tests/test-shutdown.c: New file.
11915
11916         Tests for module 'setsockopt'.
11917         * modules/setsockopt-tests: New file.
11918         * tests/test-setsockopt.c: New file.
11919
11920         Tests for module 'sendto'.
11921         * modules/sendto-tests: New file.
11922         * tests/test-sendto.c: New file.
11923
11924         Tests for module 'send'.
11925         * modules/send-tests: New file.
11926         * tests/test-send.c: New file.
11927
11928         Tests for module 'recvfrom'.
11929         * modules/recvfrom-tests: New file.
11930         * tests/test-recvfrom.c: New file.
11931
11932         Tests for module 'recv'.
11933         * modules/recv-tests: New file.
11934         * tests/test-recv.c: New file.
11935
11936         Tests for module 'listen'.
11937         * modules/listen-tests: New file.
11938         * tests/test-listen.c: New file.
11939
11940         Tests for module 'getsockopt'.
11941         * modules/getsockopt-tests: New file.
11942         * tests/test-getsockopt.c: New file.
11943
11944         Tests for module 'getsockname'.
11945         * modules/getsockname-tests: New file.
11946         * tests/test-getsockname.c: New file.
11947
11948         Tests for module 'getpeername'.
11949         * modules/getpeername-tests: New file.
11950         * tests/test-getpeername.c: New file.
11951
11952         Tests for module 'connect'.
11953         * modules/connect-tests: New file.
11954         * tests/test-connect.c: New file.
11955
11956         Tests for module 'bind'.
11957         * modules/bind-tests: New file.
11958         * tests/test-bind.c: New file.
11959
11960         accept4 tests: Fix for native Windows.
11961         * tests/test-accept4.c: Include sockets.h.
11962         (main): Invoke gl_sockets_startup.
11963         * modules/accept4-tests (Depends-on): Add sockets.
11964
11965         accept tests: Fix for native Windows.
11966         * tests/test-accept.c: Include sockets.h.
11967         (main): Invoke gl_sockets_startup.
11968         * modules/accept-tests (Depends-on): Add sockets.
11969
11970 2011-09-19  Bruno Haible  <bruno@clisp.org>
11971
11972         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
11973         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
11974         do...while(0).
11975         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
11976         Suggested by Paul Eggert.
11977
11978 2011-09-19  Bruno Haible  <bruno@clisp.org>
11979
11980         sched: Ensure pid_t is defined.
11981         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
11982         not define pid_t.
11983         * lib/sched.in.h: Include <sys/types.h>.
11984         * doc/posix-headers/sched.texi: Mention the pid_t problem.
11985         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11986
11987 2011-09-19  Bruno Haible  <bruno@clisp.org>
11988
11989         msvc-inval: Ensure the entire expansion is a single statement.
11990         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
11991         of braces.
11992
11993 2011-09-19  Jim Meyering  <meyering@redhat.com>
11994
11995         tests: use printf, not echo in init.sh's warn_ function
11996         * tests/init.sh (warn_): Use printf, not echo.  The latter would
11997         misbehave when given strings containing a backslash or starting
11998         with e.g., -n.  James Youngman suggested setting IFS.
11999
12000 2011-09-19  Eric Blake  <eblake@redhat.com>
12001
12002         futimens: enhance test
12003         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12004         closed non-negative fd.
12005
12006         date: accept 'hence' as opposite of 'ago'
12007         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12008         * tests/test-parse-datetime.c (main): Enhance test.
12009         Suggested by Jesse Wilson.
12010
12011 2011-09-19  Jim Meyering  <meyering@redhat.com>
12012
12013         getcwd: don't fail in a deep directory on a system without openat
12014         Before this change, getcwd would fail when called from a directory
12015         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12016         the non-openat implementation used "..", "../..", "../../..", etc.
12017         to access ancestor directories.  With too many, that string would
12018         be longer than PATH_MAX.
12019         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12020         using gnulib's openat replacement.
12021         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12022         we're using the replacement function.
12023
12024 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12025
12026         maint.mk: avoid warnings from perl about missing files
12027         * top/maint.mk (def_sym_regex): Ignore files listed in
12028         $(gl_other_headers_) that do not exist, say because a project
12029         does not use a corresponding module.
12030
12031 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12032
12033         stat: use pathmax.h only if needed
12034         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12035         This is better for Emacs, which does not have a mingw port and
12036         therefore can avoid the pathmax module.
12037
12038         utimens: remove dependency on dup2
12039         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12040         to work around the Linux kernel bug.
12041         * modules/utimens (Depends-on): Remove dup2.
12042
12043 2011-09-18  Bruno Haible  <bruno@clisp.org>
12044
12045         inet_ntop, inet_pton: Look for it also in libresolv.
12046         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12047         libnsl, search for it in libresolv.
12048         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12049         Needed on Solaris 7.
12050
12051 2011-09-18  Bruno Haible  <bruno@clisp.org>
12052
12053         accept, accept4 tests: Avoid link error on Solaris.
12054         * modules/accept-tests (Makefile.am): Link test-accept against
12055         $(LIBSOCKET).
12056         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12057         $(LIBSOCKET).
12058
12059         accept4: Avoid link error on Solaris.
12060         * modules/accept4 (Link): New section.
12061
12062         socket functions: Avoid link errors on Solaris.
12063         * modules/accept (Depends-on): Add socketlib.
12064         (Link): New section.
12065         * modules/bind (Depends-on): Add socketlib.
12066         (Link): New section.
12067         * modules/connect (Depends-on): Add socketlib.
12068         (Link): New section.
12069         * modules/getpeername (Depends-on): Add socketlib.
12070         (Link): New section.
12071         * modules/getsockname (Depends-on): Add socketlib.
12072         (Link): New section.
12073         * modules/getsockopt (Depends-on): Add socketlib.
12074         (Link): New section.
12075         * modules/listen (Depends-on): Add socketlib.
12076         (Link): New section.
12077         * modules/recv (Depends-on): Add socketlib.
12078         (Link): New section.
12079         * modules/recvfrom (Depends-on): Add socketlib.
12080         (Link): New section.
12081         * modules/send (Depends-on): Add socketlib.
12082         (Link): New section.
12083         * modules/sendto (Depends-on): Add socketlib.
12084         (Link): New section.
12085         * modules/setsockopt (Depends-on): Add socketlib.
12086         (Link): New section.
12087         * modules/shutdown (Depends-on): Add socketlib.
12088         (Link): New section.
12089         * modules/socket (Depends-on): Add socketlib.
12090         (Link): New section.
12091
12092 2011-09-18  Bruno Haible  <bruno@clisp.org>
12093
12094         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12095         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12096         than 5 seconds.
12097         * modules/ptsname-tests (configure.ac): Test for alarm.
12098
12099 2011-09-18  Bruno Haible  <bruno@clisp.org>
12100
12101         posix_spawn_file_actions_add*: Fix module dependencies.
12102         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12103         posix_spawn_file_actions_init.
12104         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12105         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12106
12107 2011-09-18  Bruno Haible  <bruno@clisp.org>
12108
12109         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12110         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12111         * tests/test-renameat.c (main): Likewise.
12112
12113 2011-09-18  Bruno Haible  <bruno@clisp.org>
12114
12115         Tests for module 'accept4'.
12116         * modules/accept4-tests: New file.
12117         * tests/test-accept4.c: New file.
12118
12119 2011-09-18  Bruno Haible  <bruno@clisp.org>
12120
12121         Tests for module 'accept'.
12122         * modules/accept-tests: New file.
12123         * tests/test-accept.c: New file.
12124
12125 2011-09-18  Bruno Haible  <bruno@clisp.org>
12126
12127         dup2: Support for MSVC.
12128         * lib/dup2.c: Include msvc-inval.h.
12129         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12130         _get_osfhandle calls.
12131         * modules/dup2 (Depends-on): Add msvc-inval.
12132         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12133
12134         New module 'msvc-inval'.
12135         * lib/msvc-inval.h: New file.
12136         * lib/msvc-inval.c: New file.
12137         * m4/msvc-inval.m4: New file.
12138         * modules/msvc-inval: New file.
12139
12140 2011-09-17  Bruno Haible  <bruno@clisp.org>
12141
12142         Tests for module 'pclose'.
12143         * modules/pclose-tests: New file.
12144
12145         New module 'pclose'.
12146         * lib/stdio.in.h (pclose): New declaration.
12147         * lib/pclose.c: New file.
12148         * m4/pclose.m4: New file.
12149         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12150         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12151         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12152         * modules/pclose: New file.
12153         * modules/popen-tests (Depends-on): Add pclose.
12154         * modules/popen-safer-tests (Depends-on): Likewise.
12155         * doc/posix-functions/pclose.texi: Mention the new module.
12156
12157 2011-09-17  Bruno Haible  <bruno@clisp.org>
12158
12159         popen: Support for MSVC.
12160         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12161         * lib/popen.c (popen): Provide alternate definition for native Windows.
12162         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12164         * modules/popen (Depends-on, configure.ac): Update condition.
12165         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12166         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12167         fixed.
12168
12169 2011-09-17  Bruno Haible  <bruno@clisp.org>
12170
12171         isnanl, isnand, isnanf: Work around MSVC bug.
12172         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12173
12174 2011-09-17  Bruno Haible  <bruno@clisp.org>
12175
12176         sys_socket tests: Fix recent mistake.
12177         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12178
12179 2011-09-17  Bruno Haible  <bruno@clisp.org>
12180
12181         putenv: Support for MSVC.
12182         * modules/putenv (Depends-on): Add environ.
12183         * lib/putenv.c (environ): Disable declaration.
12184         * lib/unistd.in.h: Update comment.
12185
12186 2011-09-17  Bruno Haible  <bruno@clisp.org>
12187
12188         math: Avoid macro redefinition warnings on MSVC.
12189         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12190         Undefine before redefining.
12191
12192 2011-09-17  Bruno Haible  <bruno@clisp.org>
12193
12194         doc: Mention functions which are declared as macros.
12195         * doc/posix-functions/*[fl].texi: Mention that some functions are
12196         defined as macros with arguments only.
12197
12198 2011-09-17  Bruno Haible  <bruno@clisp.org>
12199
12200         Add dependencies to new dirent related modules.
12201         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12202         * modules/fts (Depends-on): Likewise.
12203         * modules/glob (Depends-on): Likewise.
12204         * modules/savedir (Depends-on): Likewise.
12205         * modules/scandir (Depends-on): Likewise.
12206         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12207         * modules/fdopendir (Depends-on): Add opendir.
12208
12209 2011-09-17  Bruno Haible  <bruno@clisp.org>
12210
12211         inet_pton: Support for MSVC on Windows Vista or newer.
12212         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12213         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12214         HAVE_DECL_INET_PTON is defined.
12215         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12216         On platforms with <winsock2.h>, test whether inet_pton is declared in
12217         <ws2tcpip.h>. If so, arrange to replace it.
12218         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12219         REPLACE_INET_PTON.
12220         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12221         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12222         (Depends-on, configure.ac): Update condition.
12223         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12224
12225 2011-09-17  Bruno Haible  <bruno@clisp.org>
12226
12227         inet_ntop: Support for MSVC on Windows Vista or newer.
12228         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12229         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12230         HAVE_DECL_INET_NTOP is defined.
12231         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12232         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12233         <ws2tcpip.h>. If so, arrange to replace it.
12234         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12235         REPLACE_INET_NTOP.
12236         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12237         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12238         (Depends-on, configure.ac): Update condition.
12239         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12240
12241 2011-09-16  Eric Blake  <eblake@redhat.com>
12242
12243         test-fsync: yet another enhancement
12244         * tests/test-fsync.c (main): Also test behavior on read-only text
12245         file.
12246
12247 2011-09-16  Bruno Haible  <bruno@clisp.org>
12248
12249         Enhance fsync, fdatasync tests.
12250         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12251         * tests/test-fdatasync.c (main): Likewise.
12252
12253 2011-09-16  Bruno Haible  <bruno@clisp.org>
12254
12255         Support for MSVC compiler: Ensure mode_t gets defined.
12256         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12257         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12258         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12259         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12260         * tests/test-fcntl-h.c: Check that mode_t is defined.
12261         * tests/test-sys_stat.c: Likewise.
12262         * tests/test-sys_types.c: Likewise.
12263         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12264         * doc/posix-headers/sys_stat.texi: Likewise.
12265         * doc/posix-headers/sys_types.texi: Likewise.
12266
12267 2011-09-16  Bruno Haible  <bruno@clisp.org>
12268
12269         sys_stat: Support for MSVC.
12270         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12271         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12272         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12273         MSVC.
12274
12275 2011-09-16  Bruno Haible  <bruno@clisp.org>
12276
12277         Support for MSVC compiler: Ensure off_t gets defined.
12278         * lib/unistd.in.h: Include <sys/types.h>.
12279         * tests/test-fcntl-h.c: Check that off_t is defined.
12280         * tests/test-sys_stat.c: Likewise.
12281         * tests/test-sys_types.c: Likewise.
12282
12283 2011-09-16  Eric Blake  <eblake@redhat.com>
12284
12285         fdatasync: port to Solaris
12286         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12287         * modules/fdatasync (Link): Document it.
12288         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12289
12290         fdatasync: port to MacOS X 10.7
12291         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12292         declared.
12293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12294         * modules/unistd (Makefile.am): Substitute it.
12295         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12296         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12297
12298         fdatasync: minor improvements
12299         * modules/fdatasync (Depends-on): Add condition for fsync.
12300         * lib/fdatasync.c (fdatasync): Add comment.
12301         * tests/test-unistd-c++.cc: Test fdatasync.
12302
12303         unistd: update refs to newer POSIX
12304         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12305         Suggested by Bruno Haible.
12306
12307         fdatasync: new module
12308         * modules/fsync (Description): Document difference to fdatasync.
12309         * modules/fdatasync: New module.
12310         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12311         * lib/fdatasync.c (fdatasync): Likewise.
12312         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12313         defaults.
12314         * modules/unistd (Makefile.am): Set witnesses.
12315         * lib/unistd.in.h (fdatasync): Declare.
12316         * MODULES.html.sh: Document it.
12317         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12318         * modules/fdatasync-tests: New test.
12319         * tests/test-fdatasync.c: Likewise.
12320
12321 2011-09-16  Eric Blake  <eblake@redhat.com>
12322
12323         test-fsync: enhance tests
12324         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12325         * tests/test-fsync.c (main): Enhance test.
12326
12327 2011-09-15  Bruno Haible  <bruno@clisp.org>
12328
12329         Support for MSVC compiler: Ensure ssize_t gets defined.
12330         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12331         * doc/posix-headers/stdio.texi: Likewise.
12332         * modules/stdio (Depends-on): Add ssize_t.
12333         * modules/sys_socket (Depends-on): Likewise.
12334         * modules/sys_types (Depends-on): Likewise.
12335         * modules/sys_uio (Depends-on): Likewise.
12336         * modules/unistd (Depends-on): Likewise.
12337         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12338         * tests/test-sys_types.c: Check that ssize_t is defined.
12339
12340 2011-09-14  Bruno Haible  <bruno@clisp.org>
12341
12342         Avoid using #, the m4 comment starter character, near brackets.
12343         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12344         delimiter character in sed expressions.
12345         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12346         Suggested by Eric Blake.
12347
12348         Properly quote AC_CHECK_DECLS' 4th argument.
12349         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12350         argument.
12351         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12352         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12353         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12354         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12355         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12356         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12357         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12358         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12359         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12360         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12361         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12362         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12363         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12364         * m4/isinf.m4 (gl_ISINF): Likewise.
12365         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12366         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12367         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12368         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12369         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12370         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12371         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12372         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12373         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12374         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12375         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12376         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12377         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12378         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12379         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12380         Reported by Eric Blake.
12381
12382         Properly quote AC_CHECK_DECL's 4th argument.
12383         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12384         argument.
12385         * m4/argp.m4 (gl_ARGP): Likewise.
12386         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12387         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12388         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12389         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12390         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12391         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12392         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12393         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12394         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12395         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12396         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12397         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12398         Reported by Eric Blake.
12399
12400 2011-09-14  Eric Blake  <eblake@redhat.com>
12401
12402         opendir: avoid compile warning
12403         * lib/opendir.c (includes): Always include errno.h.
12404         Reported by Tatsuro MATSUOKA.
12405
12406 2011-09-14  Jim Meyering  <meyering@redhat.com>
12407
12408         maint.mk: sc_tight_scope: propagate failure from sub-make
12409         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12410         Reported by Martin von Gagern.
12411
12412 2011-09-13  Bruno Haible  <bruno@clisp.org>
12413
12414         tempname: Support for MSVC.
12415         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12416         MSVC.
12417         * modules/tempname (Depends-on): Add fcntl-h.
12418
12419 2011-09-13  Bruno Haible  <bruno@clisp.org>
12420
12421         sys_time: Support for MSVC.
12422         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12423         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12424         include <winsock2.h>.
12425         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12426         function declarations that collide with POSIX.
12427         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12428         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12429
12430 2011-09-13  Bruno Haible  <bruno@clisp.org>
12431
12432         stat: Support for MSVC.
12433         * lib/stat.c: Include pathmax.h.
12434         * modules/stat (Depends-on): Add pathmax.
12435
12436         pathmax: Support for native Windows.
12437         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12438
12439 2011-09-12  Bruno Haible  <bruno@clisp.org>
12440
12441         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12442         * lib/dirent.in.h (struct dirent): New type.
12443         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12444         DT_WHT): New macros.
12445         (DIR): New type.
12446         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12447         (readdir, rewinddir): New declarations.
12448         * lib/dirent-private.h: New file.
12449         * lib/opendir.c: New file.
12450         * lib/readdir.c: New file.
12451         * lib/rewinddir.c: New file.
12452         * lib/closedir.c: New file.
12453         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12454         * m4/opendir.m4: New file.
12455         * m4/readdir.m4: New file.
12456         * m4/rewinddir.m4: New file.
12457         * m4/closedir.m4: New file.
12458         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12459         REPLACE_CLOSEDIR here.
12460         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12461         readdir, rewinddir are declared.
12462         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12463         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12464         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12465         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12466         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12467         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12468         * modules/opendir: New file.
12469         * modules/readdir: New file.
12470         * modules/rewinddir: New file.
12471         * modules/closedir: New file.
12472         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12473         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12474         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12475         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12476         * NEWS: Mention the 'fchdir' change.
12477
12478 2011-09-11  Bruno Haible  <bruno@clisp.org>
12479
12480         asm-underscore.m4: Support for MSVC.
12481         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12482         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12483
12484 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12485
12486         Doc about crypt functions.
12487         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12488         needing for _GNU_SOURCE to get crypt.
12489         * doc/posix-functions/encrypt.texi: Likewise.
12490         * doc/posix-functions/setkey.texi: Likewise.
12491
12492 2011-09-11  Bruno Haible  <bruno@clisp.org>
12493
12494         doc: Update regarding MSVC 9.
12495         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12496         tested".
12497         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12498         * doc/posix-headers/*.texi: Likewise.
12499         * doc/pastposix-functions/*.texi: Likewise.
12500         * doc/glibc-functions/*.texi: Likewise.
12501         * doc/glibc-headers/*.texi: Likewise.
12502
12503 2011-09-11  Bruno Haible  <bruno@clisp.org>
12504
12505         unistd et al.: Don't assume <unistd.h> exists.
12506         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12507         does not exist.
12508         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12509         exist. But include <stdlib.h>.
12510         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12511         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12512         symlink() does not exist.
12513         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12514         include <io.h> instead.
12515         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12516         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12517         include <direct.h> instead.
12518         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12519         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12520         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12521         <io.h> instead.
12522         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12523         correctly if the system does not have hard links.
12524         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12525         <direct.h> instead.
12526         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12527         it when looking for function declarations.
12528         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12529         <direct.h> and <io.h> instead.
12530         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12531
12532 2011-09-11  Bruno Haible  <bruno@clisp.org>
12533
12534         strcase: Support for MSVC.
12535         * modules/strcase (Status, Notice): Remove obsoletion mark.
12536         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12537         * doc/posix-functions/strncasecmp.texi: Likewise.
12538
12539         strings: Don't assume <strings.h> exists.
12540         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12541         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12542         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12543         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12544
12545 2011-09-11  Bruno Haible  <bruno@clisp.org>
12546
12547         dirent: Don't assume <dirent.h> exists.
12548         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12549         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12550         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12551         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12552
12553 2011-09-11  Bruno Haible  <bruno@clisp.org>
12554
12555         Fix wint_t on MSVC.
12556         * lib/wchar.in.h (wint_t): On MSVC, override it.
12557         * lib/wctype.in.h (wint_t): Likewise.
12558         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12559         MSVC.
12560         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12561         * doc/posix-headers/wctype.texi: Likewise.
12562
12563 2011-09-11  Bruno Haible  <bruno@clisp.org>
12564
12565         sys_types: Fix typo.
12566         * lib/sys_types.in.h: Fix typo in comment.
12567         Reported by Paul Eggert.
12568
12569         Support for MSVC compiler: Ensure size_t gets defined.
12570         * modules/strings (Depends-on): Add 'sys_types'.
12571         * modules/sys_uio (Depends-on): Likewise.
12572         * lib/sys_uio.in.h: Update comment.
12573
12574         C++ tests for module 'sys_types'.
12575         * modules/sys_types-c++-tests: New file.
12576         * tests/test-sys_types-c++.cc: New file.
12577
12578         Tests for module 'sys_types'.
12579         * modules/sys_types-tests: New file.
12580         * tests/test-sys_types.c: New file.
12581
12582         New module 'sys_types'.
12583         * lib/sys_types.in.h: New file.
12584         * m4/sys_types_h.m4: New file.
12585         * modules/sys_types: New file.
12586         * doc/posix-headers/sys_types.texi: Mention the new module and the
12587         size_t problem on MSVC 9.
12588
12589 2011-09-11  Bruno Haible  <bruno@clisp.org>
12590
12591         Support for MSVC compiler: Avoid division by a literal 0.
12592         * lib/math.in.h (NAN): Define through a function call also on MSVC.
12593         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
12594         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
12595         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
12596         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
12597         * tests/infinity.h: New file.
12598         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
12599         on MSVC.
12600         * tests/test-ceilf1.c: Include infinity.h.
12601         (main): Use Infinityf.
12602         * tests/test-ceil1.c: Include infinity.h.
12603         (main): Use Infinityd.
12604         * tests/test-ceill.c: Include infinity.h.
12605         (main): Use Infinityl.
12606         * tests/test-dprintf-posix.c: Include infinity.h.
12607         (test_function): Use Infinityd.
12608         * tests/test-floorf1.c: Include infinity.h.
12609         (main): Use Infinityf.
12610         * tests/test-floor1.c: Include infinity.h.
12611         (main): Use Infinityd.
12612         * tests/test-floorl.c: Include infinity.h.
12613         (main): Use Infinityl.
12614         * tests/test-fprintf-posix.c: Include infinity.h.
12615         (test_function): Use Infinityd.
12616         * tests/test-frexp.c: Include infinity.h.
12617         (main): Use Infinityd.
12618         * tests/test-frexpl.c: Include infinity.h.
12619         (main): Use Infinityl.
12620         * tests/test-isfinite.c: Include infinity.h.
12621         (test_isfinitef): Use Infinityf.
12622         (test_isfinited): Use Infinityd.
12623         (test_isfinitel): Use Infinityl.
12624         * tests/test-isinf.c: Include infinity.h.
12625         (test_isinff): Use Infinityf.
12626         (test_isinfd): Use Infinityd.
12627         (test_isinfl): Use Infinityl.
12628         * tests/test-isnan.c: Include infinity.h.
12629         (test_float): Use Infinityf.
12630         (test_double): Use Infinityd.
12631         (test_long_double): Use Infinityl.
12632         * tests/test-isnanf.h: Include infinity.h.
12633         (main): Use Infinityf.
12634         * tests/test-isnand.h: Include infinity.h.
12635         (main): Use Infinityd.
12636         * tests/test-isnanl.h: Include infinity.h.
12637         (main): Use Infinityl.
12638         * tests/test-ldexpl.c: Include infinity.h.
12639         (main): Use Infinityl.
12640         * tests/test-printf-posix.h: Include infinity.h.
12641         (test_function): Use Infinityd.
12642         * tests/test-roundf1.c: Include infinity.h.
12643         (main): Use Infinityf.
12644         * tests/test-round1.c: Include infinity.h.
12645         (main): Use Infinityd.
12646         * tests/test-roundl.c: Include infinity.h.
12647         (main): Use Infinityl.
12648         * tests/test-signbit.c: Include infinity.h.
12649         (test_signbitf): Use Infinityf.
12650         (test_signbitd): Use Infinityd.
12651         (test_signbitl): Use Infinityl.
12652         * tests/test-snprintf-posix.h: Include infinity.h.
12653         (test_function): Use Infinityd, Infinityl.
12654         * tests/test-sprintf-posix.h: Include infinity.h.
12655         (test_function): Use Infinityd, Infinityl.
12656         * tests/test-truncf1.c: Include infinity.h.
12657         (main): Use Infinityf.
12658         * tests/test-trunc1.c: Include infinity.h.
12659         (main): Use Infinityd.
12660         * tests/test-truncl.c: Include infinity.h.
12661         (main): Use Infinityl.
12662         * tests/test-vasnprintf-posix.c: Include infinity.h.
12663         (test_function): Use Infinityd, Infinityl.
12664         * tests/test-vasprintf-posix.c: Include infinity.h.
12665         (test_function): Use Infinityd, Infinityl.
12666         * modules/ceilf-tests (Files): Add tests/infinity.h.
12667         * modules/ceil-tests (Files): Likewise.
12668         * modules/ceill-tests (Files): Likewise.
12669         * modules/dprintf-posix-tests (Files): Likewise.
12670         * modules/floorf-tests (Files): Likewise.
12671         * modules/floor-tests (Files): Likewise.
12672         * modules/floorl-tests (Files): Likewise.
12673         * modules/fprintf-posix-tests (Files): Likewise.
12674         * modules/frexp-tests (Files): Likewise.
12675         * modules/frexp-nolibm-tests (Files): Likewise.
12676         * modules/frexpl-tests (Files): Likewise.
12677         * modules/frexpl-nolibm-tests (Files): Likewise.
12678         * modules/isfinite-tests (Files): Likewise.
12679         * modules/isinf-tests (Files): Likewise.
12680         * modules/isnan-tests (Files): Likewise.
12681         * modules/isnanf-tests (Files): Likewise.
12682         * modules/isnanf-nolibm-tests (Files): Likewise.
12683         * modules/isnand-tests (Files): Likewise.
12684         * modules/isnand-nolibm-tests (Files): Likewise.
12685         * modules/isnanl-tests (Files): Likewise.
12686         * modules/isnanl-nolibm-tests (Files): Likewise.
12687         * modules/ldexpl-tests (Files): Likewise.
12688         * modules/printf-posix-tests (Files): Likewise.
12689         * modules/roundf-tests (Files): Likewise.
12690         * modules/round-tests (Files): Likewise.
12691         * modules/roundl-tests (Files): Likewise.
12692         * modules/signbit-tests (Files): Likewise.
12693         * modules/snprintf-posix-tests (Files): Likewise.
12694         * modules/sprintf-posix-tests (Files): Likewise.
12695         * modules/truncf-tests (Files): Likewise.
12696         * modules/trunc-tests (Files): Likewise.
12697         * modules/truncl-tests (Files): Likewise.
12698         * modules/vasnprintf-posix-tests (Files): Likewise.
12699         * modules/vasprintf-posix-tests (Files): Likewise.
12700         * modules/vdprintf-posix-tests (Files): Likewise.
12701         * modules/vfprintf-posix-tests (Files): Likewise.
12702         * modules/vprintf-posix-tests (Files): Likewise.
12703         * modules/vsnprintf-posix-tests (Files): Likewise.
12704         * modules/vsprintf-posix-tests (Files): Likewise.
12705         * modules/xprintf-posix-tests (Files): Likewise.
12706
12707 2011-09-11  Bruno Haible  <bruno@clisp.org>
12708
12709         Ensure pid_t gets defined.
12710         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
12711         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12712         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12713         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12714         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12715         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12716         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12717         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12718         * tests/test-fcntl-h.c: Check that pid_t is defined.
12719         * tests/test-sched.c: Likewise.
12720         * tests/test-termios.c: Likewise.
12721         * tests/test-time.c: Likewise.
12722         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
12723         * doc/posix-headers/signal.texi: Likewise.
12724         * doc/posix-headers/sys_types.texi: Likewise.
12725         * doc/posix-headers/time.texi: Likewise.
12726
12727 2011-09-11  Bruno Haible  <bruno@clisp.org>
12728
12729         acl: Fix compilation on Solaris 10 (older version).
12730         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
12731         of ACE_EVERYONE.
12732         * lib/set-mode-acl.c (qset_acl): Likewise.
12733         Reported by Christian Jullien <eligis@orange.fr>.
12734
12735 2011-09-10  Bruno Haible  <bruno@clisp.org>
12736
12737         iconv, unsetenv: Add support for MSVC compiler.
12738         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
12739         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
12740
12741 2011-09-10  Bruno Haible  <bruno@clisp.org>
12742
12743         *printf: Add support for MSVC compiler.
12744         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
12745         handles the exception caused by the %n directive. When cross-compiling,
12746         guess no on native Windows.
12747         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12748         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
12749         emulate it through vsnprintf.
12750         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
12751         * doc/posix-functions/dprintf.texi: Update documentation regarding
12752         MSVC 9.
12753         * doc/posix-functions/fprintf.texi: Likewise.
12754         * doc/posix-functions/printf.texi: Likewise.
12755         * doc/posix-functions/snprintf.texi: Likewise.
12756         * doc/posix-functions/sprintf.texi: Likewise.
12757         * doc/posix-functions/swprintf.texi: Likewise.
12758         * doc/posix-functions/vdprintf.texi: Likewise.
12759         * doc/posix-functions/vfprintf.texi: Likewise.
12760         * doc/posix-functions/vprintf.texi: Likewise.
12761         * doc/posix-functions/vsnprintf.texi: Likewise.
12762         * doc/posix-functions/vsprintf.texi: Likewise.
12763         * doc/glibc-functions/asprintf.texi: Likewise.
12764         * doc/glibc-functions/obstack_printf.texi: Likewise.
12765         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12766         * doc/glibc-functions/vasprintf.texi: Likewise.
12767
12768 2011-09-10  Bruno Haible  <bruno@clisp.org>
12769
12770         nocrash: Add support for native Windows.
12771         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
12772
12773 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
12774             Bruno Haible  <bruno@clisp.org>
12775
12776         absolute-header, include-next: Add support for MSVC compiler.
12777         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
12778         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
12779         directory separator in #line directives.
12780         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
12781         recognize also backslash as directory separator in #line directives.
12782
12783 2011-09-08  Jim Meyering  <meyering@redhat.com>
12784
12785         maint.mk: mark the post-release commit log with "maint: " prefix
12786         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
12787         one-line commit-log summary.
12788
12789 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
12790             Bruno Haible  <bruno@clisp.org>
12791
12792         Doc about crypt functions.
12793         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
12794         systems.
12795         * doc/posix-functions/encrypt.texi: Likewise.
12796         * doc/posix-functions/setkey.texi: Likewise.
12797
12798 2011-09-08  Simon Josefsson  <simon@josefsson.org>
12799
12800         * lib/gc.h: Fix copyright header.
12801
12802 2011-09-07  Bruno Haible  <bruno@clisp.org>
12803
12804         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
12805         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
12806         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
12807
12808 2011-09-07  Bruno Haible  <bruno@clisp.org>
12809
12810         openat: Work around compilation error with OSF/1 5.1 DTK cc.
12811         * lib/fopen.c: Use different syntax for include of <stdio.h>.
12812         * lib/freopen.c: Likewise.
12813         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
12814         * lib/lstat.c: Likewise.
12815         * lib/stat.c: Likewise.
12816         * lib/open.c: Use different syntax for include of <fcntl.h>.
12817         * lib/openat.c: Include fcntl.h again, explicitly.
12818
12819 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
12820
12821         parse-datetime: document the newly accepted format
12822         * doc/parse-datetime.texi (Combined date and time of day items):
12823         New section.
12824
12825 2011-09-06  Bruno Haible  <bruno@clisp.org>
12826
12827         acl: Fix a test failure on newer Solaris 10 with ZFS.
12828         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
12829         ENOSYS as no ACL.
12830         Reported by Jim Meyering.
12831
12832 2011-09-06  Bruno Haible  <bruno@clisp.org>
12833
12834         acl: Update for AIX >= 5.3 with NFS.
12835         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
12836         ENOSYS as no ACL.
12837
12838         acl: Fix a test failure on AIX >= 5.3 with NFS.
12839         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
12840         as no ACL.
12841
12842 2011-09-06  Bruno Haible  <bruno@clisp.org>
12843
12844         acl: Fix a test failure on IRIX 6.5 with NFS.
12845         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
12846         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
12847         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
12848         * lib/copy-acl.c (qcopy_acl): Likewise.
12849
12850 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
12851
12852         openat: port to AIX 7.1 with large files
12853         AIX 7.1 does a "#define openat open64at" if large files are in use,
12854         so we can't simply #undef openat.  Use the orig_openat trick (similar
12855         to orig_open in lib/open.c) to work around the problem.  Problem
12856         reported by Kevin Brott for GNU tar, in the thread containing
12857         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
12858         * lib/openat.c (__need_system_fcntl_h): Define first.
12859         Include <fcntl.h> and <sys/types.h> before undefining.
12860         (orig_openat) [HAVE_OPENAT]: New inline function.
12861         (openat) [HAVE_OPENAT]: Do not undef.
12862         (rpl_openat): Use orig_openat, not openat.
12863
12864 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12865             Bruno Haible  <bruno@clisp.org>
12866
12867         acl: Avoid errors on NonStop Kernel.
12868         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
12869         ENOTSUP errors.
12870
12871 2011-09-05  Bruno Haible  <bruno@clisp.org>
12872
12873         acl: Clean up Solaris code.
12874         * lib/acl-internal.h: Remove no-op #if.
12875         * lib/file-has-acl.c: Likewise.
12876         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
12877         * lib/copy-acl.c (qcopy_acl): Likewise.
12878
12879 2011-09-05  Bruno Haible  <bruno@clisp.org>
12880
12881         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
12882         binaries built on the original Solaris 10.
12883         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
12884         trivial.
12885
12886 2011-09-05  Bruno Haible  <bruno@clisp.org>
12887
12888         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12889         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
12890         10.
12891         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
12892         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
12893         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
12894         instead of acl_get, facl_get, acl_set, facl_set.
12895
12896 2011-09-05  Bruno Haible  <bruno@clisp.org>
12897
12898         copy-file: Try unit tests on more file systems.
12899         * tests/test-copy-file-1.sh: New file.
12900         * tests/test-copy-file-2.sh: New file.
12901         * modules/copy-file-tests (Files): Add them.
12902         (Makefile.am): Add them to TESTS.
12903
12904         acl: Try unit tests on more file systems.
12905         * tests/test-file-has-acl-1.sh: New file.
12906         * tests/test-file-has-acl-2.sh: New file.
12907         * tests/test-set-mode-acl-1.sh: New file.
12908         * tests/test-set-mode-acl-2.sh: New file.
12909         * tests/test-copy-acl-1.sh: New file.
12910         * tests/test-copy-acl-2.sh: New file.
12911         * modules/acl-tests (Files): Add them.
12912         (Makefile.am): Add them to TESTS.
12913
12914 2011-09-04  Bruno Haible  <bruno@clisp.org>
12915
12916         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12917         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
12918         10.
12919         (OLD_ALLOW, OLD_DENY): New macros.
12920         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
12921         ACE_ACCESS_ALLOWED_ACE_TYPE.
12922         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
12923         ACE_ACCESS_DENIED_ACE_TYPE.
12924         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
12925         (NEW_ACE_EXECUTE): Fix value.
12926         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
12927         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
12928         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
12929         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
12930         NEW_ACE_SYNCHRONIZE): New macros.
12931         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
12932         instead of acl_fromtext, acl_set, facl_set.
12933         Fixes a coreutils/tests/cp/perm failure.
12934
12935 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
12936
12937         openat: test for fstatat (..., 0) bug
12938         Further testing with tar suggests that fstatat (..., 0)
12939         does not work in general, on AIX 7.1; see
12940         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
12941         So, give up entirely on AIX 7.1's fstatat, and fall back on our
12942         replacement fstatat (which is what older AIX releases were using
12943         anyway).
12944         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
12945         use is now changed to orig_fstatat.  This was probably the right
12946         thing to do anyway.
12947         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
12948         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
12949         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
12950         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
12951         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
12952         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
12953         if the bug is found.
12954
12955         openat: test for fstatat (AT_FDCWD, ..., 0) bug
12956         This tests for another fstatat bug on AIX 7.1:
12957         fstatat (AT_FDCWD, ..., 0) does not work.  See
12958         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
12959         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
12960         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
12961         (rpl_fstatat): Adjust so that it works around either (or both)
12962         bugs if present.
12963         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
12964
12965 2011-09-03  Karl Berry  <karl@gnu.org>
12966
12967         * doc/regex.texi (Character Class Operators): Avoid literal ":"
12968         in index entries.
12969
12970 2011-09-02  Bruno Haible  <bruno@clisp.org>
12971
12972         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
12973         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
12974         values of AR, ARFLAGS, RANLIB.
12975         Reported by John W. Eaton <jwe@gnu.org> for Octave.
12976
12977 2011-09-02  Bruno Haible  <bruno@clisp.org>
12978
12979         Find 'ar' program that fits with --host argument.
12980         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
12981
12982 2011-09-02  Bruno Haible  <bruno@clisp.org>
12983
12984         tests: init.sh: Support any non-GNU diff.
12985         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
12986         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
12987         Solaris 8.
12988
12989 2011-09-02  Bruno Haible  <bruno@clisp.org>
12990
12991         tests: init.sh: work also with any non-GNU diff that supports -u
12992         * tests/init.sh: Relax check for diff -u support.
12993         Rather than checking for GNU diff via --version, simply check
12994         for support for -u itself.  Useful at least on OpenBSD 4.9,
12995         AIX 7.1, IRIX 6.5, and Solaris 10.
12996
12997 2011-09-01  Bruno Haible  <bruno@clisp.org>
12998
12999         strtoimax, strtoumax: Document problem on HP-UX 11.
13000         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13001         * doc/posix-functions/strtoumax.texi: Likewise.
13002
13003 2011-09-01  Bruno Haible  <bruno@clisp.org>
13004
13005         strtoumax: Avoid link error on OSF/1 with DTK cc.
13006         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13007         defined as a function.
13008         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13009         strtoumax is defined, not whether it is declared.
13010
13011 2011-09-01  Bruno Haible  <bruno@clisp.org>
13012
13013         strtoimax: Avoid link error on OSF/1 with DTK cc.
13014         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13015         defined as a function.
13016         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13017         strtoimax is defined, not whether it is declared.
13018
13019 2011-09-01  Bruno Haible  <bruno@clisp.org>
13020
13021         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13022         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13023         as a function.
13024         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13025         whether it is declared.
13026
13027 2011-09-01  Bruno Haible  <bruno@clisp.org>
13028
13029         imaxabs: Avoid link error on OSF/1 with DTK cc.
13030         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13031         as a function.
13032         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13033         whether it is declared.
13034
13035 2011-09-01  Bruno Haible  <bruno@clisp.org>
13036
13037         Tests for module 'strtoumax'.
13038         * modules/strtoumax-tests: New file.
13039         * tests/test-strtoumax.c: New file.
13040
13041         Tests for module 'strtoimax'.
13042         * modules/strtoimax-tests: New file.
13043         * tests/test-strtoimax.c: New file.
13044
13045         Tests for module 'imaxdiv'.
13046         * modules/imaxdiv-tests: New file.
13047         * tests/test-imaxdiv.c: New file.
13048
13049         Tests for module 'imaxabs'.
13050         * modules/imaxabs-tests: New file.
13051         * tests/test-imaxabs.c: New file.
13052
13053 2011-09-01  Bruno Haible  <bruno@clisp.org>
13054
13055         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13056         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13057         pthread_create.
13058
13059 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13060
13061         openat: work around AIX 7.1 fstatat issue
13062         This should fix the problem that was not properly fixed
13063         in the previous change, dated 2011-08-30.
13064         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13065         __need_system_stat_h defined.
13066         (orig_fstatat) [HAVE_FSTATAT]: New function.
13067         (rpl_fstatat): Go back to the old way of doing things,
13068         except call orig_fstatat instead of fstatat.
13069         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13070         Remove unnecessary check whether fstatat fills in st_size etc.
13071
13072 2011-09-01  Bruno Haible  <bruno@clisp.org>
13073
13074         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13075         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13076         just include the system's header.
13077
13078 2011-08-31  Jim Meyering  <meyering@redhat.com>
13079
13080         tests: avoid spurious assertion failure in test-float.c on ppc64
13081         * tests/test-float.c (test_long_double): Comment out an assertion,
13082         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13083         with gcc-4.4.4.
13084
13085         maint: indent with spaces, not TABs
13086         I need to get in the habit of running gnulib's "make check".
13087         Both of these would have been caught.
13088         * m4/largefile.m4: Indent with spaces, not TABs.
13089         * lib/parse-datetime.y (iso_8601_time): Likewise.
13090         Spotted by Pádraig Brady.
13091
13092         test-parse-datetime.c: accommodate a relatively strict gcc warning
13093         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13094         to avoid a warning from gcc's -Werror=missing-declarations.
13095         Insert a few spaces-before-funcall-parenthesis.
13096
13097 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13098
13099         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13100         The parser now accepts ISO 8601 date-time strings with "T" as the
13101         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13102         with a space between the date and time strings.  Now it also parses
13103         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13104         variants like "2004-02-29T16:21:42.333-07:00"
13105         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13106         of day representation using the 'T' separator character.
13107         * doc/parse-datetime.texi (General date syntax): replace use of
13108         deprecated --iso-8601 option with --rfc-3339 in example of date
13109         command output formats that can be parsed.
13110         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13111         lib/parse-datetime.y.
13112         (gmt_offset): New function.
13113         (main): Add additional test cases to validate ISO8601 extended
13114         date and time of day parsing.
13115
13116 2011-08-31  Bruno Haible  <bruno@clisp.org>
13117
13118         freopen: Documentation.
13119         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13120         name.
13121         Reported by Claudio Bley <claudio.bley@gmail.com>.
13122
13123 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13124
13125         freopen: Don't crash if the filename argument is NULL.
13126         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13127         NULL.
13128
13129 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13130
13131         openat: work around AIX 7.1 fstatat bug
13132         Problem reported by Kevin Brott for GNU tar, in the thread containing
13133         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13134         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13135         FSTATAT_ST_SIZE_ETC_BROKEN.
13136         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13137         rpl_fstatat.
13138         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13139         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13140         AC_CHECK_FUNCS_ONCE for fstatat.
13141         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13142         fchmodat, mkdirat, openat and unlinkat.
13143
13144 2011-08-30  Bruno Haible  <bruno@clisp.org>
13145
13146         Avoid endless recursions if config.h includes some header files.
13147         * lib/fopen.c (__need_FILE): Define already before including config.h.
13148         * lib/freopen.c (__need_FILE): Likewise.
13149         * lib/open.c (__need_system_fcntl_h): Likewise.
13150         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13151         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13152         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13153
13154 2011-08-25  Karl Berry  <karl@gnu.org>
13155
13156         * config/srclist.txt (ylwrap): new try.
13157         * build-aux/ylwrap: new file.
13158
13159 2011-08-23  Bruno Haible  <bruno@clisp.org>
13160
13161         tmpdir: Use a good default directory on native Windows.
13162         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13163         (P_tmpdir): Default to _P_tmpdir on native Windows.
13164         (path_search): On native Windows, try the value returned by GetTempPath
13165         before trying P_tmpdir.
13166         * modules/tmpdir (Depends-on): Add pathmax.
13167         Suggested by John Darrington <john@darrington.wattle.id.au>.
13168
13169 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13170
13171         doc: fix typo in README-release
13172         * top/README-release: Capitalize first word of a sentence.
13173
13174 2011-08-19  Jim Meyering  <meyering@redhat.com>
13175
13176         fts: do not exhaust memory when processing million-entry directories
13177         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13178         directory would require about 256*N bytes of memory.  Thus, it was
13179         easy to construct a directory too large to be processed by any of
13180         those tools.  With this change, fts' maximum memory utilization is
13181         now limited to around 30MB.
13182         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13183         (fts_read): When we've processed the final entry (i.e., when
13184         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13185         using the parent entry to read any remaining entries.  Dispatch
13186         depending on what fts_build returns:
13187         - NULL+stop, aka failure: stop
13188         - NULL otherwise: move up in the dir hierarchy
13189         - non-NULL: handle this new entry
13190         (fts_build): Declare and use new local, continue_readdir.
13191         Prepare to be called from fts_read, when the entries
13192         from a partially-read directory have just been exhausted.
13193         In that case, we'll skip the opendir and instead use the parent's
13194         fts_dirp and derive dir_fd from that.
13195         Finally, in the readdir loop, if we read max_entries entries,
13196         exit the loop ensuring *not* to call closedir.  This is required
13197         so that fts_dirp can be reused on a subsequent call.
13198         Prompted by Ben England's report of memory exhaustion in find
13199         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13200
13201         maint: fts: move decl of `dp' down into while loop; split a long line
13202         * lib/fts.c (fts_build): No semantic change.
13203
13204         fts: add/use new struct member, fts_dirp
13205         We are about to use this to manage any directory with
13206         too many entries to read all of them into memory at once.
13207         To do that, we'll need to save the DIR* pointer in each
13208         affected FTSENT struct.
13209         * lib/fts_.h: Include <dirent.h>.
13210         (struct FTSENT) [fts_dirp]: New member.
13211         * lib/fts.c (closedir_and_clear): Define.
13212         Use it in place of closedir so that we are sure to
13213         clear the new fts_dirp member when done with it.
13214         (fts_alloc): Initialize the new member.
13215         (fts_lfree): Free, if needed.
13216
13217         maint: fts: give __opendir2 a new parameter and rename
13218         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13219         than surreptitiously using sole caller's "dir_fd".
13220         (fts_opendir): Rename from __opendir2.
13221
13222         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13223         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13224
13225         maint: fts.c: correct off-by-one indentation
13226         * lib/fts.c (fts_build): Correct indentation, change style
13227         of a couple of block comments, and bracing style.
13228
13229         maint: fts.c: move __opendir2 #define "up" out of function body
13230         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13231
13232         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13233         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13234         out for a long time and besides was useful only on BSD systems.
13235
13236 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13237
13238         regex: port to Stratus OpenVOS
13239         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13240         define to empty, rather than attempting nonportable optimizations.
13241         Problem reported by Paul Green in:
13242         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13243         and fix suggested by Eric Blake in:
13244         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13245
13246 2011-08-17  Eric Blake  <eblake@redhat.com>
13247
13248         getcwd: fix test failures on mingw
13249         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13250         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13251         test if long directory cannot be created, and allow mingw errno.
13252
13253         getcwd-lgpl: fix m4 to match relaxed test for BSD
13254         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13255         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13256         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13257         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13258         signature problem.
13259
13260         getcwd: fix compilation on mingw64
13261         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13262         getcwd.
13263         Reported by Marc-André Lureau.
13264
13265         pipe2: silence compiler warning
13266         * lib/pipe2.c (pipe2): Hide label if it is not used.
13267
13268 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13269
13270         relocatable-prog: fix link error
13271         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13272         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13273         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13274         into modules/relocatable-lib without noticing that
13275         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13276         also needs to build relocatable.c.
13277
13278 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13279
13280         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13281         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13282         shell code: it contained a 'break' that was not in a loop.
13283         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13284         via a shell-language loop; this may have been true in old Autoconf
13285         versions, but it's not true in Autoconf 2.68.  I found this bug
13286         when testing coreutils git on Solaris 8, whose shell complains
13287         about the syntax error.
13288
13289 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13290
13291         * lib/base64.c: Fix comment to reference RFC 4648.
13292         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13293         <gvtulder@gmail.com>.
13294
13295 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13296
13297         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13298
13299         po/Makefile.in.in: fix make -q problem
13300         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13301         rule, since there's no file named 'check-macro-version' and its
13302         use as a file breaks make -q.
13303         (all): Don't depend on check-macro-version.
13304         (CHECK_MACRO_VERSION): New macro.
13305         (stamp-po): Use it.
13306
13307         configmake: fix make -q problem
13308         * modules/configmake (configmake.h): Update configmake.h's time stamp
13309         even if the file does not change.  Otherwise, 'make -q' fails.
13310         Problem reported by Simon Josefsson in
13311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13312
13313 2011-08-11  Jim Meyering  <meyering@redhat.com>
13314
13315         git-version-gen: correct the advice in a comment
13316         * build-aux/git-version-gen: Correct comment.
13317         Don't recommend to list .tarball-version in .gitignore.
13318
13319 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13320
13321         base64: fix off-by-one buffer size bug
13322         Problem and (trivial) fix reported by Gijs van Tulder in
13323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13324         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13325         * tests/test-base64.c (main): Catch the bug.
13326
13327 2011-08-10  Eric Blake  <eblake@redhat.com>
13328
13329         closein: correct comments
13330         * lib/closein.c (close_stdin): Improve comments.
13331
13332 2011-08-09  Bruno Haible  <bruno@clisp.org>
13333
13334         More tests for 'fseeko'.
13335         * tests/test-fseeko3.c: New file, from Eric Blake.
13336         * tests/test-fseeko3.sh: New file.
13337         * modules/fseeko-tests (Files): Add them.
13338         (TESTS): Add test-fseeko3.sh.
13339         (check_PROGRAMS): Add test-fseeko3.
13340
13341 2011-08-09  Eric Blake  <eblake@redhat.com>
13342
13343         fseeko: remove unneeded hack
13344         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13345
13346         fseeko: fix bug on glibc
13347         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13348         Reported by John W. Eaton.
13349
13350 2011-08-08  Bruno Haible  <bruno@clisp.org>
13351
13352         unictype/base: Fix interoperability with preinstalled libunistring.
13353         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13354         Reported by Simon Josefsson.
13355
13356 2011-08-08  Bruno Haible  <bruno@clisp.org>
13357
13358         iswblank: Detect declaration correctly.
13359         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13360         AC_CHECK_DECLS invocation.
13361
13362 2011-08-08  Bruno Haible  <bruno@clisp.org>
13363
13364         tcgetsid: Detect declaration correctly.
13365         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13366         AC_CHECK_DECLS invocation.
13367         Reported by Simon Josefsson.
13368
13369 2011-08-08  Eric Blake  <eblake@redhat.com>
13370
13371         largefile: fix typo that regressed large file support
13372         * modules/largefile (configure.ac-early): Fix section name.
13373
13374 2011-08-06  Karl Berry  <karl@gnu.org>
13375
13376         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13377         a separate module.
13378
13379 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13380
13381         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13382         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13383         get prototype for free.
13384
13385 2011-08-04  Bruno Haible  <bruno@clisp.org>
13386
13387         Tests for module 'pathmax'.
13388         * modules/pathmax-tests: New file.
13389         * tests/test-pathmax.c: New file.
13390
13391         canonicalize-lgpl: Support larger filenames on the Hurd.
13392         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13393         Reported by Paul Eggert.
13394
13395         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13396         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13397         * lib/chdir-long.h: Include pathmax.h.
13398         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13399         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13400         (PATH_MAX): Remove code that is done by pathmax.h.
13401         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13402         * lib/tmpfile.c: Add a comment.
13403         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13404         * modules/chdir-long (Depends-on): Add pathmax.
13405         * modules/getcwd (Depends-on): Add pathmax.
13406         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13407         is not defined.
13408         * doc/posix-headers/limits.texi: Mention the pathmax module.
13409         * NEWS: Mention the change.
13410
13411 2011-08-02  Bruno Haible  <bruno@clisp.org>
13412
13413         pthread_sigmask: Actually use results of gl_THREADLIB.
13414         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13415         gl_THREADLIB, not gl_[]THREADLIB.
13416         Reported by Eric Blake.
13417
13418 2011-08-02  Jim Meyering  <meyering@redhat.com>
13419
13420         maint.mk: relax the default _gl_TS_function_match regexp
13421         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13422         space between function name and "(" in an "extern" declaration.
13423         That would fail to match a decl with no space there: extern void foo();
13424
13425 2011-07-31  Iain Nicol  <iain@thenicols.net>
13426
13427         git-version-gen: document that EXTRA_DIST must include .version
13428         * build-aux/git-version-gen: In the how-to-use comment, document
13429         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13430         will fail when run from an unpacked distribution tarball.
13431
13432 2011-08-01  Bruno Haible  <bruno@clisp.org>
13433
13434         wctype-h: Fix last change.
13435         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13436         REPLACE_TOWLOWER to 0.
13437         Reported by Sam Steingold <sds@gnu.org>.
13438
13439 2011-07-31  Bruno Haible  <bruno@clisp.org>
13440
13441         frexpl: Update autoconf test.
13442         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13443         according to changes of 2011-06-20.
13444
13445 2011-07-31  Bruno Haible  <bruno@clisp.org>
13446
13447         sys_utsname: Add support for Minix.
13448         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13449         <sys/utsname.h>.
13450         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13451         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13452
13453 2011-07-31  Bruno Haible  <bruno@clisp.org>
13454
13455         strings: Add support for Minix.
13456         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13457         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13458         * doc/posix-headers/strings.texi: Document the Minix problem.
13459
13460 2011-07-31  Bruno Haible  <bruno@clisp.org>
13461
13462         wctype-h: Add support for Minix.
13463         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13464         REPLACE_TOWLOWER.
13465         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13466         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13467         REPLACE_ISWCNTRL.
13468
13469 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13470
13471         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13472         This is a performance improvement for 64-bit hosts: it causes the
13473         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13474
13475 2011-07-31  Bruno Haible  <bruno@clisp.org>
13476
13477         stdioext: Add support for Minix.
13478         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13479         * lib/fpurge.c (fpurge): Likewise.
13480         * lib/freadahead.c (freadahead): Likewise.
13481         * lib/freadable.c (freadable): Likewise.
13482         * lib/freading.c (freading): Likewise.
13483         * lib/freadptr.c (freadptr): Likewise.
13484         * lib/freadseek.c (freadptrinc): Likewise.
13485         * lib/fseeko.c (rpl_fseeko): Likewise.
13486         * lib/fseterr.c (fseterr): Likewise.
13487         * lib/fwritable.c (fwritable): Likewise.
13488         * lib/fwriting.c (fwriting): Likewise.
13489         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13490         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13491
13492 2011-07-31  Bruno Haible  <bruno@clisp.org>
13493
13494         errno: Port to Minix.
13495         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13496         ECONNABORTED are defined.
13497         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13498         GNULIB_defined_ECONNABORTED): New macros.
13499         * lib/strerror-override.h (strerror_override): Test also
13500         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13501         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13502         ECONNABORTED.
13503         * doc/posix-headers/errno.texi: Mention the Minix problem.
13504
13505 2011-07-31  Bruno Haible  <bruno@clisp.org>
13506
13507         Work around declaration collisions on Minix.
13508         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13509         defined, set REPLACE_MBSINIT.
13510         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13511         defined, set REPLACE_MBRTOWC.
13512         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13513         set REPLACE_MBRLEN.
13514         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13515         defined, set REPLACE_MBSRTOWCS.
13516         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13517         defined, set REPLACE_WCRTOMB.
13518         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13519         defined, set REPLACE_WCSRTOMBS.
13520
13521 2011-07-31  Bruno Haible  <bruno@clisp.org>
13522
13523         Add support for Minix with ACK compiler.
13524         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13525         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13526         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13527
13528 2011-07-31  Bruno Haible  <bruno@clisp.org>
13529
13530         Documentation about Minix.
13531         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13532         * doc/glibc-headers/*.texi: Likewise.
13533         * doc/posix-functions/*.texi: Likewise.
13534         * doc/glibc-functions/*.texi: Likewise.
13535
13536 2011-07-31  Bruno Haible  <bruno@clisp.org>
13537
13538         snippet/warn-on-use: Fix indentation.
13539         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13540
13541 2011-07-25  Jim Meyering  <meyering@redhat.com>
13542
13543         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13544         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13545         commands.
13546
13547 2011-07-27  Jim Meyering  <meyering@redhat.com>
13548
13549         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13550         * top/maint.mk (gl_extract_significant_defines_): Now that
13551         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13552         gnulib/lib/signal.in.h, and now that we recommend to
13553         define-if-undefined those two symbols in application code,
13554         we must filter them out of the "significant" list.
13555         This avoids a "make syntax-check" failure in coreutils.
13556
13557 2011-07-26  Eric Blake  <eblake@redhat.com>
13558
13559         warnings: add comments about previous patch
13560         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13561         * m4/include_next.m4: Likewise.
13562         * m4/warn-on-use.m4: Likewise.
13563         * m4/warnings.m4: Likewise, and simplify use.
13564         Suggested by Stefano Lattarini.
13565
13566         include-next, warnings: support older autoconf
13567         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13568         AS_VAR_PUSHDEF in a way that works with older autoconf.
13569         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13570         Reported by Daniel P. Berrange.
13571
13572 2011-07-25  Bruno Haible  <bruno@clisp.org>
13573
13574         fseek, ftell: Fix doc.
13575         * doc/posix-functions/fseek.texi: Reword statement about
13576         AC_SYS_LARGEFILE.
13577         * doc/posix-functions/ftell.texi: Likewise.
13578
13579 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13580             Bruno Haible  <bruno@clisp.org>
13581
13582         Add dependencies to the 'largefile' module.
13583         * modules/fopen (Depends-on): Add 'largefile'.
13584         * modules/freopen (Depends-on): Likewise.
13585         * modules/fseeko (Depends-on): Likewise.
13586         * modules/ftello (Depends-on): Likewise.
13587         * modules/glob (Depends-on): Likewise.
13588         * modules/lseek (Depends-on): Likewise.
13589         * modules/lstat (Depends-on): Likewise.
13590         * modules/mkostemp (Depends-on): Likewise.
13591         * modules/mkostemps (Depends-on): Likewise.
13592         * modules/mkstemp (Depends-on): Likewise.
13593         * modules/mkstemps (Depends-on): Likewise.
13594         * modules/open (Depends-on): Likewise.
13595         * modules/openat (Depends-on): Likewise.
13596         * modules/pread (Depends-on): Likewise.
13597         * modules/pwrite (Depends-on): Likewise.
13598         * modules/scandir (Depends-on): Likewise.
13599         * modules/stat (Depends-on): Likewise.
13600         * modules/tmpfile (Depends-on): Likewise.
13601         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
13602         since the containing module now depends on the largefile module.
13603         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
13604         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
13605         off_t is fixed by gnulib.
13606         * doc/posix-functions/freopen.texi: Likewise.
13607         * doc/posix-functions/fseeko.texi: Likewise.
13608         * doc/posix-functions/fstatat.texi: Likewise.
13609         * doc/posix-functions/ftello.texi: Likewise.
13610         * doc/posix-functions/glob.texi: Likewise.
13611         * doc/posix-functions/lseek.texi: Likewise.
13612         * doc/posix-functions/lstat.texi: Likewise.
13613         * doc/posix-functions/mkstemp.texi: Likewise.
13614         * doc/posix-functions/open.texi: Likewise.
13615         * doc/posix-functions/openat.texi: Likewise.
13616         * doc/posix-functions/pread.texi: Likewise.
13617         * doc/posix-functions/pwrite.texi: Likewise.
13618         * doc/posix-functions/scandir.texi: Likewise.
13619         * doc/posix-functions/stat.texi: Likewise.
13620         * doc/posix-functions/tmpfile.texi: Likewise.
13621         * doc/glibc-functions/mkostemp.texi: Likewise.
13622         * doc/glibc-functions/mkostemps.texi: Likewise.
13623         * doc/glibc-functions/mkstemps.texi: Likewise.
13624
13625 2011-07-25  Bruno Haible  <bruno@clisp.org>
13626
13627         fcntl: Move AC_LIBOBJ invocation to module description.
13628         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
13629         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
13630
13631         fcntl: Remove call-in from fchdir.m4.
13632         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
13633         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
13634
13635         dup3: Remove potential call-in from fchdir.m4.
13636         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
13637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
13638
13639         dup2: Move AC_LIBOBJ invocation to module description.
13640         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
13641         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
13642         Don't invoke AC_LIBOBJ.
13643         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
13644
13645         dup2: Remove call-in from fchdir.m4.
13646         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
13647         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
13648
13649         fclose: Move AC_LIBOBJ invocation to module description.
13650         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
13651         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
13652         to 1.
13653         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
13654
13655         fclose: Remove call-in from close.m4.
13656         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
13657         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
13658
13659         close: Move AC_LIBOBJ invocation to module description.
13660         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
13661         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
13662         1.
13663         * modules/close (configure.ac): Invoke AC_LIBOBJ.
13664
13665         close: Remove call-in from fchdir.m4.
13666         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
13667         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
13668
13669         open: Move AC_LIBOBJ invocation to module description.
13670         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
13671         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
13672         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
13673
13674         open: Remove call-in from fchdir.m4.
13675         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
13676         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
13677
13678         fchdir: Start to remove gl_REPLACE_* idiom.
13679         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
13680         (gl_FUNC_FCHDIR): Invoke it.
13681
13682 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13683
13684         * lib/ftell.c (ftell): Comment out cast.
13685
13686         close: use gl_REPLACE_FCLOSE only if defined
13687         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
13688         is defined.  The close module doesn't depend on the fclose module
13689         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
13690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
13691         I reproduced the problem with "./gnulib-tool --test close sys_socket".
13692
13693 2011-07-24  Jim Meyering  <meyering@redhat.com>
13694
13695         test-select.h: avoid warning when using gcc's -Wmissing-declarations
13696         * tests/test-select.h (test_function): Declare as "static".
13697
13698 2011-07-24  Bruno Haible  <bruno@clisp.org>
13699
13700         doc: Mention the effects of AC_SYS_LARGEFILE.
13701         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
13702         on this function.
13703         * doc/posix-functions/aio_error.texi: Likewise.
13704         * doc/posix-functions/aio_fsync.texi: Likewise.
13705         * doc/posix-functions/aio_read.texi: Likewise.
13706         * doc/posix-functions/aio_return.texi: Likewise.
13707         * doc/posix-functions/aio_suspend.texi: Likewise.
13708         * doc/posix-functions/aio_write.texi: Likewise.
13709         * doc/posix-functions/fgetpos.texi: Likewise.
13710         * doc/posix-functions/fopen.texi: Likewise.
13711         * doc/posix-functions/freopen.texi: Likewise.
13712         * doc/posix-functions/fsetpos.texi: Likewise.
13713         * doc/posix-functions/fstatvfs.texi: Likewise.
13714         * doc/posix-functions/ftruncate.texi: Likewise.
13715         * doc/posix-functions/ftw.texi: Likewise.
13716         * doc/posix-functions/getrlimit.texi: Likewise.
13717         * doc/posix-functions/glob.texi: Likewise.
13718         * doc/posix-functions/lio_listio.texi: Likewise.
13719         * doc/posix-functions/lockf.texi: Likewise.
13720         * doc/posix-functions/mkstemp.texi: Likewise.
13721         * doc/posix-functions/mmap.texi: Likewise.
13722         * doc/posix-functions/nftw.texi: Likewise.
13723         * doc/posix-functions/openat.texi: Likewise.
13724         * doc/posix-functions/opendir.texi: Likewise.
13725         * doc/posix-functions/posix_fadvise.texi: Likewise.
13726         * doc/posix-functions/posix_fallocate.texi: Likewise.
13727         * doc/posix-functions/pread.texi: Likewise.
13728         * doc/posix-functions/pwrite.texi: Likewise.
13729         * doc/posix-functions/readdir.texi: Likewise.
13730         * doc/posix-functions/readdir_r.texi: Likewise.
13731         * doc/posix-functions/rewinddir.texi: Likewise.
13732         * doc/posix-functions/scandir.texi: Likewise.
13733         * doc/posix-functions/seekdir.texi: Likewise.
13734         * doc/posix-functions/setrlimit.texi: Likewise.
13735         * doc/posix-functions/statvfs.texi: Likewise.
13736         * doc/posix-functions/telldir.texi: Likewise.
13737         * doc/posix-functions/tmpfile.texi: Likewise.
13738         * doc/posix-functions/truncate.texi: Likewise.
13739         * doc/glibc-functions/fallocate.texi: Likewise.
13740         * doc/glibc-functions/fstatfs.texi: Likewise.
13741         * doc/glibc-functions/fts_children.texi: Likewise.
13742         * doc/glibc-functions/fts_read.texi: Likewise.
13743         * doc/glibc-functions/getdirentries.texi: Likewise.
13744         * doc/glibc-functions/mkostemp.texi: Likewise.
13745         * doc/glibc-functions/mkostemps.texi: Likewise.
13746         * doc/glibc-functions/mkstemps.texi: Likewise.
13747         * doc/glibc-functions/preadv.texi: Likewise.
13748         * doc/glibc-functions/pwritev.texi: Likewise.
13749         * doc/glibc-functions/sendfile.texi: Likewise.
13750         * doc/glibc-functions/statfs.texi: Likewise.
13751
13752 2011-07-24  Bruno Haible  <bruno@clisp.org>
13753
13754         doc: Fix typo.
13755         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
13756
13757 2011-07-24  Bruno Haible  <bruno@clisp.org>
13758
13759         doc: Mention fsusage.
13760         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
13761
13762 2011-07-24  Bruno Haible  <bruno@clisp.org>
13763
13764         doc: Mention new glibc headers and functions.
13765         * doc/glibc-headers/gshadow.texi: New file.
13766         * doc/glibc-functions/endsgent.texi: New file.
13767         * doc/glibc-functions/fgetsgent.texi: New file.
13768         * doc/glibc-functions/fgetsgent_r.texi: New file.
13769         * doc/glibc-functions/getsgent.texi: New file.
13770         * doc/glibc-functions/getsgent_r.texi: New file.
13771         * doc/glibc-functions/getsgnam.texi: New file.
13772         * doc/glibc-functions/getsgnam_r.texi: New file.
13773         * doc/glibc-functions/putsgent.texi: New file.
13774         * doc/glibc-functions/setsgent.texi: New file.
13775         * doc/glibc-functions/sgetsgent.texi: New file.
13776         * doc/glibc-functions/sgetsgent_r.texi: New file.
13777         * doc/glibc-functions/malloc_info.texi: New file.
13778         * doc/glibc-functions/preadv.texi: New file.
13779         * doc/glibc-functions/pwritev.texi: New file.
13780         * doc/glibc-functions/register_printf_modifier.texi: New file.
13781         * doc/glibc-functions/register_printf_specifier.texi: New file.
13782         * doc/glibc-functions/register_printf_type.texi: New file.
13783         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
13784         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
13785         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
13786         * doc/glibc-functions/pthread_getname_np.texi: New file.
13787         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
13788         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
13789         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
13790         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
13791         * doc/glibc-functions/pthread_setname_np.texi: New file.
13792         * doc/glibc-functions/pthread_sigqueue.texi: New file.
13793         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
13794         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
13795         * doc/glibc-functions/qsort_r.texi: New file.
13796         * doc/glibc-functions/quick_exit.texi: New file.
13797         * doc/glibc-functions/syncfs.texi: New file.
13798         * doc/gnulib.texi: Include them.
13799         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
13800         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
13801         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
13802         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13803         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13804         * doc/glibc-functions/execvpe.texi: Likewise.
13805
13806 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13807
13808         ftell: don't include <unistd.h>
13809         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
13810         guaranteed to define off_t, and the ftell module depends on the
13811         stdio module.
13812
13813         ftell: do not assume wraparound signed arithmetic
13814         * lib/ftell.c: Include <limits.h>.
13815         (ftell): Don't assume wraparound signed arithmetic.
13816
13817 2011-07-24  Bruno Haible  <bruno@clisp.org>
13818
13819         close: No longer depend on module 'fclose'.
13820         * modules/close (Depends-on): Remove fclose.
13821         * NEWS: Mention the change.
13822         Suggested by Sam Steingold <sds@gnu.org>.
13823
13824 2011-07-24  Bruno Haible  <bruno@clisp.org>
13825
13826         fsusage: Enable large volume support on AIX >= 5.2.
13827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
13828         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
13829         instead of STAT_STATVFS.
13830         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
13831
13832         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
13833         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
13834         f_blocks field only on MacOS X.
13835
13836         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
13837         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
13838         * modules/fsusage (Depends-on): Add largefile.
13839
13840 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13841
13842         * README: Modernize discussion of signed integers.
13843         Assuming overflow wraparound is no longer safe.
13844         Mention ones' complement and signed magnitude.
13845
13846 2011-07-22  Bruno Haible  <bruno@clisp.org>
13847
13848         select tests, pselect tests: Refactor.
13849         * tests/test-select.h: New file, extracted from tests/test-select.c.
13850         (select_fn): New type.
13851         (test, do_select, do_select_nowait, do_select_wait, test_tty,
13852         test_connect_first, test_accept_first, test_pair, test_socket_pair,
13853         test_pipe): Add my_select argument.
13854         (test_function): Renamed from main. Add my_select argument.
13855         * tests/test-select.c: Move most code to tests/test-select.h. Include
13856         test-select.h.
13857         * modules/select-tests (Files): Add tests/test-select.h.
13858         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
13859         (my_select, main): New functions.
13860         * modules/pselect-tests (Files): Add tests/test-select.h,
13861         tests/macros.h, tests/signature.h.
13862         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
13863         (configure.ac): Check for <sys/wait.h>.
13864
13865 2011-07-22  Bruno Haible  <bruno@clisp.org>
13866
13867         sys_select tests: Check the signature of FD_*.
13868         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
13869         signature tests from here...
13870         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
13871         here.
13872         * modules/sys_select-tests (Files): Add tests/signature.h.
13873
13874 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13875
13876         largefile: new module, replacing large-inode
13877         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
13878         * MODULES.html.sh: Add largefile, remove large-inode.
13879         * modules/largefile, m4/largefile.m4: New files.
13880         * modules/large-inode, m4/large-inode.m4: Remove.
13881
13882         fsusage: port to MacOS X 10.7 with 4 TiB file systems
13883         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
13884         implementations that use only 32 bits to count blocks.
13885         On typical hosts with 1024-byte blocks, this fails with file
13886         systems as small as 4 TiB.  Problem reported by Herb Wartens
13887         <http://debbugs.gnu.org/9140> and this should also fix a similar
13888         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
13889
13890         large-inode: New module
13891         * MODULES.html.sh: Add it.
13892         * modules/large-inode, m4/large-inode.m4: New files.
13893
13894         extensions: Enable extensions on MacOS X 10.5 and later.
13895         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
13896
13897 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
13898
13899         file-has-acl: use acl_extended_file_nofollow if available
13900         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
13901         (acl_extended_file): New macro.
13902         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
13903         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
13904
13905 2011-07-21  Bruno Haible  <bruno@clisp.org>
13906
13907         Declare system functions in a way that works with C++.
13908         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
13909         declare fdopendir as extern "C".
13910         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
13911         declare frexpl as extern "C".
13912         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
13913         declare gai_strerror as extern "C".
13914         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
13915         programs, declare gai_strerror as extern "C".
13916         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
13917         declare getlogin_r as extern "C".
13918         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
13919         as extern "C".
13920         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
13921         declare ldexpl as extern "C".
13922         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
13923         as extern "C".
13924         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
13925         program, declare getmntinfo as extern "C".
13926         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
13927         stpncpy as extern "C".
13928         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
13929         program, declare __xpg_strerror_r as extern "C".
13930         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
13931         strndup as extern "C".
13932         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
13933         declare memset and bzero as extern "C".
13934         Reported by Sam Steingold <sds@gnu.org>.
13935
13936 2011-07-12  Jim Meyering  <meyering@redhat.com>
13937
13938         maint.mk: prohibit inclusion of "verify.h" without use
13939         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
13940
13941 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13942
13943         timer-time: A new module to check for timer_settime()
13944         * m4/timer_time.m4: Check for the posix function.
13945         * modules/timer-time: Add the new module.
13946         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
13947         Mention it.
13948
13949 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
13950             Bruno Haible  <bruno@clisp.org>
13951
13952         pthread_sigmask: assume POSIX threads if --avoid=threadlib
13953         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
13954         not defined, assume POSIX threads and look for pthread_sigmask in
13955         $LIBS, without changing $CPPFLAGS.
13956
13957 2011-07-19  Bruno Haible  <bruno@clisp.org>
13958
13959         strstr: Update cross-compilation guess.
13960         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
13961         CPUs, guess no, in view of glibc
13962         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
13963         Suggested by Eric Blake. Reported by Reuben Thomas.
13964
13965 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13966
13967         getopt-gnu: suppress core dumps from detection code
13968         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
13969         to suppress core dumps that may well occur on glibc systems.
13970         * modules/getopt-gnu: Depend on nocrash.
13971
13972 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13973
13974         pthread_sigmask: ensure usleep is declared
13975         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
13976         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
13977
13978 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13979
13980         doc: Document NonStop portability issues.
13981         * doc/posix-functions/sigaction.texi (sigaction):
13982         * doc/posix-headers/signal.texi (signal.h):
13983         Document NonStop.  See Joachim Schmitz in
13984         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
13985
13986 2011-07-15  Bruno Haible  <bruno@clisp.org>
13987
13988         ffsl, ffsll: Avoid unportable behaviour.
13989         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
13990
13991 2011-07-15  Bruno Haible  <bruno@clisp.org>
13992
13993         ffs: More tests.
13994         * tests/test-ffs.c (NBITS): New macro.
13995         (main): Add more tests.
13996         * tests/test-ffsl.c (NBITS): New macro.
13997         (main): Add more tests.
13998         * tests/test-ffsll.c (NBITS): New macro.
13999         (main): Add more tests.
14000
14001 2011-07-15  Eric Blake  <eblake@redhat.com>
14002
14003         ffsl, ffsll: new modules
14004         * modules/ffsl: New file.
14005         * modules/ffsll: Likewise.
14006         * m4/ffsl.m4: Likewise.
14007         * m4/ffsll.m4: Likewise.
14008         * lib/ffsl.c: Likewise.
14009         * lib/ffsl.h: Likewise.
14010         * lib/ffsll.c: Likewise.
14011         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14012         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14013         * modules/string (Makefile.am): Substitute witnesses.
14014         * lib/strings.in.h (ffsl, ffsll): Declare.
14015         * modules/ffsl-tests: New test file.
14016         * modules/ffsll-tests: Likewise.
14017         * tests/test-ffsl.c: Likewise.
14018         * tests/test-ffsll.c: Likewise.
14019         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14020         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14021         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14022
14023         ffs: fix m4 prerequisite
14024         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14025
14026         ffs: avoid undefined behavior
14027         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14028         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14029         Reported by Bruno Haible.
14030
14031 2011-07-12  Bruno Haible  <bruno@clisp.org>
14032
14033         pthread_sigmask: Rely on module 'threadlib'.
14034         * modules/pthread_sigmask (Depends-on): Add threadlib.
14035         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14036         is defined.
14037
14038 2011-07-12  Bruno Haible  <bruno@clisp.org>
14039
14040         regex: Depend on module 'strcase'.
14041         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14042
14043 2011-07-12  Jim Meyering  <meyering@redhat.com>
14044
14045         warn-on-use: fix typo in file name
14046         * modules/snippet/warn-on-use (Files): Correct file name:
14047         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14048
14049 2011-07-12  Bruno Haible  <bruno@clisp.org>
14050
14051         strings: Document module.
14052         * doc/posix-headers/strings.texi: Mention module 'strings'.
14053
14054 2011-07-12  Bruno Haible  <bruno@clisp.org>
14055
14056         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14057         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14058         (Files, Makefile.am): Update.
14059         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14060         * modules/stdlib (Depends-on): Update.
14061
14062 2011-07-12  Bruno Haible  <bruno@clisp.org>
14063
14064         * NEWS: Mention the changes.
14065
14066         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14067         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14068         (Files, Makefile.am): Update.
14069         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14070         * modules/arpa_inet (Depends-on): Update.
14071         * modules/ctype (Depends-on): Update.
14072         * modules/dirent (Depends-on): Update.
14073         * modules/fcntl-h (Depends-on): Update.
14074         * modules/glob (Depends-on): Update.
14075         * modules/iconv-h (Depends-on): Update.
14076         * modules/inttypes-incomplete (Depends-on): Update.
14077         * modules/langinfo (Depends-on): Update.
14078         * modules/locale (Depends-on): Update.
14079         * modules/math (Depends-on): Update.
14080         * modules/netdb (Depends-on): Update.
14081         * modules/poll-h (Depends-on): Update.
14082         * modules/pty (Depends-on): Update.
14083         * modules/search (Depends-on): Update.
14084         * modules/signal (Depends-on): Update.
14085         * modules/spawn (Depends-on): Update.
14086         * modules/stdio (Depends-on): Update.
14087         * modules/stdlib (Depends-on): Update.
14088         * modules/string (Depends-on): Update.
14089         * modules/strings (Depends-on): Update.
14090         * modules/sys_file (Depends-on): Update.
14091         * modules/sys_ioctl (Depends-on): Update.
14092         * modules/sys_select (Depends-on): Update.
14093         * modules/sys_socket (Depends-on): Update.
14094         * modules/sys_stat (Depends-on): Update.
14095         * modules/sys_time (Depends-on): Update.
14096         * modules/sys_times (Depends-on): Update.
14097         * modules/sys_utsname (Depends-on): Update.
14098         * modules/sys_wait (Depends-on): Update.
14099         * modules/termios (Depends-on): Update.
14100         * modules/time (Depends-on): Update.
14101         * modules/unistd (Depends-on): Update.
14102         * modules/wchar (Depends-on): Update.
14103         * modules/wctype-h (Depends-on): Update.
14104         * MODULES.html.sh (Support for building libraries and executables):
14105         Update.
14106
14107         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14108         * modules/snippet/unused-parameter: Renamed from
14109         modules/unused-parameter.
14110         (Files, Makefile.am): Update.
14111         * build-aux/snippet/unused-parameter.h: Renamed from
14112         build-aux/unused-parameter.h.
14113         * modules/selinux-h (Depends-on): Update.
14114         * modules/unistr/base (Depends-on): Update.
14115         * MODULES.html.sh (Core language properties): Update.
14116
14117         Rename module 'link-warning' to 'snippet/link-warning'.
14118         * modules/snippet/link-warning: Renamed from modules/link-warning.
14119         (Files, Makefile.am): Update.
14120         * build-aux/snippet/link-warning.h: Renamed from
14121         build-aux/link-warning.h.
14122         * MODULES.html.sh (Support for building libraries and executables):
14123         Update.
14124
14125         Rename module 'c++defs' to 'snippet/c++defs'.
14126         * modules/snippet/c++defs: Renamed from modules/c++defs.
14127         (Files, Makefile.am): Update.
14128         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14129         * modules/arpa_inet (Depends-on): Update.
14130         * modules/ctype (Depends-on): Update.
14131         * modules/dirent (Depends-on): Update.
14132         * modules/fcntl-h (Depends-on): Update.
14133         * modules/glob (Depends-on): Update.
14134         * modules/iconv-h (Depends-on): Update.
14135         * modules/langinfo (Depends-on): Update.
14136         * modules/locale (Depends-on): Update.
14137         * modules/math (Depends-on): Update.
14138         * modules/netdb (Depends-on): Update.
14139         * modules/poll-h (Depends-on): Update.
14140         * modules/pty (Depends-on): Update.
14141         * modules/search (Depends-on): Update.
14142         * modules/signal (Depends-on): Update.
14143         * modules/spawn (Depends-on): Update.
14144         * modules/stdio (Depends-on): Update.
14145         * modules/stdlib (Depends-on): Update.
14146         * modules/string (Depends-on): Update.
14147         * modules/strings (Depends-on): Update.
14148         * modules/sys_ioctl (Depends-on): Update.
14149         * modules/sys_select (Depends-on): Update.
14150         * modules/sys_socket (Depends-on): Update.
14151         * modules/sys_stat (Depends-on): Update.
14152         * modules/sys_time (Depends-on): Update.
14153         * modules/sys_wait (Depends-on): Update.
14154         * modules/termios (Depends-on): Update.
14155         * modules/time (Depends-on): Update.
14156         * modules/unistd (Depends-on): Update.
14157         * modules/wchar (Depends-on): Update.
14158         * modules/wctype-h (Depends-on): Update.
14159
14160         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14161         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14162         (Files, Makefile.am): Update.
14163         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14164         * modules/argv-iter (Depends-on): Update.
14165         * modules/arpa_inet (Depends-on): Update.
14166         * modules/dirent (Depends-on): Update.
14167         * modules/fcntl-h (Depends-on): Update.
14168         * modules/fnmatch (Depends-on): Update.
14169         * modules/getopt-posix (Depends-on): Update.
14170         * modules/glob (Depends-on): Update.
14171         * modules/iconv-h (Depends-on): Update.
14172         * modules/inttypes-incomplete (Depends-on): Update.
14173         * modules/locale (Depends-on): Update.
14174         * modules/math (Depends-on): Update.
14175         * modules/netdb (Depends-on): Update.
14176         * modules/search (Depends-on): Update.
14177         * modules/signal (Depends-on): Update.
14178         * modules/spawn (Depends-on): Update.
14179         * modules/stdio (Depends-on): Update.
14180         * modules/stdlib (Depends-on): Update.
14181         * modules/string (Depends-on): Update.
14182         * modules/strings (Depends-on): Update.
14183         * modules/sys_socket (Depends-on): Update.
14184         * modules/sys_stat (Depends-on): Update.
14185         * modules/sys_time (Depends-on): Update.
14186         * modules/sys_times (Depends-on): Update.
14187         * modules/sys_utsname (Depends-on): Update.
14188         * modules/time (Depends-on): Update.
14189         * modules/unistd (Depends-on): Update.
14190         * modules/wchar (Depends-on): Update.
14191         * MODULES.html.sh (Support for building libraries and executables):
14192         Update.
14193
14194 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14195
14196         Improvements on _Noreturn and related modules.
14197
14198         modules/_Exit-tests: test _Noreturn too
14199         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14200         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14201         (main): Use them.
14202
14203         stdnoreturn, stdnoreturn-tests: remove modules
14204         They're not needed here and a bit premature for use elsewhere.  See
14205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14206         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14207         * tests/test-stdnoreturn.c: Remove files.
14208         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14209         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14210         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14211         and using noreturn.
14212         * modules/openat, modules/sigpipe-die, modules/xalloc:
14213         * modules/xmemdup0, modules/xstrtol:
14214         Remove dependency on stdnoreturn.
14215
14216         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14217         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14218         Reparenthesize to avoid GCC warning.
14219         Support Microsoft's syntax.
14220         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14221
14222         _Noreturn-tests: remove module
14223         * modules/_Noreturn-tests: Remove.
14224         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14225         * tests/test-_Noreturn.c: Remove.
14226         * tests/test-stdnoreturn.c: Merge from the old
14227         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14228
14229 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14230
14231         _Noreturn, stdnoreturn, and related modules.
14232
14233         * top/maint.mk: Adjust to new noreturn support.
14234         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14235         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14236
14237         xalloc: use stdnoreturn.h
14238         * lib/xalloc.h: Include <stdnoreturn.h>.
14239         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14240         * modules/xalloc (Depends-on): Add stdnoreturn.
14241
14242         xstrtol: use stdnoreturn.h
14243         * lib/xstrtol.h: Include <stdnoreturn.h>.
14244         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14245         * modules/xstrtol (Depends-on): Add stdnoreturn.
14246
14247         xmemdup0: use stdnoreturn.h
14248         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14249         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14250         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14251
14252         sigpipe-die: use stdnoreturn.h
14253         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14254         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14255         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14256
14257         openat: use stdnoreturn.h
14258         * lib/openat.h: Include <stdnoreturn.h>.
14259         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14260         * modules/openat (Depends-on): Add stdnoreturn.
14261
14262         * lib/openat-die.c (openat_save_fail): Modernize comment.
14263
14264         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14265
14266         * lib/glthread/thread.h: Modernize comment.
14267
14268         obstack: use _Noreturn
14269         * lib/obstack.c (__attribute__): Remove macro.
14270         (print_and_abort): Use _Noreturn.
14271
14272         c-stack: use _Noreturn
14273         * lib/c-stack.c (die, overflow_handler, segv_handler):
14274         Use _Noreturn rather than __attribute__((noreturn)).
14275
14276         argmatch-tests, exclude_tests: use _Noreturn
14277         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14278         Remove.
14279         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14280
14281         stdlib: use _Noreturn
14282         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14283         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14284         * modules/stdlib (Depends-on): Add _Noreturn.
14285         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14286
14287         stdnoreturn-tests: new module
14288         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14289
14290         stdnoreturn: new module
14291         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14292         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14293
14294         _Noreturn-tests: new module
14295         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14296
14297         _Noreturn: new module
14298         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14299         New section, mentioning it.
14300         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14301
14302         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14303
14304 2011-07-11  Eric Blake  <eblake@redhat.com>
14305
14306         ffs: new module
14307         * modules/ffs: New file.
14308         * m4/ffs.m4: Likewise.
14309         * lib/ffs.c: Likewise.
14310         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14311         * modules/strings (Makefile.am): Substitute witness.
14312         (Depends-on): Add c++defs.
14313         * lib/strings.in.h (ffs): Declare.
14314         * modules/ffs-tests: New test file.
14315         * tests/test-ffs.c: Test new module.
14316         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14317         * doc/posix-functions/ffs.texi (ffs): Likewise.
14318
14319         regex: avoid compiler warning
14320         * lib/regex.c (includes): Include <strings.h>, for use of
14321         strcasecmp in regcomp.c.
14322         Reported by Joachim Schmitz.
14323
14324 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14325
14326         stdint: respect system's intmax_t if INTMAX_MAX
14327         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14328         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14329         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14330         long but int64_t is long long, and where we will clash with the
14331         system intmax_t if we override it.  See
14332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14333         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14334         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14335         similarly for UINTMAX_C.
14336
14337 2011-07-08  Bruno Haible  <bruno@clisp.org>
14338
14339         pthread_sigmask tests: Avoid a compiler warning.
14340         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14341         non-zero.
14342
14343         sigprocmask tests: A better way to avoid a compiler warning.
14344         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14345         (main): Complain if system() returns non-zero.
14346         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14347
14348 2011-07-08  Bruno Haible  <bruno@clisp.org>
14349
14350         pthread_sigmask: Work around IRIX bug.
14351         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14352         bug.
14353         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14354         there may be unblocked pending signals.
14355         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14356
14357 2011-07-08  Bruno Haible  <bruno@clisp.org>
14358
14359         pthread_sigmask: Work around Cygwin bug.
14360         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14361         bug.
14362         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14363         the system's pthread_sigmask function.
14364         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14365
14366 2011-07-08  Bruno Haible  <bruno@clisp.org>
14367
14368         pthread_sigmask: Work around bug in single-threaded implementation.
14369         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14370         FreeBSD, HP-UX, Solaris bug.
14371         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14372         * lib/pthread_sigmask.c: Include <stddef.h>.
14373         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14374         the system's pthread_sigmask function.
14375         * modules/pthread_sigmask (configure.ac): Invoke
14376         gl_PREREQ_PTHREAD_SIGMASK.
14377         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14378         HP-UX, Solaris.
14379
14380 2011-07-08  Eric Blake  <eblake@redhat.com>
14381
14382         test-sigprocmask: avoid compiler warning
14383         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14384         * tests/test-sigprocmask.c (main): Use it to silence warning.
14385         Reported by Jim Meyering.
14386
14387         test-snprintf: avoid compiler warning
14388         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14389         * tests/test-vsnprintf.c (main): Likewise.
14390         Reported by Jim Meyering.
14391
14392 2011-07-08  Bruno Haible  <bruno@clisp.org>
14393
14394         Tests for module 'pthread_sigmask'.
14395         * modules/pthread_sigmask-tests: New file.
14396         * tests/test-pthread_sigmask1.c: New file, based on
14397         tests/test-sigprocmask.c.
14398         * tests/test-pthread_sigmask2.c: New file.
14399
14400 2011-07-08  Jim Meyering  <meyering@redhat.com>
14401
14402         test-getopt.h: avoid warning about an unused variable
14403         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14404
14405 2011-07-07  Jim Meyering  <meyering@redhat.com>
14406
14407         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14408         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14409         now that it no longer contains leading TABs.
14410         Remove unused "url=FIXME" statement.
14411
14412 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14413
14414         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14415         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14416         When gl_THREADLIB is not in use, assume that the POSIX sematics
14417         are desired.  This is better for Emacs, which uses POSIX semantics
14418         on GNUish and/or POSIXish platforms, and does not use threads at
14419         all otherwise.
14420
14421         pthread_sigmask: fix typo when testing for libraries
14422         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14423         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14424
14425 2011-07-08  Eric Blake  <eblake@redhat.com>
14426
14427         fts: introduce FTS_NOATIME
14428         * lib/fts_.h (FTS_NOATIME): New bit flag.
14429         (FTS_OPTIONMASK): Adjust.
14430         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14431         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14432
14433 2011-07-08  Bruno Haible  <bruno@clisp.org>
14434
14435         Tests for module 'thread'.
14436         * modules/thread-tests: New file.
14437         * tests/test-thread_self.c: New file.
14438         * tests/test-thread_create.cc: New file.
14439
14440 2011-07-08  Bruno Haible  <bruno@clisp.org>
14441
14442         thread: Avoid gcc warnings when using gl_thread_self().
14443         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14444         'void *'.
14445         (gl_thread_self_pointer): Update.
14446
14447 2011-07-07  Bruno Haible  <bruno@clisp.org>
14448
14449         signal-c++-tests: Check declaration of pthread_sigmask.
14450         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14451         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14452         $(LIB_PTHREAD_SIGMASK).
14453
14454 2011-07-07  Bruno Haible  <bruno@clisp.org>
14455
14456         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14457         * lib/signal.in.h (pthread_sigmask): Override if
14458         REPLACE_PTHREAD_SIGMASK is 1.
14459         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14460         REPLACE_PTHREAD_SIGMASK.
14461         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14462         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14463         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14464         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14465         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14466
14467 2011-07-07  Bruno Haible  <bruno@clisp.org>
14468
14469         pthread_sigmask: Ensure declaration in <signal.h>.
14470         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14471         include <pthread.h>.
14472         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14473         problem.
14474
14475 2011-07-07  Bruno Haible  <bruno@clisp.org>
14476
14477         pthread_sigmask: Document the module.
14478         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14479
14480 2011-07-07  Bruno Haible  <bruno@clisp.org>
14481
14482         pthread_sigmask: Follow gnulib conventions.
14483         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14484         gl_PTHREAD_SIGMASK.
14485         * modules/pthread_sigmask (configure.ac): Update.
14486
14487 2011-07-07  Bruno Haible  <bruno@clisp.org>
14488
14489         pthread_sigmask: Make declaration C++ safe.
14490         * lib/signal.in.h: In two special conditions, just do an #include_next.
14491         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14492         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14493         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14494         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14495         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14496         not REPLACE_PTHREAD_MASK.
14497         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14498         not REPLACE_PTHREAD_MASK.
14499         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14500
14501 2011-07-07  Bruno Haible  <bruno@clisp.org>
14502
14503         pthread_sigmask: Fix return value.
14504         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14505         * lib/pthread_sigmask.c: New file.
14506         * modules/pthread_sigmask (Files): Add it.
14507         (configure.ac): Invoke AC_LIBOBJ.
14508
14509 2011-07-07  Eric Blake  <eblake@redhat.com>
14510
14511         getopt: more portable argv creation
14512         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14513         const, use char arrays rather than strings.
14514         Suggested by Paul Eggert.
14515
14516 2011-07-07  Bruno Haible  <bruno@clisp.org>
14517
14518         Tests for module 'sigprocmask'.
14519         * modules/sigprocmask-tests: New file.
14520         * tests/test-sigprocmask.c: New file.
14521
14522 2011-07-07  Bruno Haible  <bruno@clisp.org>
14523
14524         float tests: Tweak.
14525         * tests/test-float.c (main): Tweak skip message.
14526
14527 2011-07-07  Eric Blake  <eblake@redhat.com>
14528
14529         getopt: avoid compiler warning during configure
14530         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14531         assigning string literals to non-const pointer.
14532
14533         getopt-gnu: avoid crash in glibc getopt
14534         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14535         * tests/test-getopt.h (test_getopt): Enhance test.
14536         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14537         * doc/posix-functions/getopt.texi (getopt): Document it.
14538         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14539         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14540         Likewise.
14541
14542 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14543
14544         getopt: handle W; without long options in getopt [BZ #12922]
14545         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14546         but no long options are defined, just return 'W'.
14547
14548 2011-07-07  Bruno Haible  <bruno@clisp.org>
14549
14550         Avoid literal tabs.
14551         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14552         variable containing a tab instead of a literal tab.
14553         Reported by Jim Meyering.
14554
14555 2011-07-07  Bruno Haible  <bruno@clisp.org>
14556
14557         Comments.
14558         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14559
14560 2011-07-06  Bruno Haible  <bruno@clisp.org>
14561
14562         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14563         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14564         <winsock2.h>.
14565         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14566         lib/sys_socket.in.h.
14567         (close, gethostname): Hide declarations from <winsock2.h>.
14568         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14569         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14570         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14571         (select): Don't override if gnulib's <sys/select.h> was already
14572         included.
14573         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14574         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14575         setsockopt, shutdown, select): Tweak indentation.
14576
14577 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14578
14579         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14580         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14581         in an application that does not use the sys_select module.
14582
14583 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14584
14585         poll: do not return 0 on timeout=-1
14586         * lib/poll.c: Loop with yield if no events occured
14587
14588 2011-07-06  Eric Blake  <eblake@redhat.com>
14589
14590         pthread_sigmask: always replace when not using pthread
14591         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
14592         replacement when using some threading other than pthread.  Fix
14593         logic bug.
14594
14595 2011-07-06  Bruno Haible  <bruno@clisp.org>
14596
14597         Comments.
14598         * m4/printf.m4: Update comments about mingw.
14599
14600 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14601
14602         sys_select: define sigset_t more portably
14603         * lib/sys_select.in.h: Always include <sys/types.h>, since
14604         we now need sigset_t and mingw defines it there.
14605         Include <signal.h> before split inclusion guard, to avoid
14606         mishaps on Solaris, whose <signal.h> eventually includes us.
14607         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
14608         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
14609         which come from ...
14610         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14611         gl_CHECK_TYPE_SIGSET_T.
14612         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
14613         does the real work.
14614         * modules/sys_select (Depends-on): Add 'signal'.
14615
14616         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
14617         Suggested by Bruno Haible.
14618
14619         pselect: Use pthread_sigmask, not sigprocmask.
14620         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
14621         multithreaded apps better than sigprocmask does.
14622         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
14623         sigprocmask directly.
14624
14625 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14626
14627         * lib/pselect.c (pselect): Use plain name, without "rpl_".
14628         Don't #undef,  since we don't need any underlying pselect.
14629         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
14630         (Depends-on): Add select.
14631         (Link): Add $(LIBSOCKET).
14632         These changes suggested by Bruno Haible.
14633
14634         pselect: document better
14635         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14636         * doc/posix-functions/pselect.texi (pselect): Document new module.
14637
14638         pthread_sigmask: new module
14639         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14640         * doc/posix-functions/pthread_sigmask.texi: Document new module.
14641         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
14642         This is done only as a macro; I don't know how well that'll
14643         work for C++.  Move <sys/types.h> include before the include_next,
14644         to avoid mishap on Solaris.
14645         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
14646         * modules/signal (Makefile.am): Substitute the check's results.
14647         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
14648
14649         test-pselect: new module
14650         * modules/pselect-tests, tests/test-pselect.c: New files.
14651         * tests/test-select.c, tests/test-sys_select-c++.cc:
14652         If TEST_PSELECT is defined, test pselect instead of testing select.
14653
14654         * tests/test-sys_select.c (sigset_t): Test for it, too.
14655         Suggested by Bruno Haible.
14656
14657 2011-07-05  Eric Blake  <eblake@redhat.com>
14658
14659         snprintf: guarantee %1$d, for libintl
14660         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
14661         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14662         * doc/posix-functions/snprintf.texi (snprintf): Update.
14663         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14664         * tests/test-snprintf.c (main): Enhance test.
14665         * tests/test-vsnprintf.c (main): Likewise.
14666
14667 2011-07-05  Jim Meyering  <meyering@redhat.com>
14668
14669         maint: exempt stdio-read.c and stdio-write.c from the cppi check
14670         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
14671         per Bruno's request, to accommodate this idiom (no space after "#")
14672         even when the function is inside an #if block:
14673         char *
14674         gets (char *s)
14675         #undef gets
14676         {
14677           ...
14678         }
14679
14680 2011-07-04  Jim Meyering  <meyering@redhat.com>
14681
14682         maint: indent with spaces, not TABs, and add a rule to check this
14683         * tests/test-userspec.c: Indent with spaces, not TABs.
14684         * tests/test-argp.c: Likewise.
14685         * tests/test-c-stack2.sh: Likewise.
14686         * tests/test-parse-duration.sh: Likewise
14687         * m4/strtod.m4: Likewise.
14688         * m4/alloca.m4: Likewise.
14689         * m4/pselect.m4: Likewise.
14690         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
14691
14692 2011-07-03  Jim Meyering  <meyering@redhat.com>
14693
14694         maint.mk: correct omissions in prohibit_argmatch_without_use check
14695         This rule would mistakenly report that argmatch.h is included without
14696         use even when both the argmatch and invalid_arg macro were used.
14697         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
14698         of argmatch and invalid_arg.
14699
14700 2011-07-03  Bruno Haible  <bruno@clisp.org>
14701
14702         Comments about EINTR.
14703         * lib/safe-read.h: Explain the purpose of this module.
14704         * lib/safe-write.h: Likewise.
14705         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
14706         module.
14707         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
14708         module.
14709         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14710
14711 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14712
14713         xnanosleep: Rewrite to use new dtotimespec module.
14714         It has the conversion code that used to be in xnanosleep.
14715         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
14716         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
14717         (TIME_T_MAX): Remove.
14718         (xnanosleep): Rewrite in terms of dtotimespec.
14719         * modules/xnanosleep (Depends-on): Add dtotimespec.
14720         Remove intprops, stdbool.
14721
14722         timespec-add, timespec-sub: new modules
14723         * lib/timespec.h (timespec_add, timespec_sub): New decls.
14724         * lib/timespec-add.c, lib/timespec-sub.c:
14725         * modules/timespec-add, modules/timespec-sub: New files.
14726
14727         dtotimespec: new module
14728         * lib/timespec.h (dtotimespec): New decl.
14729         * lib/dtotimespec.c, modules/dtotimespec: New files.
14730
14731         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
14732
14733         pselect: new module
14734         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
14735         (pselect): New decls.
14736         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
14737         since the standard pselect decl uses 'restrict'.
14738         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
14739         HAVE_PSELECT, REPLACE_PSELECT.
14740         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
14741         HAVE_PSELECT, REPLACE_PSELECT.
14742         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
14743
14744         sys_select: don't depend on sys_socket
14745         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
14746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
14747         This fix works on GNU and GNU-like platforms, but has not been tested
14748         on native Windows.
14749         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
14750         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
14751         gl_HEADER_SYS_SOCKET.
14752         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
14753         gl_PREREQ_SYS_H_WINSOCK2.
14754
14755 2011-06-29  Eric Blake  <eblake@redhat.com>
14756
14757         pipe2: fix C89 compile problem
14758         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
14759         Reported by Bruno Haible.
14760
14761         pipe, pipe2: don't corrupt fd on error
14762         * lib/pipe.c (pipe): Leave fd unchanged on error.
14763         * lib/pipe2.c (pipe2): Likewise.
14764         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
14765         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14766
14767 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
14768
14769         mmap-anon: do not use regular expressions inadvertently
14770         * m4/mmap-anon.m4: Remove trailing period from strings sought
14771         in the output.
14772
14773 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14774
14775         nanosleep: fix integer overflow problem
14776         * lib/nanosleep.c (my_usleep): Don't assume signed integer
14777         arithmetic wraps around on overflow.
14778
14779         nanosleep: simplify carrying
14780         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
14781         first call to the underyling nanosleep, not for the last one.
14782         This doesn't fix any bugs, but it simplifies the computation of
14783         the remaining delay.  Found while auditing integer overflow issues.
14784
14785         dup2: remove test for existence of fcntl
14786         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
14787         "#if HAVE_FCNTL", in the configure-time test program.
14788         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
14789         and therefore speeds up "configure" a bit.  Found while
14790         adding the dup2 module to Emacs.
14791
14792 2011-06-24  Eric Blake  <eblake@redhat.com>
14793
14794         maint.mk: enhance useless header checks
14795         * top/maint.mk (_sc_header_without_use): Check both include
14796         styles.
14797         (sc_prohibit_assert_without_use)
14798         (sc_prohibit_close_stream_without_use)
14799         (sc_prohibit_getopt_without_use)
14800         (sc_prohibit_quotearg_without_use)
14801         (sc_prohibit_quote_without_use)
14802         (sc_prohibit_long_options_without_use)
14803         (sc_prohibit_inttostr_without_use)
14804         (sc_prohibit_ignore_value_without_use)
14805         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
14806         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
14807         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
14808         (sc_prohibit_hash_pjw_without_use)
14809         (sc_prohibit_safe_read_without_use)
14810         (sc_prohibit_argmatch_without_use)
14811         (sc_prohibit_canonicalize_without_use)
14812         (sc_prohibit_root_dev_ino_without_use)
14813         (sc_prohibit_openat_without_use)
14814         (sc_prohibit_c_ctype_without_use)
14815         (sc_prohibit_signal_without_use)
14816         (sc_prohibit_stdio--_without_use)
14817         (sc_prohibit_stdio-safer_without_use)
14818         (sc_prohibit_strings_without_use)
14819         (sc_prohibit_intprops_without_use)
14820         (sc_prohibit_stddef_without_use)
14821         (sc_prohibit_xfreopen_without_use): Update clients.
14822
14823 2011-06-24  Jim Meyering  <meyering@redhat.com>
14824
14825         syntax-check: keep one maint.mk rule in sync with its header
14826         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
14827         of the bug Eric has just fixed, with today's commit 25e4c2ec.
14828         I prefer to avoid temporary files here, so use <(...), but that
14829         is not supported by /bin/sh, so...
14830         (SHELL): Define to /bin/bash.
14831
14832 2011-06-24  Eric Blake  <eblake@redhat.com>
14833
14834         maint.mk: update sc_prohibit_intprops_without_use
14835         * top/maint.mk (_intprops_names): Match recent changes.
14836
14837 2011-06-24  Bruno Haible  <bruno@clisp.org>
14838
14839         strerror-override: No-op tweak.
14840         * lib/strerror-override.h (strerror_override): Reorder conditions,
14841         for consistency with lib/strerror-override.c.
14842
14843 2011-06-23  Eric Blake  <eblake@redhat.com>
14844
14845         maint.mk: test further PATH_MAX issues
14846         * top/maint.mk (sc_prohibit_path_max_array): Rename...
14847         (sc_prohibit_path_max_allocation): ...and also test alloca.
14848         Suggested by Jim Meyering.
14849
14850 2011-06-22  Eric Blake  <eblake@redhat.com>
14851
14852         maint.mk: add syntax-check to avoid char[PATH_MAX]
14853         * top/maint.mk (sc_prohibit_path_max_array): New rule.
14854
14855         stat: be robust to PATH_MAX definition
14856         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
14857         * modules/stat (Depends-on): Add verify.
14858
14859         link: work around IRIX bug
14860         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
14861         * lib/link.c (rpl_link): Work around it.
14862         * tests/test-link.h (test_link): Enhance test.
14863         * doc/posix-functions/link.texi (link): Document the bug.
14864
14865         getopt: silence clang warning
14866         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
14867         dereference.
14868         Reported by Gustavo Martin Domato.
14869
14870 2011-06-22  Jim Meyering  <meyering@redhat.com>
14871
14872         bootstrap: do not insert a blank line into each .gitignore file
14873         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
14874
14875 2011-06-21  Eric Blake  <eblake@redhat.com>
14876
14877         perror: test for output mismatch
14878         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
14879         perror on IRIX.
14880
14881         strerror_r: fix OpenBSD behavior on out-of-range
14882         * lib/strerror_r.c (strerror_r): Always use maximal string.
14883         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14884
14885         strerror_r: fix OpenBSD behavior on 0
14886         * lib/strerror-override.c (strerror_override): Also override 0
14887         when needed.
14888         * lib/strerror-override.h (strerror_override): Likewise.
14889         * lib/strerror.c (strerror): Simplify, now that 0 override is done
14890         earlier.
14891         * lib/strerror_r.c (strerror_r): Likewise.
14892         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
14893         behavior...
14894         (gl_FUNC_STRERROR_0): ...into new macro.
14895         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
14896         is overridden.
14897         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
14898         * modules/strerror-override (Files): Add strerror.m4.
14899         (configure.ac): Also provide override for 0 when needed.
14900         * doc/posix-functions/strerror.texi (strerror): Document this.
14901         * doc/posix-functions/perror.texi (perror): Likewise.
14902
14903         perror: adjust array size
14904         * modules/perror (Depends-on): Add strerror-override.
14905         * lib/perror.c (perror): Use it to avoid magic number.
14906
14907         strerror-override: reduce size
14908         * lib/strerror-override.c (strerror_override): Use fewer lines.
14909
14910 2011-06-20  Bruno Haible  <bruno@clisp.org>
14911
14912         pathmax: Ensure correct value for PATH_MAX on HP-UX.
14913         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
14914
14915 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14916
14917         alloca: port to compilers that can optimize like GCC 4.6.0
14918         * lib/alloca.c (find_stack_direction): New signature, taken from
14919         Autoconf git.  This works with GCC 4.6.0.  This code should never
14920         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
14921         be used with other compilers that optimize as well as GCC 4.6.0 does.
14922         (alloca): Adjust to new signature.
14923         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
14924         New macro, which patches Autoconf in a similar way.
14925
14926         c-stack: stop worrying about stack direction
14927         * lib/c-stack.c (find_stack_direction): Remove.
14928         (segv_handler): Don't worry about stack direction growth, as it's
14929         too much of a pain to configure this correctly, given how compilers
14930         are optimizing-away our stack-growth detection code.  Instead, assume
14931         that any access to just before or just after the stack is OK.
14932         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
14933         Don't require AC_FUNC_ALLOCA; no longer needed.
14934
14935 2011-06-20  Eric Blake  <eblake@redhat.com>
14936
14937         test-stat: don't allocate PATH_MAX bytes
14938         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
14939         PATH_MAX-sized buffer.
14940         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
14941         * modules/stat-tests (Depends-on): Likewise.
14942         * tests/test-fstatat.c (includes): Drop pathmax.h.
14943         * tests/test-stat.c (includes): Likewise.
14944         Reported by Bruno Haible.
14945
14946 2011-06-20  Bruno Haible  <bruno@clisp.org>
14947
14948         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
14949         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
14950         * lib/float.c: New file.
14951         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
14952         REPLACE_FLOAT_LDBL.
14953         * modules/float (Files): Add lib/float.c.
14954         (configure.ac): Invoke AC_LIBOBJ.
14955         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
14956
14957 2011-06-20  Bruno Haible  <bruno@clisp.org>
14958
14959         Tests for module 'float'.
14960         * modules/float-tests: New file.
14961         * tests/test-float.c: New file.
14962
14963 2011-06-19  Bruno Haible  <bruno@clisp.org>
14964
14965         isinf: Coding style.
14966         * lib/isinf.c: Use GNU coding style.
14967
14968 2011-06-19  Bruno Haible  <bruno@clisp.org>
14969
14970         linkat test: Avoid test failure on AIX 7.1.
14971         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
14972         * tests/test-link.h (test_link): Likewise.
14973
14974 2011-06-19  Bruno Haible  <bruno@clisp.org>
14975
14976         pread test: Avoid test failure on OpenBSD 4.9.
14977         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
14978
14979 2011-06-19  Bruno Haible  <bruno@clisp.org>
14980
14981         sprintf-posix: Fix test failure on AIX 7.1.
14982         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
14983         * doc/posix-functions/dprintf.texi: Mention limited precision problem
14984         on AIX.
14985         * doc/posix-functions/fprintf.texi: Likewise.
14986         * doc/posix-functions/printf.texi: Likewise.
14987         * doc/posix-functions/snprintf.texi: Likewise.
14988         * doc/posix-functions/sprintf.texi: Likewise.
14989         * doc/posix-functions/vdprintf.texi: Likewise.
14990         * doc/posix-functions/vfprintf.texi: Likewise.
14991         * doc/posix-functions/vprintf.texi: Likewise.
14992         * doc/posix-functions/vsnprintf.texi: Likewise.
14993         * doc/posix-functions/vsprintf.texi: Likewise.
14994
14995 2011-06-19  Bruno Haible  <bruno@clisp.org>
14996
14997         roundl-ieee: Fix test failure on AIX 7.1.
14998         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
14999         * doc/posix-functions/roundl.texi: Mention problem with negative
15000         arguments.
15001
15002 2011-06-19  Bruno Haible  <bruno@clisp.org>
15003
15004         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15005         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15006         * doc/posix-functions/round.texi: Mention problem with negative
15007         arguments.
15008         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15009
15010 2011-06-19  Bruno Haible  <bruno@clisp.org>
15011
15012         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15013         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15014         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15015         * doc/posix-functions/roundf.texi: Mention problem with negative
15016         arguments.
15017         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15018
15019 2011-06-19  Bruno Haible  <bruno@clisp.org>
15020
15021         ceilf-ieee: Work around bug on MacOS X 10.5.
15022         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15023
15024         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15025         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15026         IEEE compliant, avoid compiler optimizations.
15027         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15028         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15029         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15030         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15031         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15032         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15033         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15034         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15035         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15036         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15037
15038 2011-06-19  Bruno Haible  <bruno@clisp.org>
15039
15040         ceilf-ieee: Work around bug on AIX 7.1.
15041         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15042         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15043
15044 2011-06-19  Bruno Haible  <bruno@clisp.org>
15045
15046         ceil-ieee: Work around bug on AIX 7.1.
15047         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15048         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15049
15050 2011-06-18  Bruno Haible  <bruno@clisp.org>
15051
15052         fsync test: Avoid test failure on MacOS X and AIX.
15053         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15054         EINVAL.
15055
15056 2011-06-18  Bruno Haible  <bruno@clisp.org>
15057
15058         openat, fdopendir tests: Fix link errors.
15059         * modules/openat-tests (Depends-on): Add progname.
15060         * modules/fdopendir-tests (Depends-on): Likewise.
15061         * tests/test-fchownat.c: Include progname.h.
15062         (main): Call set_program_name.
15063         * tests/test-fstatat.c: Include progname.h.
15064         (main): Call set_program_name.
15065         * tests/test-mkdirat.c: Include progname.h.
15066         (main): Call set_program_name.
15067         * tests/test-openat.c: Include progname.h.
15068         (main): Call set_program_name.
15069         * tests/test-unlinkat.c: Include progname.h.
15070         (main): Call set_program_name.
15071         * tests/test-fdopendir.c: Include progname.h.
15072         (main): Call set_program_name.
15073
15074 2011-06-18  Bruno Haible  <bruno@clisp.org>
15075
15076         Doc update.
15077         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15078         HP-UX.
15079         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15080
15081 2011-06-18  Bruno Haible  <bruno@clisp.org>
15082
15083         getcwd tests: Avoid compilation error on HP-UX 11.31.
15084         * modules/getcwd-tests (Depends-on): Add pathmax.
15085         * tests/test-getcwd.c: Include pathmax.h.
15086
15087 2011-06-18  Bruno Haible  <bruno@clisp.org>
15088
15089         isfinite, isinf: Fix link error on AIX 6 and 7.
15090         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15091         needed, also test the macro with a 'float' argument.
15092         * m4/isinf.m4 (gl_ISINF): Likewise.
15093
15094 2011-06-18  Bruno Haible  <bruno@clisp.org>
15095
15096         getloadavg: Don't clobber LIBS. Regression from previous commit.
15097         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15098         AC_CHECK_LIB from here...
15099         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15100         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15101         gl_func_getloadavg_done.
15102         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15103
15104 2011-06-18  Bruno Haible  <bruno@clisp.org>
15105
15106         clean-temp: Improve documentation.
15107         * lib/clean-temp.h: Explain better how to use this module.
15108         Reported by John Darrington <john@darrington.wattle.id.au>.
15109
15110 2011-06-17  Bruno Haible  <bruno@clisp.org>
15111
15112         pread, pwrite: Avoid cc warning on AIX.
15113         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15114         (pwrite): Likewise.
15115
15116 2011-06-17  Bruno Haible  <bruno@clisp.org>
15117
15118         spawn-pipe tests: Fix link error.
15119         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15120         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15121
15122 2011-06-17  Bruno Haible  <bruno@clisp.org>
15123
15124         Tests: Remove unnecessary dependency.
15125         * modules/canonicalize-tests (Depends-on): Remove progname.
15126         * modules/chown-tests (Depends-on): Likewise.
15127         * modules/dirname-tests (Depends-on): Likewise.
15128         * modules/fdopendir-tests (Depends-on): Likewise.
15129         * modules/fdutimensat-tests (Depends-on): Likewise.
15130         * modules/hash-tests (Depends-on): Likewise.
15131         * modules/lchown-tests (Depends-on): Likewise.
15132         * modules/linkat-tests (Depends-on): Likewise.
15133         * modules/renameat-tests (Depends-on): Likewise.
15134         * modules/spawn-pipe-tests (Depends-on): Likewise.
15135         * modules/utimensat-tests (Depends-on): Likewise.
15136
15137 2011-06-17  Bruno Haible  <bruno@clisp.org>
15138
15139         spawn-pipe tests: Fix link error.
15140         * tests/test-spawn-pipe-child.c: Undefine fflush.
15141
15142 2011-06-17  Bruno Haible  <bruno@clisp.org>
15143
15144         Fix tests link errors.
15145         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15146         * modules/chown-tests (Makefile.am): Don't link test-chown with
15147         LIBINTL.
15148         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15149         LIBINTL.
15150         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15151         LIBINTL.
15152         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15153         LIBINTL.
15154
15155 2011-06-16  Bruno Haible  <bruno@clisp.org>
15156
15157         crypto/gc-sha1: Fix recent regression.
15158         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15159         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15160
15161         crypto/gc-md5: Fix recent regression.
15162         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15163
15164         crypto/gc-md4: Fix recent regression.
15165         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15166         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15167
15168         crypto/gc-arctwo: Fix recent regression.
15169         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15170         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15171
15172         crypto/gc-rijndael: Fix recent regression.
15173         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15174         (configure.ac): Invoke AC_LIBOBJ here.
15175         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15176         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15177
15178         crypto/gc-hmac-sha1: Fix recent regression.
15179         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15180         (configure.ac): Invoke AC_LIBOBJ here.
15181         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15182         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15183
15184         crypto/gc-hmac-md5: Fix recent regression.
15185         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15186         (configure.ac): Invoke AC_LIBOBJ here.
15187         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15188         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15189
15190         crypto/gc-des: Fix recent regression.
15191         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15192         (configure.ac): Invoke AC_LIBOBJ here.
15193         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15194         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15195
15196         crypto/gc-arcfour: Fix recent regression.
15197         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15198         (configure.ac): Invoke AC_LIBOBJ here.
15199         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15200         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15201
15202 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15203
15204         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15205         After the 2011-05-21 change, this macro requires
15206         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15207         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15208
15209 2011-06-16  Bruno Haible  <bruno@clisp.org>
15210
15211         fprintftime: Move AC_LIBOBJ invocations to module description.
15212         * m4/fprintftime.m4: Remove file.
15213         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15214         (configure.ac): Remove gl_FPRINTFTIME call.
15215         (Makefile.am): Augment lib_SOURCES.
15216         Reported by Jim Meyering.
15217
15218 2011-06-16  Bruno Haible  <bruno@clisp.org>
15219
15220         tmpfile-safer: Finish 2011-05-23 commit.
15221         * m4/stdio-safer.m4: Really remove file.
15222         Reported by Jim Meyering.
15223
15224 2011-06-16  Bruno Haible  <bruno@clisp.org>
15225
15226         syntax-check: Fix typo.
15227         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15228         printf-posix.m4.
15229         Reported by Jim Meyering.
15230
15231 2011-06-13  Jim Meyering  <meyering@redhat.com>
15232
15233         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15234         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15235
15236 2011-05-23  Bruno Haible  <bruno@clisp.org>
15237
15238         yesno: Move AC_LIBOBJ invocations to module description.
15239         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15240         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15241
15242 2011-05-23  Bruno Haible  <bruno@clisp.org>
15243
15244         xstrtol: Move AC_LIBOBJ invocations to module description.
15245         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15246         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15247
15248 2011-05-23  Bruno Haible  <bruno@clisp.org>
15249
15250         xstrtold: Move AC_LIBOBJ invocations to module description.
15251         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15252         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15253
15254 2011-05-23  Bruno Haible  <bruno@clisp.org>
15255
15256         xstrtod: Move AC_LIBOBJ invocations to module description.
15257         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15258         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15259
15260 2011-05-23  Bruno Haible  <bruno@clisp.org>
15261
15262         xnanosleep: Move AC_LIBOBJ invocations to module description.
15263         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15264         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15265
15266 2011-05-23  Bruno Haible  <bruno@clisp.org>
15267
15268         xgetcwd: Move AC_LIBOBJ invocations to module description.
15269         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15270         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15271
15272 2011-05-23  Bruno Haible  <bruno@clisp.org>
15273
15274         xalloc: Move AC_LIBOBJ invocations to module description.
15275         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15276         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15277
15278 2011-05-23  Bruno Haible  <bruno@clisp.org>
15279
15280         write-any-file: Move AC_LIBOBJ invocations to module description.
15281         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15282         invocation.
15283         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15284
15285 2011-05-23  Bruno Haible  <bruno@clisp.org>
15286
15287         utimens: Move AC_LIBOBJ invocations to module description.
15288         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15289         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15290
15291 2011-05-23  Bruno Haible  <bruno@clisp.org>
15292
15293         utimecmp: Move AC_LIBOBJ invocations to module description.
15294         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15295         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15296
15297 2011-05-23  Bruno Haible  <bruno@clisp.org>
15298
15299         userspec: Move AC_LIBOBJ invocations to module description.
15300         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15301         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15302
15303 2011-05-23  Bruno Haible  <bruno@clisp.org>
15304
15305         unlinkdir: Move AC_LIBOBJ invocations to module description.
15306         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15307         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15308
15309 2011-05-23  Bruno Haible  <bruno@clisp.org>
15310
15311         unistd-safer: Move AC_LIBOBJ invocations to module description.
15312         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15313         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15314
15315 2011-05-23  Bruno Haible  <bruno@clisp.org>
15316
15317         tempname: Move AC_LIBOBJ invocations to module description.
15318         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15319         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15320
15321 2011-05-23  Bruno Haible  <bruno@clisp.org>
15322
15323         strftime: Move AC_LIBOBJ invocations to module description.
15324         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15325         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15326
15327 2011-05-23  Bruno Haible  <bruno@clisp.org>
15328
15329         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15330         * m4/stdlib-safer.m4: Remove file.
15331         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15332         (configure.ac): Remove gl_STDLIB_SAFER call.
15333         (Makefile.am): Augment lib_SOURCES.
15334
15335 2011-05-23  Bruno Haible  <bruno@clisp.org>
15336
15337         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15338         * m4/stdio-safer.m4: Remove file.
15339         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15340         (configure.ac): Remove gl_TMPFILE_SAFER call.
15341         (Makefile.am): Augment lib_SOURCES.
15342
15343 2011-05-23  Bruno Haible  <bruno@clisp.org>
15344
15345         popen-safer: Move AC_LIBOBJ invocations to module description.
15346         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15347         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15348         (configure.ac): Remove gl_POPEN_SAFER call.
15349         (Makefile.am): Augment lib_SOURCES.
15350
15351 2011-05-23  Bruno Haible  <bruno@clisp.org>
15352
15353         freopen-safer: Move AC_LIBOBJ invocations to module description.
15354         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15355         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15356         (configure.ac): Remove gl_FREOPEN_SAFER call.
15357         (Makefile.am): Augment lib_SOURCES.
15358
15359 2011-05-23  Bruno Haible  <bruno@clisp.org>
15360
15361         fopen-safer: Move AC_LIBOBJ invocations to module description.
15362         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15363         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15364         (configure.ac): Remove gl_FOPEN_SAFER call.
15365         (Makefile.am): Augment lib_SOURCES.
15366
15367 2011-05-23  Bruno Haible  <bruno@clisp.org>
15368
15369         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15370         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15371         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15372
15373 2011-05-23  Bruno Haible  <bruno@clisp.org>
15374
15375         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15376         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15377         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15378
15379 2011-05-23  Bruno Haible  <bruno@clisp.org>
15380
15381         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15382         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15383         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15384
15385 2011-05-23  Bruno Haible  <bruno@clisp.org>
15386
15387         settime: Move AC_LIBOBJ invocations to module description.
15388         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15389         * modules/settime (Makefile.am): Augment lib_SOURCES.
15390
15391 2011-05-23  Bruno Haible  <bruno@clisp.org>
15392
15393         savedir: Move AC_LIBOBJ invocations to module description.
15394         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15395         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15396
15397 2011-05-23  Bruno Haible  <bruno@clisp.org>
15398
15399         save-cwd: Move AC_LIBOBJ invocations to module description.
15400         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15401         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15402
15403 2011-05-23  Bruno Haible  <bruno@clisp.org>
15404
15405         same: Move AC_LIBOBJ invocations to module description.
15406         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15407         * modules/same (Makefile.am): Augment lib_SOURCES.
15408
15409 2011-05-23  Bruno Haible  <bruno@clisp.org>
15410
15411         safe-write: Move AC_LIBOBJ invocations to module description.
15412         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15413         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15414         instead of gl_SAFE_WRITE.
15415         (Makefile.am): Augment lib_SOURCES.
15416
15417 2011-05-23  Bruno Haible  <bruno@clisp.org>
15418
15419         safe-read: Move AC_LIBOBJ invocations to module description.
15420         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15421         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15422         of gl_SAFE_READ.
15423         (Makefile.am): Augment lib_SOURCES.
15424
15425 2011-05-23  Bruno Haible  <bruno@clisp.org>
15426
15427         safe-alloc: Move AC_LIBOBJ invocations to module description.
15428         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15429         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15430
15431 2011-05-23  Bruno Haible  <bruno@clisp.org>
15432
15433         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15434         * m4/rijndael.m4: Remove file.
15435         * modules/crypto/rijndael (Files): Remove it.
15436         (configure.ac): Remove gl_RIJNDAEL call.
15437         (Makefile.am): Augment lib_SOURCES.
15438
15439 2011-05-23  Bruno Haible  <bruno@clisp.org>
15440
15441         readtokens: Move AC_LIBOBJ invocations to module description.
15442         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15443         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15444
15445 2011-05-23  Bruno Haible  <bruno@clisp.org>
15446
15447         read-file: Move AC_LIBOBJ invocations to module description.
15448         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15449         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15450         of gl_FUNC_READ_FILE.
15451         (Makefile.am): Augment lib_SOURCES.
15452
15453 2011-05-23  Bruno Haible  <bruno@clisp.org>
15454
15455         quotearg: Move AC_LIBOBJ invocations to module description.
15456         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15457         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15458
15459 2011-05-23  Bruno Haible  <bruno@clisp.org>
15460
15461         quote: Move AC_LIBOBJ invocations to module description.
15462         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15463         * modules/quote (Makefile.am): Augment lib_SOURCES.
15464
15465 2011-05-23  Bruno Haible  <bruno@clisp.org>
15466
15467         posixver: Move AC_LIBOBJ invocations to module description.
15468         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15469         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15470
15471 2011-05-23  Bruno Haible  <bruno@clisp.org>
15472
15473         posixtm: Move AC_LIBOBJ invocations to module description.
15474         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15475         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15476
15477 2011-05-23  Bruno Haible  <bruno@clisp.org>
15478
15479         physmem: Move AC_LIBOBJ invocations to module description.
15480         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15481         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15482
15483 2011-05-23  Bruno Haible  <bruno@clisp.org>
15484
15485         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15486         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15487         invocation.
15488         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15489
15490 2011-05-23  Bruno Haible  <bruno@clisp.org>
15491
15492         mpsort: Move AC_LIBOBJ invocations to module description.
15493         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15494         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15495
15496 2011-05-23  Bruno Haible  <bruno@clisp.org>
15497
15498         modechange: Move AC_LIBOBJ invocations to module description.
15499         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15500         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15501
15502 2011-05-23  Bruno Haible  <bruno@clisp.org>
15503
15504         mkdir-p: Move AC_LIBOBJ invocations to module description.
15505         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15506         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15507
15508 2011-05-23  Bruno Haible  <bruno@clisp.org>
15509
15510         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15511         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15512         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15513
15514 2011-05-23  Bruno Haible  <bruno@clisp.org>
15515
15516         mgetgroups: Move AC_LIBOBJ invocations to module description.
15517         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15518         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15519
15520 2011-05-23  Bruno Haible  <bruno@clisp.org>
15521
15522         memxor: Move AC_LIBOBJ invocations to module description.
15523         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15524         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15525
15526 2011-05-23  Bruno Haible  <bruno@clisp.org>
15527
15528         memcoll: Move AC_LIBOBJ invocations to module description.
15529         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15530         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15531
15532 2011-05-23  Bruno Haible  <bruno@clisp.org>
15533
15534         memcasecmp: Move AC_LIBOBJ invocations to module description.
15535         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15536         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15537
15538 2011-05-23  Bruno Haible  <bruno@clisp.org>
15539
15540         crypto/md5: Move AC_LIBOBJ invocations to module description.
15541         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15542         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15543
15544 2011-05-23  Bruno Haible  <bruno@clisp.org>
15545
15546         crypto/md4: Move AC_LIBOBJ invocations to module description.
15547         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15548         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15549
15550 2011-05-23  Bruno Haible  <bruno@clisp.org>
15551
15552         crypto/md2: Move AC_LIBOBJ invocations to module description.
15553         * m4/md2.m4: Remove file.
15554         * modules/crypto/md2 (Files): Remove it.
15555         (configure.ac): Remove gl_MD2 call.
15556         (Makefile.am): Augment lib_SOURCES.
15557
15558 2011-05-23  Bruno Haible  <bruno@clisp.org>
15559
15560         long-options: Move AC_LIBOBJ invocations to module description.
15561         * m4/long-options.m4: Remove file.
15562         * modules/long-options (Files): Remove it.
15563         (configure.ac): Remove gl_LONG_OPTIONS call.
15564         (Makefile.am): Augment lib_SOURCES.
15565
15566 2011-05-23  Bruno Haible  <bruno@clisp.org>
15567
15568         i-ring: Move AC_LIBOBJ invocations to module description.
15569         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15570         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15571
15572 2011-05-23  Bruno Haible  <bruno@clisp.org>
15573
15574         idcache: Move AC_LIBOBJ invocations to module description.
15575         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15576         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15577
15578 2011-05-23  Bruno Haible  <bruno@clisp.org>
15579
15580         human: Move AC_LIBOBJ invocations to module description.
15581         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15582         * modules/human (Makefile.am): Augment lib_SOURCES.
15583
15584 2011-05-23  Bruno Haible  <bruno@clisp.org>
15585
15586         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
15587         * m4/hmac-sha1.m4: Remove file.
15588         * modules/crypto/hmac-sha1 (Files): Remove it.
15589         (configure.ac): Remove gl_HMAC_SHA1 call.
15590         (Makefile.am): Augment lib_SOURCES.
15591
15592 2011-05-23  Bruno Haible  <bruno@clisp.org>
15593
15594         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
15595         * m4/hmac-md5.m4: Remove file.
15596         * modules/crypto/hmac-md5 (Files): Remove it.
15597         (configure.ac): Remove gl_HMAC_MD5 call.
15598         (Makefile.am): Augment lib_SOURCES.
15599
15600 2011-05-23  Bruno Haible  <bruno@clisp.org>
15601
15602         hash: Move AC_LIBOBJ invocations to module description.
15603         * m4/hash.m4: Remove file.
15604         * modules/hash (Files): Remove it.
15605         (configure.ac): Remove gl_HASH call.
15606         (Makefile.am): Augment lib_SOURCES.
15607
15608 2011-05-23  Bruno Haible  <bruno@clisp.org>
15609
15610         hard-locale: Move AC_LIBOBJ invocations to module description.
15611         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
15612         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
15613
15614 2011-05-23  Bruno Haible  <bruno@clisp.org>
15615
15616         getugroups: Move AC_LIBOBJ invocations to module description.
15617         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
15618         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
15619
15620 2011-05-23  Bruno Haible  <bruno@clisp.org>
15621
15622         gettime: Move AC_LIBOBJ invocations to module description.
15623         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
15624         * modules/gettime (Makefile.am): Augment lib_SOURCES.
15625
15626 2011-05-23  Bruno Haible  <bruno@clisp.org>
15627
15628         getndelim2: Move AC_LIBOBJ invocations to module description.
15629         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
15630         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
15631
15632 2011-05-23  Bruno Haible  <bruno@clisp.org>
15633
15634         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
15635         * m4/gc-pbkdf2-sha1.m4: Remove file.
15636         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
15637         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
15638         (Makefile.am): Augment lib_SOURCES.
15639
15640 2011-05-23  Bruno Haible  <bruno@clisp.org>
15641
15642         fts: Move AC_LIBOBJ invocations to module description.
15643         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
15644         * modules/fts (configure.ac): ... to here.
15645
15646 2011-05-23  Bruno Haible  <bruno@clisp.org>
15647
15648         file-type: Move AC_LIBOBJ invocations to module description.
15649         * m4/file-type.m4: Remove file.
15650         * modules/file-type (Files): Remove it.
15651         (configure.ac): Remove gl_FILE_TYPE call.
15652         (Makefile.am): Augment lib_SOURCES.
15653
15654 2011-05-23  Bruno Haible  <bruno@clisp.org>
15655
15656         filenamecat*: Respect rules for use of AC_LIBOBJ.
15657         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
15658         Remove AC_LIBOBJ invocation.
15659         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
15660         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
15661
15662 2011-05-23  Bruno Haible  <bruno@clisp.org>
15663
15664         filemode: Move AC_LIBOBJ invocations to module description.
15665         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
15666         * modules/filemode (Makefile.am): Augment lib_SOURCES.
15667
15668 2011-05-23  Bruno Haible  <bruno@clisp.org>
15669
15670         openat-safer: Move AC_LIBOBJ invocations to module description.
15671         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
15672         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
15673
15674 2011-05-23  Bruno Haible  <bruno@clisp.org>
15675
15676         fcntl-safer: Move AC_LIBOBJ invocations to module description.
15677         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
15678         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
15679
15680 2011-05-23  Bruno Haible  <bruno@clisp.org>
15681
15682         exclude: Move AC_LIBOBJ invocations to module description.
15683         * m4/exclude.m4: Remove file.
15684         * modules/exclude (Files): Remove it.
15685         (configure.ac): Remove gl_EXCLUDE call.
15686         (Makefile.am): Augment lib_SOURCES.
15687
15688 2011-05-23  Bruno Haible  <bruno@clisp.org>
15689
15690         dirname*: Respect rules for use of AC_LIBOBJ.
15691         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
15692         invocations.
15693         * modules/dirname (Makefile.am): Augment lib_SOURCES.
15694         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
15695
15696 2011-05-23  Bruno Haible  <bruno@clisp.org>
15697
15698         dirent-safer: Move AC_LIBOBJ invocations to module description.
15699         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
15700         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
15701
15702 2011-05-23  Bruno Haible  <bruno@clisp.org>
15703
15704         crypto/des: Move AC_LIBOBJ invocations to module description.
15705         * m4/des.m4: Remove file.
15706         * modules/crypto/des (Files): Remove it.
15707         (configure.ac): Remove gl_DES call.
15708         (Makefile.am): Augment lib_SOURCES.
15709
15710 2011-05-23  Bruno Haible  <bruno@clisp.org>
15711
15712         cycle-check: Move AC_LIBOBJ invocations to module description.
15713         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
15714         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
15715
15716 2011-05-23  Bruno Haible  <bruno@clisp.org>
15717
15718         c-strtold: Move AC_LIBOBJ invocations to module description.
15719         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
15720         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
15721
15722 2011-05-23  Bruno Haible  <bruno@clisp.org>
15723
15724         c-strtod: Move AC_LIBOBJ invocations to module description.
15725         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
15726         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
15727
15728 2011-05-23  Bruno Haible  <bruno@clisp.org>
15729
15730         crc: Move AC_LIBOBJ invocations to module description.
15731         * m4/crc.m4: Remove file.
15732         * modules/crc (Files): Remove it.
15733         (configure.ac): Remove gl_CRC call.
15734         (Makefile.am): Augment lib_SOURCES.
15735
15736 2011-05-23  Bruno Haible  <bruno@clisp.org>
15737
15738         close-stream: Move AC_LIBOBJ invocations to module description.
15739         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
15740         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
15741
15742 2011-05-23  Bruno Haible  <bruno@clisp.org>
15743
15744         closeout: Move AC_LIBOBJ invocations to module description.
15745         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
15746         * modules/closeout (Makefile.am): Augment lib_SOURCES.
15747
15748 2011-05-23  Bruno Haible  <bruno@clisp.org>
15749
15750         closein: Move AC_LIBOBJ invocations to module description.
15751         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
15752         * modules/closein (Makefile.am): Augment lib_SOURCES.
15753
15754 2011-05-23  Bruno Haible  <bruno@clisp.org>
15755
15756         cloexec: Move AC_LIBOBJ invocations to module description.
15757         * m4/cloexec.m4: Remove file.
15758         * modules/cloexec (Files): Remove it.
15759         (configure.ac): Remove gl_CLOEXEC call.
15760         (Makefile.am): Augment lib_SOURCES.
15761
15762 2011-05-23  Bruno Haible  <bruno@clisp.org>
15763
15764         check-version: Move AC_LIBOBJ invocations to module description.
15765         * m4/check-version.m4: Remove file.
15766         * modules/check-version (Files): Remove it.
15767         (configure.ac): Remove gl_CHECK_VERSION call.
15768         (Makefile.am): Augment lib_SOURCES.
15769
15770 2011-05-23  Bruno Haible  <bruno@clisp.org>
15771
15772         chdir-safer: Move AC_LIBOBJ invocations to module description.
15773         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
15774         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
15775
15776 2011-05-23  Bruno Haible  <bruno@clisp.org>
15777
15778         canonicalize: Move AC_LIBOBJ invocations to module description.
15779         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
15780         AC_LIBOBJ invocation.
15781         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
15782
15783 2011-05-23  Bruno Haible  <bruno@clisp.org>
15784
15785         canon-host: Move AC_LIBOBJ invocations to module description.
15786         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
15787         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
15788         instead of gl_CANON_HOST.
15789         (Makefile.am): Augment lib_SOURCES.
15790
15791 2011-05-23  Bruno Haible  <bruno@clisp.org>
15792
15793         backupfile: Move AC_LIBOBJ invocations to module description.
15794         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
15795         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
15796
15797 2011-05-23  Bruno Haible  <bruno@clisp.org>
15798
15799         argmatch: Move AC_LIBOBJ invocations to module description.
15800         * m4/argmatch.m4: Remove file.
15801         * modules/argmatch (Files): Remove it.
15802         (configure.ac): Remove gl_ARGMATCH call.
15803         (Makefile.am): Augment lib_SOURCES.
15804
15805 2011-05-23  Bruno Haible  <bruno@clisp.org>
15806
15807         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
15808         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
15809         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
15810
15811 2011-05-23  Bruno Haible  <bruno@clisp.org>
15812
15813         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
15814         * m4/arcfour.m4: Remove file.
15815         * modules/crypto/arcfour (Files): Remove it.
15816         (configure.ac): Remove gl_ARCFOUR call.
15817         (Makefile.am): Augment lib_SOURCES.
15818
15819 2011-05-22  Bruno Haible  <bruno@clisp.org>
15820
15821         write: Move AC_LIBOBJ invocations to module description.
15822         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
15823         * modules/write (configure.ac): ... to here.
15824
15825 2011-05-22  Bruno Haible  <bruno@clisp.org>
15826
15827         wmemset: Move AC_LIBOBJ invocations to module description.
15828         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
15829         here...
15830         * modules/wmemset (configure.ac): ... to here.
15831
15832 2011-05-22  Bruno Haible  <bruno@clisp.org>
15833
15834         wmemmove: Move AC_LIBOBJ invocations to module description.
15835         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
15836         here...
15837         * modules/wmemmove (configure.ac): ... to here.
15838
15839 2011-05-22  Bruno Haible  <bruno@clisp.org>
15840
15841         wmemcpy: Move AC_LIBOBJ invocations to module description.
15842         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
15843         here...
15844         * modules/wmemcpy (configure.ac): ... to here.
15845
15846 2011-05-22  Bruno Haible  <bruno@clisp.org>
15847
15848         wmemcmp: Move AC_LIBOBJ invocations to module description.
15849         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
15850         here...
15851         * modules/wmemcmp (configure.ac): ... to here.
15852
15853 2011-05-22  Bruno Haible  <bruno@clisp.org>
15854
15855         wmemchr: Move AC_LIBOBJ invocations to module description.
15856         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
15857         here...
15858         * modules/wmemchr (configure.ac): ... to here.
15859
15860 2011-05-22  Bruno Haible  <bruno@clisp.org>
15861
15862         wcswidth: Move AC_LIBOBJ invocations to module description.
15863         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
15864         here...
15865         * modules/wcswidth (configure.ac): ... to here.
15866
15867 2011-05-22  Bruno Haible  <bruno@clisp.org>
15868
15869         wcwidth: Respect rules for use of AC_LIBOBJ.
15870         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
15871         invocation from here...
15872         * modules/wcwidth (configure.ac): ... to here.
15873         (Depends-on): Update conditions.
15874
15875 2011-05-22  Bruno Haible  <bruno@clisp.org>
15876
15877         wctype: Move AC_LIBOBJ invocations to module description.
15878         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
15879         invocation from here...
15880         * modules/wctype (configure.ac): ... to here.
15881         (Depends-on): Update conditions.
15882
15883 2011-05-22  Bruno Haible  <bruno@clisp.org>
15884
15885         wctrans: Move AC_LIBOBJ invocations to module description.
15886         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
15887         invocation from here...
15888         * modules/wctrans (configure.ac): ... to here.
15889
15890 2011-05-22  Bruno Haible  <bruno@clisp.org>
15891
15892         wctomb: Move AC_LIBOBJ invocations to module description.
15893         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
15894         invocations from here...
15895         * modules/wctomb (configure.ac): ... to here.
15896
15897 2011-05-22  Bruno Haible  <bruno@clisp.org>
15898
15899         wctob: Move AC_LIBOBJ invocations to module description.
15900         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
15901         gl_PREREQ_WCTOB invocations from here...
15902         * modules/wctob (configure.ac): ... to here.
15903         (Depends-on): Update conditions.
15904
15905 2011-05-22  Bruno Haible  <bruno@clisp.org>
15906
15907         wcsxfrm: Move AC_LIBOBJ invocations to module description.
15908         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
15909         here...
15910         * modules/wcsxfrm (configure.ac): ... to here.
15911
15912 2011-05-22  Bruno Haible  <bruno@clisp.org>
15913
15914         wcstok: Move AC_LIBOBJ invocations to module description.
15915         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
15916         * modules/wcstok (configure.ac): ... to here.
15917
15918 2011-05-22  Bruno Haible  <bruno@clisp.org>
15919
15920         wcsstr: Move AC_LIBOBJ invocations to module description.
15921         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
15922         * modules/wcsstr (configure.ac): ... to here.
15923
15924 2011-05-22  Bruno Haible  <bruno@clisp.org>
15925
15926         wcsspn: Move AC_LIBOBJ invocations to module description.
15927         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
15928         * modules/wcsspn (configure.ac): ... to here.
15929
15930 2011-05-22  Bruno Haible  <bruno@clisp.org>
15931
15932         wcsrtombs: Move AC_LIBOBJ invocations to module description.
15933         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
15934         gl_PREREQ_WCSRTOMBS invocations from here...
15935         * modules/wcsrtombs (configure.ac): ... to here.
15936
15937 2011-05-22  Bruno Haible  <bruno@clisp.org>
15938
15939         wcsrchr: Move AC_LIBOBJ invocations to module description.
15940         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
15941         here...
15942         * modules/wcsrchr (configure.ac): ... to here.
15943
15944 2011-05-22  Bruno Haible  <bruno@clisp.org>
15945
15946         wcspbrk: Move AC_LIBOBJ invocations to module description.
15947         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
15948         here...
15949         * modules/wcspbrk (configure.ac): ... to here.
15950
15951 2011-05-22  Bruno Haible  <bruno@clisp.org>
15952
15953         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
15954         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
15955         gl_PREREQ_WCSNRTOMBS invocations from here...
15956         * modules/wcsnrtombs (configure.ac): ... to here.
15957
15958 2011-05-22  Bruno Haible  <bruno@clisp.org>
15959
15960         wcsnlen: Move AC_LIBOBJ invocations to module description.
15961         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
15962         here...
15963         * modules/wcsnlen (configure.ac): ... to here.
15964
15965 2011-05-22  Bruno Haible  <bruno@clisp.org>
15966
15967         wcsncpy: Move AC_LIBOBJ invocations to module description.
15968         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
15969         here...
15970         * modules/wcsncpy (configure.ac): ... to here.
15971
15972 2011-05-22  Bruno Haible  <bruno@clisp.org>
15973
15974         wcsncmp: Move AC_LIBOBJ invocations to module description.
15975         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
15976         here...
15977         * modules/wcsncmp (configure.ac): ... to here.
15978
15979 2011-05-22  Bruno Haible  <bruno@clisp.org>
15980
15981         wcsncat: Move AC_LIBOBJ invocations to module description.
15982         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
15983         here...
15984         * modules/wcsncat (configure.ac): ... to here.
15985
15986 2011-05-22  Bruno Haible  <bruno@clisp.org>
15987
15988         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
15989         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
15990         from here...
15991         * modules/wcsncasecmp (configure.ac): ... to here.
15992
15993 2011-05-22  Bruno Haible  <bruno@clisp.org>
15994
15995         wcslen: Move AC_LIBOBJ invocations to module description.
15996         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
15997         * modules/wcslen (configure.ac): ... to here.
15998
15999 2011-05-22  Bruno Haible  <bruno@clisp.org>
16000
16001         wcsdup: Move AC_LIBOBJ invocations to module description.
16002         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16003         * modules/wcsdup (configure.ac): ... to here.
16004
16005 2011-05-22  Bruno Haible  <bruno@clisp.org>
16006
16007         wcscspn: Move AC_LIBOBJ invocations to module description.
16008         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16009         here...
16010         * modules/wcscspn (configure.ac): ... to here.
16011
16012 2011-05-22  Bruno Haible  <bruno@clisp.org>
16013
16014         wcscpy: Move AC_LIBOBJ invocations to module description.
16015         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16016         * modules/wcscpy (configure.ac): ... to here.
16017
16018 2011-05-22  Bruno Haible  <bruno@clisp.org>
16019
16020         wcscoll: Move AC_LIBOBJ invocations to module description.
16021         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16022         here...
16023         * modules/wcscoll (configure.ac): ... to here.
16024
16025 2011-05-22  Bruno Haible  <bruno@clisp.org>
16026
16027         wcscmp: Move AC_LIBOBJ invocations to module description.
16028         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16029         * modules/wcscmp (configure.ac): ... to here.
16030
16031 2011-05-22  Bruno Haible  <bruno@clisp.org>
16032
16033         wcschr: Move AC_LIBOBJ invocations to module description.
16034         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16035         * modules/wcschr (configure.ac): ... to here.
16036
16037 2011-05-22  Bruno Haible  <bruno@clisp.org>
16038
16039         wcscat: Move AC_LIBOBJ invocations to module description.
16040         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16041         * modules/wcscat (configure.ac): ... to here.
16042
16043 2011-05-22  Bruno Haible  <bruno@clisp.org>
16044
16045         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16046         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16047         here...
16048         * modules/wcscasecmp (configure.ac): ... to here.
16049
16050 2011-05-22  Bruno Haible  <bruno@clisp.org>
16051
16052         wcrtomb: Move AC_LIBOBJ invocations to module description.
16053         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16054         invocations from here...
16055         * modules/wcrtomb (configure.ac): ... to here.
16056
16057 2011-05-22  Bruno Haible  <bruno@clisp.org>
16058
16059         wcpncpy: Move AC_LIBOBJ invocations to module description.
16060         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16061         here...
16062         * modules/wcpncpy (configure.ac): ... to here.
16063
16064 2011-05-22  Bruno Haible  <bruno@clisp.org>
16065
16066         wcpcpy: Move AC_LIBOBJ invocations to module description.
16067         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16068         * modules/wcpcpy (configure.ac): ... to here.
16069
16070 2011-05-22  Bruno Haible  <bruno@clisp.org>
16071
16072         waitpid: Move AC_LIBOBJ invocations to module description.
16073         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16074         invocation from here...
16075         * modules/waitpid (configure.ac): ... to here.
16076
16077 2011-05-22  Bruno Haible  <bruno@clisp.org>
16078
16079         utimensat: Move AC_LIBOBJ invocations to module description.
16080         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16081         here...
16082         * modules/utimensat (configure.ac): ... to here.
16083
16084 2011-05-22  Bruno Haible  <bruno@clisp.org>
16085
16086         usleep: Move AC_LIBOBJ invocations to module description.
16087         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16088         here...
16089         * modules/usleep (configure.ac): ... to here.
16090
16091 2011-05-22  Bruno Haible  <bruno@clisp.org>
16092
16093         unlockpt: Move AC_LIBOBJ invocations to module description.
16094         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16095         gl_PREREQ_UNLOCKPT invocations from here...
16096         * modules/unlockpt (configure.ac): ... to here.
16097
16098 2011-05-22  Bruno Haible  <bruno@clisp.org>
16099
16100         unlink: Respect rules for use of AC_LIBOBJ.
16101         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16102         * modules/unlink (configure.ac): ... to here.
16103
16104 2011-05-22  Bruno Haible  <bruno@clisp.org>
16105
16106         uname: Move AC_LIBOBJ invocations to module description.
16107         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16108         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16109         here...
16110         * modules/uname (configure.ac): ... to here.
16111
16112 2011-05-22  Bruno Haible  <bruno@clisp.org>
16113
16114         ttyname_r: Move AC_LIBOBJ invocations to module description.
16115         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16116         gl_PREREQ_TTYNAME_R invocations from here...
16117         * modules/ttyname_r (configure.ac): ... to here.
16118
16119 2011-05-22  Bruno Haible  <bruno@clisp.org>
16120
16121         tsearch: Move AC_LIBOBJ invocations to module description.
16122         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16123         invocations from here...
16124         * modules/tsearch (configure.ac): ... to here.
16125
16126 2011-05-22  Bruno Haible  <bruno@clisp.org>
16127
16128         towctrans: Move AC_LIBOBJ invocations to module description.
16129         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16130         AC_LIBOBJ invocation from here...
16131         * modules/towctrans (configure.ac): ... to here.
16132
16133 2011-05-22  Bruno Haible  <bruno@clisp.org>
16134
16135         tmpfile: Move AC_LIBOBJ invocations to module description.
16136         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16137         invocations from here...
16138         * modules/tmpfile (configure.ac): ... to here.
16139
16140 2011-05-22  Bruno Haible  <bruno@clisp.org>
16141
16142         times: Move AC_LIBOBJ invocations to module description.
16143         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16144         * modules/times (configure.ac): ... to here.
16145
16146 2011-05-22  Bruno Haible  <bruno@clisp.org>
16147
16148         time_r: Move AC_LIBOBJ invocations to module description.
16149         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16150         invocations from here...
16151         * modules/time_r (configure.ac): ... to here.
16152
16153 2011-05-22  Bruno Haible  <bruno@clisp.org>
16154
16155         timegm: Move AC_LIBOBJ invocations to module description.
16156         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16157         invocations from here...
16158         * modules/timegm (configure.ac): ... to here.
16159
16160 2011-05-22  Bruno Haible  <bruno@clisp.org>
16161
16162         tcgetsid: Move AC_LIBOBJ invocations to module description.
16163         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16164         and gl_PREREQ_TCGETSID invocations from here...
16165         * modules/tcgetsid (configure.ac): ... to here.
16166         (Depends-on): Update conditions.
16167
16168 2011-05-22  Bruno Haible  <bruno@clisp.org>
16169
16170         symlinkat: Move AC_LIBOBJ invocations to module description.
16171         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16172         here...
16173         * modules/symlinkat (configure.ac): ... to here.
16174
16175 2011-05-22  Bruno Haible  <bruno@clisp.org>
16176
16177         symlink: Move AC_LIBOBJ invocations to module description.
16178         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16179         here...
16180         * modules/symlink (configure.ac): ... to here.
16181
16182 2011-05-22  Bruno Haible  <bruno@clisp.org>
16183
16184         strverscmp: Move AC_LIBOBJ invocations to module description.
16185         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16186         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16187         from here...
16188         * modules/strverscmp (configure.ac): ... to here.
16189
16190 2011-05-22  Bruno Haible  <bruno@clisp.org>
16191
16192         strtok_r: Move AC_LIBOBJ invocations to module description.
16193         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16194         and gl_PREREQ_STRTOK_R invocations from here...
16195         * modules/strtok_r (configure.ac): ... to here.
16196         (Depends-on): Update conditions.
16197
16198 2011-05-22  Bruno Haible  <bruno@clisp.org>
16199
16200         strtoumax: Move AC_LIBOBJ invocations to module description.
16201         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16202         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16203         from here...
16204         * modules/strtoumax (configure.ac): ... to here.
16205
16206 2011-05-22  Bruno Haible  <bruno@clisp.org>
16207
16208         strtoimax: Move AC_LIBOBJ invocations to module description.
16209         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16210         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16211         from here...
16212         * modules/strtoimax (configure.ac): ... to here.
16213
16214 2011-05-22  Bruno Haible  <bruno@clisp.org>
16215
16216         strtoull: Move AC_LIBOBJ invocations to module description.
16217         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16218         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16219         from here...
16220         * modules/strtoull (configure.ac): ... to here.
16221
16222 2011-05-22  Bruno Haible  <bruno@clisp.org>
16223
16224         strtoll: Move AC_LIBOBJ invocations to module description.
16225         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16226         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16227         here...
16228         * modules/strtoll (configure.ac): ... to here.
16229
16230 2011-05-22  Bruno Haible  <bruno@clisp.org>
16231
16232         strtoul: Move AC_LIBOBJ invocations to module description.
16233         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16234         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16235         * modules/strtoul (configure.ac): ... to here.
16236
16237 2011-05-22  Bruno Haible  <bruno@clisp.org>
16238
16239         strtol: Move AC_LIBOBJ invocations to module description.
16240         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16241         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16242         * modules/strtol (configure.ac): ... to here.
16243
16244 2011-05-22  Bruno Haible  <bruno@clisp.org>
16245
16246         strtod: Move AC_LIBOBJ invocations to module description.
16247         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16248         invocations from here...
16249         * modules/strtod (configure.ac): ... to here.
16250
16251 2011-05-22  Bruno Haible  <bruno@clisp.org>
16252
16253         strstr*: Move AC_LIBOBJ invocations to module description.
16254         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16255         invocations from here...
16256         * modules/strstr-simple (configure.ac): ... to here.
16257         * modules/strstr (configure.ac): ... and here.
16258
16259 2011-05-22  Bruno Haible  <bruno@clisp.org>
16260
16261         strsignal: Move AC_LIBOBJ invocations to module description.
16262         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16263         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16264         * modules/strsignal (configure.ac): ... to here.
16265         (Depends-on): Update conditions.
16266
16267 2011-05-22  Bruno Haible  <bruno@clisp.org>
16268
16269         strsep: Move AC_LIBOBJ invocations to module description.
16270         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16271         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16272         here...
16273         * modules/strsep (configure.ac): ... to here.
16274
16275 2011-05-22  Bruno Haible  <bruno@clisp.org>
16276
16277         strptime: Move AC_LIBOBJ invocations to module description.
16278         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16279         gl_PREREQ_STRPTIME invocations from here...
16280         * modules/strptime (configure.ac): ... to here.
16281
16282 2011-05-22  Bruno Haible  <bruno@clisp.org>
16283
16284         strpbrk: Move AC_LIBOBJ invocations to module description.
16285         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16286         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16287         here...
16288         * modules/strpbrk (configure.ac): ... to here.
16289
16290 2011-05-22  Bruno Haible  <bruno@clisp.org>
16291
16292         strnlen: Move AC_LIBOBJ invocations to module description.
16293         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16294         invocations from here...
16295         * modules/strnlen (configure.ac): ... to here.
16296
16297 2011-05-22  Bruno Haible  <bruno@clisp.org>
16298
16299         strndup: Move AC_LIBOBJ invocations to module description.
16300         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16301         invocations from here...
16302         * modules/strndup (configure.ac): ... to here.
16303         (Depends-on): Update conditions.
16304
16305 2011-05-22  Bruno Haible  <bruno@clisp.org>
16306
16307         strncat: Move AC_LIBOBJ invocations to module description.
16308         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16309         invocations from here...
16310         * modules/strncat (configure.ac): ... to here.
16311
16312 2011-05-22  Bruno Haible  <bruno@clisp.org>
16313
16314         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16315         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16316         invocations from here...
16317         * modules/strdup (configure.ac): ... to here.
16318         * modules/strdup-posix (configure.ac): ... and here.
16319
16320 2011-05-22  Bruno Haible  <bruno@clisp.org>
16321
16322         strcspn: Move AC_LIBOBJ invocations to module description.
16323         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16324         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16325         here...
16326         * modules/strcspn (configure.ac): ... to here.
16327
16328 2011-05-22  Bruno Haible  <bruno@clisp.org>
16329
16330         strchrnul: Move AC_LIBOBJ invocations to module description.
16331         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16332         gl_PREREQ_STRCHRNUL invocations from here...
16333         * modules/strchrnul (configure.ac): ... to here.
16334
16335 2011-05-22  Bruno Haible  <bruno@clisp.org>
16336
16337         strcasestr*: Move AC_LIBOBJ invocations to module description.
16338         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16339         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16340         * modules/strcasestr-simple (configure.ac): ... to here.
16341         * modules/strcasestr (configure.ac): ... and here.
16342
16343 2011-05-22  Bruno Haible  <bruno@clisp.org>
16344
16345         strcase: Move AC_LIBOBJ invocations to module description.
16346         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16347         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16348         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16349         gl_PREREQ_STRNCASECMP invocations from here...
16350         * modules/strcase (configure.ac): ... to here.
16351
16352 2011-05-22  Bruno Haible  <bruno@clisp.org>
16353
16354         stpncpy: Move AC_LIBOBJ invocations to module description.
16355         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16356         here...
16357         * modules/stpncpy (configure.ac): ... to here.
16358
16359 2011-05-22  Bruno Haible  <bruno@clisp.org>
16360
16361         stpcpy: Move AC_LIBOBJ invocations to module description.
16362         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16363         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16364         here...
16365         * modules/stpcpy (configure.ac): ... to here.
16366
16367 2011-05-21  Bruno Haible  <bruno@clisp.org>
16368
16369         stat: Move AC_LIBOBJ invocations to module description.
16370         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16371         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16372         here...
16373         * modules/stat (configure.ac): ... to here.
16374
16375 2011-05-21  Bruno Haible  <bruno@clisp.org>
16376
16377         sleep: Move AC_LIBOBJ invocations to module description.
16378         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16379         * modules/sleep (configure.ac): ... to here.
16380
16381 2011-05-21  Bruno Haible  <bruno@clisp.org>
16382
16383         signbit: Move AC_LIBOBJ invocations to module description.
16384         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16385         * modules/signbit (configure.ac): ... to here.
16386
16387 2011-05-21  Bruno Haible  <bruno@clisp.org>
16388
16389         sigprocmask: Move AC_LIBOBJ invocations to module description.
16390         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16391         gl_PREREQ_SIGPROMASK invocations from here...
16392         * modules/sigprocmask (configure.ac): ... to here.
16393
16394 2011-05-21  Bruno Haible  <bruno@clisp.org>
16395
16396         sigaction: Move AC_LIBOBJ invocations to module description.
16397         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16398         gl_PREREQ_SIGACTION invocations from here...
16399         * modules/sigaction (configure.ac): ... to here.
16400
16401 2011-05-21  Bruno Haible  <bruno@clisp.org>
16402
16403         sig2str: Move AC_LIBOBJ invocations to module description.
16404         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16405         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16406         here...
16407         * modules/sig2str (configure.ac): ... to here.
16408
16409 2011-05-21  Bruno Haible  <bruno@clisp.org>
16410
16411         setlocale: Move AC_LIBOBJ invocations to module description.
16412         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16413         gl_PREREQ_SETLOCALE invocations from here...
16414         * modules/setlocale (configure.ac): ... to here.
16415
16416 2011-05-21  Bruno Haible  <bruno@clisp.org>
16417
16418         unsetenv: Move AC_LIBOBJ invocations to module description.
16419         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16420         and gl_PREREQ_UNSETENV invocations from here...
16421         * modules/unsetenv (configure.ac): ... to here.
16422         (Depends-on): Update.
16423
16424 2011-05-21  Bruno Haible  <bruno@clisp.org>
16425
16426         setenv: Move AC_LIBOBJ invocations to module description.
16427         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16428         here...
16429         * modules/setenv (configure.ac): ... to here.
16430
16431 2011-05-21  Bruno Haible  <bruno@clisp.org>
16432
16433         selinux-h: Move AC_LIBOBJ invocations to module description.
16434         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16435         AC_LIBOBJ invocation from here...
16436         * modules/selinux-h (configure.ac): ... to here.
16437
16438 2011-05-21  Bruno Haible  <bruno@clisp.org>
16439
16440         select: Respect rules for use of AC_LIBOBJ.
16441         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16442         here...
16443         * modules/select (configure.ac): ... to here.
16444
16445 2011-05-21  Bruno Haible  <bruno@clisp.org>
16446
16447         scandir: Move AC_LIBOBJ invocations to module description.
16448         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16449         invocations from here...
16450         * modules/scandir (configure.ac): ... to here.
16451
16452 2011-05-21  Bruno Haible  <bruno@clisp.org>
16453
16454         rpmatch: Move AC_LIBOBJ invocations to module description.
16455         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16456         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16457         here...
16458         * modules/rpmatch (configure.ac): ... to here.
16459
16460 2011-05-21  Bruno Haible  <bruno@clisp.org>
16461
16462         rmdir: Respect rules for use of AC_LIBOBJ.
16463         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16464         * modules/rmdir (configure.ac): ... to here.
16465
16466 2011-05-21  Bruno Haible  <bruno@clisp.org>
16467
16468         renameat: Move AC_LIBOBJ invocations to module description.
16469         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16470         here...
16471         * modules/renameat (configure.ac): ... to here.
16472
16473 2011-05-21  Bruno Haible  <bruno@clisp.org>
16474
16475         rename: Respect rules for use of AC_LIBOBJ.
16476         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16477         here...
16478         * modules/rename (configure.ac): ... to here.
16479
16480 2011-05-21  Bruno Haible  <bruno@clisp.org>
16481
16482         remove: Move AC_LIBOBJ invocations to module description.
16483         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16484         here...
16485         * modules/remove (configure.ac): ... to here.
16486
16487 2011-05-21  Bruno Haible  <bruno@clisp.org>
16488
16489         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16490         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16491         macro.
16492         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16493         * modules/relocatable-lib (configure.ac): ... to here.
16494         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16495         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16496
16497 2011-05-21  Bruno Haible  <bruno@clisp.org>
16498
16499         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16500         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16501         here...
16502         * modules/relocatable-prog (configure.ac): ... to here.
16503
16504 2011-05-21  Bruno Haible  <bruno@clisp.org>
16505
16506         regex: Move AC_LIBOBJ invocations to module description.
16507         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16508         invocations from here...
16509         * modules/regex (configure.ac): ... to here.
16510
16511 2011-05-21  Bruno Haible  <bruno@clisp.org>
16512
16513         realloc-*: Move AC_LIBOBJ invocations to module description.
16514         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16515         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16516         AC_LIBOBJ invocations from here...
16517         * modules/realloc-gnu (configure.ac): ... to here.
16518         * modules/realloc-posix (configure.ac): ... and here.
16519
16520 2011-05-21  Bruno Haible  <bruno@clisp.org>
16521
16522         readutmp: Move AC_LIBOBJ invocations to module description.
16523         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16524         * modules/readutmp (configure.ac): ... to here.
16525
16526 2011-05-21  Bruno Haible  <bruno@clisp.org>
16527
16528         readlinkat: Move AC_LIBOBJ invocations to module description.
16529         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16530         here...
16531         * modules/readlinkat (configure.ac): ... to here.
16532
16533 2011-05-21  Bruno Haible  <bruno@clisp.org>
16534
16535         readlink: Move AC_LIBOBJ invocations to module description.
16536         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16537         gl_PREREQ_READLINK invocations from here...
16538         * modules/readlink (configure.ac): ... to here.
16539
16540 2011-05-21  Bruno Haible  <bruno@clisp.org>
16541
16542         readline: Move AC_LIBOBJ invocations to module description.
16543         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16544         gl_PREREQ_READLINE invocations from here...
16545         * modules/readline (configure.ac): ... to here.
16546
16547 2011-05-21  Bruno Haible  <bruno@clisp.org>
16548
16549         read: Move AC_LIBOBJ invocations to module description.
16550         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16551         * modules/read (configure.ac): ... to here.
16552
16553 2011-05-21  Bruno Haible  <bruno@clisp.org>
16554
16555         rawmemchr: Move AC_LIBOBJ invocations to module description.
16556         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16557         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16558         from here...
16559         * modules/rawmemchr (configure.ac): ... to here.
16560
16561 2011-05-21  Bruno Haible  <bruno@clisp.org>
16562
16563         random_r: Move AC_LIBOBJ invocations to module description.
16564         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16565         gl_PREREQ_RANDOM_R invocations from here...
16566         * modules/random_r (configure.ac): ... to here.
16567
16568 2011-05-21  Bruno Haible  <bruno@clisp.org>
16569
16570         pwrite: Move AC_LIBOBJ invocations to module description.
16571         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16572         * modules/pwrite (configure.ac): ... to here.
16573
16574 2011-05-21  Bruno Haible  <bruno@clisp.org>
16575
16576         putenv: Move AC_LIBOBJ invocations to module description.
16577         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16578         * modules/putenv (configure.ac): ... to here.
16579
16580 2011-05-21  Bruno Haible  <bruno@clisp.org>
16581
16582         login_tty: Move AC_LIBOBJ invocations to module description.
16583         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16584         * modules/login_tty (configure.ac): ... to here.
16585
16586 2011-05-21  Bruno Haible  <bruno@clisp.org>
16587
16588         openpty: Move AC_LIBOBJ invocations to module description.
16589         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
16590         * modules/openpty (configure.ac): ... to here.
16591
16592 2011-05-21  Bruno Haible  <bruno@clisp.org>
16593
16594         forkpty: Move AC_LIBOBJ invocations to module description.
16595         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
16596         * modules/forkpty (configure.ac): ... to here.
16597
16598 2011-05-21  Bruno Haible  <bruno@clisp.org>
16599
16600         ptsname: Move AC_LIBOBJ invocations to module description.
16601         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
16602         invocations from here...
16603         * modules/ptsname (configure.ac): ... to here.
16604
16605 2011-05-21  Bruno Haible  <bruno@clisp.org>
16606
16607         pread: Move AC_LIBOBJ invocations to module description.
16608         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
16609         * modules/pread (configure.ac): ... to here.
16610
16611 2011-05-21  Bruno Haible  <bruno@clisp.org>
16612
16613         posix_spawn*: Move AC_LIBOBJ invocations to module description.
16614         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
16615         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
16616         * modules/posix_spawn (configure.ac): ... to here.
16617         * modules/posix_spawnp (configure.ac): ... and here.
16618
16619 2011-05-21  Bruno Haible  <bruno@clisp.org>
16620
16621         popen: Move AC_LIBOBJ invocations to module description.
16622         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
16623         invocations from here...
16624         * modules/popen (configure.ac): ... to here.
16625
16626 2011-05-21  Bruno Haible  <bruno@clisp.org>
16627
16628         poll: Move AC_LIBOBJ invocations to module description.
16629         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
16630         invocations from here...
16631         * modules/poll (configure.ac): ... to here.
16632
16633 2011-05-21  Bruno Haible  <bruno@clisp.org>
16634
16635         pipe-posix: Move AC_LIBOBJ invocations to module description.
16636         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
16637         * modules/pipe-posix (configure.ac): ... to here.
16638
16639 2011-05-21  Bruno Haible  <bruno@clisp.org>
16640
16641         openat: Respect rules for use of AC_LIBOBJ.
16642         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
16643         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16644         * modules/openat (configure.ac): ... to here.
16645
16646 2011-05-21  Bruno Haible  <bruno@clisp.org>
16647
16648         obstack-printf*: Move AC_LIBOBJ invocations to module description.
16649         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
16650         invocation from here...
16651         * modules/obstack-printf (configure.ac): ... to here.
16652         * modules/obstack-printf-posix (configure.ac): ... and here.
16653
16654 2011-05-21  Bruno Haible  <bruno@clisp.org>
16655
16656         nl_langinfo: Move AC_LIBOBJ invocations to module description.
16657         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
16658         from here...
16659         * modules/nl_langinfo (configure.ac): ... to here.
16660
16661 2011-05-21  Bruno Haible  <bruno@clisp.org>
16662
16663         nanosleep: Move AC_LIBOBJ invocations to module description.
16664         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
16665         gl_PREREQ_NANOSLEEP invocations from here...
16666         * modules/nanosleep (configure.ac): ... to here.
16667
16668 2011-05-21  Bruno Haible  <bruno@clisp.org>
16669
16670         mountlist: Move AC_LIBOBJ invocations to module description.
16671         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
16672         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
16673         * modules/mountlist (configure.ac): ... to here.
16674
16675 2011-05-21  Bruno Haible  <bruno@clisp.org>
16676
16677         mktime: Respect rules for use of AC_LIBOBJ.
16678         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
16679         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
16680         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
16681         (gl_FUNC_MKTIME_INTERNAL): ... and here...
16682         * modules/mktime (configure.ac): ... to here.
16683         * modules/mktime-internal (configure.ac): ... and here.
16684         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
16685
16686 2011-05-21  Bruno Haible  <bruno@clisp.org>
16687
16688         mkstemps: Move AC_LIBOBJ invocations to module description.
16689         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
16690         here...
16691         * modules/mkstemps (configure.ac): ... to here.
16692
16693 2011-05-21  Bruno Haible  <bruno@clisp.org>
16694
16695         mkstemp: Move AC_LIBOBJ invocations to module description.
16696         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
16697         gl_PREREQ_MKSTEMP invocations from here...
16698         * modules/mkstemp (configure.ac): ... to here.
16699
16700 2011-05-21  Bruno Haible  <bruno@clisp.org>
16701
16702         mkostemps: Move AC_LIBOBJ invocations to module description.
16703         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
16704         here...
16705         * modules/mkostemps (configure.ac): ... to here.
16706
16707 2011-05-21  Bruno Haible  <bruno@clisp.org>
16708
16709         mkostemp: Move AC_LIBOBJ invocations to module description.
16710         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
16711         gl_PREREQ_MKOSTEMP invocations from here...
16712         * modules/mkostemp (configure.ac): ... to here.
16713
16714 2011-05-21  Bruno Haible  <bruno@clisp.org>
16715
16716         mknod: Move AC_LIBOBJ invocations to module description.
16717         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
16718         * modules/mknod (configure.ac): ... to here.
16719
16720 2011-05-21  Bruno Haible  <bruno@clisp.org>
16721
16722         mkfifoat: Move AC_LIBOBJ invocations to module description.
16723         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
16724         here...
16725         * modules/mkfifoat (configure.ac): ... to here.
16726
16727 2011-05-21  Bruno Haible  <bruno@clisp.org>
16728
16729         mkfifo: Respect rules for use of AC_LIBOBJ.
16730         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
16731         here...
16732         * modules/mkfifo (configure.ac): ... to here.
16733
16734 2011-05-21  Bruno Haible  <bruno@clisp.org>
16735
16736         mkdtemp: Move AC_LIBOBJ invocations to module description.
16737         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
16738         invocations from here...
16739         * modules/mkdtemp (configure.ac): ... to here.
16740
16741 2011-05-21  Bruno Haible  <bruno@clisp.org>
16742
16743         mkdir: Move AC_LIBOBJ invocations to module description.
16744         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
16745         * modules/mkdir (configure.ac): ... to here.
16746
16747 2011-05-21  Bruno Haible  <bruno@clisp.org>
16748
16749         memset: Move AC_LIBOBJ invocations to module description.
16750         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
16751         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
16752         here...
16753         * modules/memset (configure.ac): ... to here.
16754
16755 2011-05-21  Bruno Haible  <bruno@clisp.org>
16756
16757         memrchr: Move AC_LIBOBJ invocations to module description.
16758         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
16759         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
16760         here...
16761         * modules/memrchr (configure.ac): ... to here.
16762
16763 2011-05-21  Bruno Haible  <bruno@clisp.org>
16764
16765         mempcpy: Move AC_LIBOBJ invocations to module description.
16766         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
16767         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
16768         here...
16769         * modules/mempcpy (configure.ac): ... to here.
16770
16771 2011-05-21  Bruno Haible  <bruno@clisp.org>
16772
16773         memmove: Move AC_LIBOBJ invocations to module description.
16774         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
16775         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
16776         here...
16777         * modules/memmove (configure.ac): ... to here.
16778
16779 2011-05-21  Bruno Haible  <bruno@clisp.org>
16780
16781         memmem*: Move AC_LIBOBJ invocations to module description.
16782         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
16783         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
16784         here...
16785         (gl_FUNC_MEMMEM): ... and here...
16786         * modules/memmem-simple (configure.ac): ... to here.
16787         * modules/memmem (configure.ac): ... and here.
16788
16789 2011-05-21  Bruno Haible  <bruno@clisp.org>
16790
16791         memcpy: Move AC_LIBOBJ invocations to module description.
16792         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
16793         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
16794         here...
16795         * modules/memcpy (configure.ac): ... to here.
16796
16797 2011-05-21  Bruno Haible  <bruno@clisp.org>
16798
16799         memcmp: Simplify autoconf macro.
16800         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
16801         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
16802         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
16803
16804 2011-05-21  Bruno Haible  <bruno@clisp.org>
16805
16806         memcmp: Move AC_LIBOBJ invocations to module description.
16807         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
16808         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
16809         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
16810         * modules/memcmp (configure.ac): ... to here.
16811         (Depends-on): Update conditions.
16812
16813 2011-05-21  Bruno Haible  <bruno@clisp.org>
16814
16815         memchr: Respect rules for use of AC_LIBOBJ.
16816         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
16817         invocations from here...
16818         * modules/memchr (configure.ac): ... to here.
16819
16820 2011-05-21  Bruno Haible  <bruno@clisp.org>
16821
16822         mbtowc: Move AC_LIBOBJ invocations to module description.
16823         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
16824         invocations from here...
16825         * modules/mbtowc (configure.ac): ... to here.
16826
16827 2011-05-21  Bruno Haible  <bruno@clisp.org>
16828
16829         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
16830         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
16831         gl_PREREQ_MBSRTOWCS invocations from here...
16832         * modules/mbsrtowcs (configure.ac): ... to here.
16833
16834 2011-05-21  Bruno Haible  <bruno@clisp.org>
16835
16836         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
16837         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
16838         gl_PREREQ_MBSNRTOWCS invocations from here...
16839         * modules/mbsnrtowcs (configure.ac): ... to here.
16840
16841 2011-05-21  Bruno Haible  <bruno@clisp.org>
16842
16843         mbsinit: Move AC_LIBOBJ invocations to module description.
16844         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
16845         invocations from here...
16846         * modules/mbsinit (configure.ac): ... to here.
16847
16848 2011-05-21  Bruno Haible  <bruno@clisp.org>
16849
16850         mbrlen: Move AC_LIBOBJ invocations to module description.
16851         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
16852         invocations from here...
16853         * modules/mbrlen (configure.ac): ... to here.
16854
16855 2011-05-21  Bruno Haible  <bruno@clisp.org>
16856
16857         mbrtowc: Respect rules for use of AC_LIBOBJ.
16858         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
16859         invocations from here...
16860         * modules/mbrtowc (configure.ac): ... to here.
16861
16862 2011-05-21  Bruno Haible  <bruno@clisp.org>
16863
16864         malloc-*: Move AC_LIBOBJ invocations to module description.
16865         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
16866         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
16867         AC_LIBOBJ invocations from here...
16868         * modules/malloc-gnu (configure.ac): ... to here.
16869         * modules/malloc-posix (configure.ac): ... and here.
16870
16871 2011-05-21  Bruno Haible  <bruno@clisp.org>
16872
16873         lstat, openat: Respect rules for use of AC_LIBOBJ.
16874         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
16875         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
16876         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
16877         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
16878         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
16879         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
16880         here.
16881         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
16882
16883 2011-05-21  Bruno Haible  <bruno@clisp.org>
16884
16885         lseek: Move AC_LIBOBJ invocations to module description.
16886         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
16887         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16888         * modules/lseek (configure.ac): ... to here.
16889
16890 2011-05-21  Bruno Haible  <bruno@clisp.org>
16891
16892         linkat: Move AC_LIBOBJ invocations to module description.
16893         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
16894         here...
16895         * modules/linkat (configure.ac): ... to here.
16896
16897 2011-05-21  Bruno Haible  <bruno@clisp.org>
16898
16899         link: Respect rules for use of AC_LIBOBJ.
16900         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
16901         * modules/link (configure.ac): ... to here.
16902
16903 2011-05-21  Bruno Haible  <bruno@clisp.org>
16904
16905         lchown: Move AC_LIBOBJ invocations to module description.
16906         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16907         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16908         * modules/lchown (configure.ac): ... to here.
16909
16910 2011-05-21  Bruno Haible  <bruno@clisp.org>
16911
16912         iswctype: Move AC_LIBOBJ invocations to module description.
16913         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
16914         here...
16915         * modules/iswctype (configure.ac): ... to here.
16916
16917 2011-05-21  Bruno Haible  <bruno@clisp.org>
16918
16919         iswblank: Move AC_LIBOBJ invocations to module description.
16920         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
16921         here...
16922         * modules/iswblank (configure.ac): ... to here.
16923
16924 2011-05-21  Bruno Haible  <bruno@clisp.org>
16925
16926         atanl: Move AC_LIBOBJ invocations to module description.
16927         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
16928         * modules/atanl (configure.ac): ... to here.
16929
16930 2011-05-21  Bruno Haible  <bruno@clisp.org>
16931
16932         acosl: Move AC_LIBOBJ invocations to module description.
16933         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
16934         * modules/acosl (configure.ac): ... to here.
16935
16936 2011-05-21  Bruno Haible  <bruno@clisp.org>
16937
16938         asinl: Respect rules for use of AC_LIBOBJ.
16939         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
16940         * modules/asinl (configure.ac): ... to here.
16941
16942 2011-05-21  Bruno Haible  <bruno@clisp.org>
16943
16944         tanl: Move AC_LIBOBJ invocations to module description.
16945         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
16946         * modules/tanl (configure.ac): ... to here.
16947
16948 2011-05-21  Bruno Haible  <bruno@clisp.org>
16949
16950         cosl: Move AC_LIBOBJ invocations to module description.
16951         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
16952         * modules/cosl (configure.ac): ... to here.
16953
16954 2011-05-21  Bruno Haible  <bruno@clisp.org>
16955
16956         sinl: Move AC_LIBOBJ invocations to module description.
16957         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
16958         * modules/sinl (configure.ac): ... to here.
16959
16960 2011-05-21  Bruno Haible  <bruno@clisp.org>
16961
16962         logl: Move AC_LIBOBJ invocations to module description.
16963         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
16964         * modules/logl (configure.ac): ... to here.
16965
16966 2011-05-21  Bruno Haible  <bruno@clisp.org>
16967
16968         expl: Move AC_LIBOBJ invocations to module description.
16969         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
16970         * modules/expl (configure.ac): ... to here.
16971
16972 2011-05-21  Bruno Haible  <bruno@clisp.org>
16973
16974         roundl: Move AC_LIBOBJ invocations to module description.
16975         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
16976         * modules/roundl (configure.ac): ... to here.
16977
16978 2011-05-21  Bruno Haible  <bruno@clisp.org>
16979
16980         round: Move AC_LIBOBJ invocations to module description.
16981         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
16982         * modules/round (configure.ac): ... to here.
16983
16984 2011-05-21  Bruno Haible  <bruno@clisp.org>
16985
16986         roundf: Move AC_LIBOBJ invocations to module description.
16987         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
16988         * modules/roundf (configure.ac): ... to here.
16989
16990 2011-05-21  Bruno Haible  <bruno@clisp.org>
16991
16992         truncl: Move AC_LIBOBJ invocations to module description.
16993         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
16994         * modules/truncl (configure.ac): ... to here.
16995
16996 2011-05-21  Bruno Haible  <bruno@clisp.org>
16997
16998         trunc: Move AC_LIBOBJ invocations to module description.
16999         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17000         * modules/trunc (configure.ac): ... to here.
17001
17002 2011-05-21  Bruno Haible  <bruno@clisp.org>
17003
17004         truncf: Move AC_LIBOBJ invocations to module description.
17005         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17006         * modules/truncf (configure.ac): ... to here.
17007
17008 2011-05-21  Bruno Haible  <bruno@clisp.org>
17009
17010         ceill: Move AC_LIBOBJ invocations to module description.
17011         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17012         * modules/ceill (configure.ac): ... to here.
17013
17014 2011-05-21  Bruno Haible  <bruno@clisp.org>
17015
17016         ceil: Move AC_LIBOBJ invocations to module description.
17017         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17018         * modules/ceil (configure.ac): ... to here.
17019
17020 2011-05-21  Bruno Haible  <bruno@clisp.org>
17021
17022         ceilf: Move AC_LIBOBJ invocations to module description.
17023         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17024         * modules/ceilf (configure.ac): ... to here.
17025
17026 2011-05-21  Bruno Haible  <bruno@clisp.org>
17027
17028         floorl: Respect rules for use of AC_LIBOBJ.
17029         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17030         * modules/floorl (configure.ac): ... to here.
17031
17032 2011-05-21  Bruno Haible  <bruno@clisp.org>
17033
17034         floor: Respect rules for use of AC_LIBOBJ.
17035         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17036         * modules/floor (configure.ac): ... to here.
17037
17038 2011-05-21  Bruno Haible  <bruno@clisp.org>
17039
17040         floorf: Move AC_LIBOBJ invocations to module description.
17041         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17042         * modules/floorf (configure.ac): ... to here.
17043
17044 2011-05-20  Bruno Haible  <bruno@clisp.org>
17045
17046         sqrtl: Respect rules for use of AC_LIBOBJ.
17047         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17048         * modules/sqrtl (configure.ac): ... to here.
17049
17050 2011-05-20  Bruno Haible  <bruno@clisp.org>
17051
17052         ldexpl: Respect rules for use of AC_LIBOBJ.
17053         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17054         * modules/ldexpl (configure.ac): ... to here.
17055
17056 2011-05-20  Bruno Haible  <bruno@clisp.org>
17057
17058         frexpl*: Respect rules for use of AC_LIBOBJ.
17059         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17060         invocation from here...
17061         * modules/frexpl (configure.ac): ... to here.
17062         * modules/frexpl-nolibm (configure.ac): ... and here.
17063
17064 2011-05-20  Bruno Haible  <bruno@clisp.org>
17065
17066         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17067         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17068         invocation from here...
17069         * modules/frexp (configure.ac): ... to here.
17070         * modules/frexp-nolibm (configure.ac): ... and here.
17071
17072 2011-05-20  Bruno Haible  <bruno@clisp.org>
17073
17074         isnan: Respect rules for use of AC_LIBOBJ.
17075         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17076         invocations here.
17077         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17078         REPLACE_ISNAN.
17079         * modules/isnand (configure.ac): Likewise.
17080         * modules/isnanl (configure.ac): Likewise.
17081
17082 2011-05-20  Bruno Haible  <bruno@clisp.org>
17083
17084         isnanl*: Respect rules for use of AC_LIBOBJ.
17085         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17086         invocation from here...
17087         * modules/isnanl (configure.ac): ... to here.
17088         * modules/isnanl-nolibm (configure.ac): ... and here.
17089
17090 2011-05-20  Bruno Haible  <bruno@clisp.org>
17091
17092         isnand*: Move AC_LIBOBJ invocations to module description.
17093         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17094         invocation from here...
17095         * modules/isnand (configure.ac): ... to here.
17096         * modules/isnand-nolibm (configure.ac): ... and here.
17097
17098 2011-05-20  Bruno Haible  <bruno@clisp.org>
17099
17100         isnanf*: Move AC_LIBOBJ invocations to module description.
17101         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17102         invocation from here...
17103         * modules/isnanf (configure.ac): ... to here.
17104         * modules/isnanf-nolibm (configure.ac): ... and here.
17105
17106 2011-05-20  Bruno Haible  <bruno@clisp.org>
17107
17108         isnan*: Separate the AC_LIBOBJ invocations.
17109         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17110         AC_LIBOBJ invocation.
17111         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17112         here.
17113         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17114         AC_LIBOBJ invocation.
17115         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17116         here.
17117         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17118         AC_LIBOBJ invocation.
17119         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17120         here.
17121         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17122
17123 2011-05-08  Bruno Haible  <bruno@clisp.org>
17124
17125         isinf: Move AC_LIBOBJ invocations to module description.
17126         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17127         * modules/isinf (configure.ac): ... to here.
17128
17129 2011-05-08  Bruno Haible  <bruno@clisp.org>
17130
17131         isfinite: Move AC_LIBOBJ invocations to module description.
17132         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17133         * modules/isfinite (configure.ac): ... to here.
17134
17135 2011-05-08  Bruno Haible  <bruno@clisp.org>
17136
17137         isblank: Move AC_LIBOBJ invocations to module description.
17138         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17139         here...
17140         * modules/isblank (configure.ac): ... to here.
17141
17142 2011-05-08  Bruno Haible  <bruno@clisp.org>
17143
17144         isapipe: Move AC_LIBOBJ invocations to module description.
17145         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17146         gl_PREREQ_ISAPIPE invocations from here...
17147         * modules/isapipe (configure.ac): ... to here.
17148         (Depends-on): Update condition.
17149
17150 2011-05-08  Bruno Haible  <bruno@clisp.org>
17151
17152         ioctl: Move AC_LIBOBJ invocations to module description.
17153         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17154         invocations from here...
17155         * modules/ioctl (configure.ac): ... to here.
17156         (Depends-on): Update condition.
17157
17158 2011-05-08  Bruno Haible  <bruno@clisp.org>
17159
17160         imaxdiv: Move AC_LIBOBJ invocations to module description.
17161         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17162         invocations from here...
17163         * modules/imaxdiv (configure.ac): ... to here.
17164
17165 2011-05-08  Bruno Haible  <bruno@clisp.org>
17166
17167         imaxabs: Move AC_LIBOBJ invocations to module description.
17168         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17169         invocations from here...
17170         * modules/imaxabs (configure.ac): ... to here.
17171
17172 2011-05-08  Bruno Haible  <bruno@clisp.org>
17173
17174         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17175         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17176         AC_LIBOBJ invocations from here...
17177         * modules/getaddrinfo (configure.ac): ... to here.
17178         (Depends-on): Add conditions.
17179
17180 2011-05-08  Bruno Haible  <bruno@clisp.org>
17181
17182         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17183         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17184         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17185         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17186         (gl_PREREQ_INET_PTON): ... from here.
17187         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17188         gl_PREREQ_INET_PTON here.
17189         (Depends-on): Update condition.
17190
17191 2011-05-08  Bruno Haible  <bruno@clisp.org>
17192
17193         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17194         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17195         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17196         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17197         (gl_PREREQ_INET_NTOP): ... from here.
17198         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17199         gl_PREREQ_INET_NTOP here.
17200         (Depends-on): Update condition.
17201
17202 2011-05-08  Bruno Haible  <bruno@clisp.org>
17203
17204         iconv_open: Move AC_LIBOBJ invocations to module description.
17205         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17206         AC_LIBOBJ invocations from here...
17207         * modules/iconv_open (configure.ac): ... to here.
17208
17209 2011-05-08  Bruno Haible  <bruno@clisp.org>
17210
17211         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17212         If module 'iconv_open' is among the main modules and module
17213         'iconv_open-utf' is among the tests dependencies, then
17214         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17215         return the special iconv_t values. Therefore iconv() and iconv_close()
17216         must support these special iconv_t values, already in lib, not only in
17217         tests.
17218         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17219         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17220         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17221         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17222         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17223         (Depends-on): Add the dependencies of iconv_open-utf.
17224         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17225         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17226         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17227
17228 2011-05-08  Bruno Haible  <bruno@clisp.org>
17229
17230         group-member: Move AC_LIBOBJ invocations to module description.
17231         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17232         gl_PREREQ_GROUP_MEMBER invocations from here...
17233         * modules/group-member (configure.ac): ... to here.
17234
17235 2011-05-08  Bruno Haible  <bruno@clisp.org>
17236
17237         grantpt: Move AC_LIBOBJ invocations to module description.
17238         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17239         invocations from here...
17240         * modules/grantpt (configure.ac): ... to here.
17241
17242 2011-05-08  Bruno Haible  <bruno@clisp.org>
17243
17244         glob: Move AC_LIBOBJ invocations to module description.
17245         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17246         from here...
17247         * modules/glob (configure.ac): ... to here.
17248
17249 2011-05-08  Bruno Haible  <bruno@clisp.org>
17250
17251         getusershell: Move AC_LIBOBJ invocations to module description.
17252         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17253         Move AC_LIBOBJ invocation from here...
17254         * modules/getusershell (configure.ac): ... to here.
17255         (Depends-on): Update condition.
17256
17257 2011-05-08  Bruno Haible  <bruno@clisp.org>
17258
17259         gettimeofday: Move AC_LIBOBJ invocations to module description.
17260         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17261         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17262         gl_PREREQ_GETTIMEOFDAY invocations from here...
17263         * modules/gettimeofday (configure.ac): ... to here.
17264
17265 2011-05-08  Bruno Haible  <bruno@clisp.org>
17266
17267         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17268         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17269         just gl_FUNC_TZSET.
17270         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17271         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17272         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17273         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17274
17275 2011-05-08  Bruno Haible  <bruno@clisp.org>
17276
17277         getsubopt: Move AC_LIBOBJ invocations to module description.
17278         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17279         gl_PREREQ_GETSUBOPT invocations from here...
17280         * modules/getsubopt (configure.ac): ... to here.
17281
17282 2011-05-08  Bruno Haible  <bruno@clisp.org>
17283
17284         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17285         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17286         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17287         * modules/getpass-gnu (configure.ac): ... to here.
17288
17289 2011-05-08  Bruno Haible  <bruno@clisp.org>
17290
17291         getpass: Move AC_LIBOBJ invocations to module description.
17292         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17293         gl_PREREQ_GETPASS invocations from here...
17294         * modules/getpass (configure.ac): ... to here.
17295
17296 2011-05-08  Bruno Haible  <bruno@clisp.org>
17297
17298         getpagesize: Move AC_LIBOBJ invocations to module description.
17299         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17300         from here...
17301         * modules/getpagesize (configure.ac): ... to here.
17302
17303 2011-05-08  Bruno Haible  <bruno@clisp.org>
17304
17305         getopt: Move AC_LIBOBJ invocations to module description.
17306         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17307         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17308         invocations from here...
17309         * modules/getopt-gnu (configure.ac): ... to here.
17310         * modules/getopt-posix (configure.ac): ... and here.
17311         (Depends-on): Update condition.
17312
17313 2011-05-08  Bruno Haible  <bruno@clisp.org>
17314
17315         getopt, argp: Respect rules for use of AC_LIBOBJ.
17316         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17317         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17318         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17319         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17320
17321 2011-05-08  Bruno Haible  <bruno@clisp.org>
17322
17323         getlogin_r: Move AC_LIBOBJ invocations to module description.
17324         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17325         gl_PREREQ_GETLOGIN_R invocations from here...
17326         * modules/getlogin_r (configure.ac): ... to here.
17327
17328 2011-05-08  Bruno Haible  <bruno@clisp.org>
17329
17330         getlogin: Move AC_LIBOBJ invocations to module description.
17331         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17332         here...
17333         * modules/getlogin (configure.ac): ... to here.
17334
17335 2011-05-08  Bruno Haible  <bruno@clisp.org>
17336
17337         getloadavg: Move AC_LIBOBJ invocations to module description.
17338         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17339         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17340         * modules/getloadavg (configure.ac): ... to here.
17341
17342 2011-05-08  Bruno Haible  <bruno@clisp.org>
17343
17344         gethrxtime: Move AC_LIBOBJ invocations to module description.
17345         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17346         LIB_GETHRXTIME from here...
17347         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17348         invocations from here...
17349         * modules/gethrxtime (configure.ac): ... to here.
17350
17351 2011-05-08  Bruno Haible  <bruno@clisp.org>
17352
17353         gethostname: Move AC_LIBOBJ invocations to module description.
17354         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17355         gl_PREREQ_GETHOSTNAME invocations from here...
17356         * modules/gethostname (configure.ac): ... to here.
17357
17358 2011-05-08  Bruno Haible  <bruno@clisp.org>
17359
17360         getgroups: Move AC_LIBOBJ invocations to module description.
17361         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17362         here...
17363         * modules/getgroups (configure.ac): ... to here.
17364
17365 2011-05-08  Bruno Haible  <bruno@clisp.org>
17366
17367         getdtablesize: Move AC_LIBOBJ invocations to module description.
17368         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17369         invocation from here...
17370         * modules/getdtablesize (configure.ac): ... to here.
17371
17372 2011-05-08  Bruno Haible  <bruno@clisp.org>
17373
17374         getdomainname: Move AC_LIBOBJ invocations to module description.
17375         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17376         gl_PREREQ_GETDOMAINNAME invocations from here...
17377         * modules/getdomainname (configure.ac): ... to here.
17378
17379 2011-05-08  Bruno Haible  <bruno@clisp.org>
17380
17381         getline: Move AC_LIBOBJ invocations to module description.
17382         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17383         invocations from here...
17384         * modules/getline (configure.ac): ... to here.
17385
17386 2011-05-08  Bruno Haible  <bruno@clisp.org>
17387
17388         getline: Simplify.
17389         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17390         It's already handled through the module dependency.
17391
17392 2011-05-08  Bruno Haible  <bruno@clisp.org>
17393
17394         getdelim: Move AC_LIBOBJ invocations to module description.
17395         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17396         and gl_PREREQ_GETDELIM invocations from here...
17397         * modules/getdelim (configure.ac): ... to here.
17398         (Depends-on): Fix condition.
17399
17400 2011-05-08  Bruno Haible  <bruno@clisp.org>
17401
17402         getcwd: Move AC_LIBOBJ invocations to module description.
17403         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17404         invocations from here...
17405         * modules/getcwd (configure.ac): ... to here.
17406
17407 2011-05-08  Bruno Haible  <bruno@clisp.org>
17408
17409         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17410         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17411         here...
17412         * modules/getcwd-lgpl (configure.ac): ... to here.
17413
17414 2011-05-07  Bruno Haible  <bruno@clisp.org>
17415
17416         crypto/gc: Move AC_LIBOBJ invocations to module description.
17417         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17418         * modules/crypto/gc (configure.ac): ... to here.
17419
17420 2011-05-07  Bruno Haible  <bruno@clisp.org>
17421
17422         fwriting: Move AC_LIBOBJ invocations to module description.
17423         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17424         here...
17425         * modules/fwriting (configure.ac): ... to here.
17426
17427 2011-05-07  Bruno Haible  <bruno@clisp.org>
17428
17429         fwritable: Move AC_LIBOBJ invocations to module description.
17430         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17431         here...
17432         * modules/fwritable (configure.ac): ... to here.
17433
17434 2011-05-07  Bruno Haible  <bruno@clisp.org>
17435
17436         futimens: Move AC_LIBOBJ invocations to module description.
17437         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17438         here...
17439         * modules/futimens (configure.ac): ... to here.
17440
17441 2011-05-07  Bruno Haible  <bruno@clisp.org>
17442
17443         ftruncate: Move AC_LIBOBJ invocations to module description.
17444         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17445         gl_PREREQ_FTRUNCATE invocations from here...
17446         * modules/ftruncate (configure.ac): ... to here.
17447
17448 2011-05-07  Bruno Haible  <bruno@clisp.org>
17449
17450         fsync: Move AC_LIBOBJ invocations to module description.
17451         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17452         invocations from here...
17453         * modules/fsync (configure.ac): ... to here.
17454
17455 2011-05-07  Bruno Haible  <bruno@clisp.org>
17456
17457         fsusage: Move AC_LIBOBJ invocations to module description.
17458         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17459         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17460         * modules/fsusage (configure.ac): ... to here.
17461
17462 2011-05-07  Bruno Haible  <bruno@clisp.org>
17463
17464         freopen: Move AC_LIBOBJ invocations to module description.
17465         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17466         invocations from here...
17467         * modules/freopen (configure.ac): ... to here.
17468
17469 2011-05-07  Bruno Haible  <bruno@clisp.org>
17470
17471         free: Move AC_LIBOBJ invocations to module description.
17472         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17473         invocations from here...
17474         * modules/free (configure.ac): ... to here.
17475
17476 2011-05-07  Bruno Haible  <bruno@clisp.org>
17477
17478         freadable: Move AC_LIBOBJ invocations to module description.
17479         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17480         here...
17481         * modules/freadable (configure.ac): ... to here.
17482
17483 2011-05-07  Bruno Haible  <bruno@clisp.org>
17484
17485         fpurge: Move AC_LIBOBJ invocations to module description.
17486         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17487         invocations from here...
17488         * modules/fpurge (configure.ac): ... to here.
17489
17490 2011-05-07  Bruno Haible  <bruno@clisp.org>
17491
17492         fpending: Move AC_LIBOBJ invocations to module description.
17493         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17494         gl_FUNC_FPENDING.
17495         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17496         invocations from here...
17497         * modules/fpending (configure.ac): ... to here.
17498
17499 2011-05-07  Bruno Haible  <bruno@clisp.org>
17500
17501         fopen: Move AC_LIBOBJ invocations to module description.
17502         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17503         invocations from here...
17504         * modules/fopen (configure.ac): ... to here.
17505
17506 2011-05-07  Bruno Haible  <bruno@clisp.org>
17507
17508         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17509         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17510         gl_FUNC_FNMATCH_POSIX.
17511         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17512         invocations from here...
17513         * modules/fnmatch (configure.ac): ... to here.
17514         * modules/fnmatch-gnu (configure.ac): ... and here.
17515
17516 2011-05-07  Bruno Haible  <bruno@clisp.org>
17517
17518         flock: Move AC_LIBOBJ invocations to module description.
17519         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17520         invocations from here...
17521         * modules/flock (configure.ac): ... to here.
17522
17523 2011-05-07  Bruno Haible  <bruno@clisp.org>
17524
17525         fileblocks: Move AC_LIBOBJ invocations to module description.
17526         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17527         gl_PREREQ_FILEBLOCKS invocations from here...
17528         * modules/fileblocks (configure.ac): ... to here.
17529
17530 2011-05-06  Bruno Haible  <bruno@clisp.org>
17531
17532         fflush: Move AC_LIBOBJ invocations to module description.
17533         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17534         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17535         invocations from here...
17536         * modules/fflush (configure.ac): ... to here.
17537
17538 2011-05-06  Bruno Haible  <bruno@clisp.org>
17539
17540         fdopendir: Move AC_LIBOBJ invocations to module description.
17541         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17542         here...
17543         * modules/fdopendir (configure.ac): ... to here.
17544         (Depends-on): Improve conditions.
17545
17546 2011-05-06  Bruno Haible  <bruno@clisp.org>
17547
17548         _Exit: Move AC_LIBOBJ invocations to module description.
17549         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17550         invocations from here...
17551         * modules/_Exit (configure.ac): ... to here.
17552
17553 2011-05-21  Bruno Haible  <bruno@clisp.org>
17554
17555         euidaccess: Respect rules for use of AC_LIBOBJ.
17556         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17557         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17558         from here...
17559         * modules/euidaccess (configure.ac): ... to here.
17560
17561 2011-05-06  Bruno Haible  <bruno@clisp.org>
17562
17563         error: Move AC_LIBOBJ invocations to module description.
17564         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17565         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17566         invocations from here...
17567         * modules/error (configure.ac): ... to here.
17568
17569 2011-05-06  Bruno Haible  <bruno@clisp.org>
17570
17571         duplocale: Move AC_LIBOBJ invocations to module description.
17572         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17573         gl_PREREQ_DUPLOCALE invocations from here...
17574         * modules/duplocale (configure.ac): ... to here.
17575
17576 2011-05-05  Bruno Haible  <bruno@clisp.org>
17577
17578         dirfd: Move AC_LIBOBJ invocations to module description.
17579         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17580         gl_FUNC_DIRFD.
17581         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17582         here...
17583         * modules/dirfd (configure.ac): ... to here.
17584         (Depends-on): Fix condition.
17585
17586 2011-05-05  Bruno Haible  <bruno@clisp.org>
17587
17588         chown: Respect rules for use of AC_LIBOBJ.
17589         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
17590         * modules/chown (configure.ac): ... to here.
17591
17592 2011-05-05  Bruno Haible  <bruno@clisp.org>
17593
17594         chdir-long: Move AC_LIBOBJ invocations to module description.
17595         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
17596         gl_PREREQ_CHDIR_LONG invocations from here...
17597         * modules/chdir-long (configure.ac): ... to here.
17598
17599 2011-05-05  Bruno Haible  <bruno@clisp.org>
17600
17601         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
17602         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
17603         from here...
17604         * modules/canonicalize-lgpl (configure.ac): ... to here.
17605
17606 2011-05-05  Bruno Haible  <bruno@clisp.org>
17607
17608         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
17609         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
17610         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
17611         REPLACE_CALLOC.
17612         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
17613         * modules/calloc-gnu (configure.ac): Likewise.
17614
17615 2011-05-05  Bruno Haible  <bruno@clisp.org>
17616
17617         btowc: Move AC_LIBOBJ invocations to module description.
17618         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
17619         invocations from here...
17620         * modules/btowc (configure.ac): ... to here.
17621
17622 2011-05-21  Bruno Haible  <bruno@clisp.org>
17623
17624         atexit: Move AC_LIBOBJ invocations to module description.
17625         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
17626         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
17627         here...
17628         * modules/atexit (configure.ac): ... to here.
17629
17630 2011-05-05  Bruno Haible  <bruno@clisp.org>
17631
17632         atoll: Move AC_LIBOBJ invocations to module description.
17633         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
17634         invocations from here...
17635         * modules/atoll (configure.ac): ... to here.
17636
17637 2011-05-05  Bruno Haible  <bruno@clisp.org>
17638
17639         argz: Move AC_LIBOBJ invocations to module description.
17640         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
17641         * modules/argz (configure.ac): ... to here.
17642
17643 2011-05-05  Bruno Haible  <bruno@clisp.org>
17644
17645         alphasort: Move AC_LIBOBJ invocations to module description.
17646         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
17647         gl_PREREQ_ALPHASORT invocations from here...
17648         * modules/alphasort (configure.ac): ... to here.
17649
17650 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17651
17652         verify: new macro verify_expr; verify_true deprecated
17653         * NEWS: Mention this.
17654         * doc/verify.texi (Compile-time Assertions): Document this.
17655         * lib/verify.h (verify_true): Deprecate.
17656         (verify_expr): New macro.
17657         * tests/test-verify.c (function): Test verify_expr.
17658
17659 2011-06-14  Jim Meyering  <meyering@redhat.com>
17660
17661         init.sh: give more portable redirection-related advice in a comment
17662         * tests/init.sh (stderr_fileno_): Update the advice in comments.
17663         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
17664         for lots of discussion.  Stefano Lattarini suggested the solution
17665         of putting "9>&2" after the command.  Reported by Bruno Haible.
17666
17667 2011-06-13  Bruno Haible  <bruno@clisp.org>
17668
17669         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
17670         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
17671         'none'.
17672
17673 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17674
17675         ftoastr: use strtof only if HAVE_STRTOF
17676         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
17677         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
17678         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
17679         * modules/ftoastr (configure.ac): Check for strtof.
17680
17681 2011-06-13  Bruno Haible  <bruno@clisp.org>
17682
17683         gnulib-tool: Addendum to 2011-06-08 commit.
17684         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
17685         and --witness-c-macro have been given, augment AM_CPPFLAGS.
17686
17687 2011-06-13  Bruno Haible  <bruno@clisp.org>
17688
17689         fseeko: Provide a non-inline replacement of fseek().
17690         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
17691         * modules/fseeko (Depends-on): Add fseek.
17692         * modules/fseek (License): Change to LGPLv2+.
17693
17694 2011-06-13  Bruno Haible  <bruno@clisp.org>
17695
17696         ftello: Provide a non-inline replacement of ftell().
17697         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
17698         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
17699         not have ftello() (such as on mingw).
17700         * modules/ftello (Depends-on): Add ftell.
17701         * modules/ftell (License): Change to LGPLv2+.
17702
17703 2011-05-07  Bruno Haible  <bruno@clisp.org>
17704
17705         ftell: Move AC_LIBOBJ invocations to module description.
17706         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
17707         * modules/ftell (configure.ac): ... to here.
17708
17709 2011-05-07  Bruno Haible  <bruno@clisp.org>
17710
17711         ftello: Respect rules for use of AC_LIBOBJ.
17712         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
17713         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
17714         here...
17715         * modules/ftello (configure.ac): ... to here.
17716
17717 2011-05-07  Bruno Haible  <bruno@clisp.org>
17718
17719         fseeko: Simplify.
17720         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
17721         (gl_FUNC_FSEEKO): Inline it here.
17722
17723 2011-05-07  Bruno Haible  <bruno@clisp.org>
17724
17725         fseek: Move AC_LIBOBJ invocations to module description.
17726         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
17727         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17728         * modules/fseek (configure.ac): ... to here.
17729
17730 2011-05-07  Bruno Haible  <bruno@clisp.org>
17731
17732         fseek: Respect rules for use of AC_LIBOBJ.
17733         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
17734         here...
17735         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
17736
17737 2011-05-07  Bruno Haible  <bruno@clisp.org>
17738
17739         fseeko: Respect rules for use of AC_LIBOBJ.
17740         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
17741         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
17742         here...
17743         * modules/fseeko (configure.ac): ... to here.
17744
17745 2011-06-13  Bruno Haible  <bruno@clisp.org>
17746
17747         gnulib-tool: Allow comments in the 'Depends-on' section.
17748         * doc/gnulib.texi (Module description): Mention comment syntax in the
17749         Depends-on section.
17750         * gnulib-tool (func_get_dependencies): Filter out comment lines.
17751
17752 2011-06-13  Bruno Haible  <bruno@clisp.org>
17753
17754         file-set.h: guard __attibute__ use, now that it's not always defined
17755         * lib/file-set.h (record_file): Use __attribute__ only with compiler
17756         versions that support it.  This fixes a coreutils build failure with
17757         the vendor cc on HP-UX 11.31.
17758
17759 2011-06-12  Bruno Haible  <bruno@clisp.org>
17760
17761         acl: Add support for HP-UX >= 11.11 JFS ACLs.
17762         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
17763         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
17764         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
17765         (acl, aclsort): New declarations.
17766         (aclv_nontrivial): New declaration.
17767         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
17768         (file_has_acl): Read also the second kind of HP-UX ACLs.
17769         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
17770         kind of HP-UX ACLs if the first kind fails.
17771         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
17772         second kind of HP-UX ACLs.
17773         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
17774         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
17775         agree.
17776         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17777         hpuxjfs.
17778         Handle hpuxjfs.
17779         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17780         hpuxjfs.
17781         Handle hpuxjfs.
17782         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17783         (func_test_same_acls): Use both lsacl and getacl.
17784         Handle hpuxjfs.
17785         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17786         (func_test_same_acls): Use both lsacl and getacl.
17787         Handle hpuxjfs.
17788
17789 2011-06-12  Bruno Haible  <bruno@clisp.org>
17790
17791         acl: Complete the 2010-08-10 fix.
17792         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
17793         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
17794         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
17795         explicitly.
17796         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
17797         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
17798
17799 2011-06-12  Bruno Haible  <bruno@clisp.org>
17800
17801         spawn-pipe tests: Comments.
17802         * tests/test-spawn-pipe-child.c (main): Update comment.
17803         Reported by James Youngman <jay@gnu.org>.
17804
17805 2011-06-11  James Youngman  <jay@gnu.org>
17806
17807         New module 'stat-size'.
17808         * modules/stat-size: New module.  Provides macros for accessing
17809         file size information in instances of struct stat.  Depends on the
17810         fileblocks module because it calls st_blocks.
17811         * lib/stat-size.h: New file, adapted from coreutils' system.h.
17812         * doc/gnulib.texi: Include stat-size.texi.
17813         * doc/stat-size.texi: Documentation for this module.
17814         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
17815         * m4/fileblocks.m4: Mention that stat-size depends on the call to
17816         AC_STRUCT_ST_BLOCKS.
17817
17818 2011-06-09  Bruno Haible  <bruno@clisp.org>
17819
17820         thread: Support pthreads-win32.
17821         * lib/glthread/thread.h (gl_thread_self): Define differently on
17822         pthreads-win32.
17823         (gl_null_thread): New declaration.
17824         (gl_thread_self_pointer): New macro.
17825         * lib/glthread/thread.c (gl_null_thread): New constant.
17826         * tests/test-lock.c: Use gl_thread_self_pointer instead of
17827         gl_thread_self.
17828         * tests/test-tls.c: Likewise.
17829         Suggested by Paul Eggert. Reported by Eric Blake.
17830
17831 2011-06-09  Bruno Haible  <bruno@clisp.org>
17832
17833         thread: Fix confusion between NULL and 0.
17834         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
17835         Reported by Paul Eggert.
17836
17837 2011-06-09  Bruno Haible  <bruno@clisp.org>
17838
17839         spawn-pipe tests: Avoid test failure on HP-UX 11.
17840         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
17841         is closed.
17842
17843 2011-06-09  Bruno Haible  <bruno@clisp.org>
17844
17845         acl tests: Fix compilation error on HP-UX 11.
17846         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
17847
17848 2011-06-09  Bruno Haible  <bruno@clisp.org>
17849
17850         rmdir: Avoid test failure on HP-UX 10.20.
17851         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
17852         EEXIST.
17853
17854 2011-06-08  Eric Blake  <eblake@redhat.com>
17855
17856         perror: fix test on mingw
17857         * modules/perror-tests (Depends-on): Add dup2.
17858
17859         strerror_r-posix: fix on MacOS
17860         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
17861         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
17862         logic bug.
17863         * lib/strerror_r.c (strerror_r): Fix the bug.
17864         * lib/strerror.c (strerror): Likewise.
17865         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17866         problem.
17867         * doc/posix-functions/strerror.texi (strerror): Likewise.
17868         * doc/posix-functions/perror.texi (perror): Likewise.
17869         * tests/test-strerror.c (main): Enhance test.
17870         * tests/test-strerror_r.c (main): Likewise.
17871
17872 2011-06-08  Bruno Haible  <bruno@clisp.org>
17873
17874         gnulib-tool: Better isolation between different gnulib-tool invocations.
17875         * gnulib-tool: New option --witness-c-macro.
17876         (witness_c_macro): New variable.
17877         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
17878         AM_CPPFLAGS define it as a C macro.
17879         (func_emit_tests_Makefile_am): Likewise.
17880         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
17881         read it from there.
17882         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
17883         m4_define, not AC_DEFUN.
17884         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
17885         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
17886         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
17887         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
17888         s|...|...|, to substitute the values of the GNULIB_* module indicator
17889         variables.
17890         * modules/dirent (Makefile.am): Likewise.
17891         * modules/fcntl-h (Makefile.am): Likewise.
17892         * modules/iconv-h (Makefile.am): Likewise.
17893         * modules/langinfo (Makefile.am): Likewise.
17894         * modules/locale (Makefile.am): Likewise.
17895         * modules/math (Makefile.am): Likewise.
17896         * modules/netdb (Makefile.am): Likewise.
17897         * modules/poll-h (Makefile.am): Likewise.
17898         * modules/pty (Makefile.am): Likewise.
17899         * modules/search (Makefile.am): Likewise.
17900         * modules/signal (Makefile.am): Likewise.
17901         * modules/spawn (Makefile.am): Likewise.
17902         * modules/stdio (Makefile.am): Likewise.
17903         * modules/stdlib (Makefile.am): Likewise.
17904         * modules/string (Makefile.am): Likewise.
17905         * modules/sys_ioctl (Makefile.am): Likewise.
17906         * modules/sys_select (Makefile.am): Likewise.
17907         * modules/sys_socket (Makefile.am): Likewise.
17908         * modules/sys_stat (Makefile.am): Likewise.
17909         * modules/sys_times (Makefile.am): Likewise.
17910         * modules/sys_utsname (Makefile.am): Likewise.
17911         * modules/sys_wait (Makefile.am): Likewise.
17912         * modules/termios (Makefile.am): Likewise.
17913         * modules/time (Makefile.am): Likewise.
17914         * modules/unistd (Makefile.am): Likewise.
17915         * modules/wchar (Makefile.am): Likewise.
17916
17917 2011-06-08  Eric Blake  <eblake@redhat.com>
17918
17919         strerror: simplify replacement
17920         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
17921         * modules/strerror (configure.ac): No prereqs needed here...
17922         * modules/strerror-override (configure.ac): ...but this needs it.
17923         (Files): Add file for needed prereq macro.
17924
17925 2011-06-08  Bruno Haible  <bruno@clisp.org>
17926
17927         strerror_r-posix: Tweaks.
17928         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
17929         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
17930         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
17931         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
17932         (gl_FUNC_STRERROR_R): ... to here.
17933         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
17934
17935 2011-06-07  Eric Blake  <eblake@redhat.com>
17936
17937         perror: document fixed bugs
17938         * doc/posix-functions/perror.texi (perror): Document recent
17939         patches.
17940
17941 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17942
17943         stat-time: get_stat_birthtime failure is better-defined
17944         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
17945         return a timestamp whose tv_sec and tv_nsec values are both -1.
17946         Previously, the spec said only that the tv_nsec value was negative.
17947         This upward-compatible change simplifies GNU tar a bit.
17948
17949 2011-06-07  Eric Blake  <eblake@redhat.com>
17950
17951         strerror_r-posix: work around cygwin 1.7.9
17952         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
17953         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
17954         bug without replacing strerror_r.
17955         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
17956         strerror_r is buggy, but without requiring strerror_r compilation.
17957         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
17958
17959         test-perror: relax test to ignore cygwin bug
17960         * tests/test-perror2.c (main): Relax test on requiring detection
17961         of stream errors, and use unbuffered stream.
17962         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
17963         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17964         * doc/posix-functions/fputc.texi (fputc): Likewise.
17965         * doc/posix-functions/fputs.texi (fputs): Likewise.
17966         * doc/posix-functions/fputws.texi (fputws): Likewise.
17967         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17968         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
17969         * doc/posix-functions/getopt.texi (getopt): Likewise.
17970         * doc/posix-functions/perror.texi (perror): Likewise.
17971         * doc/posix-functions/printf.texi (printf): Likewise.
17972         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
17973         * doc/posix-functions/psignal.texi (psignal): Likewise.
17974         * doc/posix-functions/putc.texi (putc): Likewise.
17975         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
17976         Likewise.
17977         * doc/posix-functions/putchar.texi (putchar): Likewise.
17978         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
17979         Likewise.
17980         * doc/posix-functions/puts.texi (puts): Likewise.
17981         * doc/posix-functions/putwc.texi (putwc): Likewise.
17982         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17983         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17984         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17985         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17986         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17987         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17988         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17989         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17990
17991 2011-05-22  Bruno Haible  <bruno@clisp.org>
17992
17993         strerror: Move AC_LIBOBJ invocations to module description.
17994         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
17995         gl_PREREQ_STRERROR invocations from here...
17996         * modules/strerror (configure.ac): ... to here.
17997
17998 2011-05-21  Bruno Haible  <bruno@clisp.org>
17999
18000         perror: Use common idiom.
18001         * modules/perror (configure.ac): Reorder statements.
18002
18003 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18004
18005         tests: fix usage message in 'mktempd_'
18006         * tests/init.sh (mktempd_): In the usage message, use literal
18007         'mktempd_', not '$ME' (which is even undefined), as the name of
18008         the subroutine.
18009
18010 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18011
18012         tests init: new function 'fatal_', for hard errors
18013         Before this patch, the only way offered by tests/init.sh to
18014         properly signal a hard error was the `framework_failure_'
18015         function.  But the error message issued by that function,
18016         as its name would suggest, refers to a set-up failure in the
18017         testsuite, while hard errors can obviously also be due to
18018         other reasons.  The best way to fix this inconsistency is to
18019         introduce a new function with a more general error message.
18020         * tests/init.sh (fatal_): New function.
18021
18022 2011-06-06  Eric Blake  <eblake@redhat.com>
18023
18024         canonicalize-lgpl: use common idiom
18025         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18026         over newer POSIX -Rf.
18027         Reported by Bruno Haible.
18028
18029         canonicalize-lgpl: work around AIX realpath bug
18030         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18031         * doc/posix-functions/realpath.texi (realpath): Document it.
18032         Reported by Bruno Haible.
18033
18034         strerror: work around FreeBSD bug
18035         * lib/strerror.c (strerror): Special case 0.
18036         Reported by Bruno Haible.
18037
18038         strerror-override: avoid bloating errno module
18039         * modules/errno (Files, configure.ac): Move replacement strings...
18040         * modules/strerror-override: ...to new module.
18041         * modules/strerror (Depends-on): Add strerror-override.
18042         * modules/strerror_r-posix (Depends-on): Likewise.
18043         * MODULES.html.sh: Document new module.
18044         Reported by Bruno Haible.
18045
18046 2011-06-06  Bruno Haible  <bruno@clisp.org>
18047
18048         spawn-pipe tests: Rename program.
18049         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18050         * tests/test-spawn-pipe-child.c: Update comment.
18051         * tests/test-spawn-pipe.sh: Update.
18052         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18053
18054         spawn-pipe tests: Link the child program only against libc.
18055         * tests/test-spawn-pipe-child.c: New file, extracted from
18056         tests/test-spawn-pipe.c.
18057         (main): Expect only one argument.
18058         (is_open): New function, copied from tests/test-pipe.c.
18059         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18060         (child_main): Remove function.
18061         (test_pipe): Pass only one argument to the child program.
18062         (main): Remove child process code. Expect the child program's name as
18063         first argument.
18064         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18065         argument.
18066         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18067         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18068         test-spawn-pipe-child against no libraries.
18069
18070 2011-06-06  Bruno Haible  <bruno@clisp.org>
18071
18072         careadlinkat: Avoid mismatch between ssize_t and int.
18073         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18074         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18075
18076 2011-06-06  Jim Meyering  <meyering@redhat.com>
18077
18078         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18079         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18080         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18081
18082 2011-06-05  Bruno Haible  <bruno@clisp.org>
18083
18084         ansi-c++-opt: Interoperability with libtool.
18085         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18086         set the variable to "no", not to ":".
18087         * NEWS: Mention the change.
18088
18089 2011-06-05  Bruno Haible  <bruno@clisp.org>
18090
18091         acl: Fix test failure on AIX 7.
18092         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18093         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18094
18095 2011-06-05  Bruno Haible  <bruno@clisp.org>
18096
18097         pipe-filter-ii: Fix test failure on AIX and IRIX.
18098         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18099         with EAGAIN, retry with a smaller buffer size.
18100
18101 2011-06-05  Bruno Haible  <bruno@clisp.org>
18102
18103         localename: Fix link dependencies.
18104         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18105         * modules/localename-tests (Makefile.am): Link test-localename with
18106         $(LIBTHREAD).
18107
18108 2011-06-05  Bruno Haible  <bruno@clisp.org>
18109
18110         error: Avoid gcc warning.
18111         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18112
18113 2011-06-05  Bruno Haible  <bruno@clisp.org>
18114
18115         unsetenv: Avoid gcc warning.
18116         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18117
18118 2011-06-05  Bruno Haible  <bruno@clisp.org>
18119
18120         setenv: Avoid gcc warning.
18121         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18122
18123 2011-06-05  Bruno Haible  <bruno@clisp.org>
18124
18125         sys_select: Ensure memset is declared also on AIX 7.
18126         * lib/sys_select.in.h: Include <string.h> also on AIX.
18127         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18128         self-contained also on AIX 7.1.
18129
18130 2011-06-04  Jim Meyering  <meyering@redhat.com>
18131
18132         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18133         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18134         function name, "error".
18135         (_gl_translatable_diag_func_re): New configurable variable.
18136
18137 2011-06-04  Bruno Haible  <bruno@clisp.org>
18138
18139         getopt: Avoid gcc warning.
18140         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18141
18142 2011-06-04  Bruno Haible  <bruno@clisp.org>
18143
18144         strerror_r: Fix comments.
18145         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18146         commit.
18147
18148 2011-06-04  Bruno Haible  <bruno@clisp.org>
18149
18150         perror: Fix compilation error.
18151         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18152         Undefine fprintf, not sprintf.
18153         * modules/perror (Depends-on): Remove intprops, verify.
18154
18155 2011-06-04  Bruno Haible  <bruno@clisp.org>
18156
18157         setlocale: Enable replacement on Cygwin 1.5.
18158         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18159         Cygwin 1.5.x.
18160         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18161         LC_CTYPE category also exists on Cygwin 1.5.x.
18162
18163 2011-06-04  Bruno Haible  <bruno@clisp.org>
18164
18165         strerror-override: Don't disable symbol renamings.
18166         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18167         * lib/strerror-override.c: Include config.h.
18168         (strerror_override): Don't undefine.
18169
18170 2011-06-03  Bruno Haible  <bruno@clisp.org>
18171
18172         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18173         * lib/localename.h: Update copyright header.
18174         * lib/localename.c: Likewise.
18175         * lib/relocatable.h: Likewise.
18176         * lib/relocatable.c: Likewise.
18177
18178 2011-06-02  Bruno Haible  <bruno@clisp.org>
18179
18180         doc: Fix a module name.
18181         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18182
18183 2011-06-02  Bruno Haible  <bruno@clisp.org>
18184
18185         pipe2: Remove dependency on 'nonblocking' module.
18186         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18187         O_NONBLOCK is defined by gnulib.
18188         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18189         is zero.
18190         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18191         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18192         defined by gnulib.
18193         (get_nonblocking_flag): New function.
18194         (main): Test O_NONBLOCK flag only if it is nonzero.
18195         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18196
18197 2011-06-03  Jim Meyering  <meyering@redhat.com>
18198
18199         maint: three new prohibit-header-without-use rules
18200         Prohibit use of cloexec.h, posixver.h, same.h without use.
18201         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18202         (sc_prohibit_posixver_without_use): Likewise.
18203         (sc_prohibit_same_without_use): Likewise.
18204
18205 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18206
18207         allocator: 'die' routine is now given requested size
18208         * lib/allocator.h (struct allocator.die): New size arg.
18209         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18210         If the actual problem is an ssize_t limitation, not a size_t or
18211         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18212
18213 2011-06-01  Eric Blake  <eblake@redhat.com>
18214
18215         strerror: drop strerror_r dependency
18216         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18217         * lib/strerror-override.c (strerror_override): ...to new file.
18218         * lib/strerror-override.h: Add prototype.
18219         * lib/strerror-impl.h: Delete.
18220         * lib/strerror.c (strerror): New implementation.
18221         * modules/errno (Files): Add new files.
18222         (configure.ac): Compile new file as appropriate.
18223         * modules/strerror (Files): Drop unused file.
18224         (Depends-on): Drop strerror_r-posix.
18225         * MODULES.html.sh: Document strerror_r-posix.
18226         Requested by Sam Steingold.
18227
18228         perror: call strerror_r directly
18229         * modules/perror (Files): Drop strerror-impl.h.
18230         * lib/perror.c (perror): Use our own stack buffer, rather than
18231         calling a wrapper that uses static storage.
18232         * doc/posix-functions/perror.texi (perror): Document a limitation
18233         of our replacement.
18234
18235         strerror_r: fix includes for FreeBSD
18236         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18237         since we use abort on some platforms.
18238         Reported by Matthias Bolte.
18239
18240 2011-05-31  Bruno Haible  <bruno@clisp.org>
18241
18242         Fix link errors in tests: openat-die uses gettext-h.
18243         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18244         against $(LIBINTL).
18245         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18246         against $(LIBINTL).
18247         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18248         $(LIBINTL).
18249         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18250         against $(LIBINTL).
18251         * modules/linkat-tests (Makefile.am): Link test-linkat against
18252         $(LIBINTL).
18253         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18254         $(LIBINTL).
18255         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18256         against $(LIBINTL).
18257         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18258         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18259         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18260         $(LIBINTL).
18261         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18262         $(LIBINTL).
18263         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18264         $(LIBINTL).
18265         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18266
18267 2011-05-31  Bruno Haible  <bruno@clisp.org>
18268
18269         Fix link errors in tests: wait-process uses gettext-h.
18270         * modules/nonblocking-pipe-tests (Makefile.am): Set
18271         test_nonblocking_pipe_main_LDADD.
18272         * modules/nonblocking-socket-tests (Makefile.am): Link
18273         test-nonblocking-socket-main against $(LIBINTL).
18274         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18275
18276 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18277
18278         assert-h: work around 'verify' incompatibility
18279         * lib/verify.h: Use @...@ directives, not ifdef.
18280         * modules/assert-h (assert.h): Implement the directives.
18281         (assert.h): Substitute the symbol-prefix more consistently.
18282
18283 2011-05-29  Jim Meyering  <meyering@redhat.com>
18284
18285         trim: remove three superfluous assignments
18286         * lib/trim.c (trim2): Remove three superfluous assignments
18287         and correct brace positioning.
18288
18289 2011-05-29  Bruno Haible  <bruno@clisp.org>
18290
18291         wctype-h: Avoid namespace pollution on Solaris 2.6.
18292         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18293         identifiers.
18294         * doc/posix-headers/wctype.texi: Mention the problem.
18295         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18296
18297 2011-05-28  Jim Meyering  <meyering@redhat.com>
18298
18299         parse-datetime.y: accommodate -Wstrict-overflow
18300         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18301         placate -Wstrict-overflow.
18302
18303         trim: avoid a warning from -O2 -Wstrict-overflow
18304         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18305
18306 2011-05-29  Bruno Haible  <bruno@clisp.org>
18307
18308         gnulib-tool: Fix bug in yesterday's commit.
18309         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18310         twice.
18311
18312 2011-05-29  Bruno Haible  <bruno@clisp.org>
18313
18314         Allow multiple gnulib generated include files to be combined.
18315         * gnulib-tool (func_compute_include_guard_prefix): New function.
18316         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18317         ${gl_include_guard_prefix} references.
18318         (func_import, func_create_testdir): Invoke
18319         func_compute_include_guard_prefix.
18320         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18321         * lib/ctype.in.h: Likewise.
18322         * lib/dirent.in.h: Likewise.
18323         * lib/errno.in.h: Likewise.
18324         * lib/fcntl.in.h: Likewise.
18325         * lib/float.in.h: Likewise.
18326         * lib/getopt.in.h: Likewise.
18327         * lib/iconv.in.h: Likewise.
18328         * lib/langinfo.in.h: Likewise.
18329         * lib/locale.in.h: Likewise.
18330         * lib/math.in.h: Likewise.
18331         * lib/netdb.in.h: Likewise.
18332         * lib/netinet_in.in.h: Likewise.
18333         * lib/poll.in.h: Likewise.
18334         * lib/pthread.in.h: Likewise.
18335         * lib/pty.in.h: Likewise.
18336         * lib/sched.in.h: Likewise.
18337         * lib/se-selinux.in.h: Likewise.
18338         * lib/search.in.h: Likewise.
18339         * lib/signal.in.h: Likewise.
18340         * lib/spawn.in.h: Likewise.
18341         * lib/stdarg.in.h: Likewise.
18342         * lib/stddef.in.h: Likewise.
18343         * lib/stdint.in.h: Likewise.
18344         * lib/stdio.in.h: Likewise.
18345         * lib/stdlib.in.h: Likewise.
18346         * lib/string.in.h: Likewise.
18347         * lib/strings.in.h: Likewise.
18348         * lib/sys_file.in.h: Likewise.
18349         * lib/sys_ioctl.in.h: Likewise.
18350         * lib/sys_select.in.h: Likewise.
18351         * lib/sys_socket.in.h: Likewise.
18352         * lib/sys_stat.in.h: Likewise.
18353         * lib/sys_time.in.h: Likewise.
18354         * lib/sys_times.in.h: Likewise.
18355         * lib/sys_uio.in.h: Likewise.
18356         * lib/sys_utsname.in.h: Likewise.
18357         * lib/sys_wait.in.h: Likewise.
18358         * lib/sysexits.in.h: Likewise.
18359         * lib/termios.in.h: Likewise.
18360         * lib/time.in.h: Likewise.
18361         * lib/unistd.in.h: Likewise.
18362         * lib/wchar.in.h: Likewise.
18363         * lib/wctype.in.h: Likewise.
18364         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18365         * modules/ctype (Makefile.am): Likewise.
18366         * modules/dirent (Makefile.am): Likewise.
18367         * modules/errno (Makefile.am): Likewise.
18368         * modules/fcntl-h (Makefile.am): Likewise.
18369         * modules/float (Makefile.am): Likewise.
18370         * modules/getopt-posix (Makefile.am): Likewise.
18371         * modules/iconv-h (Makefile.am): Likewise.
18372         * modules/langinfo (Makefile.am): Likewise.
18373         * modules/locale (Makefile.am): Likewise.
18374         * modules/math (Makefile.am): Likewise.
18375         * modules/netdb (Makefile.am): Likewise.
18376         * modules/netinet_in (Makefile.am): Likewise.
18377         * modules/poll-h (Makefile.am): Likewise.
18378         * modules/pthread (Makefile.am): Likewise.
18379         * modules/pty (Makefile.am): Likewise.
18380         * modules/sched (Makefile.am): Likewise.
18381         * modules/search (Makefile.am): Likewise.
18382         * modules/selinux-h (Makefile.am): Likewise.
18383         * modules/signal (Makefile.am): Likewise.
18384         * modules/spawn (Makefile.am): Likewise.
18385         * modules/stdarg (Makefile.am): Likewise.
18386         * modules/stddef (Makefile.am): Likewise.
18387         * modules/stdint (Makefile.am): Likewise.
18388         * modules/stdio (Makefile.am): Likewise.
18389         * modules/stdlib (Makefile.am): Likewise.
18390         * modules/string (Makefile.am): Likewise.
18391         * modules/strings (Makefile.am): Likewise.
18392         * modules/sys_file (Makefile.am): Likewise.
18393         * modules/sys_ioctl (Makefile.am): Likewise.
18394         * modules/sys_select (Makefile.am): Likewise.
18395         * modules/sys_socket (Makefile.am): Likewise.
18396         * modules/sys_stat (Makefile.am): Likewise.
18397         * modules/sys_time (Makefile.am): Likewise.
18398         * modules/sys_times (Makefile.am): Likewise.
18399         * modules/sys_uio (Makefile.am): Likewise.
18400         * modules/sys_utsname (Makefile.am): Likewise.
18401         * modules/sys_wait (Makefile.am): Likewise.
18402         * modules/sysexits (Makefile.am): Likewise.
18403         * modules/termios (Makefile.am): Likewise.
18404         * modules/time (Makefile.am): Likewise.
18405         * modules/unistd (Makefile.am): Likewise.
18406         * modules/wchar (Makefile.am): Likewise.
18407         * modules/wctype-h (Makefile.am): Likewise.
18408         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18409
18410 2011-05-29  Bruno Haible  <bruno@clisp.org>
18411
18412         assert-h: Allow multiple gnulib generated replacements to coexist.
18413         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18414
18415 2011-05-29  Bruno Haible  <bruno@clisp.org>
18416
18417         argp: Allow coexistence with strerror_r-posix module.
18418         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18419         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18420         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18421         not the glibc signature.
18422
18423 2011-05-28  Bruno Haible  <bruno@clisp.org>
18424
18425         gnulib-tool: Alternative structure of testdirs, similar to --import.
18426         * gnulib-tool: New option --single-configure.
18427         (func_usage): Document it.
18428         (single_configure): New variable.
18429         (func_modules_transitive_closure_separately,
18430         func_modules_transitive_closure_separately,
18431         func_determine_use_libtests, func_modules_add_dummy_separately,
18432         func_modules_to_filelist_separately): New functions, extracted from
18433         func_import.
18434         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18435         (func_import): Use the new functions.
18436         (func_create_testdir): Set final_modules. Handle $single_configure =
18437         true case.
18438
18439 2011-05-28  Bruno Haible  <bruno@clisp.org>
18440
18441         getloadavg: Remove an unreliable safety check.
18442         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18443         getloadavg.c is in place.
18444         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18445         Reported by Sam Steingold <sds@gnu.org>.
18446
18447 2011-05-28  Bruno Haible  <bruno@clisp.org>
18448
18449         doc: Cleanup yet another file produced by texinfo.tex.
18450         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18451
18452 2011-05-28  Bruno Haible  <bruno@clisp.org>
18453
18454         Finish the conditional dependencies mechanism.
18455         * gnulib-tool: New option --no-conditional-dependencies.
18456         (func_usage): Document it. Don't mark --conditional-dependencies as
18457         experimental.
18458         (cond_dependencies): The possible values can now be true, false, empty.
18459         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18460         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18461         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18462
18463 2011-05-28  Bruno Haible  <bruno@clisp.org>
18464
18465         doc: Use a recent texinfo.tex.
18466         * doc/Makefile (tex_opts): New variable.
18467         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18468
18469 2011-05-28  Jim Meyering  <meyering@redhat.com>
18470
18471         intprops.h: adjust comment to match code change
18472         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18473         only once, it *may* have side effects.  Also fix an unrelated typo.
18474         (_GL_INT_SIGNED): Likewise.
18475
18476 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18477
18478         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18479
18480 2011-05-26  Bruno Haible  <bruno@clisp.org>
18481
18482         mbsrchr: Avoid collision with system function on Interix.
18483         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18484         Reported by Markus Duft <mduft@gentoo.org>.
18485
18486 2011-05-15  James Youngman  <jay@gnu.org>
18487
18488         getopt: for ambiguous options, enumerate the possibilities.
18489         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18490         the ambiguous options when an ambiguous prefix is given. This was
18491         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18492         glibc change was
18493         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18494
18495 2011-05-25  Eric Blake  <eblake@redhat.com>
18496
18497         getcwd: work around mingw bug
18498         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18499         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18500         Reported by Matthias Bolte.
18501
18502 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18503
18504         test-intprops: disable -Wtype-limits diagnostics
18505         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18506         diagnostics.  Otherwise, the integer overflow macros generate many
18507         diagnostics.  Reported by Jim Meyering in
18508         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18509
18510         intprops: shorten, to pacify gcc -Woverlength-strings
18511         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18512         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18513         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18514         likely to run afoul of C compiler limits for string constant lengths.
18515         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18516
18517 2011-05-24  Eric Blake  <eblake@redhat.com>
18518
18519         docs: document recently fixed glibc printf bug
18520         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18521         * doc/posix-functions/printf.texi (printf): Likewise.
18522         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18523         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18524
18525         closein-tests: convert to init.sh
18526         * modules/closein-tests (Files): Add init.sh
18527         * tests/test-closein.sh Use it.
18528
18529         yesno-tests: convert to init.sh
18530         * modules/yesno-tests (Files): Add init.sh.
18531         * tests/test-yesno.sh: Use it.
18532
18533         atexit-tests: ensure reliable exit status
18534         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18535         Reported by Bruno Haible.
18536
18537 2011-05-24  Bruno Haible  <bruno@clisp.org>
18538
18539         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18540         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18541         gl_PREREQ_STRERROR_R invocations from here...
18542         * modules/strerror_r-posix (configure.ac): ... to here.
18543
18544 2011-05-24  Eric Blake  <eblake@redhat.com>
18545
18546         strerror_r: fix missing header
18547         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18548
18549         strerror_r: fix AIX test failures
18550         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18551         ERANGE failure.
18552
18553         strerror_r: fix Solaris test failures
18554         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18555         failures.
18556         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18557
18558         strerror_r: enforce POSIX recommendations
18559         * lib/strerror_r.c (safe_copy): New helper method.
18560         (strerror_r): Guarantee a non-empty string.
18561         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18562         recent POSIX rulings and to match our strerror guarantees.
18563         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18564
18565 2011-05-24  Jim Meyering  <meyering@redhat.com>
18566
18567         test-perror2.c: avoid warning about unused variable
18568         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18569
18570 2011-05-24  Eric Blake  <eblake@redhat.com>
18571
18572         perror: avoid spurious test failure on HP-UX
18573         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18574
18575         tests: fix logic bug in init.sh
18576         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18577         shell.
18578
18579 2011-05-24  Jim Meyering  <meyering@redhat.com>
18580
18581         utimensat: do not reference an out-of-scope buffer
18582         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18583         declared in an inner scope, yet "times" would be dereferenced outside
18584         the scope in which "ts" was valid.
18585         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
18586         of ts[2] "out/up", so that the use of aliased "times" (via
18587         "times = ts;") does not end up referencing an out-of-scope "ts"
18588
18589         opendir-safer.c: don't clobber errno; don't close negative FD
18590         * lib/opendir-safer.c (opendir_safer):
18591         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
18592         file descriptor, and more importantly, don't clobber the
18593         offending errno value with EINVAL.  Before, upon failure
18594         of dup_safer, we would pass the negative file descriptor to
18595         fdopendir, which would clobber errno.
18596
18597 2011-05-23  Bruno Haible  <bruno@clisp.org>
18598
18599         idcache: Fix module description.
18600         * modules/idcache (Include): Set to "idcache.h".
18601
18602 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18603
18604         gnulib-tool: fix portability problem with MacOS sed
18605         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
18606         before the "}".  Problem reported by Leo in
18607         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
18608         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
18609         sed_extract_condition1, sed_extract_condition2.
18610
18611 2011-05-23  Bruno Haible  <bruno@clisp.org>
18612
18613         hash: Simplify autoconf macro.
18614         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
18615
18616 2011-05-23  Bruno Haible  <bruno@clisp.org>
18617
18618         getugroups: Fix module description.
18619         * modules/getugroups (Include): Set to "getugroups.h".
18620
18621 2011-05-23  Bruno Haible  <bruno@clisp.org>
18622
18623         linkat: Simplify autoconf macro.
18624         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
18625
18626 2011-05-23  Bruno Haible  <bruno@clisp.org>
18627             Eric Blake  <eblake@redhat.com>
18628
18629         linkat, renameat: Update dependencies.
18630         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
18631         * modules/linkat (Depends-on): Likewise. Remove also readlink,
18632         symlinkat.
18633
18634 2011-05-23  Jim Meyering  <meyering@redhat.com>
18635
18636         maint.mk: more tight_scope improvements
18637         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
18638         (_gl_TS_headers): Define only in if-0'd block.
18639         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
18640         sometimes we must *not* use it.  Adjust uses accordingly.
18641         (sc_tight_scope): Use much simpler grep-based test to determine
18642         whether we skip this rule.
18643
18644         maint.mk: generalize/improve the tight-scope rule
18645         * top/maint.mk: Emit a warning when the test is skipped.
18646         (_gl_TS_dir): Add $(srcdir)/ prefix.
18647         (_gl_TS_function_match): Simplify, rather than trying
18648         to enumerate common types.  Otherwise, it would fail to match an
18649         "extern unsigned char const *" declaration in idutils.
18650         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
18651         a way to support use of that type of macro.
18652         (_gl_TS_var_match): Simplify regexp.
18653         (_gl_TS_obj_files): New configurable variable.
18654         (_gl_TS_headers): Likewise.
18655
18656 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18657
18658         verify: fix bug when gnulib <assert.h> is also included
18659         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
18660         is defined, not if _GL_STATIC_ASSERT_H is not defined.
18661         Perhaps there's a better way, but this fixes the immediate problem.
18662         Problem reported by Bruno Haible in
18663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
18664
18665 2011-05-22  Bruno Haible  <bruno@clisp.org>
18666
18667         xgetcwd: Simplify autoconf macro.
18668         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
18669
18670 2011-05-22  Bruno Haible  <bruno@clisp.org>
18671
18672         New module 'mktime-internal'.
18673         * modules/mktime-internal: New file.
18674         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
18675         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
18676         mktime_internal as a C macro if libc has __mktime_internal.
18677         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
18678         conditions.
18679         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
18680
18681 2011-05-22  Bruno Haible  <bruno@clisp.org>
18682
18683         timegm: Correct mktime replacement statements.
18684         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
18685         defining mktime as a C macro. This completes a 2009-07-28 commit.
18686
18687 2011-05-22  Bruno Haible  <bruno@clisp.org>
18688
18689         timegm: Simplify autoconf macro.
18690         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
18691
18692 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18693
18694         clock-time: change to LGPLv2+.
18695         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
18696         BSD-like but we have no mark for that; this is good enough for now.
18697
18698 2011-05-21  Bruno Haible  <bruno@clisp.org>
18699
18700         strerror_r: Fix comments.
18701         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
18702
18703 2011-05-21  Bruno Haible  <bruno@clisp.org>
18704
18705         relocatable-prog-wrapper: Fix possible link error.
18706         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
18707         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
18708         (gl_FUNC_SETENV): ... to here.
18709         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
18710         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
18711
18712 2011-05-21  Bruno Haible  <bruno@clisp.org>
18713
18714         relocatable-prog-wrapper: Assume strerror() exists.
18715         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
18716         m4/strerror.m4.
18717         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
18718         * lib/relocwrapper.c: Remove mention of strerror module.
18719         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
18720         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
18721         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
18722         C macro.
18723
18724 2011-05-21  Bruno Haible  <bruno@clisp.org>
18725
18726         select: Simplify replacement idiom.
18727         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
18728         Win32 platforms.
18729         * lib/sys_select.in.h (select): Simplify accordingly.
18730         * modules/select (Depends-on): Likewise.
18731
18732 2011-05-21  Bruno Haible  <bruno@clisp.org>
18733
18734         mkdir-p: Simplify autoconf macro.
18735         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
18736         gl_FUNC_LCHOWN.
18737
18738 2011-05-21  Eric Blake  <eblake@redhat.com>
18739
18740         strerror_r: avoid clobbering strerror on cygwin
18741         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
18742         fall back instead to sys_errlist.
18743         * modules/strerror (configure.ac): Add witness.
18744         * tests/test-strerror_r.c (main): Enhance test.
18745         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18746         * tests/test-perror2.c (main): Free memory before exit.
18747
18748 2011-05-21  Bruno Haible  <bruno@clisp.org>
18749
18750         mkdtemp: Use gnulib naming conventions.
18751         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
18752         * modules/mkdtemp (configure.ac): Update.
18753
18754 2011-05-20  Eric Blake  <eblake@redhat.com>
18755
18756         strerror_r: avoid corrupting errno on Solaris
18757         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
18758         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18759
18760         strerror_r: avoid compiler warning
18761         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
18762
18763         strerror_r: simplify AIX code
18764         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
18765
18766         test-perror: avoid spurious failure on FreeBSD
18767         * modules/perror-tests (Depends-on): Add strerror, now that
18768         strerror_r no longer pulls it in.
18769
18770 2011-05-20  Bruno Haible  <bruno@clisp.org>
18771
18772         strerror_r-posix: Remove unused dependencies.
18773         * modules/strerror_r-posix (Depends-on): Remove strerror.
18774         Reported by Eric Blake.
18775
18776 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18777
18778         intprops: remove assumption about A|B representation
18779         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
18780         is a valid integer if both A and B are.  Although this is true for
18781         all known practical hosts, the C standard doesn't guarantee it,
18782         and the code need not assume it.  Also, this change may work around
18783         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
18784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
18785
18786 2011-05-20  Eric Blake  <eblake@redhat.com>
18787
18788         perror: work around FreeBSD bug
18789         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
18790         is broken.  Move AC_LIBOBJ...
18791         * modules/perror (configure.ac): Here.
18792         * doc/posix-functions/perror.texi (perror): Document this.
18793         * tests/test-perror2.c (main): Enhance test.
18794
18795         test-perror: check for strerror interactions
18796         * tests/macros.h (STREQ): Add macro.
18797         * modules/perror-tests (Files): Add second test.
18798         * tests/test-perror2.c (main): New file.
18799         * doc/posix-functions/perror.texi (perror): Document glibc bug.
18800
18801         test-perror: rewrite to use init script
18802         * modules/perror-tests (Files): Add init.sh.
18803         * tests/test-perror.sh: Use temporary directory.
18804
18805 2011-05-20  Jim Meyering  <meyering@redhat.com>
18806
18807         maint: replace misused "a" with "an"
18808         * doc/intprops.texi: "a integer"
18809         * doc/regex.texi: "a explanation"
18810         * lib/alignof.h: "a object"
18811         * lib/argmatch.h: "a explanation"
18812         * lib/argp-help.c: "a option" and "a OPTION_DOC"
18813         * lib/stdint.in.h: "a integer"
18814         * lib/userspec.c: "a owner"
18815         * doc/gnulib.texi: Fix "a idea", and reword.
18816
18817 2011-05-19  Jim Meyering  <meyering@redhat.com>
18818
18819         maint: correct misuse of "a" and "an"
18820         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
18821         * lib/argp-help.c: "an docum...": s/an/a/
18822         * lib/argp-parse.c: "An vector": s/An/A/
18823         * lib/execute.c: "an native": s/an/a/
18824         * lib/spawn-pipe.c: Likewise.
18825         * lib/gc.h: "an Gc_rc": s/an/a/
18826         * lib/unigbrk.in.h: "an grapheme": s/an/a/
18827         * lib/fts.c: "an stat.st_dev": s/an/a/
18828
18829 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18830
18831         intprops-tests: work around HP-UX 11.23 cc bug with constants
18832         * tests/test-intprops.c (VERIFY): New macro.
18833         (main): Use it, instead of verify, to work around the compiler bug; see
18834         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18835
18836         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
18837         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
18838         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
18839         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
18840         (_GL_REMAINDER_OVERFLOW): Use it.
18841
18842         intprops-tests: revert unsigned part of previous change
18843         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
18844         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
18845         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
18846         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
18847
18848 2011-05-19  Bruno Haible  <bruno@clisp.org>
18849
18850         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
18851         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
18852         strerror_r() returned without filling the buffer.
18853         Reported by Eric Blake.
18854
18855 2011-05-19  Eric Blake  <eblake@redhat.com>
18856
18857         strerror_r: guarantee unchanged errno
18858         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
18859         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
18860         failure.
18861         * tests/test-strerror_r.c (main): Enhance test.
18862
18863 2011-05-19  Bruno Haible  <bruno@clisp.org>
18864
18865         strerror_r: Reorder #if blocks.
18866         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
18867         for consistency with the previous commit.
18868
18869 2011-05-19  Bruno Haible  <bruno@clisp.org>
18870
18871         perror: Avoid clobbering the strerror buffer when possible.
18872         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
18873         * lib/strerror.c: Include it.
18874         * modules/strerror (Files): Add lib/strerror-impl.h.
18875         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
18876         (my_strerror): New function, defined through lib/strerror-impl.h.
18877         (perror): Use it instead of strerror.
18878         * modules/perror (Files): Add lib/strerror-impl.h.
18879         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
18880
18881 2011-05-19  Eric Blake  <eblake@redhat.com>
18882
18883         strerror_r: fix on newer cygwin
18884         * lib/strerror_r.c (strerror_r): Cygwin now has
18885         __xpg_strerror_r, use it.
18886
18887 2011-05-19  Bruno Haible  <bruno@clisp.org>
18888
18889         strerror_r: Avoid clobbering the strerror buffer when possible.
18890         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
18891         (sys_nerr, sys_errlist): New declarations.
18892         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
18893         HP-UX, native Win32, IRIX, and 32-bit Solaris.
18894         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
18895
18896 2011-05-19  Bruno Haible  <bruno@clisp.org>
18897
18898         strerror_r: Fix test failure on mingw.
18899         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
18900         EXTEND_STRERROR_R.
18901         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
18902         macros from errno.in.h instead.
18903
18904 2011-05-19  Eric Blake  <eblake@redhat.com>
18905
18906         strerror: relax test for Solaris
18907         * tests/test-strerror.c (main): Permit Solaris behavior.
18908         * tests/test-strerror_r.c (main): Likewise.
18909
18910         strerror: enforce POSIX ruling on strerror(0)
18911         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
18912         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18913         * lib/strerror_r.c (rpl_strerror_r): Work around it.
18914         * doc/posix-functions/strerror.texi (strerror): Document it.
18915         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
18916         * tests/test-strerror.c (main): Strengthen test.
18917         * tests/test-strerror_r.c (main): Likewise.
18918
18919 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18920
18921         intprop-tests: port to older and more-pedantic compilers
18922         * modules/intprops-tests (Files): Add tests/macros.h.
18923         * tests/test-intprops.c: Include macros.h.
18924         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
18925         it's no longer documented to expand to an integer constant expression.
18926         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
18927         argument is floating point, as it's no longer documented to expand
18928         to an integer constant expression in that case.
18929         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
18930         compiler bugs reported by Bruno Haible.  See
18931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18932         (U0, U1): New constants, to work around the same bugs.  Also,
18933         in tests, use e.g., "(unsigned int) 39" rather than "39u".
18934
18935         intprops: work around C compiler bugs
18936         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
18937         bug in Sun C 5.11 2010/08/13 and other compilers; see
18938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18939
18940         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
18941         * doc/intprops.texi (Integer Type Determination): Fix
18942         documentation for TYPE_IS_INTEGER: it returns an constant
18943         expression, not an integer constant expression.  Fix doc for
18944         TYPE_SIGNED: it returns an integer constant expression only if its
18945         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
18946         hardly worth documented that way....)
18947
18948 2011-05-18  Bruno Haible  <bruno@clisp.org>
18949
18950         strerror_r: Avoid clobbering the strerror buffer when possible.
18951         * lib/strerror_r.c (strerror_r): Merge the three implementations.
18952         Handle gnulib defined errno values here. When strerror() returns NULL
18953         or an empty string, return EINVAL.
18954         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
18955         gnulib defined errno values here.
18956         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
18957
18958 2011-05-18  Eric Blake  <eblake@redhat.com>
18959
18960         fnmatch: avoid compiler warning
18961         * lib/fnmatch_loop.c (FCT): Use correct type.
18962         Reported by Matthias Bolte.
18963
18964 2011-05-13  Jim Meyering  <meyering@redhat.com>
18965
18966         maint.mk: three new prohibit_<HDR>_without_use rules
18967         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
18968         (sc_prohibit_stdio-safer_without_use): Likewise.
18969         (sc_prohibit_xfreopen_without_use): Likewise.
18970
18971 2011-05-17  Jim Meyering  <meyering@redhat.com>
18972
18973         announce-gen: fail if the NEWS delta is empty
18974         If there's nothing noteworthy in NEWS, then either you forgot
18975         or you shouldn't be releasing.
18976         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
18977
18978 2011-05-17  Pádraig Brady <P@draigBrady.com>
18979
18980         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
18981         reserved symbols starting with double underscore from the check.
18982
18983 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
18984
18985         intprops: add doc
18986         * doc/intprops.texi: New file, documenting intprops.
18987         * doc/gnulib.texi (Particular Modules): Include it.
18988
18989         verify: add doc to gnulib manual and fix example
18990         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
18991         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
18992         (Compile-time Assertions): Fix example so it can't overflow.
18993
18994 2011-05-17  Jim Meyering  <meyering@redhat.com>
18995
18996         warnings.m4: don't usurp save_CPPFLAGS variable name
18997         * m4/warnings.m4: Prefix local temporary variable name with gl_.
18998
18999         doc: fix typo
19000         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19001
19002 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19003             Bruno Haible  <bruno@clisp.org>
19004
19005         doc: Tweak recent change.
19006         * README (Portability guidelines): Tweak new text.
19007         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19008         Interix 6.1.
19009
19010 2011-05-16  Eric Blake  <eblake@redhat.com>
19011
19012         inttypes: avoid autoconf warning
19013         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19014         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19015
19016 2011-05-16  Sam Steingold <sds@gnu.org>
19017         and Eric Blake  <eblake@redhat.com>
19018
19019         vc-list-files: accept multiple directory operands
19020         * build-aux/vc-list-files: Iterate over all remaining operands.
19021
19022 2011-05-16  Bruno Haible  <bruno@clisp.org>
19023
19024         Fix confusion regarding deprecated modules.
19025         * modules/calloc (Status, Notice): Mark module as deprecated, not
19026         obsolete.
19027         * modules/fnmatch-posix (Status, Notice): Likewise.
19028         * modules/getdate (Status, Notice): Likewise.
19029         * modules/getopt (Status, Notice): Likewise.
19030         * modules/malloc (Status, Notice): Likewise.
19031         * modules/pipe (Status, Notice): Likewise.
19032         * modules/realloc (Status, Notice): Likewise.
19033         * modules/rename-dest-slash (Status, Notice): Likewise.
19034         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19035         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19036         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19037         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19038         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19039
19040 2011-05-16  Bruno Haible  <bruno@clisp.org>
19041
19042         doc: List the target platforms.
19043         * doc/gnulib-intro.texi (Target Platforms): New section.
19044         * doc/gnulib.texi (Introduction): Update menu.
19045         * README (Portability guidelines): Refer to the new section. Update
19046         statement about oldest supported environment. Remove rationale why
19047         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19048         unportable C89 function.
19049         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19050         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19051
19052 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19053
19054         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19055
19056 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19057
19058         intprops-tests: new module
19059         * modules/intprops-tests, tests/test-intprops.c: New files.
19060
19061         intprops: add safe, portable integer overflow checking
19062         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19063         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19064         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19065         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19066         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19067         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19068         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19069         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19070         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19071         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19072         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19073
19074 2011-05-12  James Youngman  <jay@gnu.org>
19075
19076         Add a test for glibc's Bugzilla bug #12378.
19077         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19078         doesn't allow the literal matching of a lone "[" (which is
19079         required by POSIX).
19080         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19081
19082 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19083
19084         Sync glibc change fixing Bugzilla bug #12378.
19085         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19086         beginning and fall back to matching as normal character if the
19087         string ends before the matching ']' is found.  This is what POSIX
19088         requires.
19089
19090 2011-05-13  Eric Blake  <eblake@redhat.com>
19091
19092         getcwd-lgpl: relax test for FreeBSD
19093         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19094         issue.
19095         * tests/test-getcwd-lgpl.c (main): Relax test.
19096         Reported by Matthias Bolte.
19097
19098 2011-05-11  Eric Blake  <eblake@redhat.com>
19099
19100         test-fflush: silence compiler warning
19101         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19102
19103 2011-05-11  Bruno Haible  <bruno@clisp.org>
19104
19105         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19106         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19107         * modules/canonicalize (Depends-on): Add 'nocrash'.
19108         * modules/canonicalize-lgpl (Depends-on): Likewise.
19109         * doc/posix-functions/realpath.texi: Update platforms list.
19110         Reported by Ryan Schmidt <ryandesign@macports.org>.
19111
19112 2011-05-11  Bruno Haible  <bruno@clisp.org>
19113
19114         group-member: Declare function in <unistd.h>.
19115         * lib/unistd.in.h (group_member): New declaration.
19116         * lib/group-member.h: Remove file.
19117         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19118         * tests/test-unistd-c++.cc: Check signature of group_member.
19119         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19120         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19121         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19122         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19123         HAVE_GROUP_MEMBER.
19124         * modules/group-member (Files): Remove lib/group-member.h.
19125         (Depends-on): Add unistd. Specify conditions.
19126         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19127         (Include): Change to <unistd.h>.
19128         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19129         HAVE_GROUP_MEMBER.
19130         * NEWS: Mention the change.
19131         * lib/euidaccess.c: Don't include group-member.h.
19132
19133 2011-05-11  Bruno Haible  <bruno@clisp.org>
19134
19135         group-member: Document module.
19136         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19137         module.
19138
19139 2011-05-11  Bruno Haible  <bruno@clisp.org>
19140
19141         fclose: Fix mistake earlier today.
19142         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19143
19144 2011-05-11  Eric Blake  <eblake@redhat.com>
19145
19146         fclose: preserve fflush errors
19147         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19148         Reported by Jim Meyering.
19149
19150         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19151         * build-aux/bootstrap (check_versions): When no specific version
19152         is required, merely check that the app produces an exit status
19153         that indicates its existence.
19154
19155         maint.mk: drop redundant check
19156         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19157         the same but better.
19158
19159 2011-05-11  Bruno Haible  <bruno@clisp.org>
19160
19161         fclose: Fix possible link error.
19162         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19163         unregister_shadow_fd. Improve comments.
19164         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19165         Eric Blake.
19166
19167 2011-05-11  Jim Meyering  <meyering@redhat.com>
19168
19169         maint.mk: improve "can not" detection and generalize rule name
19170         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19171         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19172         Use the same technique as in sc_prohibit_doubled_word, so that
19173         we recognize "can not" also when the words are separated by a newline.
19174         Suggested by Eric Blake.
19175         (perl_filename_lineno_text_): Define.  Factored out of...
19176         (prohibit_doubled_word_): ...here.  Use the new definition.
19177         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19178         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19179         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19180
19181 2011-05-10  Eric Blake  <eblake@redhat.com>
19182
19183         fclose: avoid double close race when possible
19184         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19185         all but WINDOWS_SOCKETS.
19186
19187 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19188
19189         openat: correct new comment
19190         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19191
19192 2011-05-10  Jim Meyering  <meyering@redhat.com>
19193
19194         openat: add comments
19195         * lib/openat-proc.c (openat_proc_name): Add comments,
19196         mostly from Eric Blake.
19197
19198 2011-05-09  Eric Blake  <eblake@redhat.com>
19199
19200         openat: reduce syscalls in first probe of /proc
19201         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19202         be a directory.  Simplify the probe for .. bugs.
19203         * modules/openat (Depends-on): Drop same-inode.
19204         Reported by Bastien ROUCARIES.
19205
19206 2011-05-09  Jim Meyering  <meyering@redhat.com>
19207
19208         maint.mk: change semantics/name of tight_scope variables
19209         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19210         Rename variables to align with semantics that make them more useful.
19211
19212         maint.mk: tweak new rule's name not to impinge
19213         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19214         (sc_tight_scope): Use new rule name rather than $@-0.
19215
19216         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19217         * top/maint.mk (sc_tight_scope): New rule.
19218         (sc_tight_scope-0): New rule, ifdef'd out.
19219         (_gl_TS_dir): Default.
19220         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19221         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19222
19223 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19224
19225         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19226         Haible <bruno@clisp.org>.
19227
19228 2011-05-08  Bruno Haible  <bruno@clisp.org>
19229
19230         Comments.
19231         * m4/isnanf.m4: Add comment.
19232         * m4/isnanl.m4: Likewise.
19233
19234 2011-05-08  Bruno Haible  <bruno@clisp.org>
19235
19236         glob: Remove obsolete macro.
19237         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19238
19239 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19240
19241         intprops: Sun C 5.11 supports __typeof__
19242         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19243         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19244         which is new.
19245         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19246
19247         intprops: switch to usual gnulib indenting and naming
19248         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19249         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19250
19251         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19252
19253 2011-05-08  Jim Meyering  <meyering@redhat.com>
19254
19255         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19256         * top/maint.mk (release-prep): Use make's --no-print-directory
19257         option when generating the announcement.  This eliminates the
19258         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19259         generated announcement template.
19260
19261 2011-05-08  Bruno Haible  <bruno@clisp.org>
19262
19263         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19264         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19265         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19266
19267 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19268
19269         ignore-value, verify: Omit include files from lib_SOURCES.
19270         * modules/ignore-value, modules/verify (Makefile.am):
19271         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19272         that leads Automake to duplicate use of am__objects_... variables
19273         in Makefile.in.  See
19274         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19275
19276 2011-05-07  Bruno Haible  <bruno@clisp.org>
19277
19278         fclose: Simplify autoconf macro.
19279         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19280         defined.
19281
19282 2011-05-07  Bruno Haible  <bruno@clisp.org>
19283
19284         canonicalize-lgpl: Fix autoconf macro ordering bug.
19285         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19286         gl_STDLIB_H_DEFAULTS.
19287
19288 2011-05-06  Eric Blake  <eblake@redhat.com>
19289
19290         maintainer-makefile: make sc_po_check easier to tune
19291         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19292         to probe for strings, such as an alternate location for gnulib.
19293
19294         fclose: guarantee behavior on seekable stdin
19295         * modules/fclose (Depends-on): Add fflush.
19296         * doc/posix-functions/fclose.texi (fclose): Document this.
19297         * tests/test-fclose.c (main): Make test for this unconditional.
19298
19299 2011-05-06  Bruno Haible  <bruno@clisp.org>
19300
19301         fflush, fpurge: Relicense under LGPLv2+.
19302         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19303         * modules/fpurge (License): Likewise.
19304         With permission from Eric Blake and Jim Meyering.
19305         Suggested by Eric Blake.
19306
19307 2011-05-06  Karl Berry  <karl@gnu.org>
19308
19309         * MODULES.html.sh (func_all_modules): remove exit.
19310
19311 2011-05-06  Jim Meyering  <meyering@redhat.com>
19312
19313         maint.mk: use info-gnu@ as the default only for a stable release
19314         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19315         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19316         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19317         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19318
19319 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19320
19321         assert-h: new module, which supports C1X-style static_assert
19322         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19323         * lib/verify.h: Revamp so that this can be copied into assert.h,
19324         while retaining the ability to use it standalone as before.
19325         Rename private identifiers so as not to encroach on the
19326         standard C namespace, since this is now used by assert.h.
19327         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19328         the old verify_true.
19329         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19330         the old verify_true.  Use _GL_VERIFY_TYPE.
19331         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19332         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19333         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19334         defined when this file is copied into the replacement assert.h.
19335         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19336         and _Static_assert is not built in.
19337         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19338         defined, and use the new macros mentioned above.
19339         * doc/posix-headers/assert.texi: Document this.
19340
19341 2011-05-05  Bruno Haible  <bruno@clisp.org>
19342
19343         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19344         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19345         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19346         gl_REPLACE_FCLOSE here.
19347         * modules/fflush (Depends-on): Remove fclose.
19348         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19349         combination with module 'fclose'.
19350
19351 2011-05-05  Bruno Haible  <bruno@clisp.org>
19352
19353         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19354         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19355         gl_FUNC_FFLUSH.
19356         (gl_FUNC_FFLUSH): Use it.
19357         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19358         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19359         gl_REPLACE_FSEEKO here.
19360
19361 2011-05-05  Bruno Haible  <bruno@clisp.org>
19362
19363         tzset: Relicense under LGPL.
19364         * modules/tzset (License): Change to LGPL.
19365         No agreement needed; it's a no-op.
19366
19367         strtoimax, strtoumax: Relicense under LGPL.
19368         * modules/strtoimax (License): Change to LGPL.
19369         * modules/strtoumax (License): Likewise.
19370         With permission from Jim Meyering, Paul Eggert:
19371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19373
19374         getgroups: Relicense under LGPL.
19375         * modules/getgroups (License): Change to LGPL.
19376         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19377         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19378         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19379         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19380
19381         nanosleep: Relicense under LGPL.
19382         * modules/nanosleep (License): Change to LGPL.
19383         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19384         Haible:
19385         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19389
19390         futimens: Relicense under LGPL.
19391         * modules/futimens (License): Change to LGPL.
19392         With permission from Eric Blake:
19393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19394
19395         fflush: Relicense under LGPL.
19396         * modules/fflush (License): Change to LGPL.
19397         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19398         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19401
19402         tmpfile: Relicense under LGPL.
19403         * modules/tmpfile (License): Change to LGPL.
19404         With permission from Ben Pfaff:
19405         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19406
19407         isfinite: Relicense under LGPL.
19408         * modules/isfinite (License): Change to LGPL.
19409         With permission from Ben Pfaff, Bruno Haible:
19410         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19412
19413         acosl..tanl: Relicense under LGPL.
19414         * modules/acosl (License): Change to LGPL.
19415         * modules/asinl (License): Likewise.
19416         * modules/atanl (License): Likewise.
19417         * modules/cosl (License): Likewise.
19418         * modules/expl (License): Likewise.
19419         * modules/logl (License): Likewise.
19420         * modules/sinl (License): Likewise.
19421         * modules/sqrtl (License): Likewise.
19422         * modules/tanl (License): Likewise.
19423         Source code originally from glibc and Paolo Bonzini. Agreements:
19424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19425         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19426
19427 2011-05-05  Bruno Haible  <bruno@clisp.org>
19428
19429         signal: Define sighandler_t.
19430         * lib/signal.in.h (sighandler_t): New type.
19431         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19432         whether sighandler_t is defined.
19433         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19434         * modules/signal (Depends-on): Add extensions.
19435         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19436         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19437         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19438
19439 2011-05-05  Eric Blake  <eblake@redhat.com>
19440
19441         maint: remove useless REPLACE_*_H macros
19442         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19443         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19444         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19445         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19446         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19447         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19448         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19449         * m4/btowc.m4: Update callers.
19450         * m4/dirfd.m4: Likewise.
19451         * m4/duplocale.m4: Likewise.
19452         * m4/fchdir.m4: Likewise.
19453         * m4/fdopendir.m4: Likewise.
19454         * m4/inet_ntop.m4: Likewise.
19455         * m4/inet_pton.m4: Likewise.
19456         * m4/ioctl.m4: Likewise.
19457         * m4/mbrlen.m4: Likewise.
19458         * m4/mbrtowc.m4: Likewise.
19459         * m4/mbsinit.m4: Likewise.
19460         * m4/mbsnrtowcs.m4: Likewise.
19461         * m4/mbsrtowcs.m4: Likewise.
19462         * m4/poll.m4: Likewise.
19463         * m4/setlocale.m4: Likewise.
19464         * m4/wcrtomb.m4: Likewise.
19465         * m4/wcsnrtombs.m4: Likewise.
19466         * m4/wcsrtombs.m4: Likewise.
19467         * m4/wctob.m4: Likewise.
19468         * m4/wcwidth.m4: Likewise.
19469         * modules/posix_spawn: Likewise.
19470         * modules/posix_spawn_file_actions_addclose: Likewise.
19471         * modules/posix_spawn_file_actions_adddup2: Likewise.
19472         * modules/posix_spawn_file_actions_addopen: Likewise.
19473         * modules/posix_spawn_file_actions_destroy: Likewise.
19474         * modules/posix_spawn_file_actions_init: Likewise.
19475         * modules/posix_spawnattr_destroy: Likewise.
19476         * modules/posix_spawnattr_getflags: Likewise.
19477         * modules/posix_spawnattr_getpgroup: Likewise.
19478         * modules/posix_spawnattr_getschedparam: Likewise.
19479         * modules/posix_spawnattr_getschedpolicy: Likewise.
19480         * modules/posix_spawnattr_getsigdefault: Likewise.
19481         * modules/posix_spawnattr_getsigmask: Likewise.
19482         * modules/posix_spawnattr_init: Likewise.
19483         * modules/posix_spawnattr_setflags: Likewise.
19484         * modules/posix_spawnattr_setpgroup: Likewise.
19485         * modules/posix_spawnattr_setschedparam: Likewise.
19486         * modules/posix_spawnattr_setschedpolicy: Likewise.
19487         * modules/posix_spawnattr_setsigdefault: Likewise.
19488         * modules/posix_spawnattr_setsigmask: Likewise.
19489         * modules/posix_spawnp: Likewise.
19490
19491 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19492
19493         Add option to do-release-commit-and-tag to specify branch.
19494         * build-aux/do-release-commit-and-tag: Add --branch.
19495
19496 2011-05-03  Bruno Haible  <bruno@clisp.org>
19497
19498         Avoid unnecessary compilation units, through conditional dependencies.
19499         * modules/accept (Depends-on): Add conditions to the dependencies.
19500         * modules/acosl (Depends-on): Likewise.
19501         * modules/argz (Depends-on): Likewise.
19502         * modules/asinl (Depends-on): Likewise.
19503         * modules/atanl (Depends-on): Likewise.
19504         * modules/atoll (Depends-on): Likewise.
19505         * modules/bind (Depends-on): Likewise.
19506         * modules/btowc (Depends-on): Likewise.
19507         * modules/canonicalize-lgpl (Depends-on): Likewise.
19508         * modules/ceil (Depends-on): Likewise.
19509         * modules/ceilf (Depends-on): Likewise.
19510         * modules/ceill (Depends-on): Likewise.
19511         * modules/chdir-long (Depends-on): Likewise.
19512         * modules/chown (Depends-on): Likewise.
19513         * modules/close (Depends-on): Likewise.
19514         * modules/connect (Depends-on): Likewise.
19515         * modules/cosl (Depends-on): Likewise.
19516         * modules/dirfd (Depends-on): Likewise.
19517         * modules/dprintf (Depends-on): Likewise.
19518         * modules/dprintf-posix (Depends-on): Likewise.
19519         * modules/error (Depends-on): Likewise.
19520         * modules/euidaccess (Depends-on): Likewise.
19521         * modules/expl (Depends-on): Likewise.
19522         * modules/faccessat (Depends-on): Likewise.
19523         * modules/fchdir (Depends-on): Likewise.
19524         * modules/fclose (Depends-on): Likewise.
19525         * modules/fcntl (Depends-on): Likewise.
19526         * modules/fdopendir (Depends-on): Likewise.
19527         * modules/fflush (Depends-on): Likewise.
19528         * modules/floor (Depends-on): Likewise.
19529         * modules/floorf (Depends-on): Likewise.
19530         * modules/floorl (Depends-on): Likewise.
19531         * modules/fnmatch (Depends-on): Likewise.
19532         * modules/fopen (Depends-on): Likewise.
19533         * modules/fprintf-posix (Depends-on): Likewise.
19534         * modules/frexp (Depends-on): Likewise.
19535         * modules/frexp-nolibm (Depends-on): Likewise.
19536         * modules/frexpl (Depends-on): Likewise.
19537         * modules/frexpl-nolibm (Depends-on): Likewise.
19538         * modules/fseek (Depends-on): Likewise.
19539         * modules/fsusage (Depends-on): Likewise.
19540         * modules/ftell (Depends-on): Likewise.
19541         * modules/ftello (Depends-on): Likewise.
19542         * modules/futimens (Depends-on): Likewise.
19543         * modules/getcwd (Depends-on): Likewise.
19544         * modules/getcwd-lgpl (Depends-on): Likewise.
19545         * modules/getdelim (Depends-on): Likewise.
19546         * modules/getdomainname (Depends-on): Likewise.
19547         * modules/getgroups (Depends-on): Likewise.
19548         * modules/gethostname (Depends-on): Likewise.
19549         * modules/getline (Depends-on): Likewise.
19550         * modules/getlogin_r (Depends-on): Likewise.
19551         * modules/getopt-posix (Depends-on): Likewise.
19552         * modules/getpeername (Depends-on): Likewise.
19553         * modules/getsockname (Depends-on): Likewise.
19554         * modules/getsockopt (Depends-on): Likewise.
19555         * modules/getsubopt (Depends-on): Likewise.
19556         * modules/getusershell (Depends-on): Likewise.
19557         * modules/glob (Depends-on): Likewise.
19558         * modules/grantpt (Depends-on): Likewise.
19559         * modules/iconv_open (Depends-on): Likewise.
19560         * modules/iconv_open-utf (Depends-on): Likewise.
19561         * modules/inet_ntop (Depends-on): Likewise.
19562         * modules/inet_pton (Depends-on): Likewise.
19563         * modules/ioctl (Depends-on): Likewise.
19564         * modules/isapipe (Depends-on): Likewise.
19565         * modules/isfinite (Depends-on): Likewise.
19566         * modules/isinf (Depends-on): Likewise.
19567         * modules/lchown (Depends-on): Likewise.
19568         * modules/ldexpl (Depends-on): Likewise.
19569         * modules/link (Depends-on): Likewise.
19570         * modules/linkat (Depends-on): Likewise.
19571         * modules/listen (Depends-on): Likewise.
19572         * modules/logl (Depends-on): Likewise.
19573         * modules/lstat (Depends-on): Likewise.
19574         * modules/mbrlen (Depends-on): Likewise.
19575         * modules/mbrtowc (Depends-on): Likewise.
19576         * modules/mbsinit (Depends-on): Likewise.
19577         * modules/mbsnrtowcs (Depends-on): Likewise.
19578         * modules/mbsrtowcs (Depends-on): Likewise.
19579         * modules/mbtowc (Depends-on): Likewise.
19580         * modules/memcmp (Depends-on): Likewise.
19581         * modules/mkdir (Depends-on): Likewise.
19582         * modules/mkdtemp (Depends-on): Likewise.
19583         * modules/mkfifo (Depends-on): Likewise.
19584         * modules/mkfifoat (Depends-on): Likewise.
19585         * modules/mknod (Depends-on): Likewise.
19586         * modules/mkostemp (Depends-on): Likewise.
19587         * modules/mkostemps (Depends-on): Likewise.
19588         * modules/mkstemp (Depends-on): Likewise.
19589         * modules/mkstemps (Depends-on): Likewise.
19590         * modules/mktime (Depends-on): Likewise.
19591         * modules/nanosleep (Depends-on): Likewise.
19592         * modules/open (Depends-on): Likewise.
19593         * modules/openat (Depends-on): Likewise.
19594         * modules/perror (Depends-on): Likewise.
19595         * modules/poll (Depends-on): Likewise.
19596         * modules/popen (Depends-on): Likewise.
19597         * modules/posix_spawn (Depends-on): Likewise.
19598         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
19599         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19600         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19601         * modules/posix_spawnp (Depends-on): Likewise.
19602         * modules/pread (Depends-on): Likewise.
19603         * modules/printf-posix (Depends-on): Likewise.
19604         * modules/ptsname (Depends-on): Likewise.
19605         * modules/putenv (Depends-on): Likewise.
19606         * modules/pwrite (Depends-on): Likewise.
19607         * modules/readline (Depends-on): Likewise.
19608         * modules/readlink (Depends-on): Likewise.
19609         * modules/readlinkat (Depends-on): Likewise.
19610         * modules/recv (Depends-on): Likewise.
19611         * modules/recvfrom (Depends-on): Likewise.
19612         * modules/regex (Depends-on): Likewise.
19613         * modules/remove (Depends-on): Likewise.
19614         * modules/rename (Depends-on): Likewise.
19615         * modules/renameat (Depends-on): Likewise.
19616         * modules/rmdir (Depends-on): Likewise.
19617         * modules/round (Depends-on): Likewise.
19618         * modules/roundf (Depends-on): Likewise.
19619         * modules/roundl (Depends-on): Likewise.
19620         * modules/rpmatch (Depends-on): Likewise.
19621         * modules/select (Depends-on): Likewise.
19622         * modules/send (Depends-on): Likewise.
19623         * modules/sendto (Depends-on): Likewise.
19624         * modules/setenv (Depends-on): Likewise.
19625         * modules/setlocale (Depends-on): Likewise.
19626         * modules/setsockopt (Depends-on): Likewise.
19627         * modules/shutdown (Depends-on): Likewise.
19628         * modules/sigaction (Depends-on): Likewise.
19629         * modules/signbit (Depends-on): Likewise.
19630         * modules/sigprocmask (Depends-on): Likewise.
19631         * modules/sinl (Depends-on): Likewise.
19632         * modules/sleep (Depends-on): Likewise.
19633         * modules/snprintf (Depends-on): Likewise.
19634         * modules/snprintf-posix (Depends-on): Likewise.
19635         * modules/socket (Depends-on): Likewise.
19636         * modules/sprintf-posix (Depends-on): Likewise.
19637         * modules/sqrtl (Depends-on): Likewise.
19638         * modules/stat (Depends-on): Likewise.
19639         * modules/strchrnul (Depends-on): Likewise.
19640         * modules/strdup-posix (Depends-on): Likewise.
19641         * modules/strerror (Depends-on): Likewise.
19642         * modules/strerror_r-posix (Depends-on): Likewise.
19643         * modules/strndup (Depends-on): Likewise.
19644         * modules/strnlen (Depends-on): Likewise.
19645         * modules/strptime (Depends-on): Likewise.
19646         * modules/strsep (Depends-on): Likewise.
19647         * modules/strsignal (Depends-on): Likewise.
19648         * modules/strstr-simple (Depends-on): Likewise.
19649         * modules/strtod (Depends-on): Likewise.
19650         * modules/strtoimax (Depends-on): Likewise.
19651         * modules/strtok_r (Depends-on): Likewise.
19652         * modules/strtoumax (Depends-on): Likewise.
19653         * modules/symlink (Depends-on): Likewise.
19654         * modules/symlinkat (Depends-on): Likewise.
19655         * modules/tanl (Depends-on): Likewise.
19656         * modules/tcgetsid (Depends-on): Likewise.
19657         * modules/tmpfile (Depends-on): Likewise.
19658         * modules/trunc (Depends-on): Likewise.
19659         * modules/truncf (Depends-on): Likewise.
19660         * modules/truncl (Depends-on): Likewise.
19661         * modules/uname (Depends-on): Likewise.
19662         * modules/unlink (Depends-on): Likewise.
19663         * modules/unlockpt (Depends-on): Likewise.
19664         * modules/unsetenv (Depends-on): Likewise.
19665         * modules/usleep (Depends-on): Likewise.
19666         * modules/utimensat (Depends-on): Likewise.
19667         * modules/vasprintf (Depends-on): Likewise.
19668         * modules/vdprintf (Depends-on): Likewise.
19669         * modules/vdprintf-posix (Depends-on): Likewise.
19670         * modules/vfprintf-posix (Depends-on): Likewise.
19671         * modules/vprintf-posix (Depends-on): Likewise.
19672         * modules/vsnprintf (Depends-on): Likewise.
19673         * modules/vsnprintf-posix (Depends-on): Likewise.
19674         * modules/vsprintf-posix (Depends-on): Likewise.
19675         * modules/wcrtomb (Depends-on): Likewise.
19676         * modules/wcscasecmp (Depends-on): Likewise.
19677         * modules/wcscspn (Depends-on): Likewise.
19678         * modules/wcsdup (Depends-on): Likewise.
19679         * modules/wcsncasecmp (Depends-on): Likewise.
19680         * modules/wcsnrtombs (Depends-on): Likewise.
19681         * modules/wcspbrk (Depends-on): Likewise.
19682         * modules/wcsrtombs (Depends-on): Likewise.
19683         * modules/wcsspn (Depends-on): Likewise.
19684         * modules/wcsstr (Depends-on): Likewise.
19685         * modules/wcstok (Depends-on): Likewise.
19686         * modules/wcswidth (Depends-on): Likewise.
19687         * modules/wctob (Depends-on): Likewise.
19688         * modules/wctomb (Depends-on): Likewise.
19689         * modules/wctype (Depends-on): Likewise.
19690         * modules/wcwidth (Depends-on): Likewise.
19691         * modules/write (Depends-on): Likewise.
19692
19693 2011-05-03  Bruno Haible  <bruno@clisp.org>
19694
19695         Support for conditional dependencies.
19696         * doc/gnulib.texi (Module description): Document the syntax of
19697         conditional dependencies.
19698         * gnulib-tool: New option --conditional-dependencies.
19699         (func_usage): Document it.
19700         (cond_dependencies): New variable.
19701         (func_get_automake_snippet_conditional,
19702         func_get_automake_snippet_unconditional): New functions, extracted from
19703         func_get_automake_snippet.
19704         (func_get_automake_snippet): Use them.
19705         (sed_first_32_chars): New variable.
19706         (func_module_shellfunc_name): New function.
19707         (func_module_shellvar_name): New function.
19708         (func_module_conditional_name): New function.
19709         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
19710         func_cond_module_condition): New functions.
19711         (func_modules_transitive_closure): Add support for conditional
19712         dependencies.
19713         (func_emit_lib_Makefile_am): For a conditional module, enclose the
19714         conditional automake snippet in an automake conditional.
19715         (func_emit_autoconf_snippets): Emit shell functions that contain the
19716         code for conditional modules.
19717         (func_import, func_create_testdir): Update specification.
19718
19719 2011-05-03  Eric Blake  <eblake@redhat.com>
19720
19721         test-getaddrinfo: report error information
19722         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
19723
19724 2011-05-03  Jim Meyering  <meyering@redhat.com>
19725
19726         bootstrap: avoid build failure when $GZIP is set
19727         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
19728         program name.  If defined at all, it is supposed to list gzip options.
19729         Reported by Alan Curry in http://debbugs.gnu.org/8609
19730
19731 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
19732
19733         readme-release: new module with release instructions
19734         * modules/readme-release: New module.
19735         * top/README-release: New file, from coreutils, grep, diffutils.
19736         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19737
19738 2011-05-02  Eric Blake  <eblake@redhat.com>
19739
19740         fflush: also replace fclose when fixing fflush
19741         * modules/fflush (Depends-on): Add fclose.
19742         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
19743         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
19744         memstreams with no backing fd.
19745         * doc/posix-functions/fclose.texi (fclose): Document the use of
19746         fflush module to fix the bug.
19747         * tests/test-fclose.c (main): Relax test when fclose is used in
19748         isolation.
19749
19750         fclose: add some tests
19751         * modules/fclose-tests: New test module.
19752         * tests/test-fclose.c: New file.
19753         * doc/posix-functions/fclose.texi (fclose): Document the bug.
19754
19755         fclose: reduced dependencies
19756         * modules/fclose (Depends-on): Switch from fflush/fseeko to
19757         simpler lseek.
19758         * lib/fclose.c (rpl_fclose): Likewise.
19759         Reported by Simon Josefsson.
19760
19761         exit: drop remaining clients
19762         * modules/argmatch (Depends-on): Replace exit with stdlib.
19763         * modules/copy-file (Depends-on): Likewise.
19764         * modules/execute (Depends-on): Likewise.
19765         * modules/exitfail (Depends-on): Likewise.
19766         * modules/obstack (Depends-on): Likewise.
19767         * modules/pagealign_alloc (Depends-on): Likewise.
19768         * modules/pipe-filter-gi (Depends-on): Likewise.
19769         * modules/pipe-filter-ii (Depends-on): Likewise.
19770         * modules/savewd (Depends-on): Likewise.
19771         * modules/spawn-pipe (Depends-on): Likewise.
19772         * modules/wait-process (Depends-on): Likewise.
19773         * modules/xsetenv (Depends-on): Likewise.
19774         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
19775         * modules/git-merge-changelog (Depends-on): Likewise.
19776         * modules/long-options (Depends-on): Likewise.
19777         * modules/pt_chown (Depends-on): Likewise.
19778         * modules/sysexits (Depends-on): Likewise.
19779
19780         freading: relax license from LGPLv3+ to LGPLv2+
19781         * modules/freading (License): Relax LGPL version.
19782
19783 2011-05-02  Bruno Haible  <bruno@clisp.org>
19784
19785         fchdir: Remove unused dependencies.
19786         * modules/fchdir (Depends-on): Remove include_next.
19787
19788 2011-05-02  Bruno Haible  <bruno@clisp.org>
19789
19790         gnulib-tool: Refactor.
19791         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
19792         from func_emit_autoconf_snippets.
19793         (func_emit_autoconf_snippets): Use it.
19794
19795 2011-05-02  Simon Josefsson  <simon@josefsson.org>
19796
19797         * NEWS: Document removal of 'exit'.
19798         * modules/exit: Remove file.
19799
19800 2011-05-01  Bruno Haible  <bruno@clisp.org>
19801
19802         Update DEPENDENCIES.
19803         * DEPENDENCIES (gettext): Recommend the newest release.
19804         Reported by Simon Josefsson.
19805
19806 2011-05-01  Bruno Haible  <bruno@clisp.org>
19807
19808         gnulib-tool: Reduce code duplication.
19809         * gnulib-tool (func_emit_autoconf_snippets): New function.
19810         (func_import, func_create_testdir): Use it.
19811
19812 2011-04-30  Eric Blake  <eblake@redhat.com>
19813
19814         fclose: don't fail on non-seekable input stream
19815         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
19816         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
19817         since fflush is allowed to fail in that case.
19818
19819 2011-04-30  Bruno Haible  <bruno@clisp.org>
19820
19821         dup3: cleanup
19822         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
19823
19824 2011-04-30  Bruno Haible  <bruno@clisp.org>
19825
19826         netdb: Make it work in C++ mode.
19827         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
19828         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
19829         module.
19830         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
19831         gl_MODULE_INDICATOR_FOR_TESTS.
19832         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
19833         * modules/netdb-c++-tests: New file.
19834         * tests/test-netdb-c++.cc: New file.
19835
19836 2011-04-30  Bruno Haible  <bruno@clisp.org>
19837
19838         New modules 'vfscanf', 'vscanf'.
19839         * modules/vfscanf: New file.
19840         * modules/vscanf: New file.
19841         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
19842         here.
19843         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
19844         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
19845
19846 2011-04-30  Bruno Haible  <bruno@clisp.org>
19847
19848         passfd: Add comments.
19849         * lib/passfd.c: Add comments about platforms.
19850
19851 2011-04-30  Bruno Haible  <bruno@clisp.org>
19852
19853         sys_uio: Make <sys/uio.h> self-contained.
19854         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
19855         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
19856
19857 2011-04-30  Bruno Haible  <bruno@clisp.org>
19858
19859         sys_socket: Ensure 'struct iovec' definition.
19860         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
19861         <sys/socket.h>.
19862         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
19863
19864 2011-04-30  Bruno Haible  <bruno@clisp.org>
19865
19866         sys_uio: Protect definition of 'struct iovec'.
19867         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
19868         it as a C struct.
19869
19870 2011-04-30  Bruno Haible  <bruno@clisp.org>
19871
19872         manywarnings: fix indentation
19873         * m4/manywarnings.m4: Indent by 2 spaces consistently.
19874
19875 2011-04-30  Pádraig Brady <P@draigBrady.com>
19876
19877         manywarnings: add -Wno-missing-field-initializers if needed.
19878         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
19879         option if it's needed to allow initialization with { 0, }
19880
19881 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
19882
19883         announce-gen: cosmetic improvement
19884         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
19885
19886 2011-04-29  Jim Meyering  <meyering@redhat.com>
19887
19888         vc-list-files: indent with spaces, not TABs
19889         * build-aux/vc-list-files: Convert leading TABs to spaces,
19890         to match the style of most other files in gnulib.
19891
19892         announce-gen: indent with spaces, not TABs
19893         * build-aux/announce-gen: Convert all TABs to spaces, to match
19894         the style of most other files in gnulib.
19895
19896 2011-04-29  Eric Blake  <eblake@redhat.com>
19897
19898         quotearg: avoid uninitialized variable use
19899         * lib/quotearg.c (quoting_options_from_style): Initialize
19900         remaining fields, and ensure that custom styles are only used via
19901         quoting_options rather than quoting_style.
19902
19903 2011-04-29  Jim Meyering  <meyering@redhat.com>
19904
19905         maint.mk: remove unused VC-tag variable
19906         * top/maint.mk (VC-tag): Remove unused variable.
19907
19908 2011-04-29  Bruno Haible  <bruno@clisp.org>
19909
19910         netdb: fix gai_strerror replacements
19911         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
19912         * modules/netdb: Substitute it.
19913
19914 2011-04-29  Jim Meyering  <meyering@redhat.com>
19915
19916         test-getcwd.c: avoid new set-but-not-used warning
19917         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
19918         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
19919         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
19920         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
19921
19922         test-hash.c: avoid a new shadowing warning
19923         * tests/test-hash.c (main): Don't shadow "dup".
19924
19925 2011-04-28  Eric Blake  <eblake@redhat.com>
19926
19927         getaddrinfo: fix gai_strerror signature
19928         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
19929         and work around mingw with UNICODE defined.
19930         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
19931         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
19932         * modules/netdb (Makefile.am): Substitute it.
19933         * lib/netdb.in.h (gai_strerror): Declare replacement.
19934         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
19935         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
19936         the fix.
19937
19938         getsockopt: avoid compiler warning
19939         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
19940         Reported by Matthias Bolte.
19941
19942         tests: drop unused link dependency
19943         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
19944         * modules/dirent-safer-tests (Makefile.am): Likewise.
19945         * modules/fdopendir-tests (Makefile.am): Likewise.
19946         * modules/mkfifoat-tests (Makefile.am): Likewise.
19947         * modules/openat-safer-tests (Makefile.am): Likewise.
19948         * modules/openat-tests (Makefile.am): Likewise.
19949         * modules/readlinkat-tests (Makefile.am): Likewise.
19950         * modules/symlinkat-tests (Makefile.am): Likewise.
19951         * modules/linkat-tests (Makefile.am): Likewise.
19952         (Depends-on): Switch to filenamecat-lgpl.
19953         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
19954         LIBINTL.
19955         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
19956         * tests/test-linkat.c (main): Don't require xalloc.
19957
19958         hash, mgetgroups: drop xalloc dependency
19959         * lib/hash.c (includes): Adjust includes.
19960         * lib/mgetgroups.c (includes): Likewise.
19961         (xgetgroups): Move...
19962         * lib/xgetgroups.c: ...to new file.
19963         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
19964         * modules/xgetgroups: New file, split from...
19965         * modules/mgetgroups: ...here.
19966         (Depends-on): Add xalloc-oversized.
19967         * modules/hash (Depends-on): Likewise.
19968         * modules/hash-tests (Depends-on): Drop xalloc.
19969         (test_hash_LDADD): Drop unused library.
19970         * tests/test-hash.c (main): Break xalloc dependency.
19971         (includes): Drop unused include.
19972
19973         xalloc-oversized: new module
19974         * modules/xalloc-oversized: New module.
19975         * modules/xalloc (Depends-on): Add it.
19976         * lib/xalloc.h (xalloc_oversized): Move...
19977         * lib/xalloc-oversized.h: ...into new file.
19978
19979         utimecmp: drop dependency on xmalloc
19980         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
19981         due to memory pressure.
19982         * modules/utimecmp (Depends-on): Drop xalloc.
19983
19984 2011-04-27  Eric Blake  <eblake@redhat.com>
19985
19986         getcwd: fix mingw bugs
19987         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
19988         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
19989         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
19990
19991 2011-04-27  Bruno Haible  <bruno@clisp.org>
19992
19993         mkstemps: Ensure declaration on MacOS X 10.5.
19994         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
19995         * doc/glibc-functions/mkstemps.texi: Document header file problem on
19996         MacOS X.
19997
19998 2011-04-27  Bruno Haible  <bruno@clisp.org>
19999
20000         mkstemp: More documentation.
20001         * doc/posix-functions/mkstemp.texi: Document header file problem on
20002         MacOS X.
20003
20004 2011-04-27  Bruno Haible  <bruno@clisp.org>
20005
20006         mkstemp: Tweak configure message when cross-compiling.
20007         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20008         result as a guess.
20009
20010 2011-04-27  Bruno Haible  <bruno@clisp.org>
20011
20012         clean-temp: Clarify what it does.
20013         * lib/clean-temp.h: Add more comments.
20014         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20015         module.
20016         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20017         * doc/glibc-functions/mkstemps.texi: Likewise.
20018         * doc/glibc-functions/mkostemps.texi: Likewise.
20019
20020 2011-04-27  Eric Blake  <eblake@redhat.com>
20021
20022         fchdir: avoid extra chdir and fix test
20023         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20024         getcwd-lgpl.
20025         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20026         have to be canonical.
20027         (canonicalize_file_name): Drop unused macro.
20028         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20029
20030         filenamecat-lgpl: fix licence
20031         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20032         when it was first created.
20033
20034         linkat, renameat: add missing dependency
20035         * modules/linkat (Depends-on): Require getcwd-lgpl.
20036         * modules/renameat (Depends-on): Likewise.
20037
20038         tests: reduce dependencies
20039         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20040         * tests/test-renameat.c (main): Likewise.
20041         * modules/linkat-tests (Depends-on): Relax dependency.
20042         * modules/renameat-tests (Depends-on): Likewise.
20043         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20044         dependency explicit.
20045
20046         save-cwd: reduce default dependency
20047         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20048         * lib/save-cwd.c: Update comments.
20049         * NEWS: Document the semantic change.
20050
20051         getcwd: enhance tests
20052         * tests/test-getcwd-lgpl.c: New file, taken from...
20053         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20054         repeat long path stress tests from m4 probe.
20055         * modules/getcwd-lgpl-tests: New module.
20056         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20057         * m4/getcwd-abort-bug.m4: Update comment.
20058         * m4/getcwd-path-max.m4: Likewise.
20059
20060         getcwd-lgpl: new module
20061         * modules/getcwd-lgpl: New module.
20062         * lib/getcwd-lgpl.c: New file.
20063         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20064         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20065         * modules/getcwd (configure.ac): Set C witness.
20066         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20067
20068         getcwd: tweak comments
20069         * m4/getcwd-abort-bug.m4: Fix comments.
20070         * m4/getcwd-path-max.m4: Likewise.
20071         * m4/getcwd.m4: Likewise.
20072
20073 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20074         and Eric Blake  <eblake@redhat.com>
20075
20076         mkstemp: replace if system version uses wrong permissions
20077         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20078         read/write mode bits set in file created by mkstemp.
20079         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20080
20081 2011-04-27  Eric Blake  <eblake@redhat.com>
20082
20083         passfd: avoid compiler warning
20084         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20085         Reported by Laine Stump.
20086
20087 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20088
20089         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20090         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20091
20092 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20093         and Eric Blake  <eblake@redhat.com>
20094
20095         mkstemp: mention clean-temp module
20096         * lib/mkstemp.c: Add comment.
20097         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20098
20099 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20100
20101         inttypes: also provide default values for 32-bit tests
20102         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20103         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20104
20105 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20106
20107         strtoumax: remove dependency on strtoimax
20108         This is like the strtoull change of yesterday.
20109         * modules/strtoumax (Files): Add lib/strtoimax.c.
20110         (Depends-on): Remove strtoimax and add verify.
20111
20112         inttypes-incomplete: new module
20113         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20114         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20115         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20116         of gl_INTTYPES_H.
20117         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20118         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20119         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20120         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20121         * modules/strtoumax, modules/xstrtol (Depends-on):
20122         Depend on inttypes-incomplete, not inttypes.
20123         * modules/inttypes-incomplete: New module, containing the contents
20124         of the old modules/inttypes module, except that the Files: section
20125         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20126         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20127         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20128         (Depends-on): Depend only on inttypes-incomplete.
20129         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20130
20131         inttypes: omit now-redundant strtoimax and strtoumax work
20132         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20133         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20134
20135         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20136         This supports apps that need pointers to strtoimax and strtoumax,
20137         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20138         nonexistent functions.  See
20139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20140         et seq.
20141         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20142         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20143         a macro.
20144         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20145
20146 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20147
20148         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20149
20150 2011-04-25  Bruno Haible  <bruno@clisp.org>
20151
20152         strtol, strtoul: Mark modules as obsolete.
20153         * modules/strtol (Status, Notice): New sections.
20154         * modules/strtoul (Status, Notice): New sections.
20155
20156 2011-04-25  Bruno Haible  <bruno@clisp.org>
20157
20158         strtod: Remove check for strtod, unless supporting old platforms.
20159         * modules/strtod-obsolete: New file.
20160         * m4/strtod-obsolete.m4: New file.
20161         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20162         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20163         * modules/strtod (Depends-on): Add strtod-obsolete.
20164         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20165
20166 2011-04-25  Bruno Haible  <bruno@clisp.org>
20167
20168         strcase: Make module obsolete.
20169         * modules/strcase (Status, Notice): New sections.
20170
20171 2011-04-25  Bruno Haible  <bruno@clisp.org>
20172
20173         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20174         * modules/dup2-obsolete: New file.
20175         * m4/dup2-obsolete.m4: New file.
20176         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20177         gl_FUNC_DUP2_OBSOLETE is not also defined.
20178         * modules/dup2 (Depends-on): Add dup2-obsolete.
20179         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20180
20181 2011-04-25  Bruno Haible  <bruno@clisp.org>
20182
20183         strnlen: Avoid memchr related link error on old obsolete platforms.
20184         * modules/memchr-obsolete: New file.
20185         * m4/memchr-obsolete.m4: New file.
20186         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20187         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20188         * modules/memchr (Depends-on): Add memchr-obsolete.
20189         * modules/strnlen (Depends-on): Likewise.
20190         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20191
20192 2011-04-25  Jim Meyering  <meyering@redhat.com>
20193
20194         maint.mk: makefile_at_at_check extend and clean up
20195         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20196         in addition to */Makefile.am.
20197         Exempt legitimate uses of @VAR@ notation, e.g.,
20198         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20199         Remove obsolete coreutils-specific comment.
20200         Prompted by discussion here:
20201         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20202
20203 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20204
20205         strtoul: remove dependency on strtol
20206         This is so that 'configure' need not check for strtol merely because
20207         the application needs strtoul.
20208         * modules/strtoul (Files): Add lib/strtol.c.
20209         (Depends-on): Remove strtol.
20210
20211         strtoull: remove dependency on strtoul
20212         This is like the strtoll change.
20213         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20214         (Depends-on): Remove strtoul.
20215
20216         strtoll: remove dependency on strtol
20217         This is so that 'configure' need not check for strtol merely because
20218         the application needs strtoll.
20219         * modules/strtoll (Files): Add lib/strtol.c.
20220         (Depends-on): Remove strtol.
20221
20222 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20223
20224         inttypes: Move some configure check to module 'imaxdiv'.
20225         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20226         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20227         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20228
20229 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20230
20231         inttypes: Move some configure check to module 'imaxabs'.
20232         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20233         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20234         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20235
20236 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20237
20238         inttypes: Remove configure tests that are not needed since 2009-12-31.
20239         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20240         gl_cv_header_working_inttypes_h.
20241
20242 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20243
20244         * modules/strnlen (Depends-on): Remove memchr.
20245         The strnlen implementation doesn't need the memchr module's fixes; see
20246         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20247
20248         strtol: remove dependency on wchar
20249         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20250         * modules/strtol (Depends-on): Remove wchar.
20251
20252 2011-04-21  Eric Blake  <eblake@redhat.com>
20253
20254         passfd: fix test regression on Linux
20255         * modules/passfd-tests (configure.ac): Correct socketpair check.
20256
20257         passfd: speed up configure and drop unused code
20258         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20259         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20260         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20261         Instead of probing at configure for unix_scm_rights_bsd44_way,
20262         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20263         check to a struct member probe.
20264         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20265         (sendfd, recvfd): Update preprocessor checks.
20266         * modules/passfd (Files): Reflect rename, and drop unused file.
20267         (Depends-on): Drop unused dependency.
20268
20269         passfd: allow compilation on mingw
20270         * modules/sys_socket (Depends-on): Add sys_uio.
20271         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20272         iovec and a minimal struct msghdr.
20273         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20274         * tests/test-sys_socket.c (main): Enhance test.
20275         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20276         guaranteed to provide what we need.
20277         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20278         * modules/passfd-tests (Depends-on): Add sys_wait.
20279         * tests/test-passfd.c (main): Skip test on mingw, for now.
20280         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20281         partial 'struct msghdr' implementation.
20282
20283         sys_uio: new module
20284         * modules/sys_uio: New module.
20285         * modules/sys_uio-tests: Likewise.
20286         * lib/sys_uio.in.h: New file.
20287         * m4/sys_uio_h.m4: Likewise.
20288         * tests/test-sys_uio.c: Likewise.
20289         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20290         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20291
20292 2011-04-20  Jim Meyering  <meyering@redhat.com>
20293
20294         useless-if-before-free: avoid false-positive
20295         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20296         disjunct so that it too requires a terminating ";".  Without that,
20297         this script would identify as useless one statement from gcc that
20298         was not:
20299           if (aligned_ptr)
20300             free (((void **) aligned_ptr) [-1]);
20301
20302 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20303
20304         doc: update users.txt.
20305         * users.txt: Add barcode.
20306
20307 2011-04-19  Bruno Haible  <bruno@clisp.org>
20308
20309         ioctl: Remove link dependency on native Windows.
20310         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20311         (gl_close_fn, gl_ioctl_fn): New types.
20312         (struct fd_hook): Renamed from struct close_hook. Change type of
20313         private_close_fn field. Add private_ioctl_fn field.
20314         (close_hook_fn): Add parameter for primary close method.
20315         (execute_close_hooks, execute_all_close_hooks): Likewise.
20316         (ioctl_hook_fn): New type.
20317         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20318         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20319         argument.
20320         (unregister_fd_hook): Renamed from unregister_close_hook.
20321         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20322         Don't include <unistd.h>.
20323         (close): Remove undef.
20324         (anchor): Update.
20325         (execute_close_hooks): Add argument for primary close method.
20326         (execute_all_close_hooks): Likewise.
20327         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20328         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20329         argument. Allow each argument to be NULL.
20330         (unregister_fd_hook): Renamed from unregister_close_hook.
20331         * lib/close.c (rpl_close): Pass 'close' function pointer to
20332         execute_all_close_hooks.
20333         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20334         (primary_ioctl): New function.
20335         (ioctl): Don't call ioctlsocket here. Instead, call
20336         execute_all_ioctl_hooks.
20337         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20338         close method.
20339         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20340         (fd_sockets_hook): Renamed from close_sockets_hook.
20341         (gl_sockets_startup, gl_sockets_cleanup): Update.
20342         * modules/fd-hook: Renamed from modules/close-hook. Update.
20343         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20344         * modules/sockets (Depends-on): Likewise.
20345         * modules/ioctl (Depends-on): Add fd-hook.
20346         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20347         GNULIB_SOCKET.
20348
20349 2011-04-19  Bruno Haible  <bruno@clisp.org>
20350
20351         Move the support of O_NONBLOCK in open() to the 'open' module.
20352         * modules/nonblocking (Depends-on): Remove 'open'.
20353         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20354         gl_cv_have_open_O_NONBLOCK.
20355         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20356         O_NONBLOCK support.
20357         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20358
20359 2011-04-17  Bruno Haible  <bruno@clisp.org>
20360
20361         pipe2: Simplify code.
20362         * lib/pipe2.c (pipe2): Reduce code duplication.
20363
20364 2011-04-17  Bruno Haible  <bruno@clisp.org>
20365
20366         nonblocking: Add comment.
20367         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20368
20369 2011-04-17  Bruno Haible  <bruno@clisp.org>
20370
20371         nonblocking: Add tests for sockets.
20372         * tests/test-nonblocking-socket.sh: New file.
20373         * tests/test-nonblocking-socket-main.c: New file.
20374         * tests/test-nonblocking-socket-child.c: New file.
20375         * tests/test-nonblocking-socket.h: New file.
20376         * tests/socket-server.h: New file.
20377         * tests/socket-client.h: New file.
20378         * modules/nonblocking-socket-tests: New file.
20379         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20380
20381 2011-04-17  Bruno Haible  <bruno@clisp.org>
20382
20383         nonblocking: Add tests for pipes.
20384         * tests/test-nonblocking-pipe.sh: New file.
20385         * tests/test-nonblocking-pipe-main.c: New file.
20386         * tests/test-nonblocking-pipe-child.c: New file.
20387         * tests/test-nonblocking-pipe.h: New file.
20388         * tests/test-nonblocking-writer.h: New file.
20389         * tests/test-nonblocking-reader.h: New file.
20390         * tests/test-nonblocking-misc.h: New file.
20391         * modules/nonblocking-pipe-tests: New file.
20392         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20393
20394 2011-04-16  Bruno Haible  <bruno@clisp.org>
20395
20396         gettext: Clarify the needed programmer actions.
20397         * modules/gettext (Notice): New field.
20398         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20399
20400 2011-04-16  Bruno Haible  <bruno@clisp.org>
20401
20402         strchrnul: Tweak last commit.
20403         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20404         bug.
20405         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20406         as in _GL_FUNCDECL_SYS.
20407         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20408         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20409
20410 2011-04-15  Eric Blake  <eblake@redhat.com>
20411
20412         strchrnul: work around cygwin bug
20413         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20414         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20416         * modules/string (Makefile.am): Substitute it.
20417         * lib/string.in.h (strchrnul): Use it.
20418
20419 2011-04-15  Bruno Haible  <bruno@clisp.org>
20420
20421         Don't require lib/stdio-write.c when only module 'stdio' is used.
20422         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20423         invocation.
20424         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20425
20426 2011-04-14  Bruno Haible  <bruno@clisp.org>
20427
20428         Support non-blocking pipe I/O in read() on native Windows.
20429         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20430         (read): New declaration.
20431         * lib/read.c: New file.
20432         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20433         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20434         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20435         vscanf): New declarations.
20436         * lib/stdio-read.c: New file.
20437         * m4/read.m4: New file.
20438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20439         REPLACE_READ.
20440         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20441         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20442         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20443         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20444         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20445         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20446         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20447         * modules/read: New file.
20448         * modules/nonblocking (Files): Add lib/stdio-read.c.
20449         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20450         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20451         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20452         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20453         * modules/pread (Depends-on): Add read.
20454         * modules/safe-read (Depends-on): Likewise.
20455         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20456         gets, scanf, vfscanf, vscanf): Verify signatures.
20457         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20458         problem with non-blocking pipes.
20459         * doc/posix-functions/fgetc.texi: Likewise.
20460         * doc/posix-functions/fgets.texi: Likewise.
20461         * doc/posix-functions/fread.texi: Likewise.
20462         * doc/posix-functions/fscanf.texi: Likewise.
20463         * doc/posix-functions/getc.texi: Likewise.
20464         * doc/posix-functions/getchar.texi: Likewise.
20465         * doc/posix-functions/gets.texi: Likewise.
20466         * doc/posix-functions/scanf.texi: Likewise.
20467         * doc/posix-functions/vfscanf.texi: Likewise.
20468         * doc/posix-functions/vscanf.texi: Likewise.
20469
20470 2011-04-14  Bruno Haible  <bruno@clisp.org>
20471
20472         Support non-blocking pipe I/O in write() on native Windows.
20473         * lib/write.c (rpl_write): Split a write request that failed merely
20474         because the byte count was larger than the pipe buffer's size.
20475         * doc/posix-functions/write.texi: Mention the problem with large byte
20476         counts.
20477
20478 2011-04-14  Bruno Haible  <bruno@clisp.org>
20479
20480         wchar: Ensure that wchar_t gets defined on uClibc.
20481         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20482         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20483
20484 2011-04-13  Bruno Haible  <bruno@clisp.org>
20485
20486         safe-write, full-read: Avoid unnecessary compilation units.
20487         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20488         (Depends-on): Remove safe-read. Add ssize_t.
20489         * modules/full-read (Files): Add lib/full-write.c.
20490         (Depends-on): Add full-write.
20491
20492 2011-04-13  Bruno Haible  <bruno@clisp.org>
20493
20494         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20495         * modules/pwrite (Depends-on): Add 'write'.
20496
20497 2011-04-13  Bruno Haible  <bruno@clisp.org>
20498
20499         Support non-blocking pipe I/O in write() on native Windows.
20500         * lib/unistd.in.h (write): Enable replacement also if
20501         GNULIB_UNISTD_H_NONBLOCKING is 1.
20502         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20503         (rpl_write): When failing to write on a non-blocking pipe, change
20504         errno from ENOSPC to EAGAIN.
20505         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20506         putchar, puts, vfprintf, vprintf): Enable replacement also if
20507         GNULIB_STDIO_H_NONBLOCKING is 1.
20508         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20509         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20510         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20511         CALL_WITH_SIGPIPE_EMULATION.
20512         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20513         * m4/nonblocking.m4: New file.
20514         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20515         for non-blocking I/O support.
20516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20517         GNULIB_UNISTD_H_NONBLOCKING.
20518         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20519         required for non-blocking I/O support.
20520         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20521         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20522         lib/stdio-write.c, m4/asm-underscore.m4.
20523         (Depends-on): Add stdio, unistd.
20524         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20525         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20526         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20527         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20528         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20529         problem with non-blocking pipes.
20530         * doc/posix-functions/fputc.texi: Likewise.
20531         * doc/posix-functions/fputs.texi: Likewise.
20532         * doc/posix-functions/fwrite.texi: Likewise.
20533         * doc/posix-functions/printf.texi: Likewise.
20534         * doc/posix-functions/putc.texi: Likewise.
20535         * doc/posix-functions/putchar.texi: Likewise.
20536         * doc/posix-functions/puts.texi: Likewise.
20537         * doc/posix-functions/vfprintf.texi: Likewise.
20538         * doc/posix-functions/vprintf.texi: Likewise.
20539         * doc/posix-functions/write.texi: Likewise.
20540
20541 2011-04-10  Jim Meyering  <meyering@redhat.com>
20542
20543         maint.mk: prohibit doubled words
20544         Detect them also when they're separated by a newline.
20545         There are 3 ways to customize it:
20546           - disable the test on a per file basis, as usual with rules using
20547             $(VC_LIST_EXCEPT)
20548           - replace the default doubled-word-selecting regexp (affects all files)
20549           - ignore a particular file-vs-doubled-word match
20550         I nearly used that last one to ignore the "is is" match in
20551         coreutils' NEWS file, since the text was "ls -is is ..."
20552         To do that, I would have added this line to cfg.mk:
20553           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20554         but it would have ignored any "is is" match in NEWS.
20555         Low probability, but still...
20556         Instead, I changed the text, slightly:
20557           -  ls -is is now consistent with ls -lis in ignoring values returned
20558           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20559         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20560         (prohibit_doubled_word_): Define.
20561         (sc_prohibit_doubled_word): New rule.
20562         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20563
20564 2011-04-10  Jim Meyering  <meyering@redhat.com>
20565
20566         maint: fix doubled-word typo in comment
20567         * m4/gethostname.m4: s/is is/it is/
20568         * m4/getdomainname.m4: Likewise.
20569
20570 2011-04-10  Jim Meyering  <meyering@redhat.com>
20571
20572         maint: remove doubled word: s/it it/it/
20573         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20574
20575 2011-04-10  Jim Meyering  <meyering@redhat.com>
20576
20577         maint.mk: remove useless semicolon and backslash
20578         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20579         semicolon and backslash.
20580
20581 2011-04-10  Bruno Haible  <bruno@clisp.org>
20582
20583         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20584         * modules/stdint-tests (Depends-on): Add wchar.
20585
20586 2011-04-10  Jim Meyering  <meyering@redhat.com>
20587
20588         maint: remove doubled words in comments, e.g., s/a a/a/
20589         * lib/strptime.c (day_of_the_week): s/the the/the/
20590         * tests/test-chown.h (test_chown): s/a a/a/
20591
20592         test-chown.h: correct a cast
20593         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
20594         when the destination is a stat.st_gid.
20595
20596 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
20597
20598         getaddrinfo: Fix test for sa_len member.
20599         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
20600         include <sys/types.h> before <sys/socket.h>.
20601
20602 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20603
20604         maint: change "can not" to "cannot"
20605         * doc/posix-functions/iconv.texi (iconv): This one crossed line
20606         boundaries.
20607
20608 2011-04-09  Jim Meyering  <meyering@redhat.com>
20609
20610         maint: change "a a" to "a"
20611         * tests/test-lchown.h (test_lchown): s/a a/a/
20612
20613         maint.mk: prohibit \<the the\>
20614         * top/maint.mk (sc_prohibit_the_the): New rule.
20615
20616         maint: fix "the the" in comment
20617         * lib/count-one-bits.h: s/the the/the/
20618
20619         maint: change "can not" to "cannot"
20620         But do not change the occurrences in maintain.texi or in
20621         build-aux/po/Makefile.in.in, which I presume comes from gettext.
20622         * doc/gnulib-tool.texi: s/can not/cannot/
20623         * doc/posix-functions/accept.texi (accept): Likewise.
20624         * doc/posix-functions/socket.texi (socket): Likewise.
20625         * lib/mbrtowc.c: Likewise.
20626
20627         maint.mk: prohibit use of "can not"
20628         * top/maint.mk (sc_prohibit_can_not): New rule.
20629         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
20630
20631 2011-04-09  Bruno Haible  <bruno@clisp.org>
20632
20633         careadlinkat: Guard against misuse of careadlinkatcwd.
20634         * lib/careadlinkat.c: Include <stdlib.h>.
20635         (careadlinkatcwd): Check that the fd argument is as expected.
20636
20637 2011-04-09  Bruno Haible  <bruno@clisp.org>
20638
20639         careadlinkat: Use common coding style.
20640         * lib/careadlinkat.c: Move gnulib includes after system includes.
20641
20642 2011-04-09  Bruno Haible  <bruno@clisp.org>
20643
20644         careadlinkat: Clarify specification.
20645         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
20646         (careadlinkatcwd): Add comment.
20647         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
20648
20649 2011-04-09  Bruno Haible  <bruno@clisp.org>
20650
20651         areadlinkat: Avoid link error on many platforms.
20652         * modules/areadlinkat (Depends-on): Add areadlink.
20653
20654 2011-04-09  Bruno Haible  <bruno@clisp.org>
20655
20656         allocator, careadlinkat: Fix double-inclusion guard.
20657         * lib/allocator.h: Fix double-inclusion guard.
20658         * lib/careadlinkat.h: Likewise.
20659
20660 2011-04-09  Bruno Haible  <bruno@clisp.org>
20661
20662         relocatable-prog-wrapper: Update after module 'areadlink' changed.
20663         * lib/relocwrapper.c: Update dependencies hierarchy.
20664         * build-aux/install-reloc: Update list of files to be compiled.
20665         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
20666         lib/allocator.[hc].
20667
20668 2011-04-08  Eric Blake  <eblake@redhat.com>
20669
20670         strftime: silence gnulib-tool warning
20671         * modules/strftime-tests (Depends-on): Drop automatic dependency.
20672
20673 2011-04-08  Bruno Haible  <bruno@clisp.org>
20674
20675         verify: Fix syntax error with GCC 4.6 in C++ mode.
20676         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
20677         (HAVE_STATIC_ASSERT): New macro.
20678         (verify_true, verify): Use 'static_assert' if it is supported and
20679         '_Static_assert' is not supported.
20680
20681 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20682
20683         allocator: New module.
20684         * modules/allocator, lib/allocator.c: New files.
20685         * lib/allocator.h (stdlib_allocator): New decl.
20686         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
20687         Remove.  Do not include <stdlib.h>.
20688         (careadlinkat): Use stdlib_allocator instead of rolling our own.
20689         * modules/careadlinkat (Files): Remove lib/allocator.h.
20690         (Depends-on): Add allocator.
20691
20692         stdlib: let modules use system malloc, realloc
20693         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
20694         if !_GL_USE_STDLIB_ALLOC.
20695         (malloc, realloc): Limit this change to a smaller scope.
20696
20697         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
20698         (malloc, realloc): Don't #undef; no longer needed.
20699         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20700         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20701         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20702         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20703         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20704         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20705         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20706         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20707
20708         careadlinkat: rename members to avoid problem
20709         * lib/allocator.h (struct allocator): Rename members from
20710         malloc/realloc to allocate/reallocate, to avoid problems if malloc
20711         and realloc are #define'd.  Reported by Eric Blake in
20712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
20713         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
20714
20715 2011-04-08  Eric Blake  <eblake@redhat.com>
20716
20717         nonblocking: reduce dependency
20718         * tests/test-nonblocking.c: Only test sockets when in use.
20719         * modules/nonblocking-tests (Depends-on): Drop socket.
20720         (Makefile.am): Link even if sockets are not present.
20721         * modules/pipe2-tests (Makefile.am): Likewise.
20722         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
20723
20724         pipe2: fix O_NONBLOCK support on mingw
20725         * modules/pipe2 (Depends-on): Add nonblocking.
20726         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
20727         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
20728         * tests/test-nonblocking.c (main): Likewise.
20729         * modules/pipe2-tests (Makefile.am): Avoid link failure.
20730
20731         fcntl-h: fix O_ACCMODE on cygwin
20732         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
20733         * lib/fcntl.in.h (O_ACCMODE): Fix it.
20734
20735         pipe-filter: drop O_NONBLOCK workarounds
20736         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
20737         * modules/pipe-filter-ii (Depends-on): Likewise.
20738         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
20739
20740         nonblocking: provide O_NONBLOCK for mingw
20741         * modules/nonblocking (Depends-on): Add open.
20742         (configure.ac): Set new witness macro.
20743         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
20744         * modules/fcntl-h (Makefile.am): Substitute it.
20745         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
20746         nonblocking module is in use.
20747         * lib/nonblocking.c: Adjust portability test.
20748         * lib/open.c (open): Don't let native open see gnulib flag.
20749         * tests/test-fcntl-h.c (main): Enhance test.
20750         * tests/test-open.h (test_open): Likewise.
20751         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
20752
20753         careadlinkat: fix compilation error on mingw
20754         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
20755         within struct allocator.
20756
20757 2011-04-06  Eric Blake  <eblake@redhat.com>
20758
20759         binary-io: relicense under LGPLv2+
20760         * modules/binary-io (License): Relax to LGPLv2+.
20761         Requested for libvirt, and required by pipe2.
20762
20763 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20764
20765         verify: use _Static_assert if available
20766         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
20767         (verify_true, verify): Use it if available.  This generates better
20768         diagnostics with GCC 4.6.0 and later.
20769
20770 2011-04-05  Bruno Haible  <bruno@clisp.org>
20771
20772         Remove leftover generated .h files after config.status changed.
20773
20774         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
20775         GL_GENERATE_ALLOCA_H.
20776         * modules/alloca-opt (Makefile.am): Remove alloca.h if
20777         GL_GENERATE_ALLOCA_H evaluates to false.
20778
20779         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
20780         GL_GENERATE_ARGZ_H.
20781         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
20782         evaluates to false.
20783
20784         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
20785         GL_GENERATE_BYTESWAP_H.
20786         * modules/byteswap (Makefile.am): Remove byteswap.h if
20787         GL_GENERATE_BYTESWAP_H evaluates to false.
20788
20789         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
20790         GL_GENERATE_ERRNO_H.
20791         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
20792         evaluates to false.
20793
20794         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
20795         GL_GENERATE_FLOAT_H.
20796         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
20797         evaluates to false.
20798
20799         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
20800         GL_GENERATE_FNMATCH_H.
20801         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
20802         GL_GENERATE_FNMATCH_H evaluates to false.
20803
20804         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
20805         GL_GENERATE_GLOB_H.
20806         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
20807         evaluates to false.
20808
20809         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
20810         automake conditional GL_GENERATE_ICONV_H.
20811         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
20812         evaluates to false.
20813
20814         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
20815         GL_GENERATE_NETINET_IN_H.
20816         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
20817         GL_GENERATE_NETINET_IN_H evaluates to false.
20818
20819         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
20820         conditional GL_GENERATE_PTHREAD_H.
20821         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
20822         * modules/pthread (Makefile.am): Remove pthread.h if
20823         GL_GENERATE_PTHREAD_H evaluates to false.
20824
20825         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
20826         GL_GENERATE_SCHED_H.
20827         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
20828         evaluates to false.
20829
20830         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
20831         conditional GL_GENERATE_SELINUX_CONTEXT_H.
20832         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
20833         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
20834
20835         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
20836         GL_GENERATE_STDARG_H.
20837         * modules/stdarg (Makefile.am): Remove stdarg.h if
20838         GL_GENERATE_STDARG_H evaluates to false.
20839
20840         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
20841         GL_GENERATE_STDBOOL_H.
20842         * modules/stdbool (Makefile.am): Remove stdbool.h if
20843         GL_GENERATE_STDBOOL_H evaluates to false.
20844
20845         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
20846         conditional GL_GENERATE_STDDEF_H.
20847         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
20848         * modules/stddef (Makefile.am): Remove stddef.h if
20849         GL_GENERATE_STDDEF_H evaluates to false.
20850
20851         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
20852         GL_GENERATE_STDINT_H.
20853         * modules/stdint (Makefile.am): Remove stdint.h if
20854         GL_GENERATE_STDINT_H evaluates to false.
20855
20856         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
20857         GL_GENERATE_SYSEXITS_H.
20858         * modules/sysexits (Makefile.am): Remove sysexits.h if
20859         GL_GENERATE_SYSEXITS_H evaluates to false.
20860
20861         Reported by Karl Berry and Ralf Wildenhues.
20862
20863 2011-04-05  Bruno Haible  <bruno@clisp.org>
20864
20865         Ensure to rebuild generated .h files when config.status has changed.
20866         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
20867         config.status.
20868         * modules/ctype (Makefile.am): Likewise.
20869         * modules/dirent (Makefile.am): Likewise.
20870         * modules/errno (Makefile.am): Likewise.
20871         * modules/fcntl-h (Makefile.am): Likewise.
20872         * modules/float (Makefile.am): Likewise.
20873         * modules/getopt-posix (Makefile.am): Likewise.
20874         * modules/glob (Makefile.am): Likewise.
20875         * modules/iconv-h (Makefile.am): Likewise.
20876         * modules/inttypes (Makefile.am): Likewise.
20877         * modules/langinfo (Makefile.am): Likewise.
20878         * modules/locale (Makefile.am): Likewise.
20879         * modules/math (Makefile.am): Likewise.
20880         * modules/netdb (Makefile.am): Likewise.
20881         * modules/netinet_in (Makefile.am): Likewise.
20882         * modules/poll-h (Makefile.am): Likewise.
20883         * modules/pthread (Makefile.am): Likewise.
20884         * modules/pty (Makefile.am): Likewise.
20885         * modules/sched (Makefile.am): Likewise.
20886         * modules/search (Makefile.am): Likewise.
20887         * modules/selinux-h (Makefile.am): Likewise.
20888         * modules/signal (Makefile.am): Likewise.
20889         * modules/spawn (Makefile.am): Likewise.
20890         * modules/stdarg (Makefile.am): Likewise.
20891         * modules/stdbool (Makefile.am): Likewise.
20892         * modules/stddef (Makefile.am): Likewise.
20893         * modules/stdint (Makefile.am): Likewise.
20894         * modules/stdio (Makefile.am): Likewise.
20895         * modules/stdlib (Makefile.am): Likewise.
20896         * modules/string (Makefile.am): Likewise.
20897         * modules/strings (Makefile.am): Likewise.
20898         * modules/sys_file (Makefile.am): Likewise.
20899         * modules/sys_ioctl (Makefile.am): Likewise.
20900         * modules/sys_select (Makefile.am): Likewise.
20901         * modules/sys_socket (Makefile.am): Likewise.
20902         * modules/sys_stat (Makefile.am): Likewise.
20903         * modules/sys_time (Makefile.am): Likewise.
20904         * modules/sys_times (Makefile.am): Likewise.
20905         * modules/sys_utsname (Makefile.am): Likewise.
20906         * modules/sys_wait (Makefile.am): Likewise.
20907         * modules/sysexits (Makefile.am): Likewise.
20908         * modules/termios (Makefile.am): Likewise.
20909         * modules/time (Makefile.am): Likewise.
20910         * modules/unistd (Makefile.am): Likewise.
20911         * modules/wchar (Makefile.am): Likewise.
20912         * modules/wctype-h (Makefile.am): Likewise.
20913         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
20914
20915 2011-04-05  Bruno Haible  <bruno@clisp.org>
20916
20917         pipe2: Relicense under LGPLv2+.
20918         * modules/pipe2 (License): Change to LGPLv2+.
20919         Requested by Eric Blake, for libvirt.
20920
20921 2011-04-05  Bruce Korb  <bkorb@gnu.org>
20922
20923         bootstrap: compute gnulib_extra_files after updating build_aux
20924         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
20925         change build_aux or also supply gnulib_extra_files.  Handle correctly.
20926
20927 2011-04-05  Eric Blake  <eblake@redhat.com>
20928
20929         bootstrap: preserve git whitelist item sorting
20930         * build-aux/bootstrap (sort_patterns): New function.
20931         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
20932
20933 2011-04-05  Simon Josefsson  <simon@josefsson.org>
20934
20935         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
20936         sc_space_tab check.
20937
20938 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20939
20940         areadlink, areadlinkat: rewrite in terms of careadlinkat
20941         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
20942         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
20943         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
20944         (malloc, realloc): Remove #undefs.
20945         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
20946         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
20947         readlink, ssize_t, stdint, unistd.
20948         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
20949         areadlink, stdint.
20950
20951         careadlinkat: new module
20952         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
20953         * modules/careadlinkat: New files, written by me with
20954         a review and feedback from Ben Pfaff in
20955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
20956
20957 2011-04-01  Bruno Haible  <bruno@clisp.org>
20958
20959         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
20960         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
20961         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
20962         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
20963         Reported by Bruce Korb <bruce.korb@gmail.com>.
20964
20965 2011-04-01  Bruno Haible  <bruno@clisp.org>
20966
20967         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
20968         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
20969         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
20970         * modules/wcpcpy (Depends-on): Add extensions.
20971         * modules/wcpncpy (Depends-on): Likewise.
20972         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
20973         systems.
20974         * doc/posix-functions/wcpncpy.texi: Likewise.
20975         * doc/posix-functions/wcwidth.texi: Likewise.
20976
20977 2011-03-31  Eric Blake  <eblake@redhat.com>
20978
20979         nonblocking: fix mingw test failures
20980         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
20981         non-blocking flag on regular file.
20982         (get_nonblocking_flag): Set errno on invalid fd.
20983         * tests/test-nonblocking.c (main): Avoid test failure on
20984         directories if fchdir is not active.
20985         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
20986
20987 2011-03-31  Bruno Haible  <bruno@clisp.org>
20988
20989         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
20990         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
20991         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
20992         Reported by Simon Josefsson <simon@josefsson.org>.
20993
20994 2011-03-31  Bruno Haible  <bruno@clisp.org>
20995         and Eric Blake  <eblake@redhat.com>
20996
20997         nonblocking: new module
20998         * modules/nonblocking: New module.
20999         * modules/nonblocking-tests: Likewise.
21000         * lib/nonblocking.h: New file.
21001         * lib/nonblocking.c: Likewise.
21002         * tests/test-nonblocking.c: New test.
21003         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21004
21005 2011-03-30  Bruno Haible  <bruno@clisp.org>
21006
21007         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21008         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21009         instead of 'printf' format for GCC >= 4.4.
21010         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21011         (fprintf, printf, vfprintf, vprintf): Declare with
21012         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21013         the system's vfprintf() function.
21014         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21015
21016 2011-03-30  Eric Blake  <eblake@redhat.com>
21017
21018         passfd: fix scoping bug
21019         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21020         before sendmsg/recvmsg.
21021
21022         passfd: standardize coding conventions
21023         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21024         can be learned at compile time.
21025         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21026         ifdefs.
21027         (sendfd, recvfd): Follow gnulib code conventions.
21028
21029         passfd: fix incorrect sendmsg arguments
21030         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21031         incorrect msg_controllen value.
21032         * modules/passfd-tests (Depends-on): Check for alarm.
21033         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21034         Reported by Bastien ROUCARIES.
21035
21036 2011-03-30  Bruno Haible  <bruno@clisp.org>
21037
21038         c-strcasestr: Relicense under LGPLv2+.
21039         * modules/c-strcasestr (License): Change to LGPLv2+.
21040         Requested by Eric Blake, for libvirt.
21041
21042 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21043
21044         * users.txt: Add libidn2.  Fix libtasn1 link.
21045
21046 2011-03-30  Jim Meyering  <meyering@redhat.com>
21047
21048         tests: readlink* ("",... fails with EINVAL on newer kernels
21049         readlink and readlinkat have typically failed with ENOENT for
21050         the invalid, empty file name,  "".  However, with the advent
21051         of linux-2.6.39, they fail with EINVAL.
21052         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21053         when operating on the empty file name.
21054         * tests/test-readlink.h (test_readlink): Likewise.
21055
21056 2011-03-29  Bruno Haible  <bruno@clisp.org>
21057
21058         Relicense some modules under LGPLv2+, for libidn2.
21059         * modules/array-mergesort (License): Change to LGPLv2+.
21060         * modules/c-strcaseeq (License): Likewise.
21061         * modules/striconveh (License): Likewise.
21062         * modules/striconveha (License): Likewise.
21063         * modules/uniconv/base (License): Likewise.
21064         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21065         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21066         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21067         * modules/unictype/base (License): Likewise.
21068         * modules/unictype/bidiclass-of (License): Likewise.
21069         * modules/unictype/category-M (License): Likewise.
21070         * modules/unictype/category-none (License): Likewise.
21071         * modules/unictype/category-of (License): Likewise.
21072         * modules/unictype/category-test (License): Likewise.
21073         * modules/unictype/category-test-withtable (License): Likewise.
21074         * modules/unictype/combining-class (License): Likewise.
21075         * modules/unictype/joiningtype-of (License): Likewise.
21076         * modules/unictype/scripts (License): Likewise.
21077         * modules/uninorm/base (License): Likewise.
21078         * modules/uninorm/canonical-decomposition (License): Likewise.
21079         * modules/uninorm/composition (License): Likewise.
21080         * modules/uninorm/decompose-internal (License): Likewise.
21081         * modules/uninorm/decomposition-table (License): Likewise.
21082         * modules/uninorm/nfc (License): Likewise.
21083         * modules/uninorm/nfd (License): Likewise.
21084         * modules/uninorm/u32-normalize (License): Likewise.
21085         * modules/unistr/base (License): Likewise.
21086         * modules/unistr/u32-cpy (License): Likewise.
21087         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21088         * modules/unistr/u32-to-u8 (License): Likewise.
21089         * modules/unistr/u32-uctomb (License): Likewise.
21090         * modules/unistr/u8-check (License): Likewise.
21091         * modules/unistr/u8-mblen (License): Likewise.
21092         * modules/unistr/u8-mbtouc (License): Likewise.
21093         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21094         * modules/unistr/u8-mbtoucr (License): Likewise.
21095         * modules/unistr/u8-prev (License): Likewise.
21096         * modules/unistr/u8-strlen (License): Likewise.
21097         * modules/unistr/u8-to-u32 (License): Likewise.
21098         * modules/unistr/u8-uctomb (License): Likewise.
21099         * modules/unitypes (License): Likewise.
21100         Requested by Simon Josefsson.
21101
21102 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21103
21104         lib-symbol-visibility: Add a notice.
21105         * modules/lib-symbol-visibility (Notice): New field.
21106
21107 2011-03-29  Bruno Haible  <bruno@clisp.org>
21108
21109         getaddrinfo: Doc fix.
21110         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21111         section "fixed in Gnulib".
21112
21113 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21114
21115         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21116         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21117
21118 2011-03-26  Bruno Haible  <bruno@clisp.org>
21119
21120         unictype/property-byname: Reduce the number of load-time relocations.
21121         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21122         (UC_PROPERTY_INDEX_*): New enumeration values.
21123         (uc_property_byname): Convert an index from the lookup table to an
21124         uc_property_t.
21125         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21126         values.
21127
21128 2011-03-26  Bruno Haible  <bruno@clisp.org>
21129
21130         unictype/property-byname: Allow omitted word separators and aliases.
21131         * lib/unictype/pr_byname.gperf: Add property names without word
21132         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21133         for 'space'.
21134
21135 2011-03-26  Bruno Haible  <bruno@clisp.org>
21136
21137         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21138         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21139         also hyphens to space.
21140         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21141         without spaces.
21142         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21143
21144 2011-03-26  Bruno Haible  <bruno@clisp.org>
21145
21146         unictype/joiningtype-byname: Recognize long names as well.
21147         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21148         a long name.
21149         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21150         unictype/joiningtype_byname.h.
21151         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21152         * lib/unictype/joiningtype_byname.gperf: New file.
21153         * modules/unictype/joiningtype-byname (Files): Add
21154         lib/unictype/joiningtype_byname.gperf.
21155         (Depends-on): Add gperf.
21156         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21157         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21158         long names.
21159
21160         Tests for module 'unictype/joiningtype-longname'.
21161         * modules/unictype/joiningtype-longname-tests: New file.
21162         * tests/unictype/test-joiningtype_longname.c: New file.
21163
21164         New module 'unictype/joiningtype-longname'.
21165         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21166         * lib/unictype/joiningtype_longname.c: New file.
21167         * modules/unictype/joiningtype-longname: New file.
21168         * modules/unictype/joiningtype-all (Depends-on): Add
21169         unictype/joiningtype-longname.
21170
21171 2011-03-26  Bruno Haible  <bruno@clisp.org>
21172
21173         unictype/bidiclass-byname: Recognize long names as well.
21174         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21175         name.
21176         * lib/unictype/bidi_byname.c: Include <string.h>,
21177         unictype/bidi_byname.h.
21178         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21179         * lib/unictype/bidi_byname.gperf: New file.
21180         * modules/unictype/bidiclass-byname (Files): Add
21181         lib/unictype/bidi_byname.gperf.
21182         (Depends-on): Add gperf.
21183         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21184         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21185         long names.
21186
21187         Tests for module 'unictype/bidiclass-longname'.
21188         * modules/unictype/bidiclass-longname-tests: New file.
21189         * tests/unictype/test-bidi_longname.c: New file.
21190
21191         New module 'unictype/bidiclass-longname'.
21192         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21193         * lib/unictype/bidi_longname.c: New file.
21194         * modules/unictype/bidiclass-longname: New file.
21195         * modules/unictype/bidiclass-all (Depends-on): Add
21196         unictype/bidiclass-longname.
21197
21198 2011-03-26  Bruno Haible  <bruno@clisp.org>
21199
21200         unictype/bidi*: Rename modules.
21201         * modules/unictype/bidiclass-all: Renamed from
21202         modules/unictype/bidicategory-all.
21203         * modules/unictype/bidiclass-name: Renamed from
21204         modules/unictype/bidiclass-name.
21205         (Description): Update.
21206         * modules/unictype/bidiclass-name-tests: Renamed from
21207         modules/unictype/bidicategory-name-tests.
21208         * modules/unictype/bidiclass-byname: Renamed from
21209         modules/unictype/bidicategory-byname.
21210         (Description): Update.
21211         * modules/unictype/bidiclass-byname-tests: Renamed from
21212         modules/unictype/bidicategory-byname-tests.
21213         * modules/unictype/bidiclass-of: Renamed from
21214         modules/unictype/bidicategory-of.
21215         (Description): Update.
21216         * modules/unictype/bidiclass-of-tests: Renamed from
21217         modules/unictype/bidicategory-of-tests.
21218         * modules/unictype/bidiclass-test: Renamed from
21219         modules/unictype/bidicategory-test.
21220         (Description): Update.
21221         * modules/unictype/bidiclass-test-tests: Renamed from
21222         modules/unictype/bidicategory-test-tests.
21223         * modules/unictype/bidicategory-all: New file, a simple redirection.
21224         * modules/unictype/bidicategory-name: Likewise.
21225         * modules/unictype/bidicategory-byname: Likewise.
21226         * modules/unictype/bidicategory-of: Likewise.
21227         * modules/unictype/bidicategory-test: Likewise.
21228         * modules/unictype/property-bidi-* (Dependencies): Update.
21229         * lib/unictype/bidi_*.c: Update comment.
21230
21231 2011-03-26  Bruno Haible  <bruno@clisp.org>
21232
21233         unictype/bidi*: Rename functions, part 2.
21234         * modules/unictype/bidicategory-name (configure.ac): Update required
21235         libunistring version.
21236         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21237
21238 2011-03-25  Bruno Haible  <bruno@clisp.org>
21239
21240         New module 'unictype/combining-class-all'.
21241         * modules/unictype/combining-class-all: New file.
21242
21243         Tests for module 'unictype/combining-class-byname'.
21244         * modules/unictype/combining-class-byname-tests: New file.
21245         * tests/unictype/test-combiningclass_byname.c: New file.
21246
21247         New module 'unictype/combining-class-byname'.
21248         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21249         * lib/unictype/combiningclass_byname.c: New file.
21250         * lib/unictype/combiningclass_byname.gperf: New file.
21251         * modules/unictype/combining-class-byname: New file.
21252
21253         Tests for module 'unictype/combining-class-longname'.
21254         * modules/unictype/combining-class-longname-tests: New file.
21255         * tests/unictype/test-combiningclass_longname.c: New file.
21256
21257         New module 'unictype/combining-class-longname'.
21258         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21259         * lib/unictype/combiningclass_longname.c: New file.
21260         * modules/unictype/combining-class-longname: New file.
21261
21262         Tests for module 'unictype/combining-class-name'.
21263         * modules/unictype/combining-class-name-tests: New file.
21264         * tests/unictype/test-combiningclass_name.c: New file.
21265
21266         New module 'unictype/combining-class-name'.
21267         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21268         * lib/unictype/combiningclass_name.c: New file.
21269         * modules/unictype/combining-class-name: New file.
21270
21271 2011-03-25  Bruno Haible  <bruno@clisp.org>
21272
21273         unictype/combining-class: Rename source files.
21274         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21275         of unictype/combining.h.
21276         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21277         Update.
21278         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21279         * modules/unictype/combining-class (Description): Fix.
21280         (Files, Makefile.am): Update.
21281         * tests/unictype/test-combiningclass.c: Renamed from
21282         tests/unictype/test-combining.c.
21283         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21284
21285 2011-03-25  Bruno Haible  <bruno@clisp.org>
21286
21287         unictype: Update list of canonical combining classes.
21288         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21289
21290 2011-03-25  Bruno Haible  <bruno@clisp.org>
21291
21292         unictype/category-byname: Recognize long names as well.
21293         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21294         a long name.
21295         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21296         unictype/categ_byname.h.
21297         (UC_CATEGORY_INDEX_*): New enumeration values.
21298         (uc_general_category_byname): Use uc_general_category_lookup and
21299         convert from index to value.
21300         * lib/unictype/categ_byname.gperf: New file.
21301         * modules/unictype/category-byname (Files): Add
21302         lib/unictype/categ_byname.gperf.
21303         (Depends-on): Add gperf.
21304         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21305         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21306         long names.
21307
21308         Tests for module 'unictype/category-longname'.
21309         * modules/unictype/category-longname-tests: New file.
21310         * tests/unictype/test-categ_longname.c: New file.
21311
21312         New module 'unictype/category-longname'.
21313         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21314         * lib/unictype/categ_longname.c: New file.
21315         * modules/unictype/category-longname: New file.
21316         * modules/unictype/category-all (Depends-on): Add it.
21317
21318 2011-03-25  Bruno Haible  <bruno@clisp.org>
21319
21320         Tests for module 'unictype/category-LC'.
21321         * modules/unictype/category-LC-tests: New file.
21322         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21323
21324         New module 'unictype/category-LC'.
21325         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21326         (UC_CATEGORY_LC): New declaration.
21327         (UC_CASED_LETTER): New macro.
21328         * lib/gen-uni-tables.c (is_category_LC): New function.
21329         (output_categories): Also handle category LC.
21330         (UC_CATEGORY_MASK_LC): New enumeration value.
21331         (general_category_byname): Also handle category LC.
21332         * lib/unictype/categ_LC.c: New file.
21333         * lib/unictype/categ_LC.h: New file, automatically generated.
21334         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21335         category LC.
21336         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21337         * modules/unictype/category-LC: New file.
21338         * modules/unictype/category-byname (Depends-on): Add
21339         unictype/category-LC.
21340         * modules/unictype/category-all (Depends-on): Likewise.
21341
21342 2011-03-25  Eric Blake  <eblake@redhat.com>
21343
21344         xmalloc: revert yesterday's regression
21345         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21346         realloc's underlying behavior (allowing allocation of zero-size
21347         objects, especially if malloc-gnu is also in use).
21348
21349 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21350
21351         maint.mk: add missing version to VC-tag
21352         * top/maint.mk: git tag was missing actual tag name; add it.
21353
21354         valgrind: do leak checking, and exit with code 1 on error (not 0)
21355         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21356         to VALGRIND.
21357
21358 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21359
21360         posix-modules: say what it does.
21361         * posix-modules: Add a line to the --help output saying what it does.
21362
21363 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21364
21365         xmalloc: Do not leak if underlying realloc is C99 compatible.
21366         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21367         This avoids a leak on C99-based systems.  See
21368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21369
21370 2011-03-24  Eric Blake  <eblake@redhat.com>
21371
21372         realloc: document portability problem
21373         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21374         passing 0 size to realloc.
21375
21376 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21377
21378         doc: update users.txt
21379         * users.txt: Add cvsps, tmpwatch
21380
21381 2011-03-23  Matt Rice  <ratmice@gmail.com>
21382
21383         doc: update users.txt
21384         * users.txt: Add gdb.
21385
21386 2011-03-23  Jim Meyering  <meyering@redhat.com>
21387
21388         doc: update users.txt
21389         Looking through matches up to the following URL (there are still
21390         several more pages), I found several projects that use gnulib:
21391         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21392         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21393         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21394
21395 2011-03-22  Bruno Haible  <bruno@clisp.org>
21396
21397         unictype/bidi*: Rename functions.
21398         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21399         uc_bidi_class, uc_is_bidi_class): New declarations.
21400         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21401         uc_bidi_category_byname.
21402         (uc_bidi_category_byname): New function.
21403         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21404         u_bidi_category_name.
21405         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21406         (uc_bidi_category_name): New function.
21407         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21408         uc_bidi_category.
21409         (uc_bidi_category): New function.
21410         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21411         uc_is_bidi_category. Invoke uc_bidi_class.
21412         (uc_is_bidi_category): New function.
21413         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21414         instead of uc_bidi_category_byname.
21415         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21416         instead of uc_bidi_category_name.
21417         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21418         uc_bidi_category.
21419         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21420         instead of uc_is_bidi_category.
21421
21422 2011-03-21  Bruno Haible  <bruno@clisp.org>
21423
21424         New module 'unictype/joininggroup-all'.
21425         * modules/unictype/joininggroup-all: New file.
21426
21427         Tests for module 'unictype/joininggroup-of'.
21428         * modules/unictype/joininggroup-of-tests: New file.
21429         * tests/unictype/test-joininggroup_of.c: New file.
21430         * tests/unictype/test-joininggroup_of.h: New file, automatically
21431         generated by gen-uni-tables.
21432
21433         New module 'unictype/joininggroup-of'.
21434         * modules/unictype/joininggroup-of: New file.
21435         * lib/unictype/joininggroup_of.c: New file.
21436         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21437         gen-uni-tables.
21438
21439         Tests for module 'unictype/joininggroup-byname'.
21440         * modules/unictype/joininggroup-byname-tests: New file.
21441         * tests/unictype/test-joininggroup_byname.c: New file.
21442
21443         New module 'unictype/joininggroup-byname'.
21444         * modules/unictype/joininggroup-byname: New file.
21445         * lib/unictype/joininggroup_byname.c: New file.
21446         * lib/unictype/joininggroup_byname.gperf: New file.
21447
21448         Tests for module 'unictype/joininggroup-name'.
21449         * modules/unictype/joininggroup-name-tests: New file.
21450         * tests/unictype/test-joininggroup_name.c: New file.
21451
21452         New module 'unictype/joininggroup-name'.
21453         * modules/unictype/joininggroup-name: New file.
21454         * lib/unictype/joininggroup_name.c: New file.
21455         * lib/unictype/joininggroup_name.h: New file.
21456
21457         New module 'unictype/joiningtype-all'.
21458         * modules/unictype/joiningtype-all: New file.
21459
21460         Tests for module 'unictype/joiningtype-of'.
21461         * modules/unictype/joiningtype-of-tests: New file.
21462         * tests/unictype/test-joiningtype_of.c: New file.
21463         * tests/unictype/test-joiningtype_of.h: New file, automatically
21464         generated by gen-uni-tables.
21465
21466         New module 'unictype/joiningtype-of'.
21467         * modules/unictype/joiningtype-of: New file.
21468         * lib/unictype/joiningtype_of.c: New file.
21469         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21470         gen-uni-tables.
21471
21472         Tests for module 'unictype/joiningtype-byname'.
21473         * modules/unictype/joiningtype-byname-tests: New file.
21474         * tests/unictype/test-joiningtype_byname.c: New file.
21475
21476         New module 'unictype/joiningtype-byname'.
21477         * modules/unictype/joiningtype-byname: New file.
21478         * lib/unictype/joiningtype_byname.c: New file.
21479
21480         Tests for module 'unictype/joiningtype-name'.
21481         * modules/unictype/joiningtype-name-tests: New file.
21482         * tests/unictype/test-joiningtype_name.c: New file.
21483
21484         New module 'unictype/joiningtype-name'.
21485         * modules/unictype/joiningtype-name: New file.
21486         * lib/unictype/joiningtype_name.c: New file.
21487
21488         unictype: Add support for Arabic shaping properties.
21489         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21490         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21491         declarations.
21492         (UC_JOINING_GROUP_*): New enumeration values.
21493         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21494         declarations.
21495         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21496         (unicode_joining_type): New variable.
21497         (UC_JOINING_GROUP_*): New enumeration values.
21498         (unicode_joining_group): New variable.
21499         (fill_arabicshaping, joining_type_as_c_identifier,
21500         output_joining_type_test, output_joining_type,
21501         joining_group_as_c_identifier, output_joining_group_test,
21502         output_joining_group): New functions.
21503         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21504         fill_arabicshaping and output_joining_type_test, output_joining_type,
21505         output_joining_group_test, output_joining_group.
21506         Reported by Simon Josefsson.
21507
21508 2011-03-21  Jim Meyering  <meyering@redhat.com>
21509
21510         strftime: fix a bug in yesterday's change
21511         * lib/strftime.c (add): Accommodate width's initial value of -1.
21512         Otherwise, nstrftime would copy uninitialized data into
21513         the result buffer.
21514
21515 2011-03-21  Jim Meyering  <meyering@redhat.com>
21516
21517         tests: add strftime-tests module
21518         * tests/test-strftime.c: New file.
21519         * modules/strftime-tests: New module.
21520
21521 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21522
21523         strftime: don't assume a byte count fits in 'int'
21524         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21525         found this problem by static analysis, using gcc -Wstrict-overflow
21526         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21527         on an integer overflow having undefined behavior, but it turns out
21528         that the argument is a size, which might not fit in 'int' anyway,
21529
21530 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21531
21532         stdio: don't require ignore_value around fwrite
21533
21534         This patch works around libc bug 11959
21535         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21536         Without this patch, applications must often write
21537         ignore_value (fwrite (...)) even though the ignore_value is
21538         not helpful here.  It's common to write many objects, using
21539         fwrite/printf/etc., and then use ferror to detect output error.
21540
21541         I considered making this patch optional, but decided against it,
21542         because libc is obviously being inconsistent here: there is no
21543         reason libc should insist that user code must inspect fwrite
21544         return's value without also insisting that it inspect printf's,
21545         putchar's, etc.  If user code wants to have a strict style where
21546         all these functions' values are checked (so that ferror need not
21547         be checked), we could add support for that style in a new gnulib
21548         module, but in the meantime it's better to be consistent and to
21549         support common usage.
21550
21551         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21552         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21553         that we are compiling in checking mode, and if not C++, and
21554         if not already wrapping fwrite for some other reason.
21555         (fwrite): #define to rpl_fwrite if the latter is defined.
21556
21557 2011-03-20  Bruno Haible  <bruno@clisp.org>
21558
21559         verror: Fix compilation error introduced on 2011-02-13.
21560         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21561         instead of __attribute__.
21562         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21563
21564 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21565             Bruno Haible  <bruno@clisp.org>
21566
21567         socklen: do not depend on sys_socket
21568         While trying to modify Emacs to use gnulib's socklen module,
21569         I discovered a circular dependency: socklen depends on sys_socket
21570         and vice versa.  Emacs can use socklen, but it does not need
21571         sys_socket because it has its own substitute for sys/socket.h.
21572         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21573         gl_TYPE_SOCKLEN_T.
21574         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21575         gl_PREREQ_SYS_H_SOCKET.
21576         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21577         gl_PREREQ_SYS_H_SOCKET.
21578         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21579         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21580         * modules/socklen (Depends-on): Do not depend on sys_socket.
21581         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21582
21583 2011-03-20  Jim Meyering  <meyering@redhat.com>
21584
21585         maint.mk: sort file names *after* new transformation
21586         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
21587         prefix would have led to an unwarranted failure in GNU parted.
21588         Sort after that transformation.
21589
21590 2011-03-19  Jim Meyering  <meyering@redhat.com>
21591
21592         maint.mk: fix po-file syntax-check rule
21593         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
21594         Patch by Bruno Haible.
21595
21596 2011-03-19  Bruno Haible  <bruno@clisp.org>
21597
21598         socklen: Update comment.
21599         * m4/socklen.m4: Update comment about platforms.
21600
21601 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21602             Bruno Haible  <bruno@clisp.org>
21603
21604         inet_ntop, inet_pton: Simplify.
21605         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
21606         documented to provide socklen_t and we already depend on sys_socket.
21607         * modules/inet_pton (Depends-on): Likewise.
21608         * lib/arpa_inet.in.h: Adjust comment.
21609
21610 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21611             Bruno Haible  <bruno@clisp.org>
21612
21613         netdb: Simplify.
21614         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
21615         documented to provide socklen_t and we already depend on sys_socket.
21616         * lib/netdb.in.h: Adjust comment.
21617
21618 2011-03-19  Bruno Haible  <bruno@clisp.org>
21619
21620         sys_socket, netdb: Document problem with socklen_t.
21621         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
21622         platforms.
21623         * doc/posix-headers/netdb.texi: Likewise.
21624
21625 2011-03-18  Eric Blake  <eblake@redhat.com>
21626
21627         maint.mk: let po check work in VPATH build
21628         * top/maint.mk (po_file): Allow cfg.mk override.
21629         (sc_po_check): Allow VPATH use.
21630         Reported by Jiri Denemark.
21631
21632 2011-03-16  Jim Meyering  <meyering@redhat.com>
21633
21634         maint.mk: allow fine-grained syntax-check exclusion via Make variables
21635         Before, you would have had to create one .x-sc_ file per rule in order
21636         to exempt offending files.  Now, you may instead use a Make variable --
21637         usually defined in cfg.mk -- whose name identifies the affected rule.
21638         * top/maint.mk (_sc_excl): Define.
21639         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
21640         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
21641
21642 2011-03-13  Bruno Haible  <bruno@clisp.org>
21643
21644         ignore-value tests: Avoid warnings.
21645         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
21646         empty for gcc < 3.4.
21647
21648 2011-03-13  Bruno Haible  <bruno@clisp.org>
21649
21650         passfd: Fix link error on Solaris.
21651         * modules/passfd (Description): Correct.
21652         (Depends-on): Add socketlib.
21653         (Link): New section.
21654         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
21655
21656 2011-03-13  Bruno Haible  <bruno@clisp.org>
21657
21658         passfd: Fix link error on AIX 5.2.
21659         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
21660
21661 2011-03-13  Bruno Haible  <bruno@clisp.org>
21662
21663         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
21664         * lib/sys_socket.in.h: Include <stddef.h>.
21665         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
21666         CMSG_FIRSTHDR. Remove unused variable.
21667
21668 2011-03-13  Bruno Haible  <bruno@clisp.org>
21669
21670         passfd: Fix compilation error on OpenBSD.
21671         * lib/passfd.c: Include <sys/uio.h>.
21672
21673 2011-03-13  Bruno Haible  <bruno@clisp.org>
21674
21675         passfd test: Fix warnings.
21676         * tests/test-passfd.c: Include <sys/wait.h>.
21677         (main): Fix typo.
21678
21679 2011-03-13  Bruno Haible  <bruno@clisp.org>
21680
21681         passfd module, part 4, tweaks.
21682         * tests/test-passfd.c: Reorder includes.
21683         (main): Fix perror and printf calls.
21684
21685 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21686
21687         passfd module, part 4.
21688         * modules/passfd-tests: New file.
21689         * tests/test-passfd.c: New file.
21690
21691 2011-03-13  Jim Meyering  <meyering@redhat.com>
21692
21693         Makefile: rely on GNU make; derive syntax-check rule names
21694         Rather than requiring that each sc_ rule be listed as a dependent
21695         of "check", use features of GNU make to derive the list.
21696         * Makefile (syntax-check-rules): Define.
21697         (check): Depend on the new variable, not the hard-coded list.
21698
21699 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
21700             Bruno Haible  <bruno@clisp.org>
21701
21702         passfd module, part 3.
21703         * lib/passfd.h (recvfd): Add a flags argument.
21704         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
21705         (recvfd): Add a flags argument.
21706         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
21707         exists.
21708         * modules/passfd (Depends-on): Add cloexec.
21709         Suggested by Eric Blake.
21710
21711 2011-03-13  Bruno Haible  <bruno@clisp.org>
21712
21713         passfd module, part 2, tweaks.
21714         * modules/passfd (Files): Reorder.
21715         (Depends-on): Remove errno.
21716         (Include): Remove <sys/socket.h>, <sys/un.h>.
21717         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
21718         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
21719         specification header. Include <sys/socket.h> always. Don't include
21720         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
21721         (sendfd): Clarify that it sets errno when it fails.
21722         (recvfd): Fix specification.
21723
21724 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21725
21726         passfd module, part 2.
21727         * modules/passfd: New file.
21728         * lib/passfd.h: New file.
21729         * lib/passfd.c: New file.
21730
21731 2011-03-12  Bruno Haible  <bruno@clisp.org>
21732
21733         wcswidth, mbswidth: Avoid integer overflow.
21734         * lib/wcswidth.c: Include <limits.h>.
21735         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
21736         * lib/mbswidth.c: Include <limits.h>.
21737         (mbsnwidth): Avoid 'int' overflow.
21738         Reported by Jim Meyering.
21739
21740 2011-03-12  Bruno Haible  <bruno@clisp.org>
21741
21742         futimens, utimensat: Avoid endless recursion on Solaris 10.
21743         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
21744         Solaris.
21745         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
21746         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
21747
21748 2011-03-11  Jim Meyering  <meyering@redhat.com>
21749
21750         maint.mk: relax a regexp to accommodate other formatting styles
21751         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
21752         between "ngettext" and the following "(".
21753
21754 2011-03-11  Pádraig Brady <P@draigBrady.com>
21755
21756         maint.mk: suppress a false positive warning
21757         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
21758         diagnostics are marked with ngettext.
21759
21760 2011-03-10  Eric Blake  <eblake@redhat.com>
21761
21762         wchar: add explicit dependencies, for Tru64
21763         * modules/mbmemcasecoll (Depends-on): Add wchar.
21764         * modules/mbtowc (Depends-on): Likewise.
21765         * modules/vasnprintf (Depends-on): Likewise.
21766         * modules/unistdio/u-printf-args (Depends-on): Likewise.
21767         * modules/wctomb (Depends-on): Likewise.
21768         Reported by Peter O'Gorman.
21769
21770 2011-03-08  Bruno Haible  <bruno@clisp.org>
21771
21772         passfd module, part 1, tweaks.
21773         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
21774         Improve indentation. Improve AC_MSG_CHECKING messages.
21775         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
21776         gl_SOCKET_FAMILIES.
21777
21778 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21779
21780         passfd module, part 1.
21781         * m4/afunix.m4: New file.
21782         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
21783         sockets.
21784
21785 2011-03-08  Bruno Haible  <bruno@clisp.org>
21786
21787         regex-quote: New API.
21788         * lib/regex-quote.h: Include <stdbool.h>.
21789         (struct regex_quote_spec): New type.
21790         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21791         New declarations.
21792         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21793         'const struct regex_quote_spec *' argument.
21794         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
21795         (pcre_special): New constant.
21796         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21797         New functions.
21798         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21799         'const struct regex_quote_spec *' argument.
21800         * modules/regex-quote (Depends-on): Add stdbool.
21801         * tests/test-regex-quote.c (check): Update for new API. Add test for
21802         anchored results.
21803         * NEWS: Mention the API change.
21804         Reported by Reuben Thomas and Eric Blake.
21805
21806 2011-03-06  Bruno Haible  <bruno@clisp.org>
21807
21808         regex-quote: Fix creation of POSIX extended regular expressions.
21809         * lib/regex-quote.c (ere_special): Add grouping and alternation
21810         operators.
21811
21812 2011-03-05  Bruno Haible  <bruno@clisp.org>
21813
21814         doc: Improve doc regarding autopoint vs. gnulib.
21815         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
21816         disable autopoint while running autoreconf.
21817         Suggested by Ralf Wildenhues.
21818
21819 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21820
21821         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
21822         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
21823
21824 2011-03-03  Bruce Korb  <bkorb@gnu.org>
21825
21826         parse-duration: remove xalloc.h dependency
21827         * lib/parse-duration.c (parse_period): handle NULL return from
21828         strdup instead of calling xstrdup().
21829         * modules/parse-duration: remove "xalloc" dependency
21830
21831 2011-03-03  Matthew Booth  <mbooth@redhat.com>
21832
21833         bootstrap: honor m4_base when running aclocal
21834         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
21835
21836 2011-03-02  Jim Meyering  <meyering@redhat.com>
21837
21838         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
21839         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
21840         on request from Matt Booth.
21841
21842 2011-03-01  Eric Blake  <eblake@redhat.com>
21843
21844         test-link: work on Hurd
21845         * tests/test-link.h (test_link): Hurd rejects linking directories
21846         with EISDIR instead of the POSIX-mandated EPERM.
21847
21848 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
21849
21850         stdio: simplify by moving files to printf-posix, sigpipe
21851         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
21852         since this symbol is needed only if printf is replaced.
21853         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
21854         Require gl_ASM_SYMBOL_PREFIX.
21855         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
21856         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
21857         (Depends-on): Add 'raise'.
21858         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
21859         * modules/stdio (Files): Remove lib/stdio-write.c,
21860         m4/asm-underscore.m4.
21861         (Depends-on): Remove 'raise'.
21862
21863         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
21864         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
21865         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
21866         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
21867
21868 2011-02-28  Bruno Haible  <bruno@clisp.org>
21869
21870         localcharset: Assume ANSI C behaviour of free().
21871         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
21872         calling free().
21873         Suggested by Simon Josefsson <simon@josefsson.org>.
21874
21875 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
21876             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
21877             Bruno Haible  <bruno@clisp.org>  (tiny change)
21878
21879         On Cygwin, use /proc file system instead of win32 API.
21880         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
21881         Win32 file names.
21882         (DllMain): Simplify by removing Cygwin specific code.
21883         (find_shared_library_fullname): Use Linux specific implementation also
21884         for Cygwin.
21885         (get_shared_library_fullname): Update accordingly.
21886         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
21887         Win32 file names.
21888         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
21889         Cygwin specific code.
21890
21891 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
21892             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
21893
21894         Fix OpenMP flag detection for various Fortran compilers.
21895         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
21896         OpenMP-conditional compilation construct, to force compile
21897         failure with missing OpenMP flag.
21898         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
21899
21900 2011-02-25  Eric Blake  <eblake@redhat.com>
21901
21902         strstr: expand test coverage
21903         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
21904         compilation.
21905         * tests/test-memmem.c (main): Duplicate tests.
21906         * tests/test-strcasestr.c (main): Likewise.
21907         * tests/test-c-strcasestr.c (main): Likewise.
21908
21909 2011-02-25  Jim Meyering  <meyering@redhat.com>
21910
21911         maint.mk: detect missing-NL-at-EOF, too
21912         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
21913         it also detects when a file lacks a newline at EOF.
21914         (require_exactly_one_NL_at_EOF_): Renamed from
21915         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
21916         since people may well have .x-sc_... file names tied to the
21917         existing name.  Suggested by Eric Blake.
21918
21919 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21920
21921         dirname: move m4/dos.m4 functionality into lib/dosname.h
21922
21923         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
21924         extracts symbols from it, puts them into config.h; but it's much
21925         easier to use the symbols directly.  filename.h already does this,
21926         but it disagrees with dos.m4 in some respects.  This patch
21927         introduces a different include file dosname.h that packages up
21928         dos.m4, and then later we can work on merging filename.h and
21929         dosname.h.  Applications that need only the easy-to-configure
21930         symbols should consider including dosname.h rather than dirname.h.
21931         * NEWS: Mention incompatible changes.
21932         * m4/dos.m4: Remove.
21933         * lib/dosname.h, modules/dosname: New files.
21934         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
21935         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
21936         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
21937         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
21938         Include dosname.h, not dirname.h.
21939         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
21940         Include dosname.h, for definitions of symbols like ISSLASH
21941         that used to be in config.h.
21942         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
21943         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21944         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21945         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21946         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
21947         * modules/rmdir (Files): Likewise.
21948         * modules/stat (Files): Likewise.
21949         * modules/unlink (Files): Likewise.
21950         * modules/dirname-lgpl (Depends-on): Add dosname.
21951         * modules/lstat (Depends-on): Likewise.
21952         * modules/openat (Depends-on): Likewise.
21953         * modules/rmdir (Depends-on): Likewise.
21954         * modules/savewd (Depends-on): Likewise.
21955         * modules/stat (Depends-on): Likewise.
21956         * modules/unlink (Depends-on): Likewise.
21957         * modules/openat (Depends-on): Remove dirname-lgpl.
21958         * modules/savewd (Depends-on): Likewise.
21959         * tests/test-dirname.c: Do not use removed symbols like
21960         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
21961         the remaining symbols, e.g., ISSLASH ('\\').
21962
21963 2011-02-25  Eric Blake  <eblake@redhat.com>
21964
21965         strstr: revert patches that introduced bug and pessimization
21966         * lib/str-two-way.h: Add another reference.
21967         (two_way_short_needle, two_way_long_needle): Revert changes from
21968         2011-02-24; they pessimize search speed.
21969         (critical_factorization): Partially revert changes from
21970         2010-06-22; they violate the requirement that the left half of the
21971         needle be smaller than the period of the needle.
21972
21973 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21974
21975         filenamecat: remove unnecessary dependency on dirname-lgpl
21976         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
21977         is no direct dependency, just an indirect one via filenamecat-lgpl.
21978
21979         remove: remove unnecessary use of m4/dos.m4
21980         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
21981         * modules/remove (FILES): Remove m4/dos.m4.
21982
21983         * lib/openat-proc.c: Don't include dirname.h; not needed.
21984
21985         backupfile: remove unnecessary use of m4/dos.m4
21986         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
21987         of its symbols are used by the backupfile code.  backupfile.c does
21988         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
21989         for the rare case of programs that want all their backup file
21990         names to live within 8+3 limits, and dos.m4 doesn't address that.
21991         * modules/backupfile (Files): Remove m4/dos.m4.
21992
21993 2011-02-24  Jim Meyering  <meyering@redhat.com>
21994
21995         strstr: fix a bug whereby strstr would mistakenly return NULL
21996         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
21997         in period calculation.
21998         (two_way_long_needle): Likewise.
21999         The original problem was reported by Mike Stump in
22000         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22001         Ralf Wildenhues provided the short needle and haystack.
22002         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22003         Add a more involved test to trigger the bug in two_way_long_needle.
22004
22005 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22006
22007         gnulib-tool: remove use of bold display in help screen
22008         * gnulib-tool (func_usage): Do not use bold display anymore in the
22009         help screen.  That was just meant to be a temporary emphasis for a
22010         backward-incompatible change.
22011
22012 2011-02-23  Bruno Haible  <bruno@clisp.org>
22013
22014         Fix misindentation of preprocessor directives.
22015         * lib/argp-namefrob.h: Reindent preprocessor directives.
22016         * lib/getopt_int.h (struct _getopt_data): Likewise.
22017         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22018         * lib/vasnprintf.c (decode_long_double): Likewise.
22019         * tests/test-argmatch.c: Insert blank lines, for clarity.
22020         * tests/test-exclude.c: Likewise.
22021
22022 2011-02-22  Bruno Haible  <bruno@clisp.org>
22023
22024         ioctl: Fix for MacOS X in 64-bit mode.
22025         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22026         value.
22027         Suggested by Eric Blake.
22028         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22029
22030 2011-02-22  Jim Meyering  <meyering@redhat.com>
22031
22032         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22033         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22034         in lib/.
22035
22036 2011-02-22  Eric Blake  <eblake@redhat.com>
22037
22038         maint: avoid any CDPATH issue
22039         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22040
22041         maint: adjust cpp indentation for my modules, as well
22042         * Makefile (sc_cpp_indent_check): Add my name.
22043         * lib/fbufmode.c: Filter through cppi.
22044         * lib/fpurge.c: Likewise.
22045         * lib/freadable.c: Likewise.
22046         * lib/freading.c: Likewise.
22047         * lib/fwritable.c: Likewise.
22048         * lib/fwriting.c: Likewise.
22049         * lib/sigaction.c: Likewise.
22050
22051 2011-02-22  Jim Meyering  <meyering@redhat.com>
22052
22053         maint: adjust cpp indentation to reflect nesting depth
22054         I.e., in a block of code that begins with an unnested "#if",
22055         put one space between the "#" in column 1 and following token.
22056         For example,
22057         -#include <sys/vfs.h>
22058         +# include <sys/vfs.h>
22059         Do this only in .c files that are part of a module I maintain.
22060         * lib/linkat.c: Filter through cppi.
22061         * lib/nanosleep.c: Likewise.
22062         * lib/openat.c: Likewise.
22063         * lib/openat-die.c: Likewise.
22064         * lib/dup3.c: Likewise.
22065         * lib/fchownat.c: Likewise.
22066         * lib/flock.c: Likewise.
22067         * lib/fsync.c: Likewise.
22068         * lib/fts.c: Likewise.
22069         * lib/getpass.c: Likewise.
22070         * lib/gettimeofday.c: Likewise.
22071         * lib/userspec.c: Likewise.
22072         * Makefile (sc_cpp_indent_check): New rule, to check this.
22073
22074 2011-02-22  Bruno Haible  <bruno@clisp.org>
22075
22076         New module 'wctomb'.
22077         * lib/stdlib.in.h (wctomb): New declaration.
22078         * lib/wctomb.c: New file.
22079         * lib/wctomb-impl.h: New file.
22080         * m4/wctomb.m4: New file.
22081         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22082         REPLACE_WCTOMB.
22083         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22084         REPLACE_WCTOMB.
22085         * modules/wctomb: New file.
22086         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22087         * doc/posix-functions/wctomb.texi: Mention the new module.
22088         * modules/wctob (Depends-on): Add wctomb.
22089
22090 2011-02-22  Bruno Haible  <bruno@clisp.org>
22091
22092         New module 'mbtowc'.
22093         * lib/stdlib.in.h (mbtowc): New declaration.
22094         * lib/mbtowc.c: New file.
22095         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22096         * m4/mbtowc.m4: New file.
22097         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22098         REPLACE_MBTOWC.
22099         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22100         REPLACE_MBTOWC.
22101         * modules/mbtowc: New file.
22102         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22103         * doc/posix-functions/mbtowc.texi: Mention the new module.
22104         * modules/btowc (Depends-on): Add mbtowc.
22105
22106 2011-02-22  Bruno Haible  <bruno@clisp.org>
22107
22108         wcrtomb: Add more tests for native Windows platforms.
22109         * tests/test-wcrtomb-w32-1.sh: New file.
22110         * tests/test-wcrtomb-w32-2.sh: New file.
22111         * tests/test-wcrtomb-w32-3.sh: New file.
22112         * tests/test-wcrtomb-w32-4.sh: New file.
22113         * tests/test-wcrtomb-w32-5.sh: New file.
22114         * tests/test-wcrtomb-w32.c: New file.
22115         * modules/wcrtomb-tests (Files): Add them.
22116         (Makefile.am): Arrange to run these tests.
22117         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22118         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22119
22120 2011-02-20  Bruno Haible  <bruno@clisp.org>
22121
22122         wcrtomb: Enhance test.
22123         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22124
22125 2011-02-20  Bruno Haible  <bruno@clisp.org>
22126
22127         mbrtowc: Tiny optimization.
22128         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22129
22130 2011-02-20  Jim Meyering  <meyering@redhat.com>
22131
22132         test-exclude.c: remove unmatched #endif
22133         * tests/test-exclude.c: Remove stray #endif, left over from
22134         the change of a week ago.
22135
22136 2011-02-19  Jim Meyering  <meyering@redhat.com>
22137
22138         git-version-gen: skip "-dirty" check when appropriate
22139         * build-aux/git-version-gen: Don't run any git commands when the
22140         version string comes from .tarball-version.  Prior to this, we
22141         would run git update-index --refresh even from a just-unpacked
22142         tarball directory, and that could affect a .git/ directory in a
22143         parent of the build directory.  Reported by Mike Frysinger.
22144
22145 2011-02-19  Bruno Haible  <bruno@clisp.org>
22146
22147         unictype/property-byname: Reduce the size of the 'data' segment.
22148         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22149
22150 2011-02-19  Bruno Haible  <bruno@clisp.org>
22151
22152         unictype/scripts: Reduce the size of the 'data' segment.
22153         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22154         '%pic'.
22155         * lib/unictype/scripts_byname.gperf: Regenerated.
22156
22157 2011-02-19  Bruno Haible  <bruno@clisp.org>
22158
22159         stdint: Update documentation.
22160         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22161
22162 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22163
22164         stdint: omit redundant check for wchar.h
22165         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22166         always tests whether wchar.h exists, so remove the now-redundant test.
22167
22168 2011-02-18  Bruno Haible  <bruno@clisp.org>
22169
22170         stdint: Cut dependency to module 'wchar'.
22171         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22172         include the necessary prerequisites.
22173         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22174         * modules/stdint (Depends-on): Remove wchar.
22175         (Makefile.am): Substitute HAVE_WCHAR_H.
22176         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22177
22178 2011-02-18  Eric Blake  <eblake@redhat.com>
22179
22180         longlong: skip, rather than fail, on cross-compilation
22181         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22182         when cross-compiling; regression from 2011-02-16.
22183
22184 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22185
22186         * NEWS: Mention 2011-02-08 change to stdlib.
22187
22188 2011-02-17  Bruno Haible  <bruno@clisp.org>
22189
22190         getloadavg: Add comments about platforms.
22191         * m4/getloadavg.m4: Add comment.
22192         * lib/getloadavg.c: Likewise.
22193
22194 2011-02-17  Bruno Haible  <bruno@clisp.org>
22195
22196         getloadavg: Fix link error on Solaris 2.6.
22197         * modules/getloadavg (Link): New section.
22198         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22199         linking test-getloadavg.
22200         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22201         getloadavg.
22202
22203 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22204
22205         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22206         It was 'int', but this doesn't match the IRIX 6.5 manual.
22207         Suggested by Bruno Haible in
22208         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22209
22210 2011-02-17  Bruno Haible  <bruno@clisp.org>
22211
22212         havelib: Fix comments.
22213         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22214         change.
22215
22216 2011-02-17  Bruno Haible  <bruno@clisp.org>
22217
22218         havelib: Update config.rpath.
22219         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22220
22221 2011-02-17  Bruno Haible  <bruno@clisp.org>
22222
22223         getloadavg test: Add some plausibility checks.
22224         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22225         is improbable.
22226
22227 2011-02-16  Eric Blake  <eblake@redhat.com>
22228
22229         maintainer-makefile: make syntax-check a no-op from tarballs
22230         * top/maint.mk (no-vc-detected): New rule.
22231         (local-checks-available): Use it to avoid hanging if someone tries
22232         'make syntax-check' from a tarball.  Also append to any non-syntax
22233         checks already defined in cfg.mk.
22234
22235 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22236
22237         longlong: tune, particularly for common case of c99
22238
22239         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22240         or running anything if c99, or if unsigned long long int does not
22241         work.  In either case, we know the answer without further tests.
22242         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22243         it at most once, and use its results for both long long int and
22244         unsigned long long int.  This is more likely to be efficient in
22245         the common case where the program wants to check for both long
22246         long int and unsigned long long int.
22247         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22248         since the answer is already known.
22249
22250 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22251
22252         getloadavg: set errno
22253         * lib/getloadavg.c: Set errno when returning -1.  If no other
22254         error number looks appropriate, set it to ENOSYS if the getloadavg
22255         looks like it can't possibly ever work, ENOTSUP otherwise.
22256         Suggested by Bruno Haible in
22257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22258
22259         getloadavg: trim unused parts and speed up 'configure'
22260         * NEWS: Document this.
22261         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22262         always compiled if getloadavg is absent.
22263         Move test code to ...
22264         * tests/test-getloadavg.c: New file, containing previous
22265         contents of test from lib/getloadavg.c.  It also contains
22266         suggestions by Bruno Haible in
22267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22268         * modules/getloadavg-tests: New file.
22269         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22270         Do tests in the same order as they're needed for getloadavg.c.
22271         Omit setgid-related tests that generate symbols KMEM_GROUP,
22272         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22273         Do only the tests that are needed to see whether the system has
22274         getloadavg, moving the other tests into ...
22275         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22276         NLIST_NAME_UNION; nobody should be using it.  Do not define
22277         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22278         relevant, as the user of this module shouldn't care how getloadavg
22279         is implemented.
22280
22281         getloadavg: omit unused var
22282         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22283
22284 2011-02-15  Jim Meyering  <meyering@redhat.com>
22285
22286         doc: update users.txt
22287         * users.txt: Update iwhd's URL.
22288
22289 2011-02-13  Bruno Haible  <bruno@clisp.org>
22290
22291         Consistent macro naming for macros that use GCC __attribute__.
22292         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22293         _ATTRIBUTE_NONNULL_.
22294         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22295         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22296         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22297         ATTRIBUTE_DEPRECATED.
22298         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22299         ATTRIBUTE_NORETURN.
22300         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22301         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22302         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22303         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22304         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22305         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22306         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22307         ATTRIBUTE_SENTINEL.
22308         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22309         ATTRIBUTE_RETURN_CHECK.
22310         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22311         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22312         ATTRIBUTE_NORETURN.
22313         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22314         Reported by Paul Eggert.
22315
22316 2011-02-13  Bruno Haible  <bruno@clisp.org>
22317
22318         Don't interfere with a program's definition of __attribute__.
22319         * lib/argp.h (__attribute__): Remove definition.
22320         (_GL_ATTRIBUTE_FORMAT): New macro.
22321         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22322         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22323         (_GL_ATTRIBUTE_FORMAT): New macro.
22324         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22325         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22326         GCC 3 or newer.
22327         * lib/error.h (__attribute__): Remove definition.
22328         (_GL_ATTRIBUTE_FORMAT): New macro.
22329         (error, error_at_line): Use it.
22330         * lib/hash.h (__attribute__): Remove definition.
22331         (ATTRIBUTE_WUR): Update definition. Define always.
22332         * lib/openat.h (__attribute__): Remove definition.
22333         (ATTRIBUTE_NORETURN): Update definition. Define always.
22334         * lib/sigpipe-die.h (__attribute__): Remove definition.
22335         (ATTRIBUTE_NORETURN): Update definition. Define always.
22336         * lib/vasnprintf.h (__attribute__): Remove definition.
22337         (_GL_ATTRIBUTE_FORMAT): New macro.
22338         (asnprintf, vasnprintf): Use it.
22339         * lib/xalloc.h (__attribute__): Remove definition.
22340         (ATTRIBUTE_NORETURN): Update definition. Define always.
22341         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22342         * lib/xmemdup0.h (__attribute__): Remove definition.
22343         (ATTRIBUTE_NORETURN): Update definition. Define always.
22344         * lib/xprintf.h (__attribute__): Remove definition.
22345         (_GL_ATTRIBUTE_FORMAT): New macro.
22346         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22347         * lib/xstrtol.h (__attribute__): Remove definition.
22348         (ATTRIBUTE_NORETURN): Update definition. Define always.
22349         * lib/xvasprintf.h (__attribute__): Remove definition.
22350         (_GL_ATTRIBUTE_FORMAT): New macro.
22351         (xasprintf, xvasprintf): Use it.
22352         * tests/test-argmatch.c (__attribute__): Remove definition.
22353         (ATTRIBUTE_NORETURN): Update definition. Define always.
22354         * tests/test-exclude.c (__attribute__): Remove definition.
22355         (ATTRIBUTE_NORETURN): Update definition. Define always.
22356         Reported by Paul Eggert.
22357
22358 2011-02-13  Bruno Haible  <bruno@clisp.org>
22359
22360         mbrtowc: Add more tests for native Windows platforms.
22361         * tests/test-mbrtowc-w32-1.sh: New file.
22362         * tests/test-mbrtowc-w32-2.sh: New file.
22363         * tests/test-mbrtowc-w32-3.sh: New file.
22364         * tests/test-mbrtowc-w32-4.sh: New file.
22365         * tests/test-mbrtowc-w32-5.sh: New file.
22366         * tests/test-mbrtowc-w32.c: New file.
22367         * modules/mbrtowc-tests (Files): Add them.
22368         (Makefile.am): Arrange to run these tests.
22369         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22370         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22371
22372 2011-02-13  Bruno Haible  <bruno@clisp.org>
22373
22374         mbrtowc: Work around native Windows bug.
22375         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22376         guess when no suitable locale for testing was found.
22377         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22378
22379 2011-02-13  Bruno Haible  <bruno@clisp.org>
22380
22381         mbsinit: Work around mingw bug.
22382         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22383         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22384         Windows.
22385         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22386
22387 2011-02-13  Bruno Haible  <bruno@clisp.org>
22388
22389         mbsinit: Don't crash for a NULL argument.
22390         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22391         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22392
22393 2011-02-13  Bruno Haible  <bruno@clisp.org>
22394
22395         Don't interfere with a program's definition of __attribute__.
22396         * lib/stdio.in.h (__attribute__): Remove definition.
22397         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22398         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22399         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22400         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22401         * lib/string.in.h (__attribute__): Remove definition.
22402         Reported by Paul Eggert.
22403
22404 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22405
22406         stdlib: don't get in the way of non-GCC __attribute__
22407         See thread starting at
22408         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22409         Revert previous stdlib change, installing the following instead:
22410         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22411         to get in the way of a non-GCC compiler that supports __attribute__.
22412         (_GL_ATTRIBUTE_RETURN): New macro.
22413         (_Exit): Use it instead of __attribute__.
22414
22415 2011-02-12  Bruno Haible  <bruno@clisp.org>
22416
22417         quotearg test: Avoid test failure on mingw.
22418         * tests/test-quotearg.sh: Convert the locale identifier from native
22419         Windows syntax to Unix syntax.
22420
22421 2011-02-12  Bruno Haible  <bruno@clisp.org>
22422
22423         setlocale: Prefer gnulib's override over libintl's override.
22424         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22425         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22426         GNULIB_defined_setlocale is set.
22427
22428 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22429
22430         stdlib: support non-GCC __attribute__
22431
22432         Fix a serious and tricky problem encountered when attempting to
22433         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22434         5.5, but it crashed due to memory corruption on Solaris 10 with
22435         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22436         bits that are otherwise zero.  This tagging is optional inside
22437         Emacs but is preferred and is used when __attribute__ ((__aligned
22438         (8))) works, as it does with both recent-enough GCC and with Sun C
22439         5.11.  However, Sun C 5.11 is not GCC and does not #define
22440         __GNUC__ and __GNUC_MINOR__.
22441
22442         When I added the getloadavg module to Emacs, it brought in
22443         stdlib.in.h, which contained this fragment:
22444
22445            #ifndef __attribute__
22446            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22447            #  define __attribute__(Spec)   /* empty */
22448            # endif
22449            #endif
22450
22451         When files that include <stdlib.h> were compiled with Sun C 5.11,
22452         the above code disabled __attribute__ ((__aligned (8))), which
22453         caused variables to not be properly aligned, which eventually led
22454         to the pointer corruption mentioned above.  (This was a bit hard
22455         to diagnose, unfortunately.)
22456
22457         Several "#define __attribute__(X) /* empty */" code snippets need
22458         to be eradicated from Gnulib to work with non-GCC compilers that
22459         support __attribute__.  The Autoconf way to do this is to test for
22460         each kind of attribute that we want support for, and selectively
22461         enable that in source code.
22462
22463         Fix this problem just for stdlib.h, by adding a test for the
22464         __noreturn__ attribute, and change stdlib.in.h to use that test
22465         when needed.  This technique can be easily generalized to the
22466         other *.in.h files and attributes, and a similar technique can be
22467         used for *.h and *.c files.  This patch is enough to solve the
22468         problem for Emacs + getloadavg, and I thought I'd publish it for
22469         feedback before undertaking further, similar fixes in other
22470         modules.
22471
22472         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22473         because it's not needed for stdlib.h.  It merely substitutes the
22474         value directly into stdlib.h.  We may well need to #define it, or
22475         similar symbols, for other modules, but it's nice to also have an
22476         option to not #define it for applications like Emacs that do not
22477         need it.
22478
22479         * lib/stdlib.in.h (__attribute__): Do not #define.
22480         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22481         be defined only if the _Exit module is also used.
22482         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22483         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22484         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22485         platforms.
22486         * modules/_Exit (Files): Add m4/attribute.m4.
22487         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22488         * m4/attribute.m4: New file.
22489
22490 2011-02-12  Bruno Haible  <bruno@clisp.org>
22491
22492         wcsrtombs: Work around bug on native Windows.
22493         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22494         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22495         instead of len.
22496         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22497
22498 2011-02-12  Bruno Haible  <bruno@clisp.org>
22499
22500         mbsrtowcs: Work around bug on native Windows.
22501         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22502         against mingw bug.
22503         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22504
22505 2011-02-12  Bruno Haible  <bruno@clisp.org>
22506
22507         Avoid setlocale bugs in tests.
22508         * modules/btowc (Dependencies): Add setlocale.
22509         * modules/c-strcase (Dependencies): Likewise.
22510         * modules/mbmemcasecmp (Dependencies): Likewise.
22511         * modules/mbmemcasecoll (Dependencies): Likewise.
22512         * modules/mbrtowc (Dependencies): Likewise.
22513         * modules/mbscasecmp (Dependencies): Likewise.
22514         * modules/mbscasestr (Dependencies): Likewise.
22515         * modules/mbschr (Dependencies): Likewise.
22516         * modules/mbscspn (Dependencies): Likewise.
22517         * modules/mbsinit (Dependencies): Likewise.
22518         * modules/mbsncasecmp (Dependencies): Likewise.
22519         * modules/mbsnrtowcs (Dependencies): Likewise.
22520         * modules/mbspbrk (Dependencies): Likewise.
22521         * modules/mbspcasecmp (Dependencies): Likewise.
22522         * modules/mbsrchr (Dependencies): Likewise.
22523         * modules/mbsrtowcs (Dependencies): Likewise.
22524         * modules/mbsspn (Dependencies): Likewise.
22525         * modules/mbsstr (Dependencies): Likewise.
22526         * modules/nl_langinfo (Dependencies): Likewise.
22527         * modules/quotearg (Dependencies): Likewise.
22528         * modules/unicase/locale-language (Dependencies): Likewise.
22529         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22530         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22531         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22532         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22533         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22534         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22535         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22536         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22537         * modules/vasnprintf-posix (Dependencies): Likewise.
22538         * modules/wcrtomb (Dependencies): Likewise.
22539         * modules/wcsnrtombs (Dependencies): Likewise.
22540         * modules/wcsrtombs (Dependencies): Likewise.
22541
22542 2011-02-12  Bruno Haible  <bruno@clisp.org>
22543
22544         setlocale: Workaround native Windows bug.
22545         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22546         succeeds but sets LC_CTYPE to "C", report a failure.
22547         * tests/test-setlocale2.sh: New file.
22548         * tests/test-setlocale2.c: New file.
22549         * modules/setlocale-tests (Files): Add the new files.
22550         (Makefile.am): Enable test-setlocale2.sh test.
22551         * doc/posix-functions/setlocale.texi: Mention workaround.
22552
22553 2011-02-11  Bruno Haible  <bruno@clisp.org>
22554
22555         Tests for module 'setlocale'.
22556         * modules/setlocale-tests: New file.
22557         * tests/test-setlocale1.sh: New file.
22558         * tests/test-setlocale1.c: New file.
22559
22560         New module 'setlocale'.
22561         * lib/locale.in.h (setlocale): New declaration.
22562         * lib/setlocale.c: New file, based on
22563         gettext/gettext-runtime/intl/setlocale.c.
22564         * m4/setlocale.m4: New file.
22565         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22566         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22567         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22568         REPLACE_SETLOCALE.
22569         * modules/setlocale: New file.
22570         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22571         * doc/posix-functions/setlocale.texi: Mention the new module.
22572
22573 2011-02-11  Bruno Haible  <bruno@clisp.org>
22574
22575         Prepare for locale dependent tests on mingw.
22576         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22577         because it has the wrong locale encoding.
22578         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22579         French_France.1252 instead of "fr".
22580         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22581         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22582         because it has the wrong locale encoding.
22583         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22584         native Windows, try Turkish_Turkey.65001.
22585         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
22586         Chinese_China.54936.
22587
22588         Prepare for locale dependent tests on mingw.
22589         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
22590         differently.
22591         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
22592         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
22593         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22594         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22595
22596 2011-02-11  Eric Blake  <eblake@redhat.com>
22597
22598         strptime: avoid compiler warnings
22599         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
22600         compiler warnings about dead code.
22601         Reported by Daniel P. Berrange.
22602
22603 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
22604
22605         doc: update users.txt
22606         * users.txt: Add rcs.
22607
22608 2011-02-10  John W. Eaton  <jwe@gnu.org>
22609
22610         doc: update users.txt
22611         * users.txt: Add octave.
22612
22613 2011-02-10  Jim Meyering  <meyering@redhat.com>
22614
22615         doc: update users.txt
22616         * users.txt: Add iwhd.
22617
22618 2011-02-09  Bruno Haible  <bruno@clisp.org>
22619
22620         gnulib-tool: Make copyright notice adjustment more robust.
22621         * gnulib-tool (func_import): In sed_transform_main_lib_file,
22622         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
22623         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
22624         License".
22625         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
22626
22627 2011-02-06  Bruno Haible  <bruno@clisp.org>
22628
22629         New module 'towctrans'.
22630         * modules/towctrans: New file.
22631         * lib/wctype.in.h (towctrans): New declaration.
22632         * lib/towctrans.c: New file.
22633         * lib/towctrans-impl.h: New file.
22634         * m4/towctrans.m4: New file.
22635         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
22636         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
22637         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
22638         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
22639         * doc/posix-functions/towctrans.texi: Mention the new module.
22640
22641 2011-02-06  Bruno Haible  <bruno@clisp.org>
22642
22643         New module 'wctrans'.
22644         * modules/wctrans: New file.
22645         * lib/wctype.in.h (wctrans): New declaration.
22646         * lib/wctrans.c: New file.
22647         * lib/wctrans-impl.h: New file.
22648         * m4/wctrans.m4: New file.
22649         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
22650         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
22651         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
22652         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
22653         * doc/posix-functions/wctrans.texi: Mention the new module.
22654
22655 2011-02-06  Bruno Haible  <bruno@clisp.org>
22656
22657         New module 'iswctype'.
22658         * modules/iswctype: New file.
22659         * lib/wctype.in.h (iswctype): New declaration.
22660         * lib/iswctype.c: New file.
22661         * lib/iswctype-impl.h: New file.
22662         * m4/iswctype.m4: New file.
22663         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
22664         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
22665         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
22666         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
22667         * doc/posix-functions/iswctype.texi: Mention the new module and the
22668         HP-UX 11.00 problem.
22669
22670 2011-02-06  Bruno Haible  <bruno@clisp.org>
22671
22672         New module 'wctype'.
22673         * modules/wctype: Change to represent the wctype() substitute.
22674         * lib/wctype.in.h (wctype): New declaration.
22675         * lib/wctype.c: New file.
22676         * lib/wctype-impl.h: New file.
22677         * m4/wctype.m4: New file.
22678         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
22679         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
22680         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
22681         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
22682         * doc/posix-functions/wctype.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         wctype-h: Ensure wctype_t and wctrans_t are defined.
22688         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
22689         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22690         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22691         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
22692         HAVE_WCTRANS_T.
22693         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
22694
22695 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22696
22697         flock: fix license typo
22698
22699         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
22700         omitted.
22701
22702 2011-02-08  Bruno Haible  <bruno@clisp.org>
22703
22704         Split large sed scripts, for HP-UX sed.
22705         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
22706         to avoid HP-UX limit of 99 commands, in the near future.
22707         * modules/stdlib (Makefile.am): Likewise.
22708         * modules/unistd (Makefile.am): Likewise.
22709         * modules/wchar (Makefile.am): Likewise.
22710         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22711         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
22712         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
22713
22714 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22715             Bruno Haible  <bruno@clisp.org>
22716
22717         stdlib: improve random_r modularization
22718         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
22719         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
22720         you also need the random_r module to get this material right.
22721         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
22722         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
22723         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
22724
22725 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22726
22727         stdlib: don't depend on stdint
22728         * lib/stdlib.in.h: Don't include <stdint.h> merely because
22729         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
22730         be independent of whether stdint.h is needed.
22731         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
22732         here, instead of ...
22733         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
22734         struct random_data should be using the random_r module, not just
22735         the stdlib module (which wouldn't make sense: what package needs
22736         just struct random_data without also needing random_r?).
22737         * modules/stdlib (Depends-on): Remove stdint.
22738
22739         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
22740         See the thread rooted at
22741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
22742         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
22743         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
22744         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
22745         __VMS)); previously it was always included (via fcntl--.h).
22746         (getloadavg): Do not use c_strtod.  Instead, approximate it by
22747         hand; this is good enough for load averages.  Also, do not use
22748         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
22749         flags directly if available and don't bother otherwise.  (Packages
22750         that need the extra reliability should use the modules that define
22751         these flags on older platforms that lack them.)
22752         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
22753         fcntl-safer.
22754
22755 2011-02-08  Jim Meyering  <meyering@redhat.com>
22756
22757         di-set.h, ino-map.h: add multiple-inclusion guard
22758         Technically, the guard is required only for ino-map.h, due to its
22759         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
22760         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
22761         * lib/ino-map.h: Likewise.
22762
22763 2011-02-06  Bruno Haible  <bruno@clisp.org>
22764
22765         iswblank: Ensure declaration on glibc systems.
22766         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
22767         * modules/iswblank (Dependencies): Add 'extensions'.
22768         * doc/posix-functions/iswblank.texi: Document the glibc problem.
22769
22770 2011-02-06  Bruno Haible  <bruno@clisp.org>
22771
22772         New module 'iswblank'.
22773         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
22774         * modules/iswblank: New file.
22775         * modules/wctype-h (Files): Remove lib/iswblank.c.
22776         (Makefile.am): Substitute GNULIB_ISWBLANK.
22777         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
22778         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
22779         (gl_WCTYPE_H_DEFAULTS): New macro.
22780         (gl_WCTYPE_H): Require it. Remove iswblank related code.
22781         * modules/iswblank-tests: New file.
22782         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
22783         * tests/test-wctype-h.c (main): Remove iswblank tests.
22784         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
22785         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
22786         of 'wctype-h'.
22787         * NEWS: Mention the change.
22788         * modules/mbchar (Depends-on): Add iswblank.
22789
22790 2011-02-08  Bruno Haible  <bruno@clisp.org>
22791
22792         di-set tests: Refactor.
22793         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
22794         unnecessary includes.
22795         (ASSERT): Remove macro.
22796         (main): Make C90 compliant by avoiding variable declaration after
22797         statement.
22798         * modules/di-set-tests (Files): Add tests/macros.h.
22799
22800 2011-02-08  Bruno Haible  <bruno@clisp.org>
22801
22802         ino-map tests: Refactor.
22803         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
22804         unnecessary includes.
22805         (ASSERT): Remove macro.
22806         (main): Make C90 compliant by avoiding variable declaration after
22807         statement.
22808         * modules/ino-map-tests (Files): Add tests/macros.h.
22809
22810 2011-02-08  Jim Meyering  <meyering@redhat.com>
22811
22812         di-set: add "const" to a cast
22813         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
22814         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
22815
22816 2011-02-06  Bruno Haible  <bruno@clisp.org>
22817
22818         Rename module 'wctype' to 'wctype-h'.
22819         * modules/wctype-h: Renamed from modules/wctype.
22820         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
22821         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
22822         (Files, Depends-on, Makefile.am): Update.
22823         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
22824         (Files, Makefile.am): Update.
22825         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
22826         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
22827         * doc/posix-headers/wctype.texi: Update.
22828         * doc/posix-functions/iswalnum.texi: Update.
22829         * doc/posix-functions/iswalpha.texi: Update.
22830         * doc/posix-functions/iswblank.texi: Update.
22831         * doc/posix-functions/iswcntrl.texi: Update.
22832         * doc/posix-functions/iswdigit.texi: Update.
22833         * doc/posix-functions/iswgraph.texi: Update.
22834         * doc/posix-functions/iswlower.texi: Update.
22835         * doc/posix-functions/iswprint.texi: Update.
22836         * doc/posix-functions/iswpunct.texi: Update.
22837         * doc/posix-functions/iswspace.texi: Update.
22838         * doc/posix-functions/iswupper.texi: Update.
22839         * doc/posix-functions/iswxdigit.texi: Update.
22840         * doc/posix-functions/towlower.texi: Update.
22841         * doc/posix-functions/towupper.texi: Update.
22842         * NEWS: Mention the change.
22843         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
22844         * modules/mbchar (Dependencies): Likewise.
22845         * modules/mbswidth (Dependencies): Likewise.
22846         * modules/quotearg (Dependencies): Likewise.
22847         * modules/regex (Dependencies): Likewise.
22848         * modules/wcscasecmp (Dependencies): Likewise.
22849         * modules/wcsncasecmp (Dependencies): Likewise.
22850         * modules/wcwidth (Dependencies): Likewise.
22851
22852 2011-02-06  Bruno Haible  <bruno@clisp.org>
22853
22854         New module 'wcswidth'.
22855         * modules/wcswidth: New file.
22856         * lib/wchar.in.h (wcswidth): New declaration.
22857         * lib/wcswidth.c: New file.
22858         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
22859         * m4/wcswidth.m4: New file.
22860         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
22861         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
22862         REPLACE_WCSWIDTH.
22863         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
22864         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
22865         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
22866         * doc/posix-functions/wcswidth.texi: Mention the new module.
22867
22868 2011-02-06  Bruno Haible  <bruno@clisp.org>
22869
22870         New module 'wcstok'.
22871         * modules/wcstok: New file.
22872         * lib/wchar.in.h (wcstok): New declaration.
22873         * lib/wcstok.c: New file.
22874         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
22875         * m4/wcstok.m4: New file.
22876         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
22877         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
22878         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
22879         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
22880         * doc/posix-functions/wcstok.texi: Mention the new module.
22881
22882 2011-02-06  Bruno Haible  <bruno@clisp.org>
22883
22884         New module 'wcsstr'.
22885         * modules/wcsstr: New file.
22886         * lib/wchar.in.h (wcsstr): New declaration.
22887         * lib/wcsstr.c: New file.
22888         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
22889         * m4/wcsstr.m4: New file.
22890         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
22891         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
22892         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
22893         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
22894         * doc/posix-functions/wcsstr.texi: Mention the new module.
22895
22896 2011-02-06  Bruno Haible  <bruno@clisp.org>
22897
22898         New module 'wcspbrk'.
22899         * modules/wcspbrk: New file.
22900         * lib/wchar.in.h (wcspbrk): New declaration.
22901         * lib/wcspbrk.c: New file.
22902         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
22903         * m4/wcspbrk.m4: New file.
22904         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
22905         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
22906         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
22907         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
22908         * doc/posix-functions/wcspbrk.texi: Mention the new module.
22909
22910 2011-02-06  Bruno Haible  <bruno@clisp.org>
22911
22912         New module 'wcsspn'.
22913         * modules/wcsspn: New file.
22914         * lib/wchar.in.h (wcsspn): New declaration.
22915         * lib/wcsspn.c: New file.
22916         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
22917         * m4/wcsspn.m4: New file.
22918         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
22919         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
22920         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
22921         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
22922         * doc/posix-functions/wcsspn.texi: Mention the new module.
22923
22924 2011-02-06  Bruno Haible  <bruno@clisp.org>
22925
22926         New module 'wcscspn'.
22927         * modules/wcscspn: New file.
22928         * lib/wchar.in.h (wcscspn): New declaration.
22929         * lib/wcscspn.c: New file.
22930         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
22931         * m4/wcscspn.m4: New file.
22932         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
22933         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
22934         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
22935         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
22936         * doc/posix-functions/wcscspn.texi: Mention the new module.
22937
22938 2011-02-06  Bruno Haible  <bruno@clisp.org>
22939
22940         New module 'wcsrchr'.
22941         * modules/wcsrchr: New file.
22942         * lib/wchar.in.h (wcsrchr): New declaration.
22943         * lib/wcsrchr.c: New file.
22944         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
22945         * m4/wcsrchr.m4: New file.
22946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
22947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
22948         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
22949         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
22950         * doc/posix-functions/wcsrchr.texi: Mention the new module.
22951
22952 2011-02-06  Bruno Haible  <bruno@clisp.org>
22953
22954         New module 'wcschr'.
22955         * modules/wcschr: New file.
22956         * lib/wchar.in.h (wcschr): New declaration.
22957         * lib/wcschr.c: New file.
22958         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
22959         * m4/wcschr.m4: New file.
22960         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
22961         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
22962         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
22963         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
22964         * doc/posix-functions/wcschr.texi: Mention the new module.
22965
22966 2011-02-06  Bruno Haible  <bruno@clisp.org>
22967
22968         New module 'wcsdup'.
22969         * modules/wcsdup: New file.
22970         * lib/wchar.in.h (wcsdup): New declaration.
22971         * lib/wcsdup.c: New file.
22972         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
22973         * m4/wcsdup.m4: New file.
22974         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
22975         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
22976         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
22977         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
22978         * doc/posix-functions/wcsdup.texi: Mention the new module.
22979
22980 2011-02-06  Bruno Haible  <bruno@clisp.org>
22981
22982         New module 'wcsxfrm'.
22983         * modules/wcsxfrm: New file.
22984         * lib/wchar.in.h (wcsxfrm): New declaration.
22985         * lib/wcsxfrm.c: New file.
22986         * lib/wcsxfrm-impl.h: New file.
22987         * m4/wcsxfrm.m4: New file.
22988         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
22989         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
22990         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
22991         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
22992         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
22993
22994 2011-02-06  Bruno Haible  <bruno@clisp.org>
22995
22996         New module 'wcscoll'.
22997         * modules/wcscoll: New file.
22998         * lib/wchar.in.h (wcscoll): New declaration.
22999         * lib/wcscoll.c: New file.
23000         * lib/wcscoll-impl.h: New file.
23001         * m4/wcscoll.m4: New file.
23002         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23003         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23004         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23005         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23006         * doc/posix-functions/wcscoll.texi: Mention the new module.
23007
23008 2011-02-06  Bruno Haible  <bruno@clisp.org>
23009
23010         New module 'wcsncasecmp'.
23011         * modules/wcsncasecmp: New file.
23012         * lib/wchar.in.h (wcsncasecmp): New declaration.
23013         * lib/wcsncasecmp.c: New file.
23014         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23015         * m4/wcsncasecmp.m4: New file.
23016         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23017         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23018         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23019         HAVE_WCSNCASECMP.
23020         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23021         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23022
23023 2011-02-06  Bruno Haible  <bruno@clisp.org>
23024
23025         New module 'wcscasecmp'.
23026         * modules/wcscasecmp: New file.
23027         * lib/wchar.in.h (wcscasecmp): New declaration.
23028         * lib/wcscasecmp.c: New file.
23029         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23030         * m4/wcscasecmp.m4: New file.
23031         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23032         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23033         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23034         HAVE_WCSCASECMP.
23035         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23036         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23037
23038 2011-02-05  Bruno Haible  <bruno@clisp.org>
23039
23040         New module 'wcsncmp'.
23041         * modules/wcsncmp: New file.
23042         * lib/wchar.in.h (wcsncmp): New declaration.
23043         * lib/wcsncmp.c: New file.
23044         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23045         * m4/wcsncmp.m4: New file.
23046         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23047         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23048         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23049         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23050         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23051
23052 2011-02-05  Bruno Haible  <bruno@clisp.org>
23053
23054         New module 'wcscmp'.
23055         * modules/wcscmp: New file.
23056         * lib/wchar.in.h (wcscmp): New declaration.
23057         * lib/wcscmp.c: New file.
23058         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23059         * m4/wcscmp.m4: New file.
23060         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23061         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23063         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23064         * doc/posix-functions/wcscmp.texi: Mention the new module.
23065
23066 2011-02-05  Bruno Haible  <bruno@clisp.org>
23067
23068         New module 'wcsncat'.
23069         * modules/wcsncat: New file.
23070         * lib/wchar.in.h (wcsncat): New declaration.
23071         * lib/wcsncat.c: New file.
23072         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23073         * m4/wcsncat.m4: New file.
23074         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23075         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23076         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23077         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23078         * doc/posix-functions/wcsncat.texi: Mention the new module.
23079
23080 2011-02-05  Bruno Haible  <bruno@clisp.org>
23081
23082         New module 'wcscat'.
23083         * modules/wcscat: New file.
23084         * lib/wchar.in.h (wcscat): New declaration.
23085         * lib/wcscat.c: New file.
23086         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23087         * m4/wcscat.m4: New file.
23088         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23089         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23090         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23091         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23092         * doc/posix-functions/wcscat.texi: Mention the new module.
23093
23094 2011-02-05  Bruno Haible  <bruno@clisp.org>
23095
23096         New module 'wcpncpy'.
23097         * modules/wcpncpy: New file.
23098         * lib/wchar.in.h (wcpncpy): New declaration.
23099         * lib/wcpncpy.c: New file.
23100         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23101         * m4/wcpncpy.m4: New file.
23102         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23103         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23104         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23105         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23106         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23107
23108 2011-02-05  Bruno Haible  <bruno@clisp.org>
23109
23110         New module 'wcsncpy'.
23111         * modules/wcsncpy: New file.
23112         * lib/wchar.in.h (wcsncpy): New declaration.
23113         * lib/wcsncpy.c: New file.
23114         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23115         * m4/wcsncpy.m4: New file.
23116         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23117         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23118         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23119         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23120         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23121
23122 2011-02-05  Bruno Haible  <bruno@clisp.org>
23123
23124         New module 'wcpcpy'.
23125         * modules/wcpcpy: New file.
23126         * lib/wchar.in.h (wcpcpy): New declaration.
23127         * lib/wcpcpy.c: New file.
23128         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23129         * m4/wcpcpy.m4: New file.
23130         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23131         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23132         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23133         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23134         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23135
23136 2011-02-05  Bruno Haible  <bruno@clisp.org>
23137
23138         New module 'wcscpy'.
23139         * modules/wcscpy: New file.
23140         * lib/wchar.in.h (wcscpy): New declaration.
23141         * lib/wcscpy.c: New file.
23142         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23143         * m4/wcscpy.m4: New file.
23144         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23145         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23146         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23147         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23148         * doc/posix-functions/wcscpy.texi: Mention the new module.
23149
23150 2011-02-05  Bruno Haible  <bruno@clisp.org>
23151
23152         New module 'wcsnlen'.
23153         * modules/wcsnlen: New file.
23154         * lib/wchar.in.h (wcsnlen): New declaration.
23155         * lib/wcsnlen.c: New file.
23156         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23157         * m4/wcsnlen.m4: New file.
23158         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23159         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23160         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23161         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23162         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23163
23164 2011-02-05  Bruno Haible  <bruno@clisp.org>
23165
23166         New module 'wcslen'.
23167         * modules/wcslen: New file.
23168         * lib/wchar.in.h (wcslen): New declaration.
23169         * lib/wcslen.c: New file.
23170         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23171         * m4/wcslen.m4: New file.
23172         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23173         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23174         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23175         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23176         * doc/posix-functions/wcslen.texi: Mention the new module.
23177
23178 2011-02-05  Bruno Haible  <bruno@clisp.org>
23179
23180         New module 'wmemset'.
23181         * modules/wmemset: New file.
23182         * lib/wchar.in.h (wmemset): New declaration.
23183         * lib/wmemset.c: New file.
23184         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23185         * m4/wmemset.m4: New file.
23186         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23187         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23188         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23189         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23190         * doc/posix-functions/wmemset.texi: Mention the new module.
23191
23192 2011-02-05  Bruno Haible  <bruno@clisp.org>
23193
23194         New module 'wmemmove'.
23195         * modules/wmemmove: New file.
23196         * lib/wchar.in.h (wmemmove): New declaration.
23197         * lib/wmemmove.c: New file.
23198         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23199         * m4/wmemmove.m4: New file.
23200         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23201         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23202         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23203         HAVE_WMEMMOVE.
23204         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23205         * doc/posix-functions/wmemmove.texi: Mention the new module.
23206
23207 2011-02-05  Bruno Haible  <bruno@clisp.org>
23208
23209         New module 'wmemcpy'.
23210         * modules/wmemcpy: New file.
23211         * lib/wchar.in.h (wmemcpy): New declaration.
23212         * lib/wmemcpy.c: New file.
23213         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23214         * m4/wmemcpy.m4: New file.
23215         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23216         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23217         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23218         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23219         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23220
23221 2011-02-05  Bruno Haible  <bruno@clisp.org>
23222
23223         New module 'wmemcmp'.
23224         * modules/wmemcmp: New file.
23225         * lib/wchar.in.h (wmemcmp): New declaration.
23226         * lib/wmemcmp.c: New file.
23227         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23228         * m4/wmemcmp.m4: New file.
23229         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23230         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23231         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23232         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23233         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23234
23235 2011-02-07  Jim Meyering  <meyering@redhat.com>
23236
23237         di-set, ino-map: new modules, from coreutils
23238         * lib/di-set.c: New file.
23239         * lib/di-set.h: Likewise.
23240         * lib/ino-map.c: Likewise.
23241         * lib/ino-map.h: Likewise.
23242         * modules/di-set: Likewise.
23243         * modules/di-set-tests: Likewise.
23244         * modules/ino-map: Likewise.
23245         * modules/ino-map-tests: Likewise.
23246         * tests/test-di-set.c: Likewise.
23247         * tests/test-ino-map.c: Likewise.
23248
23249 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23250
23251         getloadavg: merge minor changes from Emacs
23252
23253         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23254         (getloadavg): Use memset, not bzero.
23255
23256         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23257         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23258         clash (bug#86).
23259
23260 2010-11-14  Bruno Haible  <bruno@clisp.org>
23261
23262         Allow multiple gnulib generated replacements to coexist.
23263         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23264         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23265         * lib/langinfo.in.h (nl_item): Likewise.
23266         * lib/math.in.h (_NaN, NAN): Likewise.
23267         * lib/netdb.in.h (struct addrinfo): Likewise.
23268         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23269         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23270         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23271         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23272         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23273         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23274         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23275         pthread_mutexattr_init, pthread_mutexattr_settype,
23276         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23277         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23278         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23279         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23280         * lib/sched.in.h (struct sched_param): Likewise.
23281         * lib/se-selinux.in.h (security_class_t, security_context_t,
23282         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23283         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23284         lsetfilecon, fsetfilecon, security_check_context,
23285         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23286         Likewise.
23287         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23288         Likewise.
23289         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23290         _gl_function_taking_int_returning_void_t, union sigval,
23291         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23292         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23293         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23294         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23295         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23296         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23297         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23298         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23299         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23300         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23301         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23302         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23303         socklen_t, rpl_fd_isset): Likewise.
23304         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23305         * lib/sys_time.in.h (struct timeval): Likewise.
23306         * lib/sys_times.in.h (struct tms): Likewise.
23307         * lib/sys_utsname.in.h (struct utsname):
23308         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23309         * lib/unistd.in.h (getpagesize): Likewise.
23310         * lib/wchar.in.h (mbstate_t): Likewise.
23311         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23312         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23313         towlower, towupper): Likewise.
23314         Reported by Sam Steingold <sds@gnu.org>.
23315
23316 2011-02-05  Eric Blake  <eblake@redhat.com>
23317
23318         unsetenv: work around Haiku issues
23319         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23320         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23321
23322 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23323
23324         libposix: avoid calling error() within libposix
23325         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23326         is defined.
23327
23328 2011-02-05  Eric Blake  <eblake@redhat.com>
23329
23330         strerror_r-posix: port to cygwin
23331         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23332         implementation.
23333         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23334         * tests/test-strerror_r.c (main): Fix test.
23335         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23336         issue.
23337
23338 2011-02-05  Bruno Haible  <bruno@clisp.org>
23339
23340         New module 'wmemchr'.
23341         * modules/wmemchr: New file.
23342         * lib/wchar.in.h (wmemchr): New declaration.
23343         * lib/wmemchr.c: New file.
23344         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23345         * m4/wmemchr.m4: New file.
23346         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23347         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23348         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23349         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23350         * doc/posix-functions/wmemchr.texi: Mention the new module.
23351
23352 2011-02-04  Eric Blake  <eblake@redhat.com>
23353
23354         fdopendir: detect FreeBSD bug
23355         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23356         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23357
23358 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23359
23360         stdbool: do not define HAVE_STDBOOL_H
23361         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23362         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23363         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23364         imported from the latest Autoconf git.  It was motivated by Emacs,
23365         which uses gnulib but does not need HAVE_STDBOOL_H.
23366
23367 2011-02-04  Bruno Haible  <bruno@clisp.org>
23368
23369         wcsnrtombs: Prepare for new module wwcsnrtombs.
23370         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23371         * lib/wcsnrtombs.c: Include it.
23372         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23373
23374         wcsrtombs: Prepare for new module wwcsrtombs.
23375         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23376         * lib/wcsrtombs.c: Include it.
23377         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23378
23379         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23380         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23381         * lib/mbsnrtowcs.c: Include it.
23382         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23383
23384         mbsrtowcs: Prepare for new module mbsrtowwcs.
23385         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23386         * lib/mbsrtowcs.c: Include it.
23387         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23388
23389 2011-02-04  Bruno Haible  <bruno@clisp.org>
23390
23391         vasnprintf: Reduce use of malloc for small format strings.
23392         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23393         (arguments): Add room for the first 7 arguments.
23394         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23395         (char_directives, u8_directives, u16_directives, u32_directives): Add
23396         room for the first 7 directives.
23397         * lib/printf-parse.c: Include <string.h>.
23398         (PRINTF_PARSE): Change memory handling code so that it uses the first
23399         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23400         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23401         Reported by Pádraig Brady <P@draigbrady.com>.
23402
23403 2011-01-31  Eric Blake  <eblake@redhat.com>
23404
23405         dup2: work around Haiku bug
23406         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23407         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23408         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23409         * tests/test-dup2.c (main): Enhance test.
23410
23411 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23412
23413         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23414         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23415         declared by eglibc 2.11.2.
23416         * lib/stdio.in.h: Likewise.
23417
23418 2011-01-31  Eric Blake  <eblake@redhat.com>
23419
23420         ignore-value: add missing test dependency
23421         * tests/test-ignore-value.c: Revert previous change; stdio.h
23422         provides off_t.
23423         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23424
23425 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23426
23427         mktime: clarify long_int width checking
23428         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23429         the top level, to make it clearer that the assumption about
23430         long_int width is being checked.  See
23431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23432
23433 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23434
23435         ignore-value: Fix self-test.
23436         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23437
23438 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23439
23440         TYPE_MAXIMUM: avoid theoretically undefined behavior
23441         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23442         negative number, which the C Standard says has undefined behavior.
23443         In practice this is not a problem, but might as well do it by the book.
23444         Reported by Rich Felker and Eric Blake; see
23445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23446         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23447         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23448         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23449         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23450         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23451         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23452
23453         mktime: #undef mktime before #defining it
23454         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23455
23456         mktime: systematically normalize tm_isdst comparisons
23457         * lib/mktime.c (isdst_differ): New function.
23458         (__mktime_internal): Use it systematically for all isdst comparisons.
23459         This completes the fix for libc BZ #6723, and removes the need for
23460         normalizing tm_isdst.  See
23461         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23462         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23463
23464         mktime: fix some integer overflow issues and sidestep the rest
23465
23466         This was prompted by a bug report by Benjamin Lindner for MinGW
23467         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23468         His bug is due to signed integer overflow (0 - INT_MIN), and I
23469         I scanned through mktime.c looking for other integer overflow
23470         problems, fixing all the bugs I found.
23471
23472         Although the C Standard says the resulting code is still not safe
23473         in the presence of integer overflow, in practice it should be good
23474         enough for all real-world two's-complement implementations, except
23475         for debugging environments that deliberately trap on integer
23476         overflow (e.g., gcc -ftrapv).
23477
23478         * lib/mktime.c (WRAPV): New macro.
23479         (SHR): Also check that long_int and time_t shift right in the
23480         usual way, before using the fast-but-unportable method.
23481         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23482         used.  The code already assumed two's complement, so there's
23483         no need to test for alternatives.  All uses removed.
23484         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23485         the C standard.  Problem reported by Rich Felker in
23486         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23487         (twos_complement_arithmetic): Also check long_int and time_t.
23488         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23489         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23490         (__mktime_internal): Avoid integer overflow with unary subtraction
23491         in two instances where -1 - X is an adequate replacement for -X,
23492         since the calculations are approximate.
23493
23494 2011-01-29  Eric Blake  <eblake@redhat.com>
23495
23496         mktime: avoid infinite loop
23497         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23498         type; behavior is still undefined but portable to all known targets.
23499         Reported by Rich Felker.
23500
23501 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23502
23503         rename, unlink, same-inode: Relicense.
23504         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23505         * modules/unlink (License): Likewise.
23506         * modules/same-inode (License): Likewise.
23507
23508 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23509
23510         mktime: avoid problems on NetBSD 5 / i386
23511         * lib/mktime.c (long_int): New type.  This works around a problem
23512         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23513         but time_t is 64 bits, and where I expect the existing code is
23514         wrong in some cases.
23515         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23516         (ydhms_diff): Bring back the compile-time check for wide-enough
23517         year and yday.
23518
23519         mktime: fix misspelling in comment
23520         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23521         This merges all recent glibc changes of importance.
23522
23523 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23524
23525         move-if-change: cope with concurrent mv of identical file.
23526         * build-aux/move-if-change (CMPPROG): Accept environment
23527         variable as an override for `cmp'.
23528         (usage): Document CMPPROG.
23529         Adjust comparison to drop stdout.  Cope with failure of mv if
23530         the target file exists and is identical to the source, for
23531         parallel builds.
23532         Report from H.J. Lu against binutils in PR binutils/12283.
23533
23534 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23535
23536         * users.txt: Mention sharutils.
23537
23538 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23539
23540         * users.txt: Mention OATH Toolkit.
23541
23542 2011-01-27  Bruno Haible  <bruno@clisp.org>
23543
23544         Prepare for supporting FreeBSD 10.
23545         * build-aux/config.libpath: Remove handling of freebsd1*.
23546
23547 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23548
23549         Prepare for supporting FreeBSD 10.
23550         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23551         match FreeBSD 10.0.
23552
23553 2011-01-27  Bruno Haible  <bruno@clisp.org>
23554
23555         vma-iter, get-rusage-as: Add OpenBSD support.
23556         * modules/vma-iter (configure.ac): Test for mquery.
23557         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23558         * lib/vma-iter.c: Include <sys/mman.h>.
23559         (vma_iterate): Add an implementation based on mquery().
23560         * lib/resource-ext.h (get_rusage_as): Update comments.
23561         * lib/get-rusage-as.c: Likewise.
23562         * lib/get-rusage-data.c: Likewise.
23563
23564 2011-01-26  Karl Berry  <karl@gnu.org>
23565
23566         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23567         variables to make it easier to override the makeinfo program used.
23568
23569 2011-01-26  Eric Blake  <eblake@redhat.com>
23570
23571         fcntl: work around Haiku F_DUPFD bugs
23572         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23573         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23574         cloexec bit on duplication.
23575         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23576
23577 2011-01-26  Bruno Haible  <bruno@clisp.org>
23578
23579         Enable memory leak tests on AIX.
23580         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23581         * tests/test-fprintf-posix3.c (main): Likewise.
23582
23583 2011-01-26  Bruno Haible  <bruno@clisp.org>
23584
23585         Tests for module 'get-rusage-data'.
23586         * modules/get-rusage-data-tests: New file.
23587         * tests/test-get-rusage-data.c: New file.
23588
23589         New module 'get-rusage-data'.
23590         * lib/resource-ext.h (get_rusage_data): New declaration.
23591         * lib/get-rusage-data.c: New file.
23592         * modules/get-rusage-data: New file.
23593
23594 2011-01-25  Bruno Haible  <bruno@clisp.org>
23595
23596         get-rusage-as: Allow for easier testing.
23597         * lib/resource-ext.h (get_rusage_as): Add comment.
23598         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
23599         (main): New function for interactive testing.
23600
23601 2011-01-25  Bruno Haible  <bruno@clisp.org>
23602
23603         vma-iter: Treat Haiku like BeOS.
23604         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
23605         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
23606
23607 2011-01-25  Eric Blake  <eblake@redhat.com>
23608
23609         c-stack: fix regression on cygwin when libsigsegv is present
23610         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
23611
23612 2011-01-24  Bruno Haible  <bruno@clisp.org>
23613
23614         vma-iter: Avoid empty intervals.
23615         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
23616         on an empty interval.
23617
23618 2011-01-24  Jim Meyering  <meyering@redhat.com>
23619
23620         u64: remove unnecessary #include
23621         * lib/u64.h: Don't include <stddef.h>.  It was not used.
23622
23623 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23624
23625         Allow the user to avoid the HAVE_RAW_DECL_* macros.
23626         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
23627
23628 2011-01-23  Bruno Haible  <bruno@clisp.org>
23629
23630         New module 'vma-iter'.
23631         * lib/vma-iter.h: New file.
23632         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
23633         * modules/vma-iter: New file.
23634         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
23635         for get_rusage_as_via_iterator.
23636         (vma_iterate_callback): New function.
23637         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
23638         * modules/get-rusage-as (Depends-on): Add vma-iter.
23639
23640 2011-01-23  Bruno Haible  <bruno@clisp.org>
23641
23642         uninorm: Tweak includes.
23643         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
23644         Reported by Jim Meyering.
23645
23646 2011-01-23  Bruno Haible  <bruno@clisp.org>
23647
23648         get-rusage-as: Improve on NetBSD.
23649         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
23650         /proc, like on FreeBSD.
23651
23652 2011-01-23  Jim Meyering  <meyering@redhat.com>
23653
23654         xreadlink.h: remove unnecessary #include
23655         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
23656
23657         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
23658         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
23659
23660 2011-01-23  Bruno Haible  <bruno@clisp.org>
23661
23662         get-rusage-as: Fix bug.
23663         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
23664         original limit when aborting the first loop.
23665
23666 2011-01-23  Bruno Haible  <bruno@clisp.org>
23667
23668         wctype: Ensure valid C syntax.
23669         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
23670         unconditionally, instead of gl_NEXT_HEADERS conditionally.
23671
23672 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
23673
23674         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
23675         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
23676         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
23677         as they are needed only for configure's test case.
23678         This removes two unnecessary symbols from config.h.
23679
23680         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
23681         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
23682         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
23683         AC_CHECK_HEADERS_ONCE on a header that we also invoke
23684         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
23685         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
23686         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
23687         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
23688         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23689         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23690         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23691         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23692         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23693         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23694         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
23695         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23696         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23697         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23698
23699 2011-01-21  Eric Blake  <eblake@redhat.com>
23700
23701         maintainer-makefile: work with older git for submodule check
23702         * top/maint.mk (public-submodule-commit): Rewrite to avoid
23703         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
23704         Reported by Matthias Bolte.
23705
23706         bootstrap: minor portability fixes
23707         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
23708         (usage): Omit leading capital and trailing . on help phrases, per
23709         GNU Coding Standards.
23710         (check_versions, top level): Prefix messages with script name.
23711
23712 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
23713
23714         bootstrap: support --no-git option
23715         * build-aux/bootstrap: Add --no-git option, to be used when
23716         --gnulib-srcdir points to the exact desired checkout.
23717
23718 2011-01-21  Eric Blake  <eblake@redhat.com>
23719
23720         strerror_r-posix: work with glibc 2.13
23721         * lib/strerror_r.c (strerror_r): Fix return type.
23722
23723 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23724             Bruno Haible  <bruno@clisp.org>
23725
23726         uN_strstr: New unit tests.
23727         * modules/unistr/u8-strstr-tests: New file.
23728         * modules/unistr/u16-strstr-tests: New file.
23729         * modules/unistr/u32-strstr-tests: New file.
23730         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
23731         * tests/unistr/test-u8-strstr.c: New file.
23732         * tests/unistr/test-u16-strstr.c: New file.
23733         * tests/unistr/test-u32-strstr.c: New file.
23734
23735 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23736             Bruno Haible  <bruno@clisp.org>
23737
23738         Make uN_strstr functions O(n) worst-case.
23739         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
23740         16-bit and 32-bit unit cases, use the unibyte algorithm from
23741         lib/mbsstr.c.
23742         * lib/unistr/u8-strstr.c: Include <string.h>.
23743         (UNIT_IS_UINT8_T): New macro.
23744         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
23745         (U_STRLEN, U_STRNLEN): New macros.
23746         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
23747         (U_STRLEN, U_STRNLEN): New macros.
23748         * modules/unistr/u8-strstr (Depends-on): Add strstr.
23749         (configure.ac): Update required libunistring version.
23750         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
23751         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
23752         malloca.
23753         (configure.ac): Update required libunistring version.
23754         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
23755         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
23756         malloca.
23757         (configure.ac): Update required libunistring version.
23758
23759 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23760             Bruno Haible  <bruno@clisp.org>
23761
23762         Prepare for faster uN_strstr functions.
23763         * lib/str-kmp.h: Support definable UNITs.
23764         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
23765         needle_len argument.
23766         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
23767         * lib/mbscasestr.c (mbscasestr): Likewise.
23768
23769 2011-01-21  Pádraig Brady <P@draigBrady.com>
23770
23771         malloca-tests: make faster by unsetting MALLOC_PERTURB_
23772         * tests/test-malloca.c (main): Unset the environment variable
23773         to greatly speed up the test.
23774         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
23775         * modules/malloca-tests: Depend on unsetenv.
23776
23777 2011-01-21  Pádraig Brady <P@draigBrady.com>
23778
23779         ignore-value: remove stdint dependency
23780         * lib/ignore-value.h: Remove <stdint.h>
23781         * modules/ignore-value: Remove stdint dependency.
23782
23783 2011-01-21  Jim Meyering  <meyering@redhat.com>
23784
23785         maint.mk: adjust variable name to be consistent with other gl_ vars
23786         * top/maint.mk (gl_public_submodule_commit): Rename the variable
23787         to be lower case.
23788
23789 2011-01-20  Jim Meyering  <meyering@redhat.com>
23790
23791         maint.mk: make "check" depend on public-submodule-commit by default
23792         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
23793
23794 2011-01-20  Bruno Haible  <bruno@clisp.org>
23795
23796         mbfile, mbiter: Complete change from 2008-12-21.
23797         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
23798         * m4/mbiter.m4 (gl_MBITER): Likewise.
23799
23800 2011-01-20  Jim Meyering  <meyering@redhat.com>
23801
23802         init.sh: insert space between each function name and "()"
23803         * tests/init.sh: Make it a little easier to see that a function's
23804         name is "warn_", and not "warn" when looking at the first part of
23805         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
23806
23807 2011-01-20  Jim Meyering  <meyering@redhat.com>
23808
23809         mountlist: clean up code formatting
23810         * lib/mountlist.c (read_file_system_list): Split a long line,
23811         correct bracing style, use NULL in place of "(struct statfs *)0",
23812         don't parenthesize return value, add spaces around "=" and after
23813         ";-in-for-stmt".
23814
23815 2011-01-14  Markus Duft <mduft@gentoo.org>
23816
23817         mountlist: add support for Interix
23818         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
23819         Apply statvfs to all entries of /dev/fs.
23820         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
23821         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
23822
23823 2011-01-20  Jim Meyering  <meyering@redhat.com>
23824
23825         maint.mk: improve the public-submodule-commit rule
23826         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
23827         to suppress printing of its commands... unless V=1.
23828         Add git submodule's --quiet option to suppress printing of e.g.,
23829         "Entering gnulib" output.
23830         "cd" into $(srcdir) before running git submodule.
23831
23832 2011-01-20  Bruno Haible  <bruno@clisp.org>
23833
23834         include_next: Fix bug introduced on 2011-01-18.
23835         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
23836         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
23837         ac_cv_header_... variable if the second argument is not 'check'.
23838         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
23839         gl_NEXT_HEADERS_INTERNAL.
23840
23841 2011-01-20  Bruno Haible  <bruno@clisp.org>
23842
23843         Allow the user to avoid the GNULIB_TEST_* macros.
23844         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
23845         Suggested by Paul Eggert.
23846
23847 2011-01-14  Jim Meyering  <meyering@redhat.com>
23848
23849         bootstrap: avoid failure when there is no .gitmodules file
23850         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
23851         has been assigned to, even when its value is the empty string.
23852         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
23853         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
23854         Reported by John W. Eaton <jwe@gnu.org>.
23855
23856 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
23857
23858         assume <ctype.h>, ..., <time.h> exist
23859         For years gnulib has been assuming the existence of the headers
23860         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
23861         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
23862         them, since they don't appear to be needed.
23863         * README (Portability guidelines): Document this.
23864         * lib/flock.c: Assume <fcntl.h> exists.
23865         * lib/regex_internal.h: Assume <locale.h> exists.
23866         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
23867         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
23868         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
23869         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
23870         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
23871         * m4/regex.m4 (gl_REGEX): Likewise.
23872         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
23873         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
23874         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
23875         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
23876         * tests/test-argp.c: Likewise.
23877         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
23878
23879         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
23880         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
23881         AA_APPLE_UNIVERSAL_BUILD.  See
23882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
23883         * NEWS: Document this.
23884
23885 2011-01-19  Eric Blake  <eblake@redhat.com>
23886
23887         c-stack: assume stack overflow if SA_SIGINFO unsupported
23888         * lib/c-stack.c (SIGACTION_WORKS): Rename...
23889         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
23890         sigaction will work.
23891         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
23892         behavior match Linux.
23893         * tests/test-c-stack.c (main): Prefer NULL for pointers.
23894
23895         stdbool-tests: accommodate Haiku
23896         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
23897
23898         binary-io: fix O_TEXT on Haiku
23899         * modules/binary-io (Depends-on): Add fcntl-h.
23900         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
23901         than blindly undefining O_TEXT.
23902         Reported by Scott McCreary.
23903
23904 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23905
23906         include_next: do not check for standard headers like stddef.h
23907
23908         I found this problem when modifying Emacs to use gnulib.
23909         I noticed that it added HAVE_STDDEF_H to config.h, even though
23910         gnulib always assumes <stddef.h> exists as per README and this
23911         symbol is unnecessary.
23912         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
23913         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
23914         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
23915         faster for headers like stddef.h that are known to exist.
23916         (gl_CHECK_NEXT_HEADERS): Use it.
23917         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
23918         rather than gl_CHECK_NEXT_HEADERS.
23919         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
23920         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
23921
23922 2011-01-18  Eric Blake  <eblake@redhat.com>
23923
23924         ansi-c++-opt: skip C++ dependency style if C++ is unused
23925         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
23926         tests when we know C++ compilation is not desired.
23927         Reported by Scott McCreary.
23928
23929 2011-01-18  Bruno Haible  <bruno@clisp.org>
23930
23931         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
23932         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
23933         (main): Perform test also when getrlimit and setrlimit don't exist or
23934         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
23935         limiting the address space size using setrlimit, compare the address
23936         space size before and after the the test.
23937         * tests/test-dprintf-posix2.c: Likewise.
23938         * tests/test-fprintf-posix3.sh: Update skip messages.
23939         * tests/test-dprintf-posix2.sh: Likewise.
23940         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
23941         * modules/dprintf-posix-tests (Depends-on): Likewise.
23942         Reported by Bruce Korb <bkorb@gnu.org> and
23943         Gary V. Vaughan <gary@gnu.org>.
23944
23945 2011-01-18  Bruno Haible  <bruno@clisp.org>
23946
23947         get-rusage-as: Improvement for Cygwin.
23948         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
23949         areas that are merely reserved.
23950
23951 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23952
23953         strftime: remove dependencies on multibyte modules
23954
23955         strftime depended on mbrlen, mbsinit, and wchar, but these modules
23956         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
23957         only if __osf__ is defined, and I suspect OSF doesn't need these
23958         other modules.  If my guess is wrong, we'll need to come up with a
23959         variant of strftime that doesn't need the multibyte modules.
23960
23961         I discovered this problem when attempting modify Emacs to use the
23962         strftime module.  With the previous gnulib, this caused Emacs to
23963         need 31 new files, ranging from lib/config.charset to
23964         m4/wint_t.m4.  This was overkill and I expect would be offputting
23965         to the Emacs maintainers.  After this change, only 6 new files are
23966         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
23967         stdbool.m4, and tm_gmtoff.m4.
23968
23969         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
23970         Suggested by Bruno Haible in
23971         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
23972         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
23973         and do not check for wchar.h.
23974         * modules/strftime (Files): Remove m4/mbstate_t.m4.
23975         (Depends-on): Remove mbrlen, mbsinit, wchar.
23976
23977 2011-01-18  Bruno Haible  <bruno@clisp.org>
23978
23979         Tests for module 'get-rusage-as'.
23980         * modules/get-rusage-as-tests: New file.
23981         * tests/test-get-rusage-as.c: New file.
23982
23983         New module 'get-rusage-as'.
23984         * modules/get-rusage-as: New file.
23985         * lib/resource-ext.h: New file.
23986         * lib/get-rusage-as.c: New file.
23987
23988 2011-01-17  Eric Blake  <eblake@redhat.com>
23989
23990         sigaction: relax license from LGPLv3+ to LGPLv2+
23991         * modules/sigaction (License): Relax to LGPLv2+.
23992
23993 2011-01-14  Bruno Haible  <bruno@clisp.org>
23994
23995         filemode: Make function declarations usable in C++ mode.
23996         * lib/filemode.h: Enclose function declarations in extern "C" block.
23997         Reported by John W. Eaton <jwe@gnu.org>.
23998
23999 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24000
24001         save-cwd: no longer include "xgetcwd.h"
24002         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24003         This avoids a compilation failure in projects that use save-cwd
24004         without also using the xgetcwd module.
24005
24006 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24007
24008         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24009         This is so that a program like Emacs, which needs only dtoastr,
24010         does not have to bother with distributing and compiling ftoastr
24011         and ldtoastr.
24012         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24013         * modules/dtoastr, modules/ldtoastr: New files.
24014         * modules/ftoastr: Now works just for 'float'.
24015         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24016         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24017         dtoastr.c, ldtoastr.c.
24018
24019 2011-01-11  Jim Meyering  <meyering@redhat.com>
24020
24021         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24022         There is no need to work around the lack of the fchdir function,
24023         since gnulib can now provide a replacement when required.
24024         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24025         * modules/save-cwd (Depends-on): Add fchdir.
24026
24027 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24028
24029         openat, save-cwd: avoid xmalloc
24030
24031         This removes a direct (but undocumented) dependency of openat on
24032         xalloc, along with an indirect dependency via save-cwd.  It also
24033         removes a dependency of save-cwd on xgetcwd, and thereby
24034         indirectly on xalloc.  This change causes the openat substitute
24035         to fall back on save_cwd when memory is tight, and for save_cwd to
24036         fail instead of dying when memory is tight, but that's good enough.
24037         Problem and initial idea for fix reported by Bastien Roucaries in
24038         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24039
24040         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24041         xalloc.h (for xmalloc).
24042         (openat_proc_name): Use malloc, not xmalloc.
24043         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24044         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24045
24046         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24047         This avoids heap allocation for file names whose lengths are in
24048         the range 512..1023, with the upper bound increasing to at most
24049         4031 depending on the platform's PATH_MAX.  (We do not want
24050         pathmax.h here as it might supply a non-constant PATH_MAX.)
24051         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24052         Perhaps they should be moved to malloca.h?
24053         (OPENAT_BUFFER_SIZE): Use them.
24054
24055 2011-01-10  Bruno Haible  <bruno@clisp.org>
24056
24057         doc: Update users.txt.
24058         * users.txt: Add recutils.
24059
24060 2011-01-09  Karl Berry  <karl@gnu.org>
24061
24062         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24063
24064         * doc/configmake.texi: New file.
24065         * doc/gnulib.texi: Include it.
24066         * modules/configmake: Move documentation from here.
24067
24068 2011-01-09  Bruno Haible  <bruno@clisp.org>
24069
24070         Update to Unicode 6.0.0.
24071         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24072         (get_lbp): Update for Unicode 6.0.0.
24073         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24074         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24075         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24076         U+11001, U+11038..U+11046. Remove U+06DE.
24077         (uc_width): Fix bounds of planes.
24078         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24079         lib/uniwidth/width.c.
24080         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24081         trailing whitespace removed.
24082         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24083         without comments, but with the original copyright notice.
24084         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24085         * lib/unicase/ignorable.h: Likewise.
24086         * lib/unicase/tocasefold.h: Likewise.
24087         * lib/unicase/tolower.h: Likewise.
24088         * lib/unicase/totitle.h: Likewise.
24089         * lib/unicase/toupper.h: Likewise.
24090         * lib/unictype/bidi_of.h: Likewise.
24091         * lib/unictype/blocks.h: Likewise.
24092         * lib/unictype/categ_C.h: Likewise.
24093         * lib/unictype/categ_Cn.h: Likewise.
24094         * lib/unictype/categ_L.h: Likewise.
24095         * lib/unictype/categ_Ll.h: Likewise.
24096         * lib/unictype/categ_Lm.h: Likewise.
24097         * lib/unictype/categ_Lo.h: Likewise.
24098         * lib/unictype/categ_Lu.h: Likewise.
24099         * lib/unictype/categ_M.h: Likewise.
24100         * lib/unictype/categ_Mc.h: Likewise.
24101         * lib/unictype/categ_Me.h: Likewise.
24102         * lib/unictype/categ_Mn.h: Likewise.
24103         * lib/unictype/categ_N.h: Likewise.
24104         * lib/unictype/categ_Nd.h: Likewise.
24105         * lib/unictype/categ_No.h: Likewise.
24106         * lib/unictype/categ_P.h: Likewise.
24107         * lib/unictype/categ_Po.h: Likewise.
24108         * lib/unictype/categ_S.h: Likewise.
24109         * lib/unictype/categ_Sc.h: Likewise.
24110         * lib/unictype/categ_Sk.h: Likewise.
24111         * lib/unictype/categ_Sm.h: Likewise.
24112         * lib/unictype/categ_So.h: Likewise.
24113         * lib/unictype/categ_of.h: Likewise.
24114         * lib/unictype/combining.h: Likewise.
24115         * lib/unictype/ctype_alnum.h: Likewise.
24116         * lib/unictype/ctype_alpha.h: Likewise.
24117         * lib/unictype/ctype_graph.h: Likewise.
24118         * lib/unictype/ctype_lower.h: Likewise.
24119         * lib/unictype/ctype_print.h: Likewise.
24120         * lib/unictype/ctype_punct.h: Likewise.
24121         * lib/unictype/ctype_upper.h: Likewise.
24122         * lib/unictype/decdigit.h: Likewise.
24123         * lib/unictype/digit.h: Likewise.
24124         * lib/unictype/numeric.h: Likewise.
24125         * lib/unictype/pr_alphabetic.h: Likewise.
24126         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24127         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24128         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24129         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24130         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24131         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24132         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24133         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24134         * lib/unictype/pr_case_ignorable.h: Likewise.
24135         * lib/unictype/pr_cased.h: Likewise.
24136         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24137         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24138         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24139         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24140         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24141         * lib/unictype/pr_combining.h: Likewise.
24142         * lib/unictype/pr_composite.h: Likewise.
24143         * lib/unictype/pr_currency_symbol.h: Likewise.
24144         * lib/unictype/pr_decimal_digit.h: Likewise.
24145         * lib/unictype/pr_deprecated.h: Likewise.
24146         * lib/unictype/pr_format_control.h: Likewise.
24147         * lib/unictype/pr_grapheme_base.h: Likewise.
24148         * lib/unictype/pr_grapheme_extend.h: Likewise.
24149         * lib/unictype/pr_grapheme_link.h: Likewise.
24150         * lib/unictype/pr_id_continue.h: Likewise.
24151         * lib/unictype/pr_id_start.h: Likewise.
24152         * lib/unictype/pr_ideographic.h: Likewise.
24153         * lib/unictype/pr_lowercase.h: Likewise.
24154         * lib/unictype/pr_math.h: Likewise.
24155         * lib/unictype/pr_numeric.h: Likewise.
24156         * lib/unictype/pr_other_alphabetic.h: Likewise.
24157         * lib/unictype/pr_other_id_continue.h: Likewise.
24158         * lib/unictype/pr_other_math.h: Likewise.
24159         * lib/unictype/pr_punctuation.h: Likewise.
24160         * lib/unictype/pr_sentence_terminal.h: Likewise.
24161         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24162         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24163         * lib/unictype/pr_unified_ideograph.h: Likewise.
24164         * lib/unictype/pr_uppercase.h: Likewise.
24165         * lib/unictype/pr_xid_continue.h: Likewise.
24166         * lib/unictype/pr_xid_start.h: Likewise.
24167         * lib/unictype/scripts.h: Likewise.
24168         * lib/unictype/scripts_byname.gperf: Likewise.
24169         * lib/unictype/sy_java_ident.h: Likewise.
24170         * lib/unigbrk/gbrkprop.h: Likewise.
24171         * lib/unilbrk/lbrkprop1.h: Likewise.
24172         * lib/unilbrk/lbrkprop2.h: Likewise.
24173         * lib/uninorm/decomposition-table2.h: Likewise.
24174         * lib/uniwbrk/wbrkprop.h: Likewise.
24175         * tests/unicase/test-cased.c: Likewise.
24176         * tests/unicase/test-ignorable.c: Likewise.
24177         * tests/unicase/test-uc_tolower.c: Likewise.
24178         * tests/unicase/test-uc_totitle.c: Likewise.
24179         * tests/unicase/test-uc_toupper.c: Likewise.
24180         * tests/unictype/test-categ_C.c: Likewise.
24181         * tests/unictype/test-categ_Cn.c: Likewise.
24182         * tests/unictype/test-categ_L.c: Likewise.
24183         * tests/unictype/test-categ_Ll.c: Likewise.
24184         * tests/unictype/test-categ_Lm.c: Likewise.
24185         * tests/unictype/test-categ_Lo.c: Likewise.
24186         * tests/unictype/test-categ_Lu.c: Likewise.
24187         * tests/unictype/test-categ_M.c: Likewise.
24188         * tests/unictype/test-categ_Mc.c: Likewise.
24189         * tests/unictype/test-categ_Me.c: Likewise.
24190         * tests/unictype/test-categ_Mn.c: Likewise.
24191         * tests/unictype/test-categ_N.c: Likewise.
24192         * tests/unictype/test-categ_Nd.c: Likewise.
24193         * tests/unictype/test-categ_No.c: Likewise.
24194         * tests/unictype/test-categ_P.c: Likewise.
24195         * tests/unictype/test-categ_Po.c: Likewise.
24196         * tests/unictype/test-categ_S.c: Likewise.
24197         * tests/unictype/test-categ_Sc.c: Likewise.
24198         * tests/unictype/test-categ_Sk.c: Likewise.
24199         * tests/unictype/test-categ_Sm.c: Likewise.
24200         * tests/unictype/test-categ_So.c: Likewise.
24201         * tests/unictype/test-ctype_alnum.c: Likewise.
24202         * tests/unictype/test-ctype_alpha.c: Likewise.
24203         * tests/unictype/test-ctype_graph.c: Likewise.
24204         * tests/unictype/test-ctype_lower.c: Likewise.
24205         * tests/unictype/test-ctype_print.c: Likewise.
24206         * tests/unictype/test-ctype_punct.c: Likewise.
24207         * tests/unictype/test-ctype_upper.c: Likewise.
24208         * tests/unictype/test-decdigit.h: Likewise.
24209         * tests/unictype/test-digit.h: Likewise.
24210         * tests/unictype/test-numeric.h: Likewise.
24211         * tests/unictype/test-pr_alphabetic.c: Likewise.
24212         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24213         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24214         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24215         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24216         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24217         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24218         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24219         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24220         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24221         * tests/unictype/test-pr_cased.c: Likewise.
24222         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24223         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24224         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24225         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24226         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24227         * tests/unictype/test-pr_combining.c: Likewise.
24228         * tests/unictype/test-pr_composite.c: Likewise.
24229         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24230         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24231         * tests/unictype/test-pr_deprecated.c: Likewise.
24232         * tests/unictype/test-pr_format_control.c: Likewise.
24233         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24234         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24235         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24236         * tests/unictype/test-pr_id_continue.c: Likewise.
24237         * tests/unictype/test-pr_id_start.c: Likewise.
24238         * tests/unictype/test-pr_ideographic.c: Likewise.
24239         * tests/unictype/test-pr_lowercase.c: Likewise.
24240         * tests/unictype/test-pr_math.c: Likewise.
24241         * tests/unictype/test-pr_numeric.c: Likewise.
24242         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24243         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24244         * tests/unictype/test-pr_other_math.c: Likewise.
24245         * tests/unictype/test-pr_punctuation.c: Likewise.
24246         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24247         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24248         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24249         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24250         * tests/unictype/test-pr_uppercase.c: Likewise.
24251         * tests/unictype/test-pr_xid_continue.c: Likewise.
24252         * tests/unictype/test-pr_xid_start.c: Likewise.
24253         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24254         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24255         changes.
24256         * lib/unictype/categ_Cc.h: Likewise.
24257         * lib/unictype/categ_Cf.h: Likewise.
24258         * lib/unictype/categ_Co.h: Likewise.
24259         * lib/unictype/categ_Cs.h: Likewise.
24260         * lib/unictype/categ_Lt.h: Likewise.
24261         * lib/unictype/categ_Nl.h: Likewise.
24262         * lib/unictype/categ_Pc.h: Likewise.
24263         * lib/unictype/categ_Pd.h: Likewise.
24264         * lib/unictype/categ_Pe.h: Likewise.
24265         * lib/unictype/categ_Pf.h: Likewise.
24266         * lib/unictype/categ_Pi.h: Likewise.
24267         * lib/unictype/categ_Ps.h: Likewise.
24268         * lib/unictype/categ_Z.h: Likewise.
24269         * lib/unictype/categ_Zl.h: Likewise.
24270         * lib/unictype/categ_Zp.h: Likewise.
24271         * lib/unictype/categ_Zs.h: Likewise.
24272         * lib/unictype/ctype_blank.h: Likewise.
24273         * lib/unictype/ctype_cntrl.h: Likewise.
24274         * lib/unictype/ctype_digit.h: Likewise.
24275         * lib/unictype/ctype_space.h: Likewise.
24276         * lib/unictype/ctype_xdigit.h: Likewise.
24277         * lib/unictype/mirror.h: Likewise.
24278         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24279         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24280         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24281         * lib/unictype/pr_bidi_control.h: Likewise.
24282         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24283         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24284         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24285         * lib/unictype/pr_bidi_pdf.h: Likewise.
24286         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24287         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24288         * lib/unictype/pr_dash.h: Likewise.
24289         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24290         * lib/unictype/pr_diacritic.h: Likewise.
24291         * lib/unictype/pr_extender.h: Likewise.
24292         * lib/unictype/pr_hex_digit.h: Likewise.
24293         * lib/unictype/pr_hyphen.h: Likewise.
24294         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24295         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24296         * lib/unictype/pr_ignorable_control.h: Likewise.
24297         * lib/unictype/pr_iso_control.h: Likewise.
24298         * lib/unictype/pr_join_control.h: Likewise.
24299         * lib/unictype/pr_left_of_pair.h: Likewise.
24300         * lib/unictype/pr_line_separator.h: Likewise.
24301         * lib/unictype/pr_logical_order_exception.h: Likewise.
24302         * lib/unictype/pr_non_break.h: Likewise.
24303         * lib/unictype/pr_not_a_character.h: Likewise.
24304         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24305         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24306         * lib/unictype/pr_other_id_start.h: Likewise.
24307         * lib/unictype/pr_other_lowercase.h: Likewise.
24308         * lib/unictype/pr_other_uppercase.h: Likewise.
24309         * lib/unictype/pr_paired_punctuation.h: Likewise.
24310         * lib/unictype/pr_paragraph_separator.h: Likewise.
24311         * lib/unictype/pr_pattern_syntax.h: Likewise.
24312         * lib/unictype/pr_pattern_white_space.h: Likewise.
24313         * lib/unictype/pr_private_use.h: Likewise.
24314         * lib/unictype/pr_quotation_mark.h: Likewise.
24315         * lib/unictype/pr_radical.h: Likewise.
24316         * lib/unictype/pr_soft_dotted.h: Likewise.
24317         * lib/unictype/pr_space.h: Likewise.
24318         * lib/unictype/pr_titlecase.h: Likewise.
24319         * lib/unictype/pr_variation_selector.h: Likewise.
24320         * lib/unictype/pr_white_space.h: Likewise.
24321         * lib/unictype/pr_zero_width.h: Likewise.
24322         * lib/unictype/sy_c_ident.h: Likewise.
24323         * lib/unictype/sy_c_whitespace.h: Likewise.
24324         * lib/unictype/sy_java_whitespace.h: Likewise.
24325         * lib/uninorm/composition-table.gperf: Likewise.
24326         * lib/uninorm/decomposition-table1.h: Likewise.
24327         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24328         LB8.
24329         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24330         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24331         * modules/unictype/*: Bump version number of expected libunistring
24332         version.
24333
24334 2011-01-09  Bruno Haible  <bruno@clisp.org>
24335
24336         Update to Unicode 5.2.0.
24337         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24338         trailing whitespace removed.
24339
24340 2011-01-09  Bruno Haible  <bruno@clisp.org>
24341
24342         New Unicode character properties, from Unicode 5.2.0.
24343         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24344         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24345         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24346         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24347         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24348         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24349         uc_is_property_cased, uc_is_property_case_ignorable,
24350         uc_is_property_changes_when_lowercased,
24351         uc_is_property_changes_when_uppercased,
24352         uc_is_property_changes_when_titlecased,
24353         uc_is_property_changes_when_casefolded,
24354         uc_is_property_changes_when_casemapped): New declarations.
24355         * lib/unictype/pr_byname.gperf: Add the new properties.
24356         * modules/unictype/property-byname (Depends-on): Depend on the new
24357         properties modules.
24358         * modules/unictype/property-all (Depends-on): Likewise.
24359         * MODULES.html.sh (Unicode string functions): Add
24360         unictype/property-case-ignorable, unictype/property-cased,
24361         unictype/property-changes-when-casefolded,
24362         unictype/property-changes-when-casemapped,
24363         unictype/property-changes-when-lowercased,
24364         unictype/property-changes-when-titlecased,
24365         unictype/property-changes-when-uppercased.
24366
24367         New module 'unictype/property-changes-when-casemapped'.
24368         * modules/unictype/property-changes-when-casemapped: New file.
24369         * lib/unictype/pr_changes_when_casemapped.c: New file.
24370         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24371         generated by gen-uni-tables.
24372         * modules/unictype/property-changes-when-casemapped-tests: New file.
24373         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24374         automatically generated by gen-uni-tables.
24375
24376         New module 'unictype/property-changes-when-casefolded'.
24377         * modules/unictype/property-changes-when-casefolded: New file.
24378         * lib/unictype/pr_changes_when_casefolded.c: New file.
24379         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24380         generated by gen-uni-tables.
24381         * modules/unictype/property-changes-when-casefolded-tests: New file.
24382         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24383         automatically generated by gen-uni-tables.
24384
24385         New module 'unictype/property-changes-when-titlecased'.
24386         * modules/unictype/property-changes-when-titlecased: New file.
24387         * lib/unictype/pr_changes_when_titlecased.c: New file.
24388         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24389         generated by gen-uni-tables.
24390         * modules/unictype/property-changes-when-titlecased-tests: New file.
24391         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24392         automatically generated by gen-uni-tables.
24393
24394         New module 'unictype/property-changes-when-uppercased'.
24395         * modules/unictype/property-changes-when-uppercased: New file.
24396         * lib/unictype/pr_changes_when_uppercased.c: New file.
24397         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24398         generated by gen-uni-tables.
24399         * modules/unictype/property-changes-when-uppercased-tests: New file.
24400         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24401         automatically generated by gen-uni-tables.
24402
24403         New module 'unictype/property-changes-when-lowercased'.
24404         * modules/unictype/property-changes-when-lowercased: New file.
24405         * lib/unictype/pr_changes_when_lowercased.c: New file.
24406         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24407         generated by gen-uni-tables.
24408         * modules/unictype/property-changes-when-lowercased-tests: New file.
24409         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24410         automatically generated by gen-uni-tables.
24411
24412         New module 'unictype/property-case-ignorable'.
24413         * modules/unictype/property-case-ignorable: New file.
24414         * lib/unictype/pr_case_ignorable.c: New file.
24415         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24416         by gen-uni-tables.
24417         * modules/unictype/property-case-ignorable-tests: New file.
24418         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24419         generated by gen-uni-tables.
24420
24421         New module 'unictype/property-cased'.
24422         * modules/unictype/property-cased: New file.
24423         * lib/unictype/pr_cased.c: New file.
24424         * lib/unictype/pr_cased.h: New file, automatically generated by
24425         gen-uni-tables.
24426         * modules/unictype/property-cased-tests: New file.
24427         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24428         gen-uni-tables.
24429
24430 2011-01-09  Bruno Haible  <bruno@clisp.org>
24431
24432         Update to Unicode 5.2.0.
24433         * lib/gen-uni-tables.c (output_predicate, output_category,
24434         output_combclass, output_bidi_category, output_decimal_digit_test,
24435         output_decimal_digit, output_digit_test, output_digit,
24436         output_numeric_test, output_numeric, output_mirror, output_scripts,
24437         output_scripts_byname, output_blocks, output_ident_category): Fix
24438         comment header.
24439         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24440         get_wbp.
24441         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24442         items.
24443         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24444         Changes_When_Lowercased, Changes_When_Uppercased,
24445         Changes_When_Titlecased, Changes_When_Casefolded,
24446         Changes_When_Casemapped.
24447         (is_property_alphabetic, is_property_default_ignorable_code_point):
24448         Update for Unicode 5.2.0.
24449         (is_property_cased, is_property_case_ignorable,
24450         is_property_changes_when_lowercased,
24451         is_property_changes_when_uppercased,
24452         is_property_changes_when_titlecased,
24453         is_property_changes_when_casefolded,
24454         is_property_changes_when_casemapped): New functions.
24455         (output_properties): Output also the properties cased, case_ignorable,
24456         changes_when_lowercased, changes_when_uppercased,
24457         changes_when_titlecased, changes_when_casefolded,
24458         changes_when_casemapped.
24459         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24460         Unicode TR#11 revision 17 -> 19.
24461         (LBP_CP): New enumeration value.
24462         (LBP_*): Adjust values accordingly.
24463         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24464         TR#14 revision 22 -> 24.
24465         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24466         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24467         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24468         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24469         is_WBP_MIDLETTER.
24470         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24471         the code1 and code2 of each composition rule.
24472         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24473         * lib/unicase/ignorable.h: Likewise.
24474         * lib/unicase/tocasefold.h: Likewise.
24475         * lib/unicase/tolower.h: Likewise.
24476         * lib/unicase/totitle.h: Likewise.
24477         * lib/unicase/toupper.h: Likewise.
24478         * lib/unictype/bidi_of.h: Likewise.
24479         * lib/unictype/blocks.h: Likewise.
24480         * lib/unictype/categ_C.h: Likewise.
24481         * lib/unictype/categ_Cf.h: Likewise.
24482         * lib/unictype/categ_Cn.h: Likewise.
24483         * lib/unictype/categ_L.h: Likewise.
24484         * lib/unictype/categ_Ll.h: Likewise.
24485         * lib/unictype/categ_Lm.h: Likewise.
24486         * lib/unictype/categ_Lo.h: Likewise.
24487         * lib/unictype/categ_Lu.h: Likewise.
24488         * lib/unictype/categ_M.h: Likewise.
24489         * lib/unictype/categ_Mc.h: Likewise.
24490         * lib/unictype/categ_Mn.h: Likewise.
24491         * lib/unictype/categ_N.h: Likewise.
24492         * lib/unictype/categ_Nd.h: Likewise.
24493         * lib/unictype/categ_Nl.h: Likewise.
24494         * lib/unictype/categ_No.h: Likewise.
24495         * lib/unictype/categ_P.h: Likewise.
24496         * lib/unictype/categ_Pd.h: Likewise.
24497         * lib/unictype/categ_Po.h: Likewise.
24498         * lib/unictype/categ_S.h: Likewise.
24499         * lib/unictype/categ_Sc.h: Likewise.
24500         * lib/unictype/categ_So.h: Likewise.
24501         * lib/unictype/categ_of.h: Likewise.
24502         * lib/unictype/combining.h: Likewise.
24503         * lib/unictype/ctype_alnum.h: Likewise.
24504         * lib/unictype/ctype_alpha.h: Likewise.
24505         * lib/unictype/ctype_graph.h: Likewise.
24506         * lib/unictype/ctype_lower.h: Likewise.
24507         * lib/unictype/ctype_print.h: Likewise.
24508         * lib/unictype/ctype_punct.h: Likewise.
24509         * lib/unictype/ctype_upper.h: Likewise.
24510         * lib/unictype/decdigit.h: Likewise.
24511         * lib/unictype/digit.h: Likewise.
24512         * lib/unictype/numeric.h: Likewise.
24513         * lib/unictype/pr_alphabetic.h: Likewise.
24514         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24515         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24516         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24517         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24518         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24519         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24520         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24521         * lib/unictype/pr_combining.h: Likewise.
24522         * lib/unictype/pr_composite.h: Likewise.
24523         * lib/unictype/pr_currency_symbol.h: Likewise.
24524         * lib/unictype/pr_dash.h: Likewise.
24525         * lib/unictype/pr_decimal_digit.h: Likewise.
24526         * lib/unictype/pr_deprecated.h: Likewise.
24527         * lib/unictype/pr_diacritic.h: Likewise.
24528         * lib/unictype/pr_extender.h: Likewise.
24529         * lib/unictype/pr_grapheme_base.h: Likewise.
24530         * lib/unictype/pr_grapheme_extend.h: Likewise.
24531         * lib/unictype/pr_grapheme_link.h: Likewise.
24532         * lib/unictype/pr_id_continue.h: Likewise.
24533         * lib/unictype/pr_id_start.h: Likewise.
24534         * lib/unictype/pr_ideographic.h: Likewise.
24535         * lib/unictype/pr_ignorable_control.h: Likewise.
24536         * lib/unictype/pr_logical_order_exception.h: Likewise.
24537         * lib/unictype/pr_lowercase.h: Likewise.
24538         * lib/unictype/pr_numeric.h: Likewise.
24539         * lib/unictype/pr_other_alphabetic.h: Likewise.
24540         * lib/unictype/pr_punctuation.h: Likewise.
24541         * lib/unictype/pr_sentence_terminal.h: Likewise.
24542         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24543         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24544         * lib/unictype/pr_unified_ideograph.h: Likewise.
24545         * lib/unictype/pr_uppercase.h: Likewise.
24546         * lib/unictype/pr_xid_continue.h: Likewise.
24547         * lib/unictype/pr_xid_start.h: Likewise.
24548         * lib/unictype/pr_zero_width.h: Likewise.
24549         * lib/unictype/scripts.h: Likewise.
24550         * lib/unictype/scripts_byname.gperf: Likewise.
24551         * lib/unictype/sy_java_ident.h: Likewise.
24552         * lib/unigbrk/gbrkprop.h: Likewise.
24553         * lib/unilbrk/lbrkprop1.h: Likewise.
24554         * lib/unilbrk/lbrkprop2.h: Likewise.
24555         * lib/unilbrk/lbrktables.h: Likewise.
24556         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24557         LBP_CP. Implement rule LB30.
24558         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24559         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24560         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24561         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24562         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24563         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24564         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24565         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24566         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24567         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24568         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24569         bits instead of 16 bits in the code1 and code2 of each composition
24570         rule.
24571         (uc_composition): Update for Unicode 5.2.0.
24572         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24573         * lib/uninorm/decomposition-table2.h: Likewise.
24574         * lib/uniwbrk/wbrkprop.h: Likewise.
24575         * tests/unicase/test-cased.c: Likewise.
24576         * tests/unicase/test-ignorable.c: Likewise.
24577         * tests/unicase/test-uc_tolower.c: Likewise.
24578         * tests/unicase/test-uc_totitle.c: Likewise.
24579         * tests/unicase/test-uc_toupper.c: Likewise.
24580         * tests/unictype/test-categ_C.c: Likewise.
24581         * tests/unictype/test-categ_Cf.c: Likewise.
24582         * tests/unictype/test-categ_Cn.c: Likewise.
24583         * tests/unictype/test-categ_L.c: Likewise.
24584         * tests/unictype/test-categ_Ll.c: Likewise.
24585         * tests/unictype/test-categ_Lm.c: Likewise.
24586         * tests/unictype/test-categ_Lo.c: Likewise.
24587         * tests/unictype/test-categ_Lu.c: Likewise.
24588         * tests/unictype/test-categ_M.c: Likewise.
24589         * tests/unictype/test-categ_Mc.c: Likewise.
24590         * tests/unictype/test-categ_Mn.c: Likewise.
24591         * tests/unictype/test-categ_N.c: Likewise.
24592         * tests/unictype/test-categ_Nd.c: Likewise.
24593         * tests/unictype/test-categ_Nl.c: Likewise.
24594         * tests/unictype/test-categ_No.c: Likewise.
24595         * tests/unictype/test-categ_P.c: Likewise.
24596         * tests/unictype/test-categ_Pd.c: Likewise.
24597         * tests/unictype/test-categ_Po.c: Likewise.
24598         * tests/unictype/test-categ_S.c: Likewise.
24599         * tests/unictype/test-categ_Sc.c: Likewise.
24600         * tests/unictype/test-categ_So.c: Likewise.
24601         * tests/unictype/test-ctype_alnum.c: Likewise.
24602         * tests/unictype/test-ctype_alpha.c: Likewise.
24603         * tests/unictype/test-ctype_graph.c: Likewise.
24604         * tests/unictype/test-ctype_lower.c: Likewise.
24605         * tests/unictype/test-ctype_print.c: Likewise.
24606         * tests/unictype/test-ctype_punct.c: Likewise.
24607         * tests/unictype/test-ctype_upper.c: Likewise.
24608         * tests/unictype/test-decdigit.h: Likewise.
24609         * tests/unictype/test-digit.h: Likewise.
24610         * tests/unictype/test-numeric.h: Likewise.
24611         * tests/unictype/test-pr_alphabetic.c: Likewise.
24612         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24613         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24614         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24615         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24616         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24617         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24618         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24619         * tests/unictype/test-pr_combining.c: Likewise.
24620         * tests/unictype/test-pr_composite.c: Likewise.
24621         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24622         * tests/unictype/test-pr_dash.c: Likewise.
24623         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24624         * tests/unictype/test-pr_deprecated.c: Likewise.
24625         * tests/unictype/test-pr_diacritic.c: Likewise.
24626         * tests/unictype/test-pr_extender.c: Likewise.
24627         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24628         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24629         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24630         * tests/unictype/test-pr_id_continue.c: Likewise.
24631         * tests/unictype/test-pr_id_start.c: Likewise.
24632         * tests/unictype/test-pr_ideographic.c: Likewise.
24633         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24634         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24635         * tests/unictype/test-pr_lowercase.c: Likewise.
24636         * tests/unictype/test-pr_numeric.c: Likewise.
24637         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24638         * tests/unictype/test-pr_punctuation.c: Likewise.
24639         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24640         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24641         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24642         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24643         * tests/unictype/test-pr_uppercase.c: Likewise.
24644         * tests/unictype/test-pr_xid_continue.c: Likewise.
24645         * tests/unictype/test-pr_xid_start.c: Likewise.
24646         * tests/unictype/test-pr_zero_width.c: Likewise.
24647         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24648         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
24649         changed behaviour: line breaking is now disallowed between a letter
24650         or '=' and '('.
24651         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24652         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24653         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24654         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
24655         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24656         lib/uniwidth/width.c.
24657         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
24658         without comments, but with the original copyright notice.
24659         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24660         changes.
24661         * lib/unictype/categ_Cc.h: Likewise.
24662         * lib/unictype/categ_Co.h: Likewise.
24663         * lib/unictype/categ_Cs.h: Likewise.
24664         * lib/unictype/categ_Lt.h: Likewise.
24665         * lib/unictype/categ_Me.h: Likewise.
24666         * lib/unictype/categ_Pc.h: Likewise.
24667         * lib/unictype/categ_Pe.h: Likewise.
24668         * lib/unictype/categ_Pf.h: Likewise.
24669         * lib/unictype/categ_Pi.h: Likewise.
24670         * lib/unictype/categ_Ps.h: Likewise.
24671         * lib/unictype/categ_Sk.h: Likewise.
24672         * lib/unictype/categ_Sm.h: Likewise.
24673         * lib/unictype/categ_Z.h: Likewise.
24674         * lib/unictype/categ_Zl.h: Likewise.
24675         * lib/unictype/categ_Zp.h: Likewise.
24676         * lib/unictype/categ_Zs.h: Likewise.
24677         * lib/unictype/ctype_blank.h: Likewise.
24678         * lib/unictype/ctype_cntrl.h: Likewise.
24679         * lib/unictype/ctype_digit.h: Likewise.
24680         * lib/unictype/ctype_space.h: Likewise.
24681         * lib/unictype/ctype_xdigit.h: Likewise.
24682         * lib/unictype/mirror.h: Likewise.
24683         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24684         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24685         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24686         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24687         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24688         * lib/unictype/pr_bidi_control.h: Likewise.
24689         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24690         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24691         * lib/unictype/pr_bidi_pdf.h: Likewise.
24692         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24693         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24694         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24695         * lib/unictype/pr_format_control.h: Likewise.
24696         * lib/unictype/pr_hex_digit.h: Likewise.
24697         * lib/unictype/pr_hyphen.h: Likewise.
24698         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24699         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24700         * lib/unictype/pr_iso_control.h: Likewise.
24701         * lib/unictype/pr_join_control.h: Likewise.
24702         * lib/unictype/pr_left_of_pair.h: Likewise.
24703         * lib/unictype/pr_line_separator.h: Likewise.
24704         * lib/unictype/pr_math.h: Likewise.
24705         * lib/unictype/pr_non_break.h: Likewise.
24706         * lib/unictype/pr_not_a_character.h: Likewise.
24707         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24708         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24709         * lib/unictype/pr_other_id_continue.h: Likewise.
24710         * lib/unictype/pr_other_id_start.h: Likewise.
24711         * lib/unictype/pr_other_lowercase.h: Likewise.
24712         * lib/unictype/pr_other_math.h: Likewise.
24713         * lib/unictype/pr_other_uppercase.h: Likewise.
24714         * lib/unictype/pr_paired_punctuation.h: Likewise.
24715         * lib/unictype/pr_paragraph_separator.h: Likewise.
24716         * lib/unictype/pr_pattern_syntax.h: Likewise.
24717         * lib/unictype/pr_pattern_white_space.h: Likewise.
24718         * lib/unictype/pr_private_use.h: Likewise.
24719         * lib/unictype/pr_quotation_mark.h: Likewise.
24720         * lib/unictype/pr_radical.h: Likewise.
24721         * lib/unictype/pr_soft_dotted.h: Likewise.
24722         * lib/unictype/pr_space.h: Likewise.
24723         * lib/unictype/pr_titlecase.h: Likewise.
24724         * lib/unictype/pr_variation_selector.h: Likewise.
24725         * lib/unictype/pr_white_space.h: Likewise.
24726         * lib/unictype/sy_c_ident.h: Likewise.
24727         * lib/unictype/sy_c_whitespace.h: Likewise.
24728         * lib/unictype/sy_java_whitespace.h: Likewise.
24729         * modules/uni*/*: Bump version number of expected libunistring version.
24730         Reported by Simon Josefsson.
24731
24732 2011-01-09  Karl Heuer  <kwzh@gnu.org>
24733
24734         useless-if-before-free: fix typo in --help and make the internal,
24735         automatic version date update process work once again.
24736         --help output contained a NUL character instead of the
24737         backslash-zero that was intended.  Also, the "must lie within
24738         the first 8 lines" line is on line 9, and hence not getting
24739         automatically updated.
24740         * build-aux/useless-if-before-free: Fix the former by adding a
24741         backslash, and the latter by condensing the three lines of what-it-does
24742         to a single line, leaving one line of slack for the future.
24743
24744 2011-01-09  Bruno Haible  <bruno@clisp.org>
24745
24746         uniwidth/width: Fix width of U+1D173..U+1D17A.
24747         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
24748         symbolic_width, output_width_property_test): New functions.
24749         (main): Invoke output_nonspacing_property, output_width_property_test.
24750         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
24751         U+1D173..U+1D17A.
24752         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
24753         1.
24754         * modules/uniwidth/*: Bump version number of expected libunistring
24755         version.
24756         * modules/unilbrk/*: Likewise.
24757
24758 2011-01-08  Bruno Haible  <bruno@clisp.org>
24759
24760         uninorm tests: Preserve copyright of Unicode data file.
24761         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
24762         Mention modifications.
24763
24764 2011-01-08  Bruno Haible  <bruno@clisp.org>
24765
24766         gen-uni-tables: Prepare for Unicode 5.2.0.
24767         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
24768         (debug_output_lbp, output_lbp): Update.
24769
24770 2011-01-08  Bruno Haible  <bruno@clisp.org>
24771
24772         unilbrk: Clarify gen-uni-tables.c code.
24773         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
24774         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
24775         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
24776
24777 2011-01-07  Bruno Haible  <bruno@clisp.org>
24778
24779         strtod: Restore errno when successfully parsing Infinity or NaN.
24780         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
24781         restore the original errno.
24782
24783 2011-01-07  Bruno Haible  <bruno@clisp.org>
24784
24785         remove test: Avoid failure on HP-UX 11.
24786         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
24787
24788 2011-01-07  Bruno Haible  <bruno@clisp.org>
24789
24790         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
24791         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
24792         error code.
24793
24794 2011-01-07  Pádraig Brady <P@draigBrady.com>
24795
24796         ignore-value: fixup comments, and add Eric Blake
24797         as an author since he rewrote the macros.
24798         * lib/ignore-value.h (ignore_value):  State that
24799         we now support aggregates.  Also specify exactly
24800         when the GCC warn_unused_result feature was added.
24801
24802 2011-01-06  Eric Blake  <eblake@redhat.com>
24803
24804         ignore-value: support aggregate types
24805         * lib/ignore-value.h (ignore_value): Provide separate gcc
24806         definition.
24807         * modules/ignore-value-tests: New test module.
24808         * tests/test-ignore-value.c: New test.
24809
24810         maint.mk: improve sc_prohibit_strcmp regex
24811         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
24812         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
24813         definition of STRNEQ.
24814
24815         signal: work around Haiku issue with SIGBUS
24816         * lib/siglist.h: Add comment.
24817         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
24818         strsignal's favoring of SIGSEGV.
24819         * tests/test-signal.c (main): Avoid test failure.
24820         * doc/posix-headers/signal.texi (signal.h): Document the issue.
24821         Reported by Scott McCreary.
24822
24823         maint.mk: add pre-release check to ensure submodule commits are public
24824         * top/maint.mk (public-submodule-commit): New rule.
24825         (submodule-checks): New variable.
24826         (alpha beta stable): Depend on the variable.
24827
24828 2011-01-05  Pádraig Brady <P@draigBrady.com>
24829         and Jim Meyering  <meyering@redhat.com>
24830
24831         ignore-value: make ignore_value more generic; deprecate ignore_ptr
24832         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
24833         (ATTRIBUTE_DEPRECATED): Define.
24834         (_ignore_case): New function.
24835         (ignore_value): New macro, to replace the old function.
24836         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
24837         * modules/ignore-value (Depends-on): Add stdint.
24838
24839 2011-01-04  Eric Blake  <eblake@redhat.com>
24840
24841         doc: regenerate INSTALL
24842         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
24843         @firstparagraphindent support, now that autoconf dropped it.
24844         (INSTALL_PRELUDE): Reinstate old macro.
24845         * doc/install.texi: Resync from autoconf.
24846         * doc/INSTALL: Reflect recent autoconf update.
24847         * doc/INSTALL.ISO: Likewise.
24848         * doc/INSTALL.UTF-8: Likewise.
24849         Reported by Karl Berry.
24850
24851 2011-01-04  Bruce Korb  <address@hidden>
24852
24853         git-version-gen: avoid a sub-shell
24854         * build-aux/git-version-gen: Redirect stderr in `...` via
24855         "exec 2>...", rather than via an added sub-shell.
24856
24857 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
24858
24859         git-version-gen: use (...) rather than sh -c '...'
24860         * build-aux/git-version-gen: Rather than hard-coding a shell's name
24861         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
24862
24863 2011-01-03  Jim Meyering  <meyering@redhat.com>
24864
24865         git-version-gen: convert leading TABs to spaces
24866         * build-aux/git-version-gen: Expand leading TABs.
24867
24868         git-version-gen: handle failed "git rev-list"
24869         * build-aux/git-version-gen: Rather than leaking a "fatal" error
24870         from git and proceeding as if it had succeeded but printed no SHA1
24871         checksums, suppress the diagnostic and handle the failure.
24872         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
24873
24874         git-version-gen: include command name in one more diagnostic
24875         * build-aux/git-version-gen: When the required .tarball-version file
24876         was missing or unreadable, you might see the diagnostic from "cat",
24877         but no trace of the name of the invoking script.  Now, you still see
24878         the diagnostic from cat, but also get one from "git-version-gen: ".
24879         Inspired by a patch from Bruce Korb.
24880
24881         update-copyright: adjust test to match changed code
24882         * tests/test-update-copyright.sh: Change test's expected output
24883         to match new actual output.
24884
24885 2011-01-02  Bruno Haible  <bruno@clisp.org>
24886
24887         getlogin_r: Avoid test failure on HP-UX 11.
24888         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
24889         ERANGE when the second argument is zero.
24890         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
24891         portability problem.
24892
24893 2011-01-02  Bruce Korb  <bkorb@gnu.org>
24894
24895         * build-aux/update-copyright: doc Simon's changes
24896
24897 2011-01-02  Simon Josefsson  <simon@josefsson.org>
24898
24899         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
24900         environment variable.
24901
24902 2011-01-02  Bruno Haible  <bruno@clisp.org>
24903
24904         unigbrk: Avoid gcc warnings.
24905         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
24906         unused variable.
24907         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
24908         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
24909         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
24910         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
24911         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
24912         Change type of first argument to 'const char *'.
24913         (main): Remove unused variable.
24914         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
24915         type of first argument to 'const char *'.
24916         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
24917         Likewise.
24918         (main): Change type of variable 's'.
24919         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
24920         to 'int'.
24921
24922 2011-01-02  Bruno Haible  <bruno@clisp.org>
24923
24924         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
24925         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
24926         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
24927         bug.
24928         * lib/pwrite.c: Undo 2010-12-31 patch.
24929         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
24930
24931 2011-01-02  Bruno Haible  <bruno@clisp.org>
24932
24933         pread: Fix test whether it works.
24934         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
24935
24936 2011-01-02  Bruno Haible  <bruno@clisp.org>
24937
24938         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
24939         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
24940         ends in "6". Don't require a specific month name. Try also the locale
24941         names found on HP-UX 11 and Solaris 7.
24942
24943 2011-01-02  Bruno Haible  <bruno@clisp.org>
24944
24945         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
24946         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
24947         C linkage.
24948         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
24949
24950 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24951
24952         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
24953         for consistency, since the "cluster" term is not used elsewhere.
24954         * lib/unigbrk.in.h: Update name.
24955         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
24956         * lib/unigbrk/u16-grapheme-next.c: Update name.
24957         * lib/unigbrk/u16-grapheme-prev.c: Update name.
24958         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
24959         * lib/unigbrk/u32-grapheme-next.c: Update name.
24960         * lib/unigbrk/u32-grapheme-prev.c: Update name.
24961         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
24962         * lib/unigbrk/u8-grapheme-next.c: Update name.
24963         * lib/unigbrk/u8-grapheme-prev.c: Update name.
24964         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
24965         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
24966         Suggested by Bruno Haible.
24967
24968 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24969
24970         Remove module 'u8-grapheme-len' as too redundant with
24971         'u8-grapheme-next'.
24972         * modules/unigbrk/u8-grapheme-len: Delete file.
24973         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
24974         * lib/unigbrk.in.h: Remove prototype for deleted function.
24975         * lib/unigbrk/u8-grapheme-len.c: Delete file.
24976         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
24977
24978         Remove module 'u16-grapheme-len' as too redundant with
24979         'u16-grapheme-next'.
24980         * modules/unigbrk/u16-grapheme-len: Delete file.
24981         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
24982         * lib/unigbrk.in.h: Remove prototype for deleted function.
24983         * lib/unigbrk/u16-grapheme-len.c: Delete file.
24984         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
24985
24986         Remove module 'u32-grapheme-len' as too redundant with
24987         'u32-grapheme-next'.
24988         * modules/unigbrk/u32-grapheme-len: Delete file.
24989         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
24990         * lib/unigbrk.in.h: Remove prototype for deleted function.
24991         * lib/unigbrk/u32-grapheme-len.c: Delete file.
24992         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
24993
24994         Suggested by Bruno Haible.
24995
24996 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24997
24998         * unigbrk.in.h: Fix typo: "ben" => "been".
24999         Reported by Bruno Haible.
25000
25001 2011-01-01  Jim Meyering  <meyering@redhat.com>
25002
25003         maint: update almost all copyright ranges to include 2011
25004         Run the new "make update-copyright" rule.
25005
25006 2011-01-01  Jim Meyering  <meyering@redhat.com>
25007
25008         maint: update-copyright: exempt doc/INSTALL*
25009         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25010         since they are generated.  Suggested by Bruno Haible.
25011
25012 2011-01-01  Jim Meyering  <meyering@redhat.com>
25013
25014         maint: refine the update-copyright rule
25015         * Makefile (update-copyright): Also exclude any file that includes
25016         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25017         code that merely generates the comment.
25018
25019 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25020
25021         New module 'u8-grapheme-len'.
25022         * modules/unigbrk/u8-grapheme-len: New file.
25023         * modules/unigbrk/u8-grapheme-len-tests: New file.
25024         * lib/unigbrk.in.h: Add prototype for new function.
25025         * lib/unigbrk/u8-grapheme-len.c: New file.
25026         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25027
25028         New module 'u16-grapheme-len'.
25029         * modules/unigbrk/u16-grapheme-len: New file.
25030         * modules/unigbrk/u16-grapheme-len-tests: New file.
25031         * lib/unigbrk.in.h: Add prototype for new function.
25032         * lib/unigbrk/u16-grapheme-len.c: New file.
25033         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25034
25035         New module 'u32-grapheme-len'.
25036         * modules/unigbrk/u32-grapheme-len: New file.
25037         * modules/unigbrk/u32-grapheme-len-tests: New file.
25038         * lib/unigbrk.in.h: Add prototype for new function.
25039         * lib/unigbrk/u32-grapheme-len.c: New file.
25040         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25041
25042         New module 'u8-grapheme-next'.
25043         * modules/unigbrk/u8-grapheme-next: New file.
25044         * modules/unigbrk/u8-grapheme-next-tests: New file.
25045         * lib/unigbrk.in.h: Add prototype for new function.
25046         * lib/unigbrk/u8-grapheme-next.c: New file.
25047         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25048
25049         New module 'u16-grapheme-next'.
25050         * modules/unigbrk/u16-grapheme-next: New file.
25051         * modules/unigbrk/u16-grapheme-next-tests: New file.
25052         * lib/unigbrk.in.h: Add prototype for new function.
25053         * lib/unigbrk/u16-grapheme-next.c: New file.
25054         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25055
25056         New module 'u32-grapheme-next'.
25057         * modules/unigbrk/u32-grapheme-next: New file.
25058         * modules/unigbrk/u32-grapheme-next-tests: New file.
25059         * lib/unigbrk.in.h: Add prototype for new function.
25060         * lib/unigbrk/u32-grapheme-next.c: New file.
25061         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25062
25063         New module 'u8-grapheme-prev'.
25064         * modules/unigbrk/u8-grapheme-prev: New file.
25065         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25066         * lib/unigbrk.in.h: Add prototype for new function.
25067         * lib/unigbrk/u8-grapheme-prev.c: New file.
25068         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25069
25070         New module 'u16-grapheme-prev'.
25071         * modules/unigbrk/u16-grapheme-prev: New file.
25072         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25073         * lib/unigbrk.in.h: Add prototype for new function.
25074         * lib/unigbrk/u16-grapheme-prev.c: New file.
25075         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25076
25077         New module 'u32-grapheme-prev'.
25078         * modules/unigbrk/u32-grapheme-prev: New file.
25079         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25080         * lib/unigbrk.in.h: Add prototype for new function.
25081         * lib/unigbrk/u32-grapheme-prev.c: New file.
25082         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25083
25084         New module 'u8-grapheme-breaks'.
25085         * modules/unigbrk/u8-grapheme-breaks: New file.
25086         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25087         * lib/unigbrk.in.h: Add prototype for new function.
25088         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25089         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25090
25091         New module 'u16-grapheme-breaks'.
25092         * modules/unigbrk/u16-grapheme-breaks: New file.
25093         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25094         * lib/unigbrk.in.h: Add prototype for new function.
25095         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25096         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25097
25098         New module 'u32-grapheme-breaks'.
25099         * modules/unigbrk/u32-grapheme-breaks: New file.
25100         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25101         * lib/unigbrk.in.h: Add prototype for new function.
25102         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25103         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25104
25105         New module 'ulc-grapheme-breaks'.
25106         * modules/unigbrk/ulc-grapheme-breaks: New file.
25107         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25108         * m4/locale-ar.m4: New file.
25109         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25110         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25111         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25112
25113 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25114
25115         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25116         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25117         modified how this file was generated before I initially submitted
25118         the module, but failed to regenerate it.  This meant that several
25119         of the level2 entries were wrong.
25120         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25121         Remove the division-by-2 that is folded into the table now that
25122         gbrkprop.h has been regenerated properly.  Now -1 entries are
25123         handled correctly.
25124
25125         New module 'unigbrk/uc-gbrk-prop-tests'.
25126         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25127         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25128         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25129         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25130
25131 2011-01-01  Bruno Haible  <bruno@clisp.org>
25132
25133         Avoid use of hexadecimal escapes.
25134         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25135         instead of hexadecimal escapes.
25136
25137 2011-01-01  Jim Meyering  <meyering@redhat.com>
25138
25139         maint: new rule to update copyright year ranges
25140         * Makefile (update-copyright): New rule.
25141
25142         maint: indent with TABs in Makefile
25143         * Makefile: Expand leading sequences of spaces to TABs
25144
25145         version-etc: update the copyright year it reports
25146         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25147
25148 2010-12-31  Bruno Haible  <bruno@clisp.org>
25149
25150         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25151         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25152         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25153         zero.
25154
25155 2010-12-31  Bruno Haible  <bruno@clisp.org>
25156
25157         pwrite: Work around HP-UX 11.11 bug.
25158         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25159         works and set REPLACE_PWRITE if not.
25160         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25161         function.
25162         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25163
25164 2010-12-31  Bruno Haible  <bruno@clisp.org>
25165
25166         pread: Work around HP-UX 11 bugs.
25167         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25168         and set REPLACE_PREAD if not.
25169         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25170
25171 2010-12-31  Eric Blake  <eblake@redhat.com>
25172
25173         nl_langinfo: fix YESEXPR on Irix 6.5
25174         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25175         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25176         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25177         it.
25178
25179 2010-12-31  Bruno Haible  <bruno@clisp.org>
25180
25181         iconv: Document HP-UX 11 bug.
25182         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25183
25184 2010-12-31  Bruno Haible  <bruno@clisp.org>
25185
25186         ldexpl: Fix link error on HP-UX 11.
25187         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25188         LDEXPL_LIBM, using $ISNANL_LIBM.
25189
25190 2010-12-31  Eric Blake  <eblake@redhat.com>
25191
25192         ftello: avoid compilation failure with SunStudio c89
25193         * lib/ftello.c (ftello): Use lseek, not llseek.
25194
25195         tests: avoid failing coreutils tests on cygwin
25196         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25197         (create_exe_shims_): Return 0 when skipping.
25198
25199 2010-12-31  Bruno Haible  <bruno@clisp.org>
25200
25201         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25202         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25203
25204 2010-12-31  Bruno Haible  <bruno@clisp.org>
25205
25206         waitpid: Fix link error in C++ mode.
25207         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25208
25209 2010-12-31  Bruno Haible  <bruno@clisp.org>
25210
25211         isnan: Use GCC built-ins when possible.
25212         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25213         __builtin_isnan.
25214         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25215         (isnan): Define using GCC built-ins for GCC >= 4.0.
25216
25217 2010-12-31  Bruno Haible  <bruno@clisp.org>
25218
25219         isnand: Fix mistake.
25220         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25221         __builtin_isnand.
25222
25223 2010-12-31  Bruno Haible  <bruno@clisp.org>
25224
25225         open: Avoid C++ error on HP-UX 11.
25226         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25227
25228 2010-12-31  Bruno Haible  <bruno@clisp.org>
25229
25230         time_r: Add missing declarations on HP-UX 11.
25231         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25232         instead of HAVE_LOCALTIME_R.
25233         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25234         HAVE_LOCALTIME_R always.
25235         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25236         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25237         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25238         HAVE_LOCALTIME_R.
25239         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25240         * doc/posix-functions/localtime_r.texi: Likewise.
25241
25242 2010-12-29  Eric Blake  <eblake@redhat.com>
25243
25244         mountlist: tweak previous commit
25245         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25246         Reported by Paul Eggert.
25247
25248         mountlist: fix local drive detection on cygwin
25249         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25250         that works for cygwin.
25251
25252 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25253
25254         ftoastr, snprintf: ftoastr + snprintf module
25255         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25256         since the snprintf module now should be good enough here.
25257         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25258         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25259         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25260         GNULIB_SNPRINTF only for the test directory, and the latter
25261         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25262         seems to suffice by itself.
25263
25264 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25265
25266         alloca: one step towards thread-safety
25267         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25268         need for a static variable.  All callers changed.  This does not
25269         make the alloca replacement thread-safe, but it's one step.
25270
25271         tests: minor indenting change
25272         * tests/init.sh: Sync from coreutils housekeeping patch
25273         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25274         to keep lines within 80 columns.
25275
25276 2010-12-28  Jim Meyering  <meyering@redhat.com>
25277
25278         regex: don't infloop on persistent failing calloc
25279         * lib/regexec.c (build_trtable): Return failure indication upon
25280         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25281         In glibc, this was fixed for version 2.13:
25282         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25283
25284 2010-12-28  Bruno Haible  <bruno@clisp.org>
25285             Paul Eggert <eggert@cs.ucla.edu>
25286
25287         linkat: Make implementation robust against system behaviour variations.
25288         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25289         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25290         way, and to -2 if it needs a generic runtime test.
25291         * lib/linkat.c (solaris_optimized_link_immediate,
25292         solaris_optimized_link_follow): New functions.
25293         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25294         (check_same_link): Use it.
25295
25296 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25297
25298         New module 'unigbrk/base'.
25299         * modules/unigbrk/base: New file.
25300         * lib/unigbrk.in.h: New file.
25301
25302         New module 'unigbrk/uc-gbrk-prop'.
25303         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25304         * modules/unigbrk/uc-gbrk-prop: New file.
25305         * lib/unigbrk/gbrkprop.h: New file.
25306         * lib/unigbrk/uc-gbrk-prop.c: New file.
25307
25308         New module 'unigbrk/uc-is-grapheme-break'.
25309         * modules/unigbrk/uc-is-grapheme-break: New file.
25310         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25311         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25312         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25313         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25314         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25315
25316         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25317
25318 2010-12-27  Bruno Haible  <bruno@clisp.org>
25319
25320         linkat test: Avoid failure on Solaris 11 2010-11.
25321         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25322
25323 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25324
25325         utimens: work around glibc rounding bug on more platforms
25326         * lib/utimens.c (fdutimens): Work around rounding bug even if
25327         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25328         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25329
25330 2010-12-27  Bruno Haible  <bruno@clisp.org>
25331
25332         select tests: Improve comments.
25333         * tests/test-select.c (do_select): Add comments.
25334
25335 2010-12-27  Bruno Haible  <bruno@clisp.org>
25336
25337         select tests: Safer way of handling timeout.
25338         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25339         at every invocation.
25340
25341 2010-12-27  Bruno Haible  <bruno@clisp.org>
25342
25343         select tests: Use 'bool' where appropriate.
25344         * tests/test-select.c (connect_to_socket): Change argument type to
25345         'bool'.
25346
25347 2010-12-27  Bruno Haible  <bruno@clisp.org>
25348
25349         select tests: Use existing modules.
25350         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25351         (configure.ac): Don't test for unistd.h.
25352         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25353         declared in <unistd.h>.
25354
25355 2010-12-27  Bruno Haible  <bruno@clisp.org>
25356
25357         mbrtowc: Work around a Solaris 7 bug.
25358         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25359         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25360         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25361         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25362         MBRTOWC_NULL_ARG1_BUG.
25363         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25364         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25365         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25366         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25367
25368 2010-12-27  Jim Meyering  <meyering@redhat.com>
25369
25370         read-file.c: tweak syntax
25371         * lib/read-file.c (fread_file): Remove space after "*" in function
25372         definitions.
25373
25374 2010-12-27  Bruno Haible  <bruno@clisp.org>
25375
25376         times test: Avoid gcc warnings on OSF/1.
25377         * tests/test-times.c (main): Cast printf arguments from clock_t to
25378         'long int'.
25379
25380 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25381
25382         utimens: work around glibc rounding bug on older Linux kernels
25383         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25384         on Linux with a glibc whose utimes might not work, then work
25385         around a longstanding glibc bug involving rounding rather than
25386         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25387         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25388
25389 2010-12-26  Bruno Haible  <bruno@clisp.org>
25390
25391         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25392         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25393         _GL_CXXALIAS_SYS.
25394         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25395
25396 2010-12-26  Bruno Haible  <bruno@clisp.org>
25397
25398         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25399         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25400         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25401         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25402         looking for the declaration.
25403         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25404         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25405         problem.
25406         * doc/posix-functions/inet_pton.texi: Likewise.
25407
25408 2010-12-26  Bruno Haible  <bruno@clisp.org>
25409
25410         arpa_inet: Use the common idioms with C++ support.
25411         * lib/arpa_inet.in.h: Include c++defs.h.
25412         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25413         support.
25414         * modules/arpa_inet (Depends-on): Add c++defs.
25415         (Makefile.am): Substitute the contents of c++defs.h.
25416         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25417         * modules/arpa_inet-c++-tests: New file.
25418         * tests/test-arpa_inet-c++.cc: New file.
25419
25420 2010-12-25  Bruno Haible  <bruno@clisp.org>
25421
25422         Fix more C++ link errors on Solaris 8.
25423         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25424         $(LIB_EACCESS).
25425         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25426         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25427         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25428         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25429         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25430
25431 2010-12-25  Bruno Haible  <bruno@clisp.org>
25432
25433         printf-posix: Fix link error when a non-GCC compiler is used.
25434         * lib/stdio.in.h (printf): When not using GCC, override printf
25435         correctly.
25436         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25437
25438 2010-12-25  Bruno Haible  <bruno@clisp.org>
25439
25440         strerror_r-posix: Update doc.
25441         * doc/posix-functions/strerror_r.texi: Update doc about the return
25442         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25443
25444 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25445
25446         utimens: simplify the logic of the previous change
25447         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25448         This should not affect whether the test succeeds or fails.
25449
25450         utimens: configure better on hosts with NFS clock skew
25451         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25452         uses the clock of the local host.  It might use the clock of the
25453         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25454         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25455
25456 2010-12-25  Bruno Haible  <bruno@clisp.org>
25457
25458         ptsname test: Avoid failure on Solaris.
25459         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25460         open a pseudo-terminal; don't use BSD-style ptys.
25461         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25462
25463 2010-12-25  Bruno Haible  <bruno@clisp.org>
25464
25465         ptsname: Avoid ERANGE failure on some systems.
25466         * lib/ptsname.c (buffer): Increase size.
25467
25468 2010-12-25  Bruno Haible  <bruno@clisp.org>
25469
25470         rename, renameat: Avoid test failures at NFS mounted locations.
25471         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25472         so that subsequent mkdir calls succeed.
25473
25474 2010-12-25  Bruno Haible  <bruno@clisp.org>
25475
25476         iswblank: Fix C++ link error on Solaris 8.
25477         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25478         _GL_FUNCDECL_SYS.
25479
25480 2010-12-25  Bruno Haible  <bruno@clisp.org>
25481
25482         unistd: Fix C++ link error on Solaris 8.
25483         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25484
25485 2010-12-25  Bruno Haible  <bruno@clisp.org>
25486
25487         readlink doc: Mention an old glibc bug.
25488         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25489
25490 2010-12-25  Bruno Haible  <bruno@clisp.org>
25491
25492         fcntl-h: Fix for use of C++ on glibc systems.
25493         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25494         also on glibc systems in C++ mode.
25495         Reported by Gary V. Vaughan <gary@gnu.org>.
25496
25497 2010-12-25  Bruno Haible  <bruno@clisp.org>
25498
25499         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25500         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25501
25502 2010-12-25  Bruno Haible  <bruno@clisp.org>
25503
25504         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25505         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25506         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25507         test whether truncl works according to ISO C 99 with IEC 60559.
25508         * m4/truncl-ieee.m4: New file.
25509         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25510         m4/signbit.m4.
25511         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25512
25513 2010-12-25  Bruno Haible  <bruno@clisp.org>
25514
25515         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25516         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25517         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25518         test whether ceill works according to ISO C 99 with IEC 60559.
25519         * m4/ceill-ieee.m4: New file.
25520         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25521         m4/signbit.m4.
25522         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25523
25524 2010-12-25  Bruno Haible  <bruno@clisp.org>
25525
25526         Ensure all prerequisites of <wchar.h> are included.
25527         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25528         before <wchar.h>.
25529         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25530         gl_MBRLEN_NUL_RETVAL): Likewise.
25531         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25532         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25533         AC_FUNC_MBRTOWC): Likewise.
25534         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25535         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25536         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25537         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25538         Likewise.
25539         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25540         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25541         (gl_WCHAR_H): Improve comments.
25542         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25543
25544 2010-12-25  Bruno Haible  <bruno@clisp.org>
25545
25546         strtok_r: Fix C syntax error in autoconf macro.
25547         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25548         characters in test program.
25549
25550 2010-12-24  Bruno Haible  <bruno@clisp.org>
25551
25552         ceil, trunc, round: Fix gcc warnings.
25553         * lib/ceil.c (MIN): Undefine before redefining.
25554         * lib/trunc.c (MIN): Likewise.
25555         * lib/round.c (MIN): Likewise.
25556         Include <math.h> first.
25557
25558 2010-12-24  Bruno Haible  <bruno@clisp.org>
25559
25560         select tests: Avoid failures on OSF/1 5.1.
25561         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25562         failure of closing the last socket; it may fail with ECONNRESET.
25563
25564 2010-12-24  Eric Blake  <eblake@redhat.com>
25565
25566         stdint: avoid HP-UX 10.20 preprocessor bug
25567         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25568         than #if.
25569         * tests/test-floor2.c (main): Likewise.
25570         Reported by Peter O'Gorman.
25571
25572         pipe: make obsoletion transition easier
25573         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25574         * modules/pipe (Files): Include revived file.
25575         (Include): Drop reference, to mirror getdate's behavior.
25576
25577 2010-12-24  Bruno Haible  <bruno@clisp.org>
25578
25579         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25580         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25581         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25582         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25583
25584 2010-12-24  Bruno Haible  <bruno@clisp.org>
25585
25586         gethostname: Ensure declaration on NonStop Kernel.
25587         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
25588         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25589
25590 2010-12-24  Bruno Haible  <bruno@clisp.org>
25591
25592         sys_select: Ensure all necessary types on NonStop Kernel.
25593         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
25594         include <sys/time.h>.
25595         * doc/posix-headers/sys_select.texi: Mention that it's missing on
25596         NonStop Kernel.
25597         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25598
25599 2010-12-24  Bruno Haible  <bruno@clisp.org>
25600
25601         sys_select: Remove unneeded include.
25602         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
25603         have <sys/select.h>.
25604
25605 2010-12-24  Bruno Haible  <bruno@clisp.org>
25606
25607         gethostname: Provide a fallback for HOST_NAME_MAX.
25608         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
25609         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
25610         instead.
25611         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25612
25613 2010-12-24  Bruno Haible  <bruno@clisp.org>
25614
25615         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
25616         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
25617         (SA_RESTART): Likewise.
25618         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25619
25620 2010-12-24  Bruno Haible  <bruno@clisp.org>
25621
25622         signal: Define NSIG.
25623         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
25624         * tests/test-signal.c (nsig): New variable.
25625         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25626
25627 2010-12-24  Bruno Haible  <bruno@clisp.org>
25628
25629         rename, renameat: Avoid test failures on OSF/1 5.1.
25630         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
25631         alternative error codes.
25632         * tests/test-renameat.c (main): Likewise.
25633
25634 2010-12-24  Bruno Haible  <bruno@clisp.org>
25635
25636         *printf: Detect large precisions bug on Solaris 10/SPARC.
25637         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
25638         by Paul Eggert.
25639         * tests/test-snprintf-posix.h (test_function): Add this test code here
25640         too.
25641         * tests/test-sprintf-posix.h (test_function): Likewise.
25642         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25643         * tests/test-vasprintf-posix.c (test_function): Likewise.
25644         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
25645         around by gnulib.
25646         * doc/posix-functions/printf.texi: Likewise.
25647         * doc/posix-functions/snprintf.texi: Likewise.
25648         * doc/posix-functions/sprintf.texi: Likewise.
25649         * doc/posix-functions/vfprintf.texi: Likewise.
25650         * doc/posix-functions/vprintf.texi: Likewise.
25651         * doc/posix-functions/vsnprintf.texi: Likewise.
25652         * doc/posix-functions/vsprintf.texi: Likewise.
25653         * doc/posix-functions/dprintf.texi: Undo last commit.
25654         * doc/posix-functions/vdprintf.texi: Likewise.
25655
25656 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25657
25658         tests: port test-fdutimensat.c to Solaris 8
25659         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
25660         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
25661         On Solaris 8, it fails with errno == ENOSYS, because there is no
25662         futimens (so it can't use the fd), and there is no lutimens (so it
25663         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
25664
25665         vsnprintf: make more consistent with snprintf; doc fixes
25666
25667         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
25668         the byte count return problem was promoted from the snprintf-posix
25669         to the snprintf module.
25670         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25671         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
25672         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
25673         * tests/test-snprintf.c (main): Check the byte count returned.
25674         * tests/test-vsnprintf.c (main): Likewise.
25675
25676 2010-12-23  Eric Blake  <eblake@redhat.com>
25677
25678         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
25679         * modules/sigpipe (License): Relax license.
25680
25681 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25682
25683         doc: document Solaris printf bug with large float precisions
25684         * doc/posix-functions/dprintf.texi (dprintf):
25685         * doc/posix-functions/fprintf.texi (fprintf):
25686         * doc/posix-functions/printf.texi (printf):
25687         * doc/posix-functions/snprintf.texi (snprintf):
25688         * doc/posix-functions/sprintf.texi (sprintf):
25689         * doc/posix-functions/vdprintf.texi (vdprintf):
25690         * doc/posix-functions/vfprintf.texi (vfprintf):
25691         * doc/posix-functions/vprintf.texi (vprintf):
25692         * doc/posix-functions/vsnprintf.texi (vsnprintf):
25693         * doc/posix-functions/vsprintf.texi (vsprintf):
25694         Mention that these functions mishandle large floating point
25695         precisions on Solaris 10.  The same bug is also present in Solaris
25696         8, and I assume earlier.  This causes "cd gnulib-tests; make
25697         check" to fail on Solaris 8 (and I assume, later) when building
25698         the latest coreutils, in test-vasprintf-posix's call to
25699         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
25700         the wide flavors (e.g., wprintf) so this patch just updates the
25701         documentation for the narrow ones.
25702
25703         test-posixtm.c: add two tests
25704         * tests/test-posixtm.c: Add two tests, to highlight the
25705         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
25706         around this bug; this is merely to document it.
25707
25708 2010-12-22  Bruno Haible  <bruno@clisp.org>
25709
25710         getlogin_r: Work around portability problem on OSF/1.
25711         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
25712         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
25713         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
25714         test for a truncated result.
25715         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
25716         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
25717         * modules/getlogin_r (Depends-on): Add memchr.
25718         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
25719
25720 2010-12-22  Bruno Haible  <bruno@clisp.org>
25721
25722         ptsname: Avoid test failure on OSF/1 5.1.
25723         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
25724         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
25725         (same_slave): New function.
25726         (main): Use it to compare ptsname's result with the expected file name.
25727
25728 2010-12-22  Bruno Haible  <bruno@clisp.org>
25729
25730         Port extended stdio modules to HP NonStop Kernel.
25731         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
25732         macros.
25733         * lib/fbufmode.c: Update comments.
25734         * lib/fflush.c: Likewise.
25735         * lib/fpurge.c: Likewise.
25736         * lib/freadable.c: Likewise.
25737         * lib/freadahead.c: Likewise.
25738         * lib/freading.c: Likewise.
25739         * lib/freadptr.c: Likewise.
25740         * lib/freadseek.c: Likewise.
25741         * lib/fseeko.c: Likewise.
25742         * lib/fseterr.c: Likewise.
25743         * lib/fwritable.c: Likewise.
25744         * lib/fwriting.c: Likewise.
25745         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25746
25747 2010-12-22  Bruno Haible  <bruno@clisp.org>
25748
25749         ttyname_r: Work around bug on OSF/1 5.1.
25750         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
25751         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
25752         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
25753         present.
25754         * lib/ttyname_r.c (ttyname_r): Update comments.
25755
25756 2010-12-22  Bruno Haible  <bruno@clisp.org>
25757
25758         round: Implement result sign according to IEEE 754.
25759         * lib/round.c (MIN, MINUS_ZERO): New macros.
25760         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
25761         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
25762         * tests/test-round-ieee.c (main): Likewise.
25763         * tests/test-roundl-ieee.c (main): Likewise.
25764
25765         trunc: Implement result sign according to IEEE 754.
25766         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
25767         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
25768         * tests/test-trunc2.c: Include minus-zero.h.
25769         (MINUS_ZERO): New macro.
25770         (trunc_reference): Keep in sync with lib/trunc.c.
25771         * tests/test-truncf2.c: Include minus-zero.h.
25772         (MINUS_ZERO): New macro.
25773         (truncf_reference): Keep in sync with lib/trunc.c.
25774         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
25775         * tests/test-trunc-ieee.c (main): Likewise.
25776         * tests/test-truncl-ieee.c (main): Likewise.
25777
25778         ceil: Implement result sign according to IEEE 754.
25779         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
25780         (FUNC): Return -0.0 for -1 < x < 0.
25781         * tests/test-ceil2.c: Include minus-zero.h.
25782         (MINUS_ZERO): New macro.
25783         (ceil_reference): Keep in sync with lib/ceil.c.
25784         * tests/test-ceilf2.c: Include minus-zero.h.
25785         (MINUS_ZERO): New macro.
25786         (ceilf_reference): Keep in sync with lib/ceil.c.
25787         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
25788         * tests/test-ceil-ieee.c (main): Likewise.
25789         * tests/test-ceill-ieee.c (main): Likewise.
25790
25791         floor: Implement result sign according to IEEE 754.
25792         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
25793         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
25794         * tests/test-floorf2.c (floorf_reference): Likewise.
25795         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
25796         * tests/test-floor-ieee.c (main): Likewise.
25797         * tests/test-floorl-ieee.c (main): Likewise.
25798
25799 2010-12-22  Bruno Haible  <bruno@clisp.org>
25800
25801         getaddrinfo: Update doc.
25802         * doc/posix-functions/gai_strerror.texi: Return type is also different
25803         on AIX and HP-UX.
25804
25805 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25806
25807         getaddrinfo, inet_ntop: Update doc for Solaris.
25808         * doc/posix-functions/gai_strerror.texi: Return type is also an
25809         issue on Solaris 9 and earlier.
25810         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
25811         on Solaris 10 and earlier.
25812
25813 2010-12-21  Bruno Haible  <bruno@clisp.org>
25814
25815         New module 'roundl-ieee'.
25816         * modules/roundl-ieee: New file.
25817         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
25818         test whether roundl works according to ISO C 99 with IEC 60559.
25819         * m4/roundl-ieee.m4: New file.
25820         * modules/roundl-ieee-tests: New file.
25821         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
25822         * tests/test-roundl.c (main): Remove signbit tests.
25823         * modules/roundl-tests (Depends-on): Remove signbit.
25824         * doc/posix-functions/roundl.texi: Mention the new module.
25825
25826 2010-12-21  Bruno Haible  <bruno@clisp.org>
25827
25828         New module 'truncl-ieee'.
25829         * modules/truncl-ieee: New file.
25830         * modules/truncl-ieee-tests: New file.
25831         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
25832         * tests/test-truncl.c (main): Remove signbit tests.
25833         * modules/truncl-tests (Depends-on): Remove signbit.
25834         * doc/posix-functions/truncl.texi: Mention the new module.
25835
25836 2010-12-21  Bruno Haible  <bruno@clisp.org>
25837
25838         New module 'ceill-ieee'.
25839         * modules/ceill-ieee: New file.
25840         * modules/ceill-ieee-tests: New file.
25841         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
25842         * tests/test-ceill.c (main): Remove signbit tests.
25843         * modules/ceill-tests (Depends-on): Remove signbit.
25844         * doc/posix-functions/ceill.texi: Mention the new module.
25845
25846 2010-12-21  Bruno Haible  <bruno@clisp.org>
25847
25848         New module 'floorl-ieee'.
25849         * modules/floorl-ieee: New file.
25850         * modules/floorl-ieee-tests: New file.
25851         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
25852         * tests/test-floorl.c (main): Remove signbit tests.
25853         * modules/floorl-tests (Depends-on): Remove signbit.
25854         * doc/posix-functions/floorl.texi: Mention the new module.
25855
25856 2010-12-21  Bruno Haible  <bruno@clisp.org>
25857
25858         New module 'round-ieee'.
25859         * modules/round-ieee: New file.
25860         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
25861         whether round works according to ISO C 99 with IEC 60559.
25862         * m4/round-ieee.m4: New file.
25863         * modules/round-ieee-tests: New file.
25864         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
25865         * tests/test-round1.c (main): Remove signbit tests.
25866         * modules/round-tests (Depends-on): Remove 'signbit'.
25867         * doc/posix-functions/round.texi: Mention the new module.
25868
25869 2010-12-21  Bruno Haible  <bruno@clisp.org>
25870
25871         New module 'trunc-ieee'.
25872         * modules/trunc-ieee: New file.
25873         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
25874         whether trunc works according to ISO C 99 with IEC 60559.
25875         * m4/trunc-ieee.m4: New file.
25876         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
25877         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
25878         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
25879         * modules/trunc-ieee-tests: New file.
25880         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
25881         * tests/test-trunc1.c (main): Remove signbit tests.
25882         * modules/trunc-tests (Depends-on): Remove 'signbit'.
25883         * doc/posix-functions/trunc.texi: Mention the new module.
25884
25885 2010-12-21  Bruno Haible  <bruno@clisp.org>
25886
25887         New module 'ceil-ieee'.
25888         * modules/ceil-ieee: New file.
25889         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
25890         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
25891         ISO C 99 with IEC 60559.
25892         * m4/ceil-ieee.m4: New file.
25893         * modules/ceil (Files): Add lib/ceil.c.
25894         (Depends-on): Add 'float'.
25895         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25896         * lib/math.in.h (ceil): New declaration.
25897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
25898         REPLACE_CEIL.
25899         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
25900         * modules/ceil-ieee-tests: New file.
25901         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
25902         * tests/test-math-c++.cc: Check the signature of 'ceil'.
25903         * doc/posix-functions/ceil.texi: Mention the new module.
25904
25905 2010-12-21  Bruno Haible  <bruno@clisp.org>
25906
25907         New module 'floor-ieee'.
25908         * modules/floor-ieee: New file.
25909         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
25910         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
25911         ISO C 99 with IEC 60559.
25912         * m4/floor-ieee.m4: New file.
25913         * modules/floor (Files): Add lib/floor.c.
25914         (Depends-on): Add 'float'.
25915         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25916         * lib/math.in.h (floor): New declaration.
25917         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
25918         REPLACE_FLOOR.
25919         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
25920         * modules/floor-ieee-tests: New file.
25921         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
25922         * tests/test-math-c++.cc: Check the signature of 'floor'.
25923         * doc/posix-functions/floor.texi: Mention the new module.
25924
25925 2010-12-21  Bruno Haible  <bruno@clisp.org>
25926
25927         New module 'roundf-ieee'.
25928         * modules/roundf-ieee: New file.
25929         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
25930         test whether roundf works according to ISO C 99 with IEC 60559.
25931         * m4/roundf-ieee.m4: New file.
25932         * modules/roundf-ieee-tests: New file.
25933         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
25934         * tests/test-roundf1.c (main): Remove signbit tests.
25935         * modules/roundf-tests (Depends-on): Remove 'signbit'.
25936         * doc/posix-functions/roundf.texi: Mention the new module.
25937
25938 2010-12-21  Bruno Haible  <bruno@clisp.org>
25939
25940         New module 'truncf-ieee'.
25941         * modules/truncf-ieee: New file.
25942         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
25943         test whether truncf works according to ISO C 99 with IEC 60559.
25944         * m4/truncf-ieee.m4: New file.
25945         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
25946         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
25947         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
25948         * modules/truncf-ieee-tests: New file.
25949         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
25950         * tests/test-truncf1.c (main): Remove signbit tests.
25951         * modules/truncf-tests (Depends-on): Remove 'signbit'.
25952         * doc/posix-functions/truncf.texi: Mention the new module.
25953
25954 2010-12-21  Bruno Haible  <bruno@clisp.org>
25955
25956         New module 'ceilf-ieee'.
25957         * modules/ceilf-ieee: New file.
25958         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
25959         test whether ceilf works according to ISO C 99 with IEC 60559.
25960         * m4/ceilf-ieee.m4: New file.
25961         * modules/ceilf-ieee-tests: New file.
25962         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
25963         * tests/test-ceilf1.c (main): Remove signbit tests.
25964         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
25965         * doc/posix-functions/ceilf.texi: Mention the new module.
25966
25967 2010-12-21  Bruno Haible  <bruno@clisp.org>
25968
25969         New module 'floorf-ieee'.
25970         * modules/floorf-ieee: New file.
25971         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
25972         test whether floorf works according to ISO C 99 with IEC 60559.
25973         * m4/floorf-ieee.m4: New file.
25974         * modules/floorf-ieee-tests: New file.
25975         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
25976         * tests/test-floorf1.c (main): Remove signbit tests.
25977         * modules/floorf-tests (Depends-on): Remove 'signbit'.
25978         * doc/posix-functions/floorf.texi: Mention the new module.
25979
25980 2010-12-21  Bruno Haible  <bruno@clisp.org>
25981
25982         Support for minus zero in autoconf macros.
25983         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
25984         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
25985         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
25986         * tests/minus-zero.h: Update comments.
25987
25988 2010-12-21  Bruno Haible  <bruno@clisp.org>
25989
25990         Tests for module 'ceil'.
25991         * modules/ceil-tests: New file.
25992         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
25993         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
25994
25995 2010-12-21  Bruno Haible  <bruno@clisp.org>
25996
25997         Tests for module 'floor'.
25998         * modules/floor-tests: New file.
25999         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26000         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26001
26002 2010-12-21  Bruno Haible  <bruno@clisp.org>
26003
26004         math: Fix indentation.
26005         * lib/math.in.h (floorf): Fix indentation.
26006
26007 2010-12-21  Bruno Haible  <bruno@clisp.org>
26008
26009         Fix cross-compilation guesses on Solaris.
26010         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26011         not match "solaris2.10".
26012         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26013         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26014         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26015
26016 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26017
26018         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26019         This fixes a problem observed with the latest coreutils snapshot
26020         that caused a test to fail on Solaris 8.  src/csplit.c's call
26021         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26022         earlier, instead of returning the number of bytes that would have
26023         been generated; this causes csplit to incorrectly report memory
26024         exhaustion.
26025         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26026         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26027         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26028         comments to match.
26029         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26030         Fix typo in matching older versions of Solaris: "solaris2.10"
26031         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26032         only for guessing while cross-compiling.
26033         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26034
26035 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26036
26037         ftoastr: fix comment again
26038         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26039         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26040         Also, simplify example a bit by using flags = 0.
26041
26042 2010-12-20  Bruno Haible  <bruno@clisp.org>
26043
26044         round*, trunc*: Update documentation regarding glibc.
26045         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26046         * doc/posix-functions/round.texi: Likewise.
26047         * doc/posix-functions/roundl.texi: Likewise.
26048         * doc/posix-functions/truncf.texi: Likewise.
26049         * doc/posix-functions/trunc.texi: Likewise.
26050         * doc/posix-functions/truncl.texi: Likewise.
26051
26052 2010-12-20  Bruno Haible  <bruno@clisp.org>
26053
26054         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26055         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26056         * doc/posix-functions/round.texi: Likewise.
26057         * doc/posix-functions/roundl.texi: Likewise.
26058
26059 2010-12-20  Bruno Haible  <bruno@clisp.org>
26060
26061         ttyname_r: Add missing declaration on HP-UX 11.
26062         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26063         HAVE_TTYNAME_R.
26064         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26065         declared. Set HAVE_TTYNAME_R always.
26066         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26067         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26068         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26069         HAVE_TTYNAME_R.
26070         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26071
26072 2010-12-20  Bruno Haible  <bruno@clisp.org>
26073
26074         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26075         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26076         * doc/posix-functions/getlogin_r.texi: Likewise.
26077         * tests/test-getlogin.c: Include <errno.h>.
26078         (main): Avoid test failure on HP-UX 11.11.
26079         * tests/test-getlogin_r.c (main): Likewise.
26080
26081 2010-12-20  Bruno Haible  <bruno@clisp.org>
26082
26083         getlogin_r: Add missing declaration on HP-UX 11.
26084         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26085         declared also when it exists as a function.
26086         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26087
26088 2010-12-20  Bruno Haible  <bruno@clisp.org>
26089
26090         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26091         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26092         through wcrtomb.
26093
26094 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26095
26096         ftoastr: fix comment
26097         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26098         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26099
26100 2010-12-19  Bruno Haible  <bruno@clisp.org>
26101
26102         isnan: Ensure it is a macro.
26103         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26104         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26105         Solaris.
26106
26107 2010-12-19  Bruno Haible  <bruno@clisp.org>
26108
26109         ldexpl test: Fix link error on OSF/1 5.1.
26110         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26111
26112 2010-12-19  Bruno Haible  <bruno@clisp.org>
26113
26114         wctype: Make it work in C++ mode on OSF/1 5.1.
26115         * lib/wctype.in.h (iswblank): Declare but not define here.
26116         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26117         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26118         * modules/wctype (Files): Add lib/iswblank.c.
26119
26120 2010-12-19  Bruno Haible  <bruno@clisp.org>
26121
26122         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26123         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26124         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26125
26126 2010-12-19  Bruno Haible  <bruno@clisp.org>
26127
26128         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26129         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26130         _POSIX_PII_SOCKET.
26131         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26132         * doc/posix-functions/recvfrom.texi: Likewise.
26133         * doc/posix-functions/send.texi: Likewise.
26134         * doc/posix-functions/sendto.texi: Likewise.
26135
26136 2010-12-19  Bruno Haible  <bruno@clisp.org>
26137
26138         tcgetsid: Add missing declaration on OSF/1 5.1.
26139         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26140         HAVE_TCGETSID.
26141         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26142         Don't set HAVE_TCGETSID.
26143         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26144         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26145         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26146         HAVE_TCGETSID.
26147         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26148
26149 2010-12-19  Bruno Haible  <bruno@clisp.org>
26150
26151         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26152         * lib/stdio.in.h: During the include_next statement, let recursive
26153         includes of this file include only the system header file.
26154
26155 2010-12-19  Bruno Haible  <bruno@clisp.org>
26156
26157         iconv_open: Fix regression from 2010-12-04.
26158         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26159         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26160
26161 2010-12-19  Bruno Haible  <bruno@clisp.org>
26162
26163         stdbool test: Avoid a gcc warning.
26164         * tests/test-stdbool.c (main): Fail if e1 is false.
26165         Reported by Jim Meyering.
26166
26167 2010-12-19  Jim Meyering  <meyering@redhat.com>
26168
26169         setenv: restore to working order
26170         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26171         mistakenly removed.
26172         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26173         HAVE_SETENV.
26174         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26175         HAVE_SETENV.
26176
26177 2010-12-19  Bruno Haible  <bruno@clisp.org>
26178
26179         Document some different function declarations on OSF/1 5.1.
26180         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26181         * doc/posix-functions/inet_ntop.texi: Likewise.
26182         * doc/posix-functions/gethostname.texi: Likewise.
26183         * lib/unistd.in.h (gethostname): Update comment.
26184
26185 2010-12-19  Bruno Haible  <bruno@clisp.org>
26186
26187         doc: Mention vasprintf-posix module.
26188         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26189         the 'vasprintf-posix' module.
26190         * doc/glibc-functions/vasprintf.texi: Likewise.
26191
26192 2010-12-19  Bruno Haible  <bruno@clisp.org>
26193
26194         unsetenv: Add missing declaration on OSF/1 5.1.
26195         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26196         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26197         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26199         not HAVE_UNSETENV.
26200         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26201         HAVE_UNSETENV.
26202         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26203
26204 2010-12-19  Bruno Haible  <bruno@clisp.org>
26205
26206         setenv: Add missing declaration on OSF/1 5.1.
26207         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26208         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26209         declared. Don't set HAVE_SETENV.
26210         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26211         not HAVE_SETENV.
26212         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26213         HAVE_SETENV.
26214         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26215
26216 2010-12-19  Bruno Haible  <bruno@clisp.org>
26217
26218         nl_langinfo tests: Avoid gcc warning.
26219         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26220
26221 2010-12-19  Bruno Haible  <bruno@clisp.org>
26222
26223         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26224         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26225         _GL_CXXALIAS_SYS.
26226
26227 2010-12-19  Bruno Haible  <bruno@clisp.org>
26228
26229         stdbool: Relax test.
26230         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26231         address to 'bool' work in static initializer, for compilers other than
26232         GCC.
26233
26234 2010-12-19  Bruno Haible  <bruno@clisp.org>
26235
26236         ftello: Add missing declaration on OSF/1 5.1.
26237         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26238         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26239         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26240         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26241         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26242
26243 2010-12-19  Bruno Haible  <bruno@clisp.org>
26244
26245         fseeko: Add missing declaration on OSF/1 5.1.
26246         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26247         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26249         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26250         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26251
26252 2010-12-19  Bruno Haible  <bruno@clisp.org>
26253
26254         fchdir: Add missing declaration on OSF/1 5.1.
26255         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26256         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26258         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26259         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26260
26261 2010-12-19  Bruno Haible  <bruno@clisp.org>
26262
26263         relocatable-prog-wrapper: Separate from relocatable-prog.
26264         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26265         uninstall-relocwrapper rule here.
26266         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26267         Reported by Ian Beckwith <ianb@erislabs.net>.
26268
26269 2010-12-19  Bruno Haible  <bruno@clisp.org>
26270
26271         unistr/u8-mbsnlen: Add missing dependency.
26272         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26273         Reported by Ian Beckwith <ianb@erislabs.net>.
26274
26275 2010-12-19  Bruno Haible  <bruno@clisp.org>
26276
26277         iconv: Make it possible again to use this module without 'iconv-h'.
26278         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26279         if it is not defined.
26280         Reported by Ian Beckwith <ianb@erislabs.net>.
26281
26282 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26283
26284         acl: port to Solaris 8 when copying from tmpfs to ufs
26285         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26286         error number.  Problem observed on Solaris 8 with latest
26287         coreutils, with "mv A B", where A is on a tmpfs file system and B
26288         is on a ufs file system.  This caused coreutils' mv/part-symlink
26289         test to fail.
26290
26291         tests: set fail=0 at start
26292         * tests/init.sh (setup_): Move fail=0 initialization here ...
26293         (mktempd_): ... from here, so that tests can rely on fail being
26294         set to 0 initially.  This fixes a problem in coreutils; see:
26295         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26296
26297 2010-12-18  Bruno Haible  <bruno@clisp.org>
26298
26299         memmem-simple: Stylistic changes.
26300         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26301         Fix preprocessor directive indentation.
26302
26303 2010-12-15  Pádraig Brady <P@draigBrady.com>
26304
26305         memmem, memmem-simple: reorganize and expand empty needle check
26306         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26307         functional checks to memmem-simple so that one has a fully functional
26308         memmem by using just this module.
26309         Restrict the performance only check to the memmem module.
26310         Also expand the empty needle check to ensure the correct
26311         pointer is returned, not just a non NULL pointer.
26312         * doc/glibc-functions/memmem.texi: Rearrange the portability
26313         documentation to correlate with the rearranged checks.
26314         Clarify exactly how the memmem and memmem-simple modules
26315         relate to each other.
26316
26317 2010-12-15  Pádraig Brady <P@draigBrady.com>
26318             Bruno Haible  <bruno@clisp.org>
26319
26320         Improve cross-compilation guesses for uClibc.
26321         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26322         that uClibc does not have the glibc bug.
26323         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26324         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26325
26326 2010-12-14  Eric Blake  <eblake@redhat.com>
26327
26328         configmake: provide fallbacks for oldest supported autotools
26329         * m4/configmake.m4: New file.
26330         * modules/configmake (Files): Ship it.
26331         (configure.ac): Use it to guarantee fallbacks.
26332
26333 2010-12-13  Pádraig Brady <P@draigBrady.com>
26334
26335         read-file: Improve handling of large files
26336         * lib/read-file.c (fread_file): Minimize realloc()s
26337         for regular files, and better manage sizes around SIZE_MAX.
26338
26339 2010-12-13  Eric Blake  <eblake@redhat.com>
26340
26341         cloexec, fcntl: relax license
26342         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26343         consent from all contributors.
26344         * modules/fcntl (License): Likewise.
26345
26346 2010-12-10  Bruno Haible  <bruno@clisp.org>
26347
26348         Tests for module 'pipe-posix'.
26349         * modules/pipe-posix-tests: New file.
26350         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26351
26352 2010-12-10  Bruno Haible  <bruno@clisp.org>
26353
26354         pipe-posix: Make it work in C++ mode.
26355         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26356         (pipe): Use common idiom, not a macro definition.
26357         * lib/pipe.c: New file.
26358         * m4/pipe.m4: New file.
26359         * modules/pipe-posix (Description): Enhance.
26360         (Files): Add lib/pipe.c, m4/pipe.m4.
26361         (configure.ac): Invoke gl_FUNC_PIPE.
26362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26363         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26364         * tests/test-unistd-c++.cc: Check the signature of pipe.
26365
26366 2010-12-10  Bruno Haible  <bruno@clisp.org>
26367
26368         Rename module 'pipe' to 'spawn-pipe'.
26369         * modules/spawn-pipe: New file, renamed from modules/pipe.
26370         (Files, configure.ac, Makefile.am): Update.
26371         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26372         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26373         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26374         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26375         "spawn-pipe.h" instead of "pipe.h".
26376         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26377         to gl_SPAWN_PIPE.
26378         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26379         (Files, Makefile.am): Update.
26380         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26381         Update.
26382         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26383         Include "spawn-pipe.h" instead of "pipe.h".
26384         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26385         * lib/javacomp.c: Likewise.
26386         * lib/javaversion.c: Likewise.
26387         * lib/pipe-filter-gi.c: Likewise.
26388         * lib/pipe-filter-ii.c: Likewise.
26389         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26390         * modules/javacomp (Depends-on): Likewise.
26391         * modules/javaversion (Depends-on): Likewise.
26392         * modules/pipe-filter-gi (Depends-on): Likewise.
26393         * modules/pipe-filter-ii (Depends-on): Likewise.
26394         * MODULES.html.sh (Executing programs): Update.
26395         * NEWS: Mention the change.
26396
26397 2010-12-10  Eric Blake  <eblake@redhat.com>
26398
26399         pipe-posix: new module
26400         * modules/pipe-posix: New file.
26401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26402         (gl_UNISTD_H): Check for declaration.
26403         * modules/unistd (Makefile.am): Substitute it.
26404         * lib/unistd.in.h (pipe): Provide it for mingw.
26405         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26406         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26407
26408 2010-12-07  Bruno Haible  <bruno@clisp.org>
26409
26410         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26411         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26412         u8_strcmp_gnu.
26413         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26414
26415 2010-12-06  Bruno Haible  <bruno@clisp.org>
26416
26417         Update internal documentation.
26418         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26419
26420 2010-12-04  Bruno Haible  <bruno@clisp.org>
26421
26422         Put more information about failed tests into the test return codes.
26423         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26424         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26425         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26426         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26427         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26428         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26429         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26430         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26431         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26432         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26433         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26434         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26435         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26436         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26437         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26438         returns a bit mask.
26439         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26440         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26441         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26442         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26443         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26444         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26445         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26446         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26447         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26448         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26449         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26450         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26451         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26452         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26453         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26454         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26455         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26456         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26457         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26458         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26459         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26460         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26461         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26462         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26463         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26464         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26465         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26466         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26467         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26468         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26469         gl_PRINTF_PRECISION): Likewise.
26470         * m4/regex.m4 (gl_REGEX): Likewise.
26471         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26472         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26473         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26474         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26475         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26476         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26477         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26478         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26479         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26480         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26481         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26482         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26483         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26484         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26485         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26486         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26487         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26488         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26489         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26490         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26491         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26492         enumerated value.
26493         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26494
26495 2010-12-04  Bruno Haible  <bruno@clisp.org>
26496
26497         Update for Solaris 11 2010-11.
26498         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26499         Express, released in November 2010.
26500
26501 2010-12-04  Bruno Haible  <bruno@clisp.org>
26502
26503         nproc: Relax license.
26504         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26505         and Paul Eggert.
26506         Requested by Ludovic Courtès <ludo@gnu.org>.
26507
26508 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26509
26510         utimecmp: fine-grained src to nearby coarse-grained dest
26511
26512         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26513         and the source is on a file system with higher-resolution time
26514         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26515         not work, and the time stamps are close together, the algorithm to
26516         determine the exact resolution from the read-back mtime was buggy:
26517         it had a "!=" where it should have had an "==".  This bug has been
26518         in the code ever since it was introduced to gnulib.
26519         Problem reported by Dan Jacobson in
26520         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26521
26522 2010-11-30  Bruno Haible  <bruno@clisp.org>
26523
26524         strerror_r-posix: Fix autoconf test.
26525         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26526
26527 2010-11-28  Bruno Haible  <bruno@clisp.org>
26528             Paul Eggert  <eggert@cs.ucla.edu>
26529
26530         Tests for module 'getdomainname'.
26531         * modules/getdomainname-tests: New file.
26532         * tests/test-getdomainname.c: New file, based on
26533         tests/test-gethostname.c.
26534
26535 2010-11-28  Bruno Haible  <bruno@clisp.org>
26536             Paul Eggert  <eggert@cs.ucla.edu>
26537
26538         getdomainname: Use the system function when possible.
26539         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26540         (getdomainname): Replace if needed. Provide the declaration if it is
26541         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26542         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26543         (getdomainname): When the system has getdomainname, call the system
26544         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26545         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26546         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26547         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26548         the function if its second argument is of type 'int' or if it is found
26549         in libnsl.
26550         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26551         <sys/systeminfo.h> and sysinfo().
26552         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26554         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26555         HAVE_GETDOMAINNAME.
26556         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26557         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26558         * doc/glibc-functions/getdomainname.texi: Document the problems with
26559         the getdomainname declaration.
26560
26561 2010-11-28  Bruno Haible  <bruno@clisp.org>
26562
26563         sys_socket: Ensure ss_family field on AIX.
26564         * lib/sys_socket.in.h (ss_family): New macro definition.
26565         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26566         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26567         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26568         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26569         * modules/sys_socket (Makefile.am): Substitute
26570         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26571         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26572
26573 2010-11-27  Bruno Haible  <bruno@clisp.org>
26574
26575         readline: Improve configure output.
26576         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26577         "checking for readline..." result understandable.
26578
26579 2010-11-27  Bruno Haible  <bruno@clisp.org>
26580
26581         *printf-posix: Detect a bug on Solaris 10/x86.
26582         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26583         for floating-point output.
26584         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
26585         directive.
26586         * tests/test-snprintf-posix.h (test_function): Likewise.
26587         * tests/test-sprintf-posix.h (test_function): Likewise.
26588         * tests/test-vasprintf-posix.c (test_function): Likewise.
26589         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
26590         * doc/posix-functions/printf.texi: Likewise.
26591         * doc/posix-functions/snprintf.texi: Likewise.
26592         * doc/posix-functions/sprintf.texi: Likewise.
26593         * doc/posix-functions/vfprintf.texi: Likewise.
26594         * doc/posix-functions/vprintf.texi: Likewise.
26595         * doc/posix-functions/vsnprintf.texi: Likewise.
26596         * doc/posix-functions/vsprintf.texi: Likewise.
26597         * doc/glibc-functions/obstack_printf.texi: Likewise.
26598         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26599
26600 2010-11-27  Bruno Haible  <bruno@clisp.org>
26601
26602         Fix link error when module libunistring-optional is in use.
26603         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
26604         * modules/striconveha-tests (Makefile.am): Likewise.
26605
26606 2010-11-27  Bruno Haible  <bruno@clisp.org>
26607
26608         regex: Mention link dependencies.
26609         * modules/regex (Link): New section.
26610         * modules/rpmatch (Link): Likewise.
26611         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
26612
26613 2010-11-27  Bruno Haible  <bruno@clisp.org>
26614
26615         ftoastr: Fix compilation error on Solaris.
26616         * lib/ftoastr.c: Include <config.h>.
26617
26618 2010-11-27  Bruno Haible  <bruno@clisp.org>
26619
26620         getloadavg: Update documentation.
26621         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
26622
26623 2010-11-27  Bruno Haible  <bruno@clisp.org>
26624
26625         sys_socket: Fix test whether the functions are declared.
26626         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
26627         not <sys/select.h>.
26628
26629 2010-11-27  Bruno Haible  <bruno@clisp.org>
26630
26631         getpass: Make sure to get system declaration on some platforms.
26632         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
26633         gl_USE_SYSTEM_EXTENSIONS.
26634         * modules/getpass (Depends-on): Add extensions.
26635
26636 2010-11-26  Bruno Haible  <bruno@clisp.org>
26637
26638         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
26639         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
26640         'iconv' module is present.
26641         (ICONV_CONST): New macro.
26642         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
26643         ICONV_CONST.
26644         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
26645         set ICONV_CONST.
26646         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
26647         here.
26648         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
26649         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
26650         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
26651         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
26652         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
26653         present.
26654
26655 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26656
26657         ftoastr: comment fix
26658         * lib/ftoastr.c: "little" -> "little or no" in comment
26659
26660 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
26661
26662         stdint: port to GCC 4.3 + OSX + Octave
26663         On this platform, stdint.h is buggy and defines int64_t to long
26664         long int.  The replacement defined it to long int, causing
26665         problems with C++ style name mangling.  Instead, trust the system
26666         definition if INT64_MAX is defined, and likewise for the unsigned
26667         variant.   Problem reported by Jarno Rajahalme in
26668         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
26669         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
26670         and don't mess with int64_t and INT64_MAX in this case.
26671         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
26672
26673 2010-11-24  Bruno Haible  <bruno@clisp.org>
26674
26675         doc: Corrections regarding MacOS X 10.4 and 10.5.
26676         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
26677         MacOS X.
26678         Reported by Simon Josefsson.
26679
26680 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
26681
26682         Uninstall ".bin" files installed by relocwrapper.
26683         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
26684         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
26685         unless it is already there.
26686
26687 2010-11-21  Bruno Haible  <bruno@clisp.org>
26688
26689         Update for NetBSD 5.0.
26690         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26691         NetBSD; the test fails on NetBSD 5.0.
26692         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26693         about NetBSD.
26694
26695 2010-11-21  Bruno Haible  <bruno@clisp.org>
26696
26697         Update for HP-UX 11.23 and HP-UX 11.31.
26698         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
26699         HP-UX.
26700
26701 2010-11-21  Bruno Haible  <bruno@clisp.org>
26702
26703         Update for MacOS X 10.5.
26704         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26705         MacOS X; the test fails on MacOS X 10.5.8.
26706         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26707         about MacOS X.
26708
26709 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
26710
26711         bootstrap: add bootstrap_sync option.
26712         See discussion at
26713         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
26714         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
26715         * build-aux/bootstrap: Accept --bootstrap-sync to update
26716         bootstrap if it is not identical to the local gnulib's
26717         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
26718         enable this by default.  Accept --no-bootstrap-sync to disable
26719         it.
26720
26721 2010-11-20  Bruno Haible  <bruno@clisp.org>
26722
26723         Ensure that <features.h> is included before __GLIBC__ is tested.
26724         * lib/printf-parse.h: Include <features.h>.
26725         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
26726         Reported by Mike Frysinger <vapier@gentoo.org>.
26727
26728         Ensure that <features.h> is included before __GLIBC__ is tested.
26729         * lib/wchar.in.h: Include <features.h>.
26730         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
26731         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
26732         Reported by Mike Frysinger <vapier@gentoo.org>.
26733
26734         Ensure that <features.h> is included before __GLIBC__ is tested.
26735         * lib/arpa_inet.in.h: Include <features.h>.
26736         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
26737         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
26738         Reported by Mike Frysinger <vapier@gentoo.org>.
26739
26740         Ensure that <features.h> is included before __GLIBC__ is tested.
26741         * build-aux/link-warning.h: Include <features.h>.
26742         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
26743         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
26744         Reported by Mike Frysinger <vapier@gentoo.org>.
26745
26746         Ensure that <features.h> is included before __GLIBC__ is tested.
26747         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
26748         Reported by Mike Frysinger <vapier@gentoo.org>.
26749
26750 2010-11-20  Bruno Haible  <bruno@clisp.org>
26751
26752         memmem: Fix autoconf test.
26753         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
26754
26755 2010-11-20  Bruno Haible  <bruno@clisp.org>
26756
26757         Port to uClibc.
26758         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
26759         * lib/fcntl.in.h: Likewise.
26760         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
26761         * lib/mbrtowc.c (mbrtowc): Likewise.
26762         * lib/relocatable.c (find_shared_library_fullname): Likewise.
26763         * lib/strerror_r.c: Likewise.
26764         * lib/unistr/u8-strnlen.c: Likewise.
26765         * lib/vasnprintf.c (decimal_point_char): Likewise.
26766         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26767         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26768         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26769         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26770         * tests/test-sigaction.c (handler, main): Likewise.
26771         * lib/freading.h: Treat uClibc like a non-glibc platform.
26772         * lib/freading.c: Likewise.
26773         * lib/gettext.h: Likewise.
26774         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
26775         Likewise.
26776         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
26777         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
26778         * lib/propername.c (proper_name_utf8): Likewise.
26779         * lib/spawn.in.h: Likewise.
26780         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
26781         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
26782         mem_cd_iconveh_internal): Likewise.
26783         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
26784         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26785         strstr, strcasestr): Likewise.
26786         * lib/unicodeio.c (unicode_to_mb): Likewise.
26787         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
26788         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
26789         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
26790         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
26791         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
26792         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
26793         * lib/unistr/u8-stpncpy.c: Likewise.
26794         * lib/vasnprintf.c (VASNPRINTF): Likewise.
26795         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
26796         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26797         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26798         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26799         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
26800         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
26801         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
26802         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
26803         Likewise.
26804         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26805         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26806         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26807         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26808         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26809         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26810         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26811         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26812         * tests/test-getopt.h (OPTIND_MIN): Likewise.
26813         * tests/test-striconveha.c (main): Likewise.
26814         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26815         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
26816         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
26817         * doc/posix-functions/getline.texi: Likewise.
26818         Reported by Mike Frysinger <vapier@gentoo.org>.
26819
26820 2010-11-20  Bruno Haible  <bruno@clisp.org>
26821
26822         nproc: Fix condition.
26823         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
26824         HAVE_PTHREAD_AFFINITY_NP.
26825
26826 2010-11-20  Bruno Haible  <bruno@clisp.org>
26827
26828         Fix a comment.
26829         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
26830
26831 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
26832
26833         ftoastr: don't assume snprintf
26834         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
26835         Implement a subset of snprintf here, by using sprintf safely.
26836         * modules/ftoastr (Depends-on): Remove snprintf.
26837
26838 2010-11-19  Jim Meyering  <meyering@redhat.com>
26839
26840         test-rename.h: fix compilation failure
26841         * tests/test-rename.h (test_rename): Add omitted "}".
26842
26843 2010-11-17  Jim Meyering  <meyering@redhat.com>
26844
26845         maint.mk: add a URL discussing the no-@acronym policy
26846         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
26847
26848 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26849
26850         ftoastr: depend on snprintf, improve comments
26851         * lib/ftoastr.c: Also mention Loitsch's draft.
26852         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
26853         needed in the current implementation, but it might simplify
26854         speeding up the code later.
26855         * modules/ftoastr: Depend on snprintf; this improves portability.
26856         Suggested by Bruno Haible in the same email.
26857
26858         ftoastr: port to hosts lacking strtof and strtold
26859         Problem reported by Bruno Haible in
26860         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
26861         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
26862         environment and strtold (and presumably strtof) are not available.
26863         * modules/ftoastr (Files): Add m4/c-strtod.m4.
26864         (configure.ac): Require gl_C99_STRTOLD.
26865
26866 2010-11-18  Bruno Haible  <bruno@clisp.org>
26867
26868         c-strtold: Avoid link error on AIX 7.
26869         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
26870         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
26871         (gl_C_STRTOLD): Test whether strtold_l exists.
26872         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26873
26874 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26875
26876         intprops: new macro INT_BITS_STRLEN_BOUND
26877         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
26878         ftoastr.h.  This exposes an internal of intprops.h that was formerly
26879         not exposed.  Also, it uses a slightly tighter bound than before;
26880         though this makes no practical difference, we might as well be as
26881         tight as we easily can.
26882
26883         ftoastr: new module, for lossless conversion of floats to short strings
26884         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
26885         * modules/ftoastr: New files.
26886
26887 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26888
26889         bootstrap: port to Solaris sed
26890         * build-aux/bootstrap (get_version): Port to Solaris sed.
26891         See Ralf Wildenhues's note in
26892         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
26893
26894 2010-11-14  Jim Meyering  <meyering@redhat.com>
26895
26896         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
26897         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
26898         and move definition closer to sole use.
26899
26900 2010-11-13  Jim Meyering  <meyering@redhat.com>
26901
26902         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
26903         Now we require at least autoconf-2.59, which means the work-around
26904         is no longer needed.
26905         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
26906         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26907         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
26908         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26909         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26910
26911 2010-11-13  Bruno Haible  <bruno@clisp.org>
26912
26913         rename, renameat: Avoid test failures at NFS mounted locations.
26914         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
26915         functions.
26916         (test_rename): Use assert_nonexistent.
26917         * tests/test-rename.c: Include <dirent.h>.
26918         * tests/test-renameat.c: Likewise.
26919         Reported by Gary V. Vaughan <gary@gnu.org>.
26920
26921         rename, renameat: Document Linux bug with NFS
26922         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
26923         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
26924         * doc/posix-functions/renameat.texi: Likewise.
26925         Suggested by Eric Blake.
26926
26927 2010-11-13  Bruno Haible  <bruno@clisp.org>
26928
26929         rename test: Add comments.
26930         * tests/test-rename.h (test_rename): Add structure and comments.
26931
26932 2010-11-13  Eric Blake  <eblake@redhat.com>
26933
26934         maintainer-makefile: cover a few more files
26935         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
26936         scripts generated within C files, for libvirt.
26937
26938 2010-11-13  Bruno Haible  <bruno@clisp.org>
26939
26940         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
26941         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
26942         character, return the number of bytes that belong together, not always
26943         1.
26944         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26945         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26946         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26947         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
26948         number of bytes of an invalid character.
26949         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
26950         (main): Invoke it.
26951         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
26952         results.
26953         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
26954         malformed byte sequences.
26955         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
26956         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
26957         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
26958         Reported by Ben Pfaff and Paolo Bonzini.
26959
26960 2010-11-13  Bruno Haible  <bruno@clisp.org>
26961
26962         openat: Work around glibc bug with fchownat() and empty file names.
26963         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
26964         (gl_FUNC_FCHOWNAT): Invoke it.
26965         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
26966         * doc/posix-functions/fchownat.texi: Document the glibc bug.
26967         Reported by Gary V. Vaughan <gary@gnu.org>.
26968
26969 2010-11-13  Bruno Haible  <bruno@clisp.org>
26970
26971         openat: Ensure autoconf macro ordering.
26972         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
26973         gl_USE_SYSTEM_EXTENSIONS.
26974         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
26975
26976 2010-11-13  Bruno Haible  <bruno@clisp.org>
26977
26978         Update comments.
26979         * lib/unistr/u8-check.c: Update file name in comments.
26980         * lib/unistr/u8-mblen.c: Likewise.
26981         * lib/unistr/u8-prev.c: Likewise.
26982         * lib/unistr/u8-strmblen.c: Likewise.
26983         * lib/unistr/u8-strmbtouc.c: Likewise.
26984
26985 2010-11-13  Jim Meyering  <meyering@redhat.com>
26986
26987         tests: avoid test failure on Solaris 10 due to lack of PATH export
26988         * tests/test-update-copyright.sh: Don't forget to export PATH.
26989
26990         init.sh: ensure that IFS is defined, just in case...
26991         * tests/init.sh (setup_): Ensure that IFS is defined,
26992         so that saving and restoring it works as expected.  This
26993         appears to be useful at least for an old version of dash
26994         from a long time ago (RH 6).  See here for details:
26995         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
26996
26997         maint.mk: tighten "test a == b" check
26998         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
26999         test to files that contain something like #!/bin/sh.
27000         Without this, coreutils would get two false positives in
27001         the comments of C source files.
27002
27003 2010-11-12  Eric Blake  <eblake@redhat.com>
27004
27005         bootstrap: fix typo in previous attempt
27006         * build-aux/bootstrap (buildreq): Correct the grouping.
27007         Reported by Paul Eggert.
27008
27009         maintainer-makefile: prohibit test x == x
27010         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27011         Based on a report by Matthias Bolte.
27012
27013         bootstrap: allow FreeBSD gzip
27014         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27015         which has no '.' and goes to stderr.
27016         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27017         Reported by Matthias Bolte.
27018
27019         maintainer-makefile: check for i18n setup
27020         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27021         will likely work.
27022
27023 2010-11-12  Bruno Haible  <bruno@clisp.org>
27024
27025         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27026         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27027         * lib/nanosleep.c (nanosleep): Likewise.
27028
27029 2010-11-11  Bruno Haible  <bruno@clisp.org>
27030
27031         fcntl-h: Fix for use of C++ on glibc systems.
27032         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27033         also on glibc systems in C++ mode.
27034         Reported by Gary V. Vaughan <gary@gnu.org>.
27035
27036 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27037
27038         mknod: avoid false failure with dash
27039         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27040
27041 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27042
27043         unlink: Fix "is it should" typo in diagnostic.
27044         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27045         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27046
27047 2010-11-11  Bruno Haible  <bruno@clisp.org>
27048
27049         Tests for module 'strerror_r-posix'.
27050         * modules/strerror_r-posix-tests: New file.
27051         * tests/test-strerror_r.c: New file.
27052         * tests/test-string-c++.cc: Check the signature of strerror_r.
27053
27054         New module 'strerror_r-posix'.
27055         * lib/string.in.h (strerror_r): New declaration.
27056         * lib/strerror_r.c: New file.
27057         * m4/strerror_r.m4: New file.
27058         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27059         of strerror_r.
27060         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27061         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27062         * modules/strerror_r-posix: New file.
27063         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27064         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27065         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27066         portability problems.
27067
27068 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27069
27070         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27071         line is also considered for output. Quoted function name in shell
27072         command, so temporary files for functions like MyClass::operator()
27073         are removed correctly without errors.
27074
27075 2010-11-09  Bruno Haible  <bruno@clisp.org>
27076
27077         * doc/posix-functions/strerror.texi: List more failing platforms.
27078
27079         * doc/posix-functions/strerror.texi: Add a comment.
27080
27081 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27082
27083         fdopendir: fix bug on MacOS X when low on file descriptors
27084
27085         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27086         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27087         All callers changed.
27088         (fdopendir): Invoke save_cwd at the top level, not after using
27089         multiple dup() calls to use up file descriptors.  Then retry
27090         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27091         less than the maximum number of open file descriptors, because
27092         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27093         on Mac OS X 10.6.4 for tar 1.24
27094         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27095         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27096         and for tar 1.25
27097         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27098
27099 2010-11-07  Bruno Haible  <bruno@clisp.org>
27100
27101         vasnprintf: Support I flag on glibc systems.
27102         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27103         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27104         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27105         snprintf function.
27106         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27107         glibc systems.
27108         * tests/test-vasnprintf-posix3.c: New file.
27109         * modules/vasnprintf-posix-tests (Files): Add it.
27110         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27111
27112 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27113
27114         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27115         * MODULES.html.sh: For compiler warnings, use name
27116         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27117
27118 2010-11-05  Eric Blake  <eblake@redhat.com>
27119
27120         ceil, floor: avoid spurious failure with icc
27121         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27122         [denormals-as-zero] when optimizing without -mieee-fp option.
27123         * tests/test-floorf2.c (floorf_reference): Likewise.
27124         * tests/test-ceilf1.c (dummy): New function.
27125         (main): Use it to outsmart icc's optimization.
27126         * tests/test-floorf1.c (dummy, main): Likewise.
27127
27128         tests: require working signbit
27129         * modules/ceilf-tests (Depends-on): Add signbit.
27130         * modules/ceill-tests (Depends-on): Likewise.
27131         * modules/floorf-tests (Depends-on): Likewise.
27132         * modules/floorl-tests (Depends-on): Likewise.
27133         * modules/round-tests (Depends-on): Likewise.
27134         * modules/roundf-tests (Depends-on): Likewise.
27135         * modules/roundl-tests (Depends-on): Likewise.
27136         * modules/trunc-tests (Depends-on): Likewise.
27137         * modules/truncf-tests (Depends-on): Likewise.
27138         * modules/truncl-tests (Depends-on): Likewise.
27139
27140         strtod: work around icc bug
27141         * lib/strtod.c (minus_zero): Define to working value.
27142         (strtod): Use it to avoid icc bug.
27143
27144         copysign: enhance tests
27145         * modules/copysign-tests (Files): Add minus-zero.h.
27146         * tests/test-copysign.c (main): Also test zeros.
27147
27148 2010-11-04  Eric Blake  <eblake@redhat.com>
27149
27150         ceil, floor, round, trunc: enhance tests of -0
27151         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27152         * tests/test-ceill.c (main): Likewise.
27153         * tests/test-floorf1.c (main): Likewise.
27154         * tests/test-floorl.c (main): Likewise.
27155         * tests/test-round1.c (main): Likewise.
27156         * tests/test-roundf1.c (main): Likewise.
27157         * tests/test-roundl.c (main): Likewise.
27158         * tests/test-trunc1.c (main): Likewise.
27159         * tests/test-truncf1.c (main): Likewise.
27160         * tests/test-truncl.c (main): Likewise.
27161
27162 2010-11-04  Eric Blake  <eblake@redhat.com>
27163
27164         frexp, tests: work around ICC bug with -zero
27165         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27166         works with more compilers.
27167         * tests/minus-zero.h: New file.
27168         * modules/ceilf-tests (Files): Include it.
27169         * modules/ceill-tests (Files): Likewise.
27170         * modules/floorf-tests (Files): Likewise.
27171         * modules/floorl-tests (Files): Likewise.
27172         * modules/frexp-nolibm-tests (Files): Likewise.
27173         * modules/frexp-tests (Files): Likewise.
27174         * modules/frexpl-nolibm-tests (Files): Likewise.
27175         * modules/frexpl-tests (Files): Likewise.
27176         * modules/isnan-tests (Files): Likewise.
27177         * modules/isnand-nolibm-tests (Files): Likewise.
27178         * modules/isnand-tests (Files): Likewise.
27179         * modules/isnanf-nolibm-tests (Files): Likewise.
27180         * modules/isnanf-tests (Files): Likewise.
27181         * modules/isnanl-nolibm-tests (Files): Likewise.
27182         * modules/isnanl-tests (Files): Likewise.
27183         * modules/round-tests (Files): Likewise.
27184         * modules/roundf-tests (Files): Likewise.
27185         * modules/roundl-tests (Files): Likewise.
27186         * modules/ldexpl-tests (Files): Likewise.
27187         * modules/signbit-tests (Files): Likewise.
27188         * modules/snprintf-posix-tests (Files): Likewise.
27189         * modules/sprintf-posix-tests (Files): Likewise.
27190         * modules/strtod-tests (Files): Likewise.
27191         * modules/trunc-tests (Files): Likewise.
27192         * modules/truncf-tests (Files): Likewise.
27193         * modules/truncl-tests (Files): Likewise.
27194         * modules/vsnprintf-posix-tests (Files): Likewise.
27195         * modules/vsprintf-posix-tests (Files): Likewise.
27196         * modules/vasnprintf-posix-tests (Files): Likewise.
27197         * modules/vasprintf-posix-tests (Files): Likewise.
27198         * tests/test-ceilf1.c (main): Use it.
27199         * tests/test-ceill.c (main): Likewise.
27200         * tests/test-floorf1.c (main): Likewise.
27201         * tests/test-floorl.c (main): Likewise.
27202         * tests/test-frexp.c (main): Likewise.
27203         * tests/test-frexpl.c (main): Likewise.
27204         * tests/test-isnan.c (main): Likewise.
27205         * tests/test-isnand.h (main): Likewise.
27206         * tests/test-isnanf.h (main): Likewise.
27207         * tests/test-isnanl.h (main): Likewise.
27208         * tests/test-ldexpl.c (main): Likewise.
27209         * tests/test-round.c (main): Likewise.
27210         * tests/test-roundf.c (main): Likewise.
27211         * tests/test-roundl.c (main): Likewise.
27212         * tests/test-signbit.c (test_signbitf, test_signbitd)
27213         (test_signbitl): Likewise.
27214         * tests/test-snprintf-posix.h (test_function): Likewise.
27215         * tests/test-sprintf-posix.h (test_function): Likewise.
27216         * tests/test-strtod.c (main): Likewise.
27217         * tests/test-trunc1.c (main): Likewise.
27218         * tests/test-truncf1.c (main): Likewise.
27219         * tests/test-truncl.c (main): Likewise.
27220
27221         isnanl: work around icc bug
27222         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27223
27224 2010-11-03  Eric Blake  <eblake@redhat.com>
27225
27226         tests: fix compiler warnings
27227         * tests/test-getopt.h (test_getopt): Fix condition.
27228         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27229         * tests/test-pipe2.c (main): Likewise.
27230         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27231
27232         utimens: fix broken m4 test
27233         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27234
27235 2010-10-28  Bruno Haible  <bruno@clisp.org>
27236
27237         posix_spawn*, getdtablesize: Relax license.
27238         * modules/posix_spawn (License): Change to LGPLv2+.
27239         * modules/posix_spawnp (License): Likewise.
27240         * modules/posix_spawn-internal (License): Likewise.
27241         * modules/posix_spawnattr_init (License): Likewise.
27242         * modules/posix_spawnattr_getflags (License): Likewise.
27243         * modules/posix_spawnattr_setflags (License): Likewise.
27244         * modules/posix_spawnattr_getpgroup (License): Likewise.
27245         * modules/posix_spawnattr_setpgroup (License): Likewise.
27246         * modules/posix_spawnattr_getschedparam (License): Likewise.
27247         * modules/posix_spawnattr_setschedparam (License): Likewise.
27248         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27249         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27250         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27251         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27252         * modules/posix_spawnattr_getsigmask (License): Likewise.
27253         * modules/posix_spawnattr_setsigmask (License): Likewise.
27254         * modules/posix_spawnattr_destroy (License): Likewise.
27255         * modules/posix_spawn_file_actions_init (License): Likewise.
27256         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27257         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27258         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27259         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27260         * modules/getdtablesize (License): Likewise.
27261         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27262
27263 2010-10-26  Bruno Haible  <bruno@clisp.org>
27264
27265         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27266         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27267         Cygwin and mingw.
27268         Suggested by Eric Blake.
27269
27270 2010-10-26  Bruno Haible  <bruno@clisp.org>
27271
27272         stdio: Work around compilation error due to renameat() on Solaris 10.
27273         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27274         * lib/renameat.c: Don't include <unistd.h> here.
27275         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27276         Reported by Paul Eggert and Eric Blake.
27277
27278 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27279
27280         renameat: port to Solaris 10, which declares renameat in unistd.h
27281
27282         * lib/renameat.c: Include unistd.h before stdio.h, because
27283         Solaris 10 declares renameat in unistd.h.  Problem encountered
27284         when building GNU tar 1.24 on Solaris 10.
27285
27286 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27287
27288         fdopendir: fix C89 compilation
27289         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27290         compilers.
27291
27292 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27293
27294         inttostr: simplify by removing unnecessary redundancy
27295         * lib/anytostr.c: Don't include verify.h.
27296         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27297         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27298         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27299         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27300         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27301         Likewise.
27302         * modules/inttostr (Depends-on): Remove 'verify'.
27303
27304 2010-10-23  Bruno Haible  <bruno@clisp.org>
27305
27306         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27307         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27308         Reported by Eric Blake.
27309
27310 2010-10-23  Bruno Haible  <bruno@clisp.org>
27311
27312         Tests: Fix LOCALE_JA on MirBSD 10.
27313         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27314         to an UTF-8 locale.
27315         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27316         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27317         Reported by Eric Blake.
27318
27319 2010-10-21  Bruno Haible  <bruno@clisp.org>
27320
27321         nl_langinfo test: Avoid test failure on NetBSD 5.
27322         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27323         Reported by Eric Blake.
27324
27325 2010-10-21  Eric Blake  <eblake@redhat.com>
27326
27327         c-stack: work around libsigsegv 2.8 bug
27328         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27329         overflow on at least PowerPC64.
27330
27331 2010-10-17  Bruno Haible  <bruno@clisp.org>
27332
27333         userspec: Drop redundant file.
27334         * modules/userspec (Files): Remove lib/inttostr.h.
27335
27336 2010-10-17  Bruno Haible  <bruno@clisp.org>
27337
27338         nl_langinfo tests: Silence some warnings.
27339         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27340         Reported by Jim Meyering.
27341
27342 2010-10-17  Bruno Haible  <bruno@clisp.org>
27343
27344         Make use of GCC's attribute __alloc_size__.
27345         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27346         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27347         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27348         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27349         __alloc_size__.
27350         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27351         Suggested by Jim Meyering.
27352
27353 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27354
27355         bootstrap: anchor .gitignore entries.
27356         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27357         with...
27358         (insert_vc_ignore): ... this new function, which prepends `/' to
27359         all .gitignore entries before passing them to
27360         insert_sorted_if_absent.
27361
27362 2010-10-16  Bruno Haible  <bruno@clisp.org>
27363
27364         nextafter: Fix configure check.
27365         * modules/nextafter (configure.ac): Correct expected prototype.
27366
27367 2010-10-16  Bruno Haible  <bruno@clisp.org>
27368
27369         termios: Update documentation.
27370         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27371
27372 2010-10-16  Bruno Haible  <bruno@clisp.org>
27373
27374         tests: Make them compile with TinyCC.
27375         * tests/test-strstr.c (main): Remove parentheses around array
27376         initializer.
27377
27378 2010-10-15  Eric Blake  <eblake@redhat.com>
27379
27380         ignore-value: make header idempotent
27381         * lib/ignore-value.h: Add double-inclusion guards.
27382         Reported by Stefan Berger.
27383
27384 2010-10-15  Jim Meyering  <meyering@redhat.com>
27385
27386         GNUmakefile: handle "stable" target, not "major"
27387         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27388         lists in maint.mk and announce-gen.  Without this, "make stable"
27389         would fail to ensure that $(VERSION) is up to date.
27390
27391 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27392
27393         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27394         & co.
27395
27396 2010-10-14  Bruno Haible  <bruno@clisp.org>
27397
27398         vasnprintf: Don't set errno to 0.
27399         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27400         block that sets it to 0.
27401         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27402
27403 2010-10-14  Bruno Haible  <bruno@clisp.org>
27404
27405         socketlib: Fix.
27406         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27407         gl_PREREQ_SYS_H_WINSOCK2.
27408         Reported by Ian Beckwith <ianb@erislabs.net>.
27409
27410 2010-10-13  Jim Meyering  <meyering@redhat.com>
27411
27412         test-select-stdin.c: avoid warn_unused_result warnings
27413         * tests/test-select-stdin.c: Include "macros.h".
27414         ASSERT that read and fflush succeed.
27415
27416 2010-10-13  Jim Meyering  <meyering@redhat.com>
27417
27418         git-version-gen: do require git-VC'd files in cwd
27419         * build-aux/git-version-gen: Reject a git version string
27420         if there are no commits associated with the current directory.
27421         This avoids an unlikely false-positive (unrelated dir whose parent
27422         repository also contains a tag matching v*), as pointed out
27423         by Giuseppe Scrivano in
27424         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27425
27426 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27427
27428         argv-iter: omit nonconforming declaration
27429         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27430         enum arg_iter_err declaration, which doesn't conform to C99.
27431         Solaris 10 cc warns about this.
27432
27433 2010-10-13  Eric Blake  <eblake@redhat.com>
27434
27435         termios: fix compilation on mingw
27436         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27437         (gl_TERMIOS_H): Adjust it on mingw.
27438         * modules/termios (Makefile.am): Substitute new key.
27439         * lib/termios.in.h (includes): Make include_next conditional.
27440         * doc/posix-headers/termios.texi (termios.h): Update
27441         documentation.
27442         Reported by Daniel P. Berrange.
27443
27444 2010-10-13  Jim Meyering  <meyering@redhat.com>
27445
27446         git-version-gen: don't require that .git/ be in the current dir
27447         * build-aux/git-version-gen: Adjust this script so that it works
27448         when run from any working directory beneath the top-level .git/-
27449         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27450         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27451
27452         test-select: avoid warn_unused_result warnings
27453         * tests/test-select.c: Include "macros.h".
27454         ASSERT that each call to read, write, and pipe succeeds.
27455         While not technically required, also check each "close".
27456         * modules/select-tests (Files): Add tests/macros.h.
27457
27458         test-symlinkat: remove declaration of unused local
27459         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27460
27461         test-inttostr: avoid shadowing warnings
27462         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27463         and use malloc rather than the stack for the same reason as
27464         mentioned in the comment justifying the other allocation.
27465
27466 2010-10-11  Bruno Haible  <bruno@clisp.org>
27467
27468         stdlib: Allow multiple gnulib generated replacements to coexist.
27469         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27470         Reported by Sam Steingold <sds@gnu.org>.
27471
27472 2010-10-11  Jim Meyering  <meyering@redhat.com>
27473
27474         fix a documentation typo
27475         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27476
27477 2010-10-11  Eric Blake  <eblake@redhat.com>
27478
27479         futimens: work around Solaris 11 bug
27480         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27481         * tests/test-futimens.h (test_futimens): Enhance, rather than
27482         weaken test.
27483         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27484
27485 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27486
27487         Indentation.
27488         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27489         higher-level operators more to the left.
27490
27491 2010-10-11  Jim Meyering  <meyering@redhat.com>
27492
27493         test-futimens: avoid unwarranted test failure on Solaris 5.11
27494         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27495         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27496         because it tries to dereference the NULL name argument.
27497
27498 2010-10-11  Bruno Haible  <bruno@clisp.org>
27499
27500         Indentation.
27501         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27502         indentation.
27503
27504 2010-10-11  Jim Meyering  <meyering@redhat.com>
27505
27506         spawn.in.h: make indentation consistent with parentheses
27507         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27508         Make indentation consistent with parentheses.
27509
27510 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27511
27512         Fix mismatched parens in previous commit
27513         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27514         parens.
27515
27516 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27517
27518         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27519
27520         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27521         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27522         * lib/malloca.c: Include "verify.h".
27523         (verify1): Remove, replacing with a verify call.
27524         * lib/relocwrapper.c (verify1): Likewise.
27525         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27526         Likewise.
27527         * modules/malloca (Depends-on): Add 'verify'.
27528         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27529         * modules/vasnprintf (Depends-on): Add 'verify'.
27530         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27531         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27532         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27533         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27534         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27535         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27536         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27537
27538         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27539
27540         Formerly the style was sometimes 2*X - 1, because the C standard
27541         was wrongly thought to disallow ?: in integral constant expressions.
27542         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27543         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27544         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27545         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27546         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27547         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27548         verify that time_t cannot be floating.
27549
27550 2010-10-08  Eric Blake  <eblake@redhat.com>
27551
27552         time: enforce recent POSIX ruling that time_t is integral
27553         * lib/time.in.h (__time_t_must_be_integral): Detect any
27554         problematic systems, allowing the rest of gnulib to assume POSIX.
27555
27556 2010-10-08  Jim Meyering  <meyering@redhat.com>
27557
27558         fdopendir: fix a bug on systems lacking openat and /proc support
27559         OpenBSD 4.7 is one such system.  The most noticeable effect was
27560         failure of any application making nontrivial use of fts: rm, du,
27561         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27562           ./rm: traversal failed: `a': Bad file descriptor
27563         Debugging that, you see that even though FD 6 was closed just
27564         prior to the opendir call in fd_clone_opendir, its resulting
27565         dir->dd_fd was 8, rather than the expected value of 6:
27566
27567         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27568         93                close (fd);
27569         (gdb) n
27570         94                dir = fd_clone_opendir (dupfd);
27571         (gdb) n
27572         95                saved_errno = errno;
27573         (gdb) p dir->dd_fd
27574         $11 = 8
27575
27576         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27577         The problem is that on OpenBSD, fd_clone_opendir has to resort
27578         to using the old-style save/restore CWD mechanism, due to its
27579         lack of openat/proc support, and *that* would steal the FD (6)
27580         that opendir was supposed to use.
27581
27582         The fix is to squirrel away the desired FD so that save_cwd uses a
27583         different one, and then free the dest FD right before calling opendir.
27584         That guarantees opendir will use the required file descriptor.
27585
27586         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
27587
27588 2010-10-08  Bruno Haible  <bruno@clisp.org>
27589
27590         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
27591         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
27592
27593 2010-10-08  Bruno Haible  <bruno@clisp.org>
27594
27595         nanosleep: Make replacement POSIX compliant.
27596         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
27597         is out of range.
27598         Reported by Jim Meyering.
27599
27600 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27601
27602         bootstrap: add hook for altering gnulib.mk, for Bison
27603         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
27604         the Bison bootstrapping process can rewrite file names and variables
27605         in this file before later parts of 'bootstrap' use the file.
27606         Bison wants to include lib/gnulib.mk from the top-level makefile,
27607         so it needs the file names in this file to be relative to the top
27608         level, not relative to lib; plus it needs variable names to be
27609         rewritten.
27610         (slurp): Use the new function.
27611
27612         bootstrap: reformat for readability
27613         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
27614
27615 2010-10-08  Eric Blake  <eblake@redhat.com>
27616
27617         docs: update cygwin progress
27618         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
27619         1.7.7.
27620         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
27621         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
27622         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
27623         * doc/posix-functions/carg.texi (carg): Likewise.
27624         * doc/posix-functions/cargf.texi (cargf): Likewise.
27625         * doc/posix-functions/casin.texi (casin): Likewise.
27626         * doc/posix-functions/casinf.texi (casinf): Likewise.
27627         * doc/posix-functions/casinh.texi (casinh): Likewise.
27628         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
27629         * doc/posix-functions/catan.texi (catan): Likewise.
27630         * doc/posix-functions/catanf.texi (catanf): Likewise.
27631         * doc/posix-functions/catanh.texi (catanh): Likewise.
27632         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
27633         * doc/posix-functions/ccos.texi (ccos): Likewise.
27634         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
27635         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
27636         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
27637         * doc/posix-functions/cexp.texi (cexp): Likewise.
27638         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
27639         * doc/posix-functions/cimag.texi (cimag): Likewise.
27640         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
27641         * doc/posix-functions/clog.texi (clog): Likewise.
27642         * doc/posix-functions/clogf.texi (clogf): Likewise.
27643         * doc/posix-functions/conj.texi (conj): Likewise.
27644         * doc/posix-functions/conjf.texi (conjf): Likewise.
27645         * doc/posix-functions/cpow.texi (cpow): Likewise.
27646         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
27647         * doc/posix-functions/cproj.texi (cproj): Likewise.
27648         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
27649         * doc/posix-functions/creal.texi (creal): Likewise.
27650         * doc/posix-functions/crealf.texi (crealf): Likewise.
27651         * doc/posix-functions/csin.texi (csin): Likewise.
27652         * doc/posix-functions/csinf.texi (csinf): Likewise.
27653         * doc/posix-functions/csinh.texi (csinh): Likewise.
27654         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
27655         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
27656         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
27657         * doc/posix-functions/ctan.texi (ctan): Likewise.
27658         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
27659         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
27660         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
27661         * doc/posix-headers/complex.texi (complex.h): Likewise.
27662
27663 2010-10-07  Jim Meyering  <meyering@redhat.com>
27664
27665         parse-datetime: avoid compilation failure on OpenBSD 4.7
27666         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
27667         This works around a compilation failure on OpenBSD 4.7:
27668         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
27669
27670 2010-10-07  Eric Blake  <eblake@redhat.com>
27671
27672         docs: update cygwin progress
27673         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
27674         1.7.6.
27675         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27676         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
27677         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
27678         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
27679         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
27680         Likewise.
27681         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
27682         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
27683         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
27684         Likewise.
27685         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
27686         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
27687         Likewise.
27688         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
27689         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
27690         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
27691         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
27692         Likewise.
27693         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
27694         Likewise.
27695         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
27696
27697         docs: update parse-datetime history
27698         * doc/parse-datetime.texi (Authors of parse_datetime): Better
27699         documentation of this function's history and alternatives.
27700
27701         cygwin: use more robust version check
27702         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
27703         exclude an eventual cygwin 1.9.1.
27704         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27705         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27706         (gl_FUNC_STRCASESTR): Likewise.
27707         Reported by Bruno Haible.
27708
27709 2010-10-06  Bruno Haible  <bruno@clisp.org>
27710
27711         string, sys_select: Avoid #including large headers unless necessary.
27712         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
27713         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
27714         OSF/1, BeOS, Haiku.
27715         Reported by Jim Meyering.
27716
27717 2010-10-05  Eric Blake  <eblake@redhat.com>
27718
27719         memmem, strstr, strcasestr: fix bug with long periodic needle
27720         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
27721         periodic needle having false positive.
27722         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
27723         and cygwin 1.7.7.
27724         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
27725         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27726         (gl_FUNC_STRCASESTR): Likewise.
27727         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27728         * tests/test-memmem.c (main): Expose the bug.
27729         * tests/test-strcasestr.c (main): Likewise.
27730         * tests/test-strstr.c (main): Likewise.
27731         * tests/test-c-strcasestr.c (main): Likewise.
27732         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
27733         * doc/posix-functions/strstr.texi (strstr): Likewise.
27734         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27735         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
27736
27737 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27738
27739         parse-datetime: do some more renaming
27740         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
27741         parse_datetime, not get_date.  Mention the renaming.
27742         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
27743         in comments.
27744         * m4/bison.m4: Likewise.
27745
27746 2010-10-05  Eric Blake  <eblake@redhat.com>
27747
27748         parse-datetime: better name than get_date
27749         * NEWS: Reword the deprecation notice.
27750         * modules/get_date: Rename to modules/parse-datetime.
27751         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
27752         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
27753         * lib/get_date.y: Rename to lib/parse-datetime.y.
27754         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
27755         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
27756         * doc/getdate.texi: Provide fallback wrapper.
27757         * lib/getdate.h: Move guts, and wrap...
27758         * lib/parse-datetime.h: ...new file.
27759         * lib/parse-datetime.y (get_date): Rename...
27760         (parse_datetime): ...to this.
27761         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
27762         (gl_PARSE_DATETIME): ...to this.
27763         * doc/posix-functions/getdate.texi (get_date): Provide fallback
27764         documentation.
27765         * modules/getdate (Files): Provide fallback docs and header.
27766         (Notice, Depends-on): Update references.
27767         * tests/test-parse-datetime.c: Likewise.
27768         * DEPENDENCIES: Likewise.
27769         * MODULES.html.sh (Date and time <time.h>): Likewise.
27770         * doc/parse-datetime.texi (Date input formats)
27771         (Authors of parse_datetime): Likewise.
27772         * modules/parse-datetime (Files, configure.ac, Makefile.am)
27773         (Include): Likewise.
27774         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
27775         * gnulib-tool: Likewise.
27776         * m4/bison.m4 (gl_BISON): Likewise.
27777         Suggested by Bruno Haible.
27778
27779 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27780
27781         more ports to Solaris tr, which needs [] around ranges
27782         * gnulib-tool: Solaris tr needs [] around ranges.
27783         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27784         * tests/test-pipe-filter-gi1.c (main): Likewise.
27785         * tests/test-pipe-filter-ii1.c (main): Likewise.
27786
27787 2010-10-05  Eric Blake  <eblake@redhat.com>
27788
27789         bootstrap: fix Solaris regression
27790         * build-aux/bootstrap (check_versions): Solaris tr still needs []
27791         around ranges.
27792         Reported by Pádraig Brady.
27793
27794         bootstrap: work with pkg-config
27795         * build-aux/bootstrap (check_versions): Also transliterate - in
27796         prerequisite name.
27797         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
27798         prerequisites that were already found, to avoid confusion.
27799         Reported by Justin Clift.
27800
27801         faccessat: remove unused wrappers
27802         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
27803         presence of these wrappers dragged in -lgen on Solaris.
27804         Reported by Clemens Brogi; fix suggested by Paul Eggert.
27805
27806 2010-10-05  Jim Meyering  <meyering@redhat.com>
27807
27808         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
27809         * Makefile (sc_pragma_columns): New syntax-check rule.
27810
27811 2010-10-04  Bruno Haible  <bruno@clisp.org>
27812
27813         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
27814         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
27815         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
27816         Reported by Bruce Korb and Eric Blake.
27817
27818 2010-10-04  Bruno Haible  <bruno@clisp.org>
27819
27820         threadlib: Make option --with-libpth-prefix work.
27821         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
27822         use $LIBPTH, not just -lpth.
27823
27824 2010-10-04  Bruno Haible  <bruno@clisp.org>
27825
27826         Avoid line length limitation from HP NonStop system header files.
27827         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
27828         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
27829         * lib/ctype.in.h: Likewise.
27830         * lib/dirent.in.h: Likewise.
27831         * lib/errno.in.h: Likewise.
27832         * lib/fcntl.in.h: Likewise.
27833         * lib/float.in.h: Likewise.
27834         * lib/getopt.in.h: Likewise.
27835         * lib/iconv.in.h: Likewise.
27836         * lib/inttypes.in.h: Likewise.
27837         * lib/langinfo.in.h: Likewise.
27838         * lib/locale.in.h: Likewise.
27839         * lib/math.in.h: Likewise.
27840         * lib/netdb.in.h: Likewise.
27841         * lib/netinet_in.in.h: Likewise.
27842         * lib/poll.in.h: Likewise.
27843         * lib/pthread.in.h: Likewise.
27844         * lib/pty.in.h: Likewise.
27845         * lib/sched.in.h: Likewise.
27846         * lib/se-selinux.in.h: Likewise.
27847         * lib/search.in.h: Likewise.
27848         * lib/signal.in.h: Likewise.
27849         * lib/spawn.in.h: Likewise.
27850         * lib/stdarg.in.h: Likewise.
27851         * lib/stddef.in.h: Likewise.
27852         * lib/stdint.in.h: Likewise.
27853         * lib/stdio.in.h: Likewise.
27854         * lib/stdlib.in.h: Likewise.
27855         * lib/string.in.h: Likewise.
27856         * lib/strings.in.h: Likewise.
27857         * lib/sys_file.in.h: Likewise.
27858         * lib/sys_ioctl.in.h: Likewise.
27859         * lib/sys_select.in.h: Likewise.
27860         * lib/sys_socket.in.h: Likewise.
27861         * lib/sys_stat.in.h: Likewise.
27862         * lib/sys_time.in.h: Likewise.
27863         * lib/sys_times.in.h: Likewise.
27864         * lib/sys_utsname.in.h: Likewise.
27865         * lib/sys_wait.in.h: Likewise.
27866         * lib/sysexits.in.h: Likewise.
27867         * lib/termios.in.h: Likewise.
27868         * lib/time.in.h: Likewise.
27869         * lib/unistd.in.h: Likewise.
27870         * lib/wchar.in.h: Likewise.
27871         * lib/wctype.in.h: Likewise.
27872         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
27873         * modules/ctype (Makefile.am): Likewise.
27874         * modules/dirent (Makefile.am): Likewise.
27875         * modules/errno (Makefile.am): Likewise.
27876         * modules/fcntl-h (Makefile.am): Likewise.
27877         * modules/float (Makefile.am): Likewise.
27878         * modules/getopt-posix (Makefile.am): Likewise.
27879         * modules/iconv-h (Makefile.am): Likewise.
27880         * modules/inttypes (Makefile.am): Likewise.
27881         * modules/langinfo (Makefile.am): Likewise.
27882         * modules/locale (Makefile.am): Likewise.
27883         * modules/math (Makefile.am): Likewise.
27884         * modules/netdb (Makefile.am): Likewise.
27885         * modules/netinet_in (Makefile.am): Likewise.
27886         * modules/poll-h (Makefile.am): Likewise.
27887         * modules/pthread (Makefile.am): Likewise.
27888         * modules/pty (Makefile.am): Likewise.
27889         * modules/sched (Makefile.am): Likewise.
27890         * modules/search (Makefile.am): Likewise.
27891         * modules/selinux-h (Makefile.am): Likewise.
27892         * modules/signal (Makefile.am): Likewise.
27893         * modules/spawn (Makefile.am): Likewise.
27894         * modules/stdarg (Makefile.am): Likewise.
27895         * modules/stddef (Makefile.am): Likewise.
27896         * modules/stdint (Makefile.am): Likewise.
27897         * modules/stdio (Makefile.am): Likewise.
27898         * modules/stdlib (Makefile.am): Likewise.
27899         * modules/string (Makefile.am): Likewise.
27900         * modules/strings (Makefile.am): Likewise.
27901         * modules/sys_file (Makefile.am): Likewise.
27902         * modules/sys_ioctl (Makefile.am): Likewise.
27903         * modules/sys_select (Makefile.am): Likewise.
27904         * modules/sys_socket (Makefile.am): Likewise.
27905         * modules/sys_stat (Makefile.am): Likewise.
27906         * modules/sys_time (Makefile.am): Likewise.
27907         * modules/sys_times (Makefile.am): Likewise.
27908         * modules/sys_utsname (Makefile.am): Likewise.
27909         * modules/sys_wait (Makefile.am): Likewise.
27910         * modules/sysexits (Makefile.am): Likewise.
27911         * modules/termios (Makefile.am): Likewise.
27912         * modules/time (Makefile.am): Likewise.
27913         * modules/unistd (Makefile.am): Likewise.
27914         * modules/wchar (Makefile.am): Likewise.
27915         * modules/wctype (Makefile.am): Likewise.
27916
27917 2010-10-04  Bruno Haible  <bruno@clisp.org>
27918
27919         read-file tests: Avoid a test failure on NonStop Kernel.
27920         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
27921         a regular file.
27922         Reported by Joachim Schmitz <schmitz@hp.com>.
27923
27924 2010-10-03  Bruno Haible  <bruno@clisp.org>
27925
27926         gnulib-tool: Fixes for --create-testdir with --libtool.
27927         * gnulib-tool (func_get_automake_snippet): Don't augment
27928         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
27929         an executable.
27930         (func_create_testdir): Handle module 'alloca' like func_import.
27931         Reported by Bruce Korb <bruce.korb@gmail.com>.
27932
27933 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27934
27935         Avoid some lines longer than 80 characters.
27936         * lib/stdint.in.h: Break long comment lines.
27937         * lib/math.in.h: Likewise.
27938         (_GL_NUM_UINT_WORDS): New macro, for readability.
27939         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
27940         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
27941         * lib/stdlib.in.h: Likewise.
27942         * lib/spawn.in.h: Likewise.
27943         * lib/sys_socket.in.h: Update an URL.
27944         * lib/sys_stat.in.h: Break long line.
27945
27946 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
27947
27948         Improve pmccabe2html.
27949         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
27950         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
27951         when the sources change. Remove the line in the HTML about "Used
27952         ranges" (which implied that there might be other unused ranges),
27953         rename "Resume" to "Summary" (easier to understand for more users).
27954         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
27955         styles, and some unnecessary blank lines.
27956
27957 2010-10-03  Bruno Haible  <bruno@clisp.org>
27958             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
27959
27960         acl: Add support for ACLs on NonStop Kernel.
27961         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
27962         Check whether the function aclsort() exists.
27963         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
27964         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
27965         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27966         (acl_nontrivial [HAVE_ACLSORT]: New function.
27967         (file_has_acl): Implement for NonStop Kernel.
27968         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27969         (qset_acl): Implement for NonStop Kernel.
27970         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
27971         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27972         (main): Implement for NonStop Kernel.
27973         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
27974         Kernel. Handle this flavor.
27975         * tests/test-set-mode-acl.sh: Likewise.
27976         * tests/test-copy-acl.sh: Likewise.
27977         * tests/test-copy-file.sh: Likewise.
27978
27979 2010-10-03  Bruno Haible  <bruno@clisp.org>
27980
27981         Info about ACLs on NonStop Kernel.
27982         * doc/acl-resources.txt: Add info about NonStop Kernel.
27983         References by Joachim Schmitz <schmitz@hp.com>.
27984
27985 2010-10-02  Bruno Haible  <bruno@clisp.org>
27986
27987         Define missing EDQUOT on NonStop Kernel.
27988         * lib/errno.in.h (EDQUOT): Assign a value if missing.
27989         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
27990         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
27991         missing.
27992         * doc/posix-headers/errno.texi: Mention the NSK bug.
27993         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
27994         Reported by Joachim Schmitz <schmitz@hp.com>.
27995
27996 2010-10-02  Bruno Haible  <bruno@clisp.org>
27997
27998         Update doc for POSIX:2008.
27999         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28000         Update URL of POSIX specification.
28001
28002 2010-10-02  Bruno Haible  <bruno@clisp.org>
28003
28004         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28005         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28006         from gnulib, not from Automake.
28007
28008 2010-10-02  Bruno Haible  <bruno@clisp.org>
28009
28010         New module 'system-posix'.
28011         * modules/system-posix: New file.
28012         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28013         module is present.
28014         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28015         GNULIB_SYSTEM_POSIX.
28016         * modules/stdlib (Depends-on): Remove sys_wait.
28017         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28018         * doc/posix-functions/system.texi: Mention the new module.
28019         * doc/posix-headers/stdlib.texi: Likewise.
28020         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28021         define test_sys_wait_macros to a no-op.
28022         Reported by Sam Steingold <sds@gnu.org>.
28023
28024 2010-09-30  Bruno Haible  <bruno@clisp.org>
28025
28026         More renaming from 'getdate' to 'get_date'.
28027         * doc/get_date.texi: Renamed from doc/getdate.texi.
28028         * modules/get_date (Files): Update.
28029         * MODULES.html.sh (Date and time <time.h>): Update.
28030         * DEPENDENCIES: Update.
28031         * gnulib-tool: Update comment.
28032         * m4/bison.m4 (gl_BISON): Likewise.
28033         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28034
28035 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28036
28037         bootstrap: support ACLOCAL_FLAGS during aclocal
28038         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28039         can add additional -I dir for third-party .m4 files.
28040
28041 2010-09-30  Eric Blake  <eblake@redhat.com>
28042
28043         bootstrap: use glibtoolize on MacOS
28044         * build-aux/bootstrap (check_versions): Convert libtool into
28045         libtoolize.
28046         (tool search): Move libtool check earlier, and look for
28047         glibtoolize for MacOS.
28048         (gnulib_tool_options): Auto-add --libtool when appropriate.
28049         Reported by Justin Clift.
28050
28051         poll: fix typo that broke test on MacOS
28052         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28053         Reported by Justin Clift.
28054
28055         getdate: rename to get_date
28056         Note: getdate.h is not renamed, to minimize client impact.
28057         * modules/getdate: Mark obsolete.  Move old contents...
28058         * modules/get_date: ...to new module name.
28059         * modules/getdate-tests: Move...
28060         * modules/get_date-tests: ...here.
28061         * m4/getdate.m4: Move...
28062         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28063         * lib/getdate.y: Move...
28064         * lib/get_date.y: ...here.
28065         * tests/test-getdate.c: Move...
28066         * tests/test-get_date.c: ...here.
28067         * doc/posix-functions/getdate.texi (getdate): Update name.
28068         * NEWS: Mention the change.
28069
28070 2010-09-29  Bruno Haible  <bruno@clisp.org>
28071
28072         Separate the module 'waitpid' from the module 'sys_wait'.
28073         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28074         present.
28075         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28076         gl_MODULE_INDICATOR_FOR_TESTS.
28077         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28078         * modules/sys_wait (Depends-on): Remove waitpid.
28079         (Makefile.am): Substitute GNULIB_WAITPID.
28080         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28081         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28082         signature only if the 'waitpid' module is present.
28083         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28084         * NEWS: Mention the change.
28085         * modules/grantpt (Depends-on): Add waitpid.
28086         * modules/wait-process (Depends-on): Likewise.
28087
28088 2010-09-29  Bruno Haible  <bruno@clisp.org>
28089
28090         More tests for module 'sys_wait'.
28091         * modules/sys_wait-c++-tests: New file.
28092         * tests/test-sys_wait-c++.cc: New file.
28093         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28094         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28095
28096 2010-09-29  Bruno Haible  <bruno@clisp.org>
28097
28098         New module 'waitpid'.
28099         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28100         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28101         Don't include <process.h>.
28102         (waitpid): Declare only, using modern idiom.
28103         * m4/waitpid.m4: New file.
28104         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28105         * modules/waitpid: New file.
28106         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28107         (Makefile.am): Update.
28108         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28109
28110 2010-09-28  Bruno Haible  <bruno@clisp.org>
28111
28112         poll: Assume ANSI C.
28113         * lib/poll.c (poll): Use an ANSI C declaration.
28114
28115 2010-09-28  Bruno Haible  <bruno@clisp.org>
28116
28117         poll-h: Create poll.h on all platforms.
28118         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28119         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28120         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28121         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28122         (gl_REPLACE_POLL_H): Don't set POLL_H.
28123         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28124         * modules/poll-h (Depends-on): Add include_next.
28125         (Makefile.am): Create poll.h unconditionally. Substitute also
28126         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28127
28128 2010-09-28  Bruno Haible  <bruno@clisp.org>
28129
28130         Tests for module 'poll-h'.
28131         * modules/poll-h-c++-tests: New file.
28132         * tests/test-poll-h-c++.cc: New file.
28133
28134         Tests for module 'poll-h'.
28135         * modules/poll-h-tests: New file.
28136         * tests/test-poll-h.c: New file.
28137
28138 2010-09-28  Bruno Haible  <bruno@clisp.org>
28139
28140         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28141         * modules/poll-h (Depends-on): Add 'extensions'.
28142
28143 2010-09-28  Bruno Haible  <bruno@clisp.org>
28144
28145         New module 'poll-h'.
28146         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28147         (poll): Use modern idiom.
28148         * modules/poll-h: New file.
28149         * modules/poll (Files): Remove lib/poll.in.h.
28150         (Depends-on): Add poll-h.
28151         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28152         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28153         * m4/poll_h.m4: New file.
28154         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28155         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28156         and invoke gl_REPLACE_POLL_H.
28157         * lib/poll.c: Use common idiom.
28158         * tests/test-poll.c: Likewise.
28159         * doc/posix-headers/poll.texi: Mention the poll-h module.
28160         Suggested by Eric Blake.
28161
28162 2010-09-26  Bruno Haible  <bruno@clisp.org>
28163
28164         sys_wait: Implement WSTOPSIG.
28165         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28166         Reported by Simon Josefsson.
28167
28168 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28169
28170         stdlib, sys_wait: Avoid compilation error on mingw.
28171         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28172
28173 2010-09-26  Bruno Haible  <bruno@clisp.org>
28174
28175         stdlib tests: Avoid code duplication.
28176         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28177         * modules/sys_wait-tests (Files): Likewise.
28178         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28179         * tests/test-stdlib.c: Include test-sys_wait.h.
28180         (main): Invoke test_sys_wait_macros.
28181         * tests/test-sys_wait.c: Include test-sys_wait.h.
28182         (main): Invoke test_sys_wait_macros.
28183
28184 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28185
28186         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28187         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28188         sure Windows sockets are working before calling getaddrinfo.
28189         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28190         * doc/gnulib.texi (Windows sockets): Fix typo.
28191
28192 2010-09-25  Bruno Haible  <bruno@clisp.org>
28193
28194         Tests for module 'regex-quote'.
28195         * modules/regex-quote-tests: New file.
28196         * tests/test-regex-quote.c: New file.
28197
28198         New module 'regex-quote'.
28199         * lib/regex-quote.h: New file.
28200         * lib/regex-quote.c: New file.
28201         * modules/regex-quote: New file.
28202         Suggested by Reuben Thomas <rrt@sc3d.org>.
28203
28204 2010-09-24  Bruno Haible  <bruno@clisp.org>
28205
28206         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28207         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28208
28209 2010-09-23  Bruno Haible  <bruno@clisp.org>
28210
28211         setenv: Relax license.
28212         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28213         Blake.
28214         Requested by Eric Blake.
28215
28216 2010-09-22  Bruno Haible  <bruno@clisp.org>
28217
28218         termios: Relax license.
28219         * modules/termios (License): Change to LGPLv2+.
28220         Requested by Eric Blake.
28221
28222 2010-09-22  Bruno Haible  <bruno@clisp.org>
28223
28224         threadlib: Allow the package to change the default to 'no'.
28225         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28226         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28227         Reported by Paul Eggert.
28228
28229 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28230             Bruno Haible  <bruno@clisp.org>
28231
28232         Fix endless loop in mbmemcasecoll.
28233         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28234         byte.
28235         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28236
28237 2010-09-22  Bruno Haible  <bruno@clisp.org>
28238
28239         Tests for module 'memcoll'.
28240         * modules/memcoll-tests: New file.
28241         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28242
28243         memcoll, xmemcoll: Clarify size vs. length.
28244         * modules/memcoll.c (memcoll0): Clarify specification.
28245         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28246         passed to collate_error.
28247
28248 2010-09-22  Bruno Haible  <bruno@clisp.org>
28249
28250         Tests for module 'memcasecmp'.
28251         * modules/memcasecmp-tests: New file.
28252         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28253
28254 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28255
28256         * lib/pthread.in.h: Add split double-inclusion guard, and include
28257         system <pthread.h> if there is one.  Use @@-style as in other
28258         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28259         pthread.h doesn't.
28260         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28261         (pthread_mutexattr_settype, pthread_mutex_trylock):
28262         New static inline functions, if there's no system <pthread.h>.
28263         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28264         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28265         Approximate with mutexes if the system lacks spinlocks, as in
28266         MacOS.
28267         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28268         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28269         @@-style.  Check for spinlocks separately.
28270         (gl_PTHREAD_DEFAULTS): New macro.
28271         * modules/pthread: Redo to use a more typical style for in.h files.
28272
28273 2010-09-21  Eric Blake  <eblake@redhat.com>
28274
28275         net_if: enhance tests
28276         * tests/test-net_if.c (main): Move signature checks earlier.
28277         Print failures to stderr.
28278         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28279         Document the bug that we do not yet fix.
28280
28281 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28282
28283         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28284         about gnulib, not GSS.
28285
28286 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28287
28288         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28289         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28290         for Emacs.
28291         * build-aux/pmccabe2html: Make Makefile.am example code more
28292         cut-and-paste friendly.
28293
28294 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28295
28296         * tests/test-net_if.c: New file.
28297         * modules/net_if-tests: New file.
28298
28299 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28300
28301         pthread: add pthread_spin_destroy
28302         * lib/pthread.in.h (pthread_spin_destroy): New function.
28303
28304 2010-09-19  Bruno Haible  <bruno@clisp.org>
28305
28306         gnulib-tool: Fix --help output.
28307         * gnulib-tool (func_usage): Fix help message.
28308         Reported by Reuben Thomas <rrt@sc3d.org>.
28309
28310 2010-09-18  Jim Meyering  <meyering@redhat.com>
28311
28312         maint.mk: avoid unexpanded \n in two diagnostics
28313         * top/maint.mk (sc_prohibit_always_true_header_tests):
28314         Don't use a literal \n in a halt=... assignment.  It would not be
28315         expanded, and the two \n bytes would appear in the diagnostic output
28316         rather than the desired newline.  Use halt=$$(printf ... instead.
28317         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28318
28319 2010-09-18  Bruno Haible  <bruno@clisp.org>
28320
28321         netinet_in: Doc tweak.
28322         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28323         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28324
28325 2010-09-18  Jim Meyering  <meyering@redhat.com>
28326
28327         init.sh: correct an outdated comment
28328         * tests/init.sh (create_exe_shims_):  s/function/alias/
28329
28330         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28331         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28332         a file named "*.exe" is removed between the glob expansion and the
28333         processing of that oddly named file.
28334
28335 2010-09-17  Eric Blake  <eblake@redhat.com>
28336
28337         mirbsd: add some more support
28338         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28339         in BSD family.
28340         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28341         devices as OpenBSD.
28342         * m4/host-os.m4 (mirbsd): Add MirBSD.
28343
28344         tests: fix unportable assumption on sys/wait.h
28345         * tests/test-sys_wait.c (main): Relax test.
28346         * tests/test-stdlib.c (main): Likewise.
28347
28348         init.sh: accommodate directory with no .exes
28349         * tests/init.sh: Accomodate directory containing only scripts.
28350
28351         tests: avoid compiler warning
28352         * tests/test-stdlib.c (main): Use the variable.
28353
28354         fdutimens, fdutimensat: update signature, again
28355         * lib/utimens.h (gl_futimens): Delete, and move signature...
28356         (fdutimens): ...here.
28357         (fdutimensat): Rearrange signature.
28358         (lutimensat): Rename variable for clarity.
28359         * lib/fdutimensat.c (fdutimensat): Update signature.
28360         * lib/utimens.c (fdutimens): Likewise.
28361         (gl_futimens): Delete.
28362         (utimens, lutimens): Update callers.
28363         * lib/futimens.c (futimens): Likewise.
28364         * tests/test-fdutimensat.c: Likewise.
28365         * tests/test-utimens.c: Likewise.
28366         * tests/test-futimens.h: Update comment.
28367         * NEWS: Mention this.
28368         Suggested by Paul Eggert.
28369
28370 2010-09-17  Bruno Haible  <bruno@clisp.org>
28371
28372         Take over the maintenance of some older macros from Autoconf.
28373         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28374         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28375         GNU Autoconf.
28376         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28377         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28378
28379 2010-09-17  Eric Blake  <eblake@redhat.com>
28380
28381         fdutimensat: drop atflag validation
28382         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28383         with valid fd, to close a race scenario where futimens is
28384         unsupported and FILE was replaced by a symlink.
28385         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28386         accordingly.
28387         Suggested by Paul Eggert.
28388
28389 2010-09-16  Bruno Haible  <bruno@clisp.org>
28390
28391         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28392         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28393
28394 2010-09-16  Bruno Haible  <bruno@clisp.org>
28395
28396         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28397         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28398         login_tty exists.
28399         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28400
28401 2010-09-16  Bruno Haible  <bruno@clisp.org>
28402
28403         login_tty: Make the replacement code work on BSD systems.
28404         * lib/login_tty.c: Include <sys/ioctl.h>.
28405         (login_tty): Use ioctl TIOCSCTTY when available.
28406         * modules/login_tty (Depends-on): Add sys_ioctl.
28407         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28408
28409 2010-09-16  Bruno Haible  <bruno@clisp.org>
28410
28411         login_tty: Stricter unit test.
28412         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28413         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28414         and tcgetsid() after login_tty.
28415         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28416
28417 2010-09-16  Bruno Haible  <bruno@clisp.org>
28418
28419         New module 'tcgetsid'.
28420         * lib/tcgetsid.c: New file.
28421         * m4/tcgetsid.m4: New file.
28422         * modules/tcgetsid: New file.
28423         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28424         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28425         GNULIB_TCGETSID, HAVE_TCGETSID.
28426         * lib/termios.in.h: Include <sys/types.h>.
28427         (tcgetsid): New declaration.
28428         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28429         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28430         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28431         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28432
28433 2010-09-16  Bruno Haible  <bruno@clisp.org>
28434
28435         Tests for module 'termios'.
28436         * modules/termios-c++-tests: New file.
28437         * modules/termios-tests: New file.
28438         * tests/test-termios-c++.cc: New file.
28439         * tests/test-termios.c: New file.
28440
28441         New module 'termios'.
28442         * modules/termios: New file.
28443         * lib/termios.in.h: New file.
28444         * m4/termios_h.m4: New file.
28445         * doc/posix-headers/termios.texi: Mention the new module.
28446
28447 2010-09-16  Eric Blake  <eblake@redhat.com>
28448
28449         fdutimensat: add an atflag parameter
28450         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28451         * lib/utimens.h (fdutimensat): Update prototype.
28452         * tests/test-fdutimensat.c: Adjust test to match.
28453         * NEWS: Document the change.
28454         Suggested by Paul Eggert.
28455
28456 2010-09-16  Bruno Haible  <bruno@clisp.org>
28457
28458         Fix typos in comments.
28459         * lib/striconveh.h: Fix typo in comment.
28460         * lib/login_tty.c (login_tty): Likewise.
28461
28462 2010-09-15  Bruno Haible  <bruno@clisp.org>
28463
28464         stdlib: clarify MirBSD WEXITSTATUS bug
28465         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28466         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28467
28468 2010-09-15  Eric Blake  <eblake@redhat.com>
28469
28470         stdlib: work around MirBSD WEXITSTATUS bug
28471         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28472         * modules/stdlib (Depends-on): Add sys_wait.
28473         * tests/test-sys_wait.c (main): Enhance test.
28474         * tests/test-stdlib.c (main): Likewise.
28475         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28476
28477         docs: mention MacOS issue with WEXITSTATUS(constant)
28478         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28479         issue.
28480         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28481
28482         strnlen: add tests
28483         * modules/strnlen-tests: New file.
28484         * tests/test-strnlen.c: Likewise.
28485
28486 2010-09-14  Bruno Haible  <bruno@clisp.org>
28487
28488         unistr/base: Avoid link errors when module 'libunistring' is also used.
28489         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28490         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28491         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28492         Declare also when HAVE_LIBUNISTRING is set.
28493         Reported by Pádraig Brady <P@draigbrady.com>.
28494
28495 2010-09-14  Eric Blake  <eblake@redhat.com>
28496
28497         test-rawmemchr: make more robust
28498         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28499         (Depends-on, configure.ac): Add needed prerequisites to use it.
28500         * modules/memchr-tests (Files, Depends-on, configure.ac):
28501         Likewise, to avoid implicit reliance on memchr module prereqs.
28502         * tests/test-memchr.c (main): Ensure proper masking.
28503         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28504         reads.
28505
28506         memchr: detect glibc Alpha bug
28507         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28508         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28509         Alpha.
28510         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28511         * tests/test-memchr.c (main): Enhance test.
28512         Reported by Nelson H. F. Beebe.
28513
28514 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28515
28516         fts, getcwd, glob: audit for dirfd returning -1
28517         * lib/fts.c (opendir): Remove #define; no longer used.
28518         (opendirat): New arg PDIR_FD.  All callers changed.
28519         (fts_build, _opendir2): Use new opendirat to avoid the need for
28520         dirfd, or for checking whether dirfd returns a negative value.
28521         Don't use opendir; always use openat followed by fdopendir.
28522         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28523         it.
28524         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28525         returns -1 here.
28526         * modules/fts (Depends-on): Remove dirfd.
28527         * modules/getcwd (Depends-on): Likewise.
28528
28529 2010-09-13  Eric Blake  <eblake@redhat.com>
28530
28531         float: fix broken MirBSD header
28532         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28533         * doc/posix-headers/float.texi (float.h): Document it.
28534
28535 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28536
28537         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28538         * lib/fts.c (opendirat): New arg extra_flags.
28539         (__opendir2): Use it to avoid following symlinks when opening
28540         a directory, if symlinks are not supposed to be followed.  See
28541         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28542
28543         fdopendir: preserve argument fd before returning
28544         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28545         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28546         (fdopendir): Use them, arranging for FD to be open to the same
28547         directory that it was when it started.  (It might be temporarily
28548         closed while fdopendir is running, so this not thread- or
28549         signal-safe.)  Be careful to do the right thing even when file
28550         descriptors are scarce and dup fails with errno == EMFILE.  See
28551         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28552
28553 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28554
28555         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28556         * NEWS: Document change.
28557         * m4/regex.m4: Disable test for regoff_t size.
28558
28559 2010-09-13  Jim Meyering  <meyering@redhat.com>
28560
28561         fts: don't operate on an invalid file descriptor after failed dup
28562         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28563         negative file descriptor.
28564
28565 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28566
28567         savedir: add streamsavedir, deprecate fdsavedir
28568         * NEWS: Mention deprecation of fdsavedir.
28569         * lib/savedir.c (streamsavedir): New extern function, whose name
28570         ends in "savedir" to be consistent with the others.  This differs
28571         from savedirstream in that it doesn't close its argument.  The
28572         next version of GNU tar will use this instead of fdsavedir, to
28573         avoid some race conditions and conserve file descriptors.
28574         (savedirstream): Reimplement as a wrapper around streamsavedir.
28575         (fdsavedir): Add a comment deprecating this function.  As far as
28576         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28577         * lib/savedir.h (streamsavedir): New decl.
28578         (fdsavedir): Add a comment deprecating this.
28579
28580 2010-09-10  Bruno Haible  <bruno@clisp.org>
28581
28582         langinfo: Fix last commit.
28583         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28584         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
28585         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28586
28587 2010-09-10  Bruno Haible  <bruno@clisp.org>
28588
28589         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
28590         * lib/progreloc.c (O_EXEC): Define fallback.
28591
28592 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
28593
28594         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
28595         * NEWS: Document recent changes to fcntl-h.
28596         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
28597         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
28598         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
28599         Similarly for O_SEARCH; this last was already true, but not documented.
28600         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
28601         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
28602         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
28603         Likewise.
28604         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
28605         is zero, not whether it is defined.
28606         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
28607         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
28608         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
28609
28610 2010-09-10  Bruno Haible  <bruno@clisp.org>
28611
28612         langinfo, nl_langinfo: Fix for IRIX 5.3.
28613         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
28614         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
28615         HAVE_LANGINFO_YESEXPR.
28616         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
28617         HAVE_LANGINFO_YESEXPR.
28618         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
28619         HAVE_LANGINFO_T_FMT_AMPM is 0.
28620         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
28621         HAVE_LANGINFO_YESEXPR is 0.
28622         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
28623         NOEXPR.
28624         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
28625         * doc/posix-functions/nl_langinfo.texi: Likewise.
28626         Reported by Eric Blake.
28627
28628 2010-09-10  Bruno Haible  <bruno@clisp.org>
28629
28630         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
28631         * doc/glibc-functions/login_tty.texi: Mention the include file problem
28632         on FreeBSD 8.0 and OpenBSD 4.6.
28633         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
28634         * m4/pty_h.m4 (gl_PTY_H): Likewise.
28635         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
28636         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
28637         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
28638         ac_includes_default.
28639         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28640
28641 2010-09-09  Eric Blake  <eblake@redhat.com>
28642
28643         strsignal: work around NetBSD bug
28644         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
28645         * lib/string.in.h (includes): Likewise.
28646         * doc/posix-functions/strsignal.texi (strsignal): Document the
28647         bug.
28648         Reported by Nelson H. F. Beebe.
28649
28650         gnulib-tool: work with NetBSD /bin/sh
28651         * gnulib-tool (func_cache_var, func_cache_lookup_module)
28652         (func_get_description, func_get_comment, func_get_status)
28653         (func_get_notice, func_get_applicability, func_get_filelist)
28654         (func_get_dependencies, func_get_autoconf_early_snippet)
28655         (func_get_autoconf_snippet, func_get_automake_snippet)
28656         (func_get_include_directive, func_get_link_directive)
28657         (func_get_license, func_get_maintainer, func_import): Avoid
28658         shell syntax errors from parsing syntax extensions.
28659
28660 2010-09-09  Bruno Haible  <bruno@clisp.org>
28661
28662         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28663         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
28664         a reliable way to determine whether the 'alias' command works.
28665
28666 2010-09-08  Jim Meyering  <meyering@redhat.com>
28667
28668         init.sh: penalize a set-x-impaired shell; don't disqualify it
28669         * tests/init.sh: Too many shells corrupt application stderr when
28670         you set -x, so we can't afford to disqualify them, since at least
28671         on Irix-6.5, that would disqualify all bourne shells.
28672         Instead, use a two-pass approach.
28673         On the first pass, try to find a shell that meets the stricter
28674         condition that set -x does not corrupt stderr.
28675         If no shell meets the stricter condition, retest each candidate
28676         shell, but without that extra condition.  Finally, when
28677         VERBOSE=yes is requested and set -x might cause trouble, simply
28678         issue a warning and refrain from enabling debug output.
28679
28680 2010-09-08  Eric Blake  <eblake@redhat.com>
28681
28682         unsetenv: fix OpenBSD bug
28683         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
28684         * doc/posix-functions/unsetenv.texi (unsetenv): Update
28685         documentation.
28686         Reported by Jim Meyering.
28687
28688         strtod: work around IRIX 6.5 bug
28689         * lib/strtod.c (strtod): Reparse number on shorter string if
28690         exponent parse was invalid.
28691         * tests/test-strtod.c (main): Add check for "0x1p 2".
28692         Reported by Tom G. Christensen.
28693
28694         getopt: optimize previous patch
28695         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
28696         empty variable.  Speed up awk script.
28697         Reported by Paolo Bonzini.
28698
28699 2010-09-08  Jim Meyering  <meyering@redhat.com>
28700
28701         test.sh: disqualify shells for which set -x corrupts stderr
28702         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
28703         and OpenBSD 4.7.  They make it so with "set -x", environment settings
28704         appear in stderr output.  For example, this command:
28705             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
28706         prints "P=1" on those two systems:
28707
28708 2010-09-08  Bruno Haible  <bruno@clisp.org>
28709
28710         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28711         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
28712         commands, because some shells ignore redirections when there is an
28713         error in the command lookup.
28714         Reported by Eric Blake.
28715
28716 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
28717
28718         * lib/regex.h: Fix a mention of `regex_compile' (should be
28719         `re_compile_pattern').
28720         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
28721         (re_set_registers): Correct name of parameter in comment.
28722
28723         * doc/regex.texi: Add documentation for missing syntax flags.
28724         Remove commented-out documentation of defunct syntax option
28725         RE_NO_EMPTY_ALTS.
28726         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
28727         Add documentation of re_set_registers.
28728         Document trick to re-use a pattern buffer by setting fastmap manually.
28729         Update documentation of struct re_pattern_buffer per public members.
28730         Uncomment documentation of equivalence class operators and
28731         collating symbol operators, since they are now implemented,
28732         Explain leftmost-longest matching in relation to alternatives.
28733         Tidy documentation of substring matching.
28734         Remove POSIX documentation, which is done better in
28735         glibc, and refer the reader there. Keep BSD API documentation, as
28736         that is not readily available elsewhere.
28737
28738 2010-09-07  Eric Blake  <eblake@redhat.com>
28739
28740         getopt: handle POSIXLY_CORRECT set but not exported
28741         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
28742         export state of POSIXLY_CORRECT, due to bash set -o posix.
28743         Reported by Dustin J. Mitchell.
28744
28745 2010-09-05  Bruno Haible  <bruno@clisp.org>
28746
28747         gnulib-tool: Highlight the changed options.
28748         * gnulib-tool (func_usage): Display the --import, --add-import,
28749         --remove-import explanations in bold font.
28750
28751 2010-09-06  Karl Berry  <karl@gnu.org>
28752
28753         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
28754
28755 2010-09-05  Bruno Haible  <bruno@clisp.org>
28756
28757         uniwidth/width: Update comment.
28758         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
28759         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
28760
28761 2010-09-05  Bruno Haible  <bruno@clisp.org>
28762
28763         isinf, isnan: Relax license.
28764         * modules/isinf (License): Change from GPL to LGPL, with consent from
28765         Ben Pfaff.
28766         * modules/isnan (License): Likewise.
28767         Requested by Ludovic Courtès.
28768
28769 2010-09-04  Bruno Haible  <bruno@clisp.org>
28770
28771         gnulib-tool: Help migration from --import to --add-import or --update.
28772         * gnulib-tool: Emit a verbose error message when --import is used
28773         without any module name.
28774
28775 2010-09-04  Bruno Haible  <bruno@clisp.org>
28776
28777         Update doc about gnulib-tool.
28778         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
28779         'gnulib-tool --update' in more detail.
28780         Reported by Eric Blake.
28781
28782 2010-09-04  Bruno Haible  <bruno@clisp.org>
28783
28784         gnulib-tool: Change --import. New options --add/remove-import.
28785         * gnulib-tool: New options --add-import, --remove-import.
28786         (func_usage): Document them.
28787         (have_associative): Define always.
28788         (func_import): In import mode, don't merge the specified settings with
28789         the cached settings. Implement remove-import mode.
28790         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
28791         Explain when to use them versus --import.
28792         (Simple update): Use --add-import instead of --import.
28793         * NEWS: Mention the change.
28794
28795 2010-09-04  Bruno Haible  <bruno@clisp.org>
28796
28797         * doc/gnulib-tool.texi (Initial import): Update paragraph about
28798         separate gnulib.mk.
28799
28800 2010-09-04  Bruno Haible  <bruno@clisp.org>
28801
28802         gnulib-tool: Don't talk about CVS any more.
28803         * gnulib-tool (func_usage, func_import): Write "version control"
28804         instead of CVS.
28805
28806 2010-09-04  Jim Meyering  <meyering@redhat.com>
28807
28808         maint.mk: avoid obscure sc_copyright_check failure in coreutils
28809         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
28810         false positives (whose names may be ill-chosen) when searching
28811         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
28812         would cause a false-positive.
28813
28814         avoid coreutils "make distcheck" failure
28815         Coreutils tests with an absolute build directory name that contains
28816         a space.  Not quoting this directory name caused a failure.
28817         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
28818         * tests/test-vc-list-files-cvs.sh: Likewise.
28819
28820 2010-09-04  Bruno Haible  <bruno@clisp.org>
28821
28822         gnulib-tool: Avoid error when run in a package without Makefile.am.
28823         * gnulib-tool: When collecting the m4dirs in a package that does not
28824         have a Makefile.am, eliminate those directories that contain no
28825         gnulib-cache.m4. Fix expression that counts these directories.
28826
28827 2010-09-04  Bruno Haible  <bruno@clisp.org>
28828
28829         update-copyright test: Improve output when perl is missing or too old.
28830         * tests/test-update-copyright.sh: Move test of Perl version down after
28831         the test whether Perl exists. Provide an explanation relating Perl's
28832         error message to Automake's SKIP: message.
28833
28834 2010-09-04  Bruno Haible  <bruno@clisp.org>
28835
28836         Don't augment PATH in TESTS_ENVIRONMENT.
28837         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
28838         set abs_aux_dir instead of augmenting PATH.
28839         * modules/vc-list-files-tests (Makefile.am): Likewise.
28840         * tests/test-update-copyright.sh: Augment PATH here.
28841         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
28842         path_prepend_.
28843         * tests/test-vc-list-files-git.sh: Likewise.
28844
28845 2010-09-04  Jim Meyering  <meyering@redhat.com>
28846
28847         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
28848         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
28849
28850 2010-09-04  Bruno Haible  <bruno@clisp.org>
28851
28852         strdup: Fix compilation error in C++ mode.
28853         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
28854         the macro.
28855
28856 2010-09-04  Bruno Haible  <bruno@clisp.org>
28857
28858         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
28859         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
28860         macro into a function.
28861         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28862
28863 2010-09-04  Bruno Haible  <bruno@clisp.org>
28864
28865         Set PATH_SEPARATOR the same way autoconf does.
28866         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
28867         the value of PATH_SEPARATOR the same way autoconf-generated configure
28868         scripts do.
28869         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
28870         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28871
28872 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28873
28874         Set PATH_SEPARATOR the same way autoconf does.
28875         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
28876         the same way autoconf-generated configure scripts do.
28877         * posix-modules: Likewise.
28878
28879 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28880
28881         hash: fix safe_hasher const typo
28882         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
28883         const; otherwise, there is a type error later.
28884
28885 2010-09-02  Jim Meyering  <meyering@redhat.com>
28886
28887         test-update-copyright.sh: require perl 5.8.0
28888         * tests/test-update-copyright.sh: Require 5.8.0,
28889         which Tom G. Christensen has confirmed is adequate,
28890         while 5.6.1 is not.
28891
28892 2010-09-02  Eric Blake  <eblake@redhat.com>
28893
28894         tests: init.sh improvements for re-exec'ing with zsh
28895         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
28896         -vx through shell re-exec.
28897         Reported by Tom G. Christensen.
28898
28899         wctype: fix typo in previous commit
28900         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
28901         Reported by Ludovic Courtès.
28902
28903 2010-09-02  Jim Meyering  <meyering@redhat.com>
28904
28905         test-update-copyright.sh: skip test if Perl is too old
28906         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
28907         Reported by Tom G. Christensen.
28908
28909 2010-09-02  Bruno Haible  <bruno@clisp.org>
28910
28911         wctype: Avoid compilation error on IRIX 6.5.30.
28912         * lib/wctype.in.h (iswblank): Declare with a replacement if
28913         REPLACE_ISWBLANK is set.
28914         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
28915         declared. Set REPLACE_ISWBLANK.
28916         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
28917         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
28918         * doc/posix-headers/wctype.texi: Likewise.
28919         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28920
28921 2010-09-01  Bruno Haible  <bruno@clisp.org>
28922
28923         New module 'socketlib'.
28924         * modules/socketlib: New file.
28925         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
28926         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
28927         * modules/sockets (Depends-on): Add socketlib.
28928         Suggested by Sam Steingold <sds@gnu.org>.
28929
28930 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28931
28932         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
28933
28934         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
28935         when one needs search access to a directory but not read access.
28936         On systems where it is available, it works in some cases where
28937         O_RDONLY does not, namely on directories that are searchable but
28938         not readable, and which need only to be searchable.  If O_SEARCH
28939         is not available, fall back to the traditional method of using
28940         O_RDONLY.
28941
28942         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
28943         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
28944         when opening a directory that needs only to be searchable.
28945         * lib/chdir-safer.c (chdir_no_follow): Likewise.
28946         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
28947         * lib/openat-proc.c (openat_proc_name): Likewise.
28948         * lib/openat.c (openat_needs_fchdir): Likewise.
28949         * lib/save-cwd.c (save_cwd): Likewise.
28950         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
28951
28952 2010-08-28  Bruno Haible  <bruno@clisp.org>
28953
28954         New module 'host-cpu-c-abi'.
28955         * modules/host-cpu-c-abi: New file.
28956         * m4/host-cpu-c-abi.m4: New file, based on part of
28957         clisp/src/m4/general.m4.
28958         Requested by Sam Steingold <sds@gnu.org>.
28959
28960 2010-08-31  Eric Blake  <eblake@redhat.com>
28961         and Jim Meyering  <meyering@redhat.com>
28962
28963         hash: factor, and guard against misbehaving hasher function
28964         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
28965         of table->hasher's return value.  Also protect against a hash value
28966         so large that adding it to table->bucket results in a NULL pointer.
28967         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
28968         Use it in place of open-coded check-and-abort.
28969
28970 2010-08-30  Bruno Haible  <bruno@clisp.org>
28971
28972         hash: silence spurious clang warning
28973         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
28974         Reported by Eric Blake.
28975
28976 2010-08-30  Eric Blake  <eblake@redhat.com>
28977
28978         strstr, memmem, strcasestr: avoid leaked shell message
28979         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
28980         FreeBSD.
28981         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28982         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28983
28984         tests: silence clang warning
28985         * tests/test-malloca.c (do_allocation): Avoid dead store.
28986
28987 2010-08-29  Bruno Haible  <bruno@clisp.org>
28988
28989         gettext: Fix recent mistake.
28990         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
28991
28992 2010-08-29  Bruno Haible  <bruno@clisp.org>
28993
28994         selinux-h: Offer a --without-selinux option.
28995         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
28996         --without-selinux was specified, skip all tests and define
28997         HAVE_SELINUX_SELINUX_H to 0.
28998         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
28999         set LIB_SELINUX to empty.
29000         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29001         gl_LIBSELINUX. If --without-selinux was specified, replace
29002         selinux/context.h.
29003         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29004
29005 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29006             Bruno Haible  <bruno@clisp.org>
29007
29008         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29009         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29010         of HAVE_REALLOC.
29011         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29012         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29013         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29014         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29015
29016 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29017             Bruno Haible  <bruno@clisp.org>
29018
29019         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29020         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29021         HAVE_CALLOC.
29022         * lib/xmalloc.c: Update accordingly.
29023         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29024         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29025         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29026
29027 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29028             Bruno Haible  <bruno@clisp.org>
29029
29030         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29031         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29032         HAVE_MALLOC.
29033         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29034         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29035         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29036
29037 2010-08-29  Bruno Haible  <bruno@clisp.org>
29038
29039         Update modules list.
29040         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29041         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29042         (String handling <string.h>): Add astrxfrm.
29043         (File system functions): Add readlinkat.
29044
29045 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29046
29047         Tests for module 'realloc-gnu'.
29048         * modules/realloc-gnu-tests: New file.
29049         * tests/test-realloc-gnu.c: New file.
29050
29051         Tests for module 'calloc-gnu'.
29052         * modules/calloc-gnu-tests: New file.
29053         * tests/test-calloc-gnu.c: New file.
29054
29055         Tests for module 'malloc-gnu'.
29056         * modules/malloc-gnu-tests: New file.
29057         * tests/test-malloc-gnu.c: New file.
29058
29059 2010-08-28  Bruno Haible  <bruno@clisp.org>
29060
29061         Rename module 'realloc' -> 'realloc-gnu'.
29062         * modules/realloc-gnu: New file, copied from modules/realloc.
29063         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29064         obsolete.
29065         * modules/mgetgroups (Depends-on): Update.
29066         * doc/posix-functions/realloc.texi: Update.
29067         * NEWS: Mention the change.
29068
29069         Rename module 'calloc' -> 'calloc-gnu'.
29070         * modules/calloc-gnu: New file, copied from modules/calloc.
29071         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29072         obsolete.
29073         * doc/posix-functions/calloc.texi: Update.
29074         * NEWS: Mention the change.
29075
29076         Rename module 'malloc' -> 'malloc-gnu'.
29077         * modules/malloc-gnu: New file, copied from modules/malloc.
29078         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29079         obsolete.
29080         * modules/argp (Depends-on): Update.
29081         * modules/regex (Depends-on): Update.
29082         * doc/posix-functions/malloc.texi: Update.
29083         * NEWS: Mention the change.
29084
29085 2010-08-28  Eric Blake  <eblake@redhat.com>
29086
29087         pread, pwrite: add missing dependency
29088         * modules/pread (Depends-on): Add extensions.
29089         * modules/pwrite (Depends-on): Likewise.
29090
29091 2010-08-28  Bruno Haible  <bruno@clisp.org>
29092
29093         unistr/u*-strchr: Fix tests dependencies.
29094         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29095         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29096         Reported by Ian Beckwith <ianb@erislabs.net>.
29097
29098 2010-08-28  Bruno Haible  <bruno@clisp.org>
29099
29100         read-file: Don't occupy too much unused memory.
29101         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29102
29103 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29104             Eric Blake  <eblake@redhat.com>
29105             Bruno Haible  <bruno@clisp.org>
29106
29107         read-file: Avoid memory reallocations with regular files.
29108         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29109         (fread_file): With regular files, use the remaining length as the
29110         initial buffer size.  Check against overflow.
29111         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29112         sys_stat.
29113
29114 2010-08-28  Bruno Haible  <bruno@clisp.org>
29115
29116         ftello: Relax license.
29117         * modules/ftello (License): Relax to LGPLv2+.
29118         Reported by Eric Blake.
29119
29120 2010-08-28  Bruno Haible  <bruno@clisp.org>
29121
29122         Avoid relocwrapper link errors due to gnulib replacement functions.
29123         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29124         function.
29125         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29126
29127 2010-08-28  Bruno Haible  <bruno@clisp.org>
29128
29129         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29130         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29131         defined.
29132         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29133         Suggested by Eric Blake.
29134
29135 2010-08-28  Bruno Haible  <bruno@clisp.org>
29136
29137         sys_socket, netdb: Ensure socklen_t gets defined.
29138         * modules/sys_socket (Depends-on): Add socklen.
29139         * modules/netdb (Depends-on): Likewise.
29140         * modules/getaddrinfo (Depends-on): Remove socklen.
29141         * modules/getsockopt (Depends-on): Likewise.
29142         * modules/setsockopt (Depends-on): Likewise.
29143         * tests/test-sys_socket.c: Check that socklen_t is defined.
29144         * tests/test-netdb.c: Likewise.
29145         * m4/socklen.m4: Update comments.
29146         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29147
29148 2010-08-27  Eric Blake  <eblake@redhat.com>
29149
29150         login_tty: add missing dependency
29151         * modules/login_tty (Depends-on): Add pty.
29152
29153 2010-08-26  Eric Blake  <eblake@redhat.com>
29154
29155         lib-symbol-versions: fix m4 quoting
29156         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29157         format for AC_LINK_IFELSE.
29158
29159         glob: fix compile test
29160         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29161
29162         btowc: fix missing file
29163         * modules/btowc (Files): Also ship locale-fr.m4.
29164
29165         lseek: fix link test
29166         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29167         AC_LINK_IFELSE.
29168
29169         include_next: silence autoconf 2.68 warning
29170         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29171         AC_COMPILE_IFELSE as special.
29172         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29173         autoconf < 2.68.
29174
29175         acl: fix compilation test
29176         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29177         AC_COMPILE_IFELSE.
29178
29179 2010-08-26  Bruno Haible  <bruno@clisp.org>
29180
29181         Modernize AC_TRY_RUN invocations.
29182         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29183         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29184         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29185         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29186         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29187         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29188         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29189         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29190         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29191         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29192         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29193         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29194         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29195         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29196         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29197         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29198         gl_MBRLEN_NUL_RETVAL): Likewise.
29199         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29200         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29201         Likewise.
29202         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29203         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29204         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29205         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29206         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29207         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29208         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29209         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29210         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29211         Likewise.
29212         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29213         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29214         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29215         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29216         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29217         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29218         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29219         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29220         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29221         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29222
29223 2010-08-26  Bruno Haible  <bruno@clisp.org>
29224
29225         Modernize AC_TRY_LINK invocations.
29226         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29227         AC_TRY_LINK.
29228         * m4/argp.m4 (gl_ARGP): Likewise.
29229         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29230         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29231         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29232         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29233         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29234         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29235         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29236         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29237         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29238         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29239         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29240         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29241         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29242         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29243         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29244         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29245         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29246         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29247         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29248         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29249         Likewise.
29250         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29251         Likewise.
29252         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29253         Likewise.
29254         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29255         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29256         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29257         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29258         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29259         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29260         * m4/servent.m4 (gl_SERVENT): Likewise.
29261         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29262         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29263         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29264         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29265         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29266         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29267         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29268         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29269         * modules/tsearch-tests (configure.ac): Likewise.
29270
29271 2010-08-26  Bruno Haible  <bruno@clisp.org>
29272
29273         Modernize AC_TRY_COMPILE invocations.
29274         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29275         AC_TRY_COMPILE.
29276         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29277         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29278         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29279         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29280         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29281         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29282         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29283         * m4/lock.m4 (gl_LOCK): Likewise.
29284         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29285         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29286         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29287         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29288         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29289         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29290         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29291         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29292         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29293         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29294         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29295         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29296         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29297         extraneous semicolon.
29298
29299 2010-08-26  Jim Meyering  <meyering@redhat.com>
29300
29301         stat-time: relax license LGPL
29302         * modules/stat-time (License): Change from GPL to LGPL,
29303         with consent from all contributors, for use in libguile.
29304         Requested by Ludovic Courtès.
29305
29306 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29307
29308         poll: return immediately on POLLHUP.
29309         * lib/poll.c (poll): Always set timeout before wait_timeout is
29310         computed.
29311
29312 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29313
29314         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29315         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29316         rmdir ("dir/.//"), unlinkat.
29317
29318 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29319
29320         stdbool: avoid spurious failure with modern xlc
29321         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29322
29323 2010-08-24  Bruno Haible  <bruno@clisp.org>
29324
29325         getloadavg: simplify code
29326         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29327         gl_have_func. Update comments.
29328
29329 2010-08-24  Eric Blake  <eblake@redhat.com>
29330
29331         getloadavg: don't define SVR4 on cygwin
29332         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29333         only define SVR4 when -lkvm is required.
29334         Reported by Yaakov Selkowitz.
29335
29336 2010-08-24  Bruno Haible  <bruno@clisp.org>
29337
29338         priv-set: fix comment
29339         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29340
29341 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29342
29343         priv-set: fix comments
29344         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29345         to match code, as suggested by David Bartley in:
29346         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29347
29348 2010-08-23  Eric Blake  <eblake@redhat.com>
29349
29350         stdbool: avoid rejecting clang
29351         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29352         * tests/test-stdbool.c: Enable more tests if using the system
29353         <stdbool.h> instead of the gnulib replacement.
29354         (main): Move xlc bug test to a runtime test for all compilers.
29355         Reported by Anders Kaseorg.
29356
29357         argz: fix shell quoting issue
29358         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29359         Reported by Charles Wilson.
29360
29361 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29362             Erik Faye-Lund <kusmabite@gmail.com>
29363
29364         poll, select: handle ERROR_BROKEN_PIPE.
29365         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29366         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29367         * lib/select.c (win32_compute_revents): Do not mark a pipe
29368         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29369
29370 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29371
29372         fts: allow compilation with C++
29373         * lib/fts_.h: Specify extern "C" linkage with C++.
29374
29375 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29376
29377         Fix gnulib-tool sed script de-commentation for AIX sed.
29378         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29379         sed.
29380
29381 2010-08-17  Eric Blake  <eblake@redhat.com>
29382
29383         test-stddef: test for (some) offsetof bugs
29384         * tests/test-stddef.c: Enhance test to ensure correct type of
29385         offsetof.
29386         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29387         that we are not fixing at this time.
29388
29389 2010-08-15  Bruno Haible  <bruno@clisp.org>
29390
29391         stpncpy: Allow stpncpy to be defined as a macro.
29392         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29393         if it's already correctly declared.
29394         * lib/string.in.h (stpncpy): Undefine before redefining.
29395         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29396
29397 2010-08-14  Bruno Haible  <bruno@clisp.org>
29398
29399         Rename module 'memxfrm' to 'amemxfrm'.
29400         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29401         (amemxfrm): Renamed from memxfrm.
29402         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29403         (amemxfrm): Renamed from memxfrm.
29404         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29405         * NEWS: Mention the change.
29406         * MODULES.html.sh (String handling <string.h>): Update.
29407         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29408         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29409         * lib/unicase/u16-casexfrm.c: Likewise.
29410         * lib/unicase/u32-casexfrm.c: Likewise.
29411         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29412         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29413         * lib/uninorm/u16-normxfrm.c: Likewise.
29414         * lib/uninorm/u32-normxfrm.c: Likewise.
29415         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29416         memxfrm.
29417         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29418         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29419         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29420         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29421         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29422         Suggested by Paul Eggert.
29423
29424 2010-08-14  Bruno Haible  <bruno@clisp.org>
29425
29426         Tests for module 'astrxfrm'.
29427         * modules/astrxfrm-tests: New file.
29428         * tests/test-astrxfrm.c: New file.
29429
29430         New module 'astrxfrm'.
29431         * lib/astrxfrm.h: New file.
29432         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29433         * modules/astrxfrm: New file.
29434
29435 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29436
29437         regex: Tweak doc.
29438         * doc/regex.texi (Overview): Don't mention regex.c.
29439         (GNU Regular Expression Compiling): Likewise.
29440         (Match-end-of-line Operator): Mention 'not_eol'.
29441
29442 2010-08-14  Brian Gough  <bjg@gnu.org>
29443             Bruno Haible  <bruno@clisp.org>
29444
29445         git-merge-changelog: add doc relating to use with bzr and hg.
29446         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29447
29448 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29449
29450         pthread: fix pthread.h creation for srcdir != builddir
29451         * modules/pthread (Makefile.am): Fix the rule to work also in a
29452         non-srcdir build.
29453
29454 2010-08-13  Karl Berry  <karl@gnu.org>
29455
29456         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29457         * doc/posix-*/*: force line break before @url of POSIX
29458         specifications.
29459         Suggested by Werner Lemberg.
29460
29461 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29462
29463         strtod: fix const diagnostic
29464         * lib/strtod.c (strtod): Don't assign const char * to char *,
29465         as this elicits a warning from GCC when warnings are enabled.
29466
29467 2010-08-10  Pádraig Brady <P@draigbrady.com>
29468         and Eric Blake  <eblake@redhat.com>
29469
29470         copy-acl: ignore ENOTSUP on HP-UX
29471         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29472         so that it is available for HP-UX.
29473         * lib/copy-acl.c (qcopy_acl): Use it.
29474         Reported by Patrick M. Callahan.
29475
29476 2010-08-10  Eric Blake  <eblake@redhat.com>
29477
29478         open, chown: relax license
29479         * modules/open (License): Change to LGPLv2+, with consent by all
29480         authors, for use in augeas.
29481         * modules/chown (License): Likewise.
29482         * modules/lchown (Likewise): Likewise.
29483         Requested by Adam Stokes.
29484
29485 2010-08-09  Karl Berry  <karl@gnu.org>
29486
29487         * build-aux/ar-lib: new file, import from Automake.
29488         * config/srclist.txt: autocheck for updates.
29489
29490 2010-08-09  Eric Blake  <eblake@redhat.com>
29491
29492         readlinkat: adjust client modules
29493         * modules/areadlinkat (Depends-on): Use readlinkat, not
29494         symlinkat.
29495         * modules/areadlinkat-with-size (Depends-on): Likewise.
29496
29497         mknod: be more vocal about danger of running tests as root
29498         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29499         root, since that is just asking for problems.
29500         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29501
29502         readlinkat: split into its own module
29503         * modules/symlinkat: Split readlinkat...
29504         * modules/readlinkat: ...into separate module.
29505         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29506         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29507         * lib/symlinkat.c (readlinkat): Move...
29508         * lib/readlinkat.c: ...into new file.
29509         * modules/symlinkat-tests: Split readlinkat test...
29510         * modules/readlinkat-tests: ...into separate module.
29511         * tests/test-symlinkat.c: Split...
29512         * tests/test-readlinkat.c: ...into new file.
29513         * NEWS: Document the split.
29514         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29515         * lib/unistd.in.h (readlinkat): Likewise.
29516         Suggested by Bruno Haible.
29517
29518 2010-08-08  Bruno Haible  <bruno@clisp.org>
29519
29520         memxfrm: Speed up.
29521         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29522         that usually only one call to strxfrm is necessary for each string
29523         part.
29524         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29525
29526 2010-08-07  Karl Berry  <karl@gnu.org>
29527
29528         * doc/posix-headers/limits.texi,
29529         * doc/posix-functions/malloc.texi,
29530         * doc/posix-functions/strsignal.texi: missing @item.
29531         * doc/ld-version-script.texi: spurious leading i.
29532         * doc/regex.texi (Interval Operators): no commas inside @var.
29533
29534 2010-08-01  Bruno Haible  <bruno@clisp.org>
29535
29536         Integrate the regex documentation.
29537         * doc/gnulib.texi: Define 'cn' index.
29538         (Regular expressions): New a chapter that includes regex.texi and
29539         regexprops-generic.texi.
29540         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29541         syntax.
29542
29543         Whitespace cleanup.
29544         * doc/regex.texi: Remove trailing spaces.
29545
29546         Add regex documentation.
29547         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29548         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29549         Written by Kathy A. Hargreaves and Karl Berry.
29550
29551 2010-08-01  Bruno Haible  <bruno@clisp.org>
29552
29553         link: Update documentation.
29554         * doc/posix-functions/link.texi: Update regarding Solaris.
29555
29556 2010-07-31  Bruno Haible  <bruno@clisp.org>
29557
29558         Update modules list.
29559         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29560         (String handling <string.h>): Add memcmp2, memxfrm.
29561         (Container data structures): Add xlist, xsublist, xoset.
29562         (Core language properties): Add alignof, unused-parameter.
29563         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29564         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29565         (Unibyte characters <ctype.h>): New section.
29566         (String handling <string.h>): New section.
29567         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29568         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29569         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29570         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29571         tan, tanh, tanl, y0, y1, yn.
29572         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29573         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29574         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29575         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29576         unlockpt, vdprintf, vdprintf-posix.
29577         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29578         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29579         xconcat-filename.
29580         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29581         getdtablesize, pipe2, pipe2-safer.
29582         (Security): New section.
29583         (Networking functions): Add accept4.
29584         (Signal handling): Add sigpipe.
29585         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
29586         mbmemcasecoll.
29587         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
29588         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
29589         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
29590         pipe-filter-ii.
29591         (Misc): Add argp-version-etc, login_tty, parse-duration.
29592
29593 2010-07-31  Bruno Haible  <bruno@clisp.org>
29594
29595         Improve doc in MODULES.html.
29596         * modules/linkat (Description): Add the word "function".
29597         * modules/mkfifo (Description): Likewise.
29598         * modules/mknod (Description): Likewise.
29599         * modules/remove (Description): Likewise.
29600         * modules/renameat (Description): Likewise.
29601         * modules/stat (Description): Likewise.
29602         * modules/symlink (Description): Likewise.
29603         * modules/unlink (Description): Likewise.
29604
29605 2010-07-31  Bruno Haible  <bruno@clisp.org>
29606
29607         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
29608         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
29609         option --enable/disable-c++ instead of --enable/disable-cxx.
29610         * NEWS: Mention the change.
29611
29612 2010-07-31  Bruno Haible  <bruno@clisp.org>
29613
29614         readlink, areadlink: Relax test a bit.
29615         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
29616         alternative to ENOTDIR.
29617         * tests/test-areadlink.h (test_areadlink): Likewise.
29618         Reported by Rainer Tammer.
29619
29620 2010-07-31  Bruno Haible  <bruno@clisp.org>
29621
29622         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
29623         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
29624         character, perform the search using U_STRCHR.
29625         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
29626         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
29627         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
29628         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
29629         Suggested by Paolo Bonzini.
29630
29631 2010-07-31  Bruno Haible  <bruno@clisp.org>
29632
29633         unistr/u*-strstr: Fix dependencies.
29634         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
29635         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
29636         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
29637
29638 2010-07-31  Bruno Haible  <bruno@clisp.org>
29639
29640         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
29641         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
29642         the beginning of the loop.
29643         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
29644         cases in 'switch' statement.
29645
29646         unistr/u8-strchr: Fix several bugs.
29647         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
29648         the string. When not found, return NULL, not a pointer near the end.
29649
29650         More tests for unistr/u8-strchr.
29651         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
29652         that the function does not read past the first occurrence of the byte
29653         being searched.
29654         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
29655         * tests/unistr/test-u16-strchr.c (main): New function.
29656         * tests/unistr/test-u32-strchr.c (main): New function.
29657
29658 2010-07-31  Bruno Haible  <bruno@clisp.org>
29659
29660         posix-modules: Ignore backup files of documentation files.
29661         * posix-modules: grep only through files named *.texi.
29662
29663 2010-07-31  Bruno Haible  <bruno@clisp.org>
29664
29665         symlinkat: Fix documentation.
29666         * doc/posix-functions/readlinkat.texi: Fix module name.
29667
29668 2010-07-31  Bruno Haible  <bruno@clisp.org>
29669
29670         fchownat: Replace also when chown has the trailing slash bug.
29671         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
29672         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
29673         introduced on 2010-04-10.
29674         Reported by Rainer Tammer.
29675
29676 2010-07-31  Bruno Haible  <bruno@clisp.org>
29677
29678         linkat: Work around AIX 7.1 bug.
29679         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
29680         whether linkat handles trailing slash correctly. If not, replace linkat
29681         and define LINKAT_TRAILING_SLASH_BUG.
29682         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
29683         check whether (fd1,file1) points to a directory if file1 or file2 ends
29684         in a slash. Code taken from lib/link.c.
29685         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
29686         Reported by Rainer Tammer.
29687
29688 2010-07-31  Bruno Haible  <bruno@clisp.org>
29689
29690         Correctly determine whether pow is available in libc on AIX 7 with xlc.
29691         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
29692         This disables an xlc optimization that was causing wrong test results.
29693         Reported by Rainer Tammer.
29694
29695 2010-07-31  Bruno Haible  <bruno@clisp.org>
29696
29697         iconv: Work around AIX 6.1..7.1 bug.
29698         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
29699         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
29700         cross-compiling, guess no on all versions of AIX.
29701         Reported by Rainer Tammer.
29702
29703 2010-07-31  Bruno Haible  <bruno@clisp.org>
29704
29705         readlink: Relax test a bit.
29706         * tests/test-readlink.h (test_readlink): Allow different errno value
29707         when readlink is called with a file name that ends in / and refers to
29708         a file.
29709         Suggested by Eric Blake.
29710         Reported by Rainer Tammer.
29711
29712 2010-07-31  Bruno Haible  <bruno@clisp.org>
29713
29714         copysign: Does not require -lm on glibc systems.
29715         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
29716         gl_COMMON_DOUBLE_MATHFUNC.
29717         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
29718
29719 2010-07-31  Bruno Haible  <bruno@clisp.org>
29720
29721         duplocale: Work around AIX 7.1 bug.
29722         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
29723         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
29724         * lib/duplocale.c (rpl_duplocale): Update comment.
29725         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
29726         Reported by Rainer Tammer.
29727
29728 2010-07-30  Bruno Haible  <bruno@clisp.org>
29729
29730         dirfd: Avoid link error on AIX 7.1.
29731         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
29732         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
29733         exist, set REPLACE_DIRFD.
29734         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
29735         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
29736         * doc/posix-functions/dirfd.texi: Update.
29737         Reported by Rainer Tammer.
29738
29739 2010-07-30  Eric Blake  <eblake@redhat.com>
29740
29741         strtod: next round of AIX fixes
29742         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
29743         exponent.
29744         * tests/test-strtod.c (main): Enhance tests.
29745         * doc/posix-functions/strtod.texi (strtod): Document next bug.
29746         Reported by Rainer Tammer.
29747
29748         futimens: fix configure check
29749         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
29750         Reported by Bruno Haible.
29751
29752 2010-07-30  Bruno Haible  <bruno@clisp.org>
29753
29754         getline: Update regarding AIX.
29755         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
29756         Reported by Rainer Tammer.
29757
29758 2010-07-30  Bruno Haible  <bruno@clisp.org>
29759
29760         wcwidth: Drop replacement on AIX 7.
29761         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
29762         AIX 7.
29763         Reported by Rainer Tammer.
29764
29765 2010-07-30  Bruno Haible  <bruno@clisp.org>
29766
29767         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
29768         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
29769         a 'char *'.
29770         Reported by Rainer Tammer.
29771
29772 2010-07-30  Bruno Haible  <bruno@clisp.org>
29773
29774         unlink: Update regarding AIX.
29775         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
29776         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
29777         Reported by Rainer Tammer.
29778
29779 2010-07-30  Bruno Haible  <bruno@clisp.org>
29780
29781         symlink: Update regarding AIX.
29782         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
29783         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
29784         Reported by Rainer Tammer.
29785
29786 2010-07-30  Bruno Haible  <bruno@clisp.org>
29787
29788         strndup: Update regarding AIX.
29789         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
29790         AIX 7.
29791         Reported by Rainer Tammer.
29792
29793 2010-07-30  Bruno Haible  <bruno@clisp.org>
29794
29795         stat: Update regarding AIX.
29796         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
29797         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
29798         Reported by Rainer Tammer.
29799
29800 2010-07-30  Bruno Haible  <bruno@clisp.org>
29801
29802         truncl: Fix autoconf test.
29803         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
29804         whether truncl works.
29805         Reported by Rainer Tammer.
29806
29807 2010-07-30  Bruno Haible  <bruno@clisp.org>
29808
29809         round: Update regarding AIX.
29810         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
29811         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
29812         Reported by Rainer Tammer.
29813
29814 2010-07-30  Bruno Haible  <bruno@clisp.org>
29815
29816         rename: Update regarding AIX.
29817         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
29818         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
29819         Reported by Rainer Tammer.
29820
29821 2010-07-30  Bruno Haible  <bruno@clisp.org>
29822
29823         printf.m4: Update regarding AIX.
29824         * m4/printf.m4: Update comments regarding AIX.
29825         Reported by Rainer Tammer.
29826
29827 2010-07-30  Bruno Haible  <bruno@clisp.org>
29828
29829         iconv: Update regarding AIX.
29830         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
29831         AIX 7.
29832         Reported by Rainer Tammer.
29833
29834 2010-07-30  Bruno Haible  <bruno@clisp.org>
29835
29836         getopt: Update regarding AIX.
29837         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
29838         no on AIX.
29839         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
29840         Reported by Rainer Tammer.
29841
29842 2010-07-30  Bruno Haible  <bruno@clisp.org>
29843
29844         ldexpl; Update regarding AIX.
29845         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
29846         on AIX 7.
29847         Reported by Rainer Tammer.
29848
29849 2010-07-30  Bruno Haible  <bruno@clisp.org>
29850
29851         frexpl: Update regarding AIX.
29852         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
29853         on AIX 7.
29854         Reported by Rainer Tammer.
29855
29856 2010-07-30  Bruno Haible  <bruno@clisp.org>
29857
29858         open, fopen: Update regarding AIX.
29859         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
29860         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29861         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
29862         * doc/posix-functions/fopen.texi: Likewise.
29863         Reported by Rainer Tammer.
29864
29865 2010-07-30  Bruno Haible  <bruno@clisp.org>
29866
29867         chown: Update doc regarding AIX.
29868         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
29869         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
29870         Reported by Rainer Tammer.
29871
29872 2010-07-30  Eric Blake  <eblake@redhat.com>
29873
29874         strtod: fix bug in replacement function on AIX
29875         * lib/strtod.c (strtod): Special case broken "0x" parse in
29876         underlying strtod.
29877         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
29878         * doc/posix-functions/strtod.texi (strtod): Likewise.
29879         Reported by Rainer Tammer.
29880
29881 2010-07-30  Bruno Haible  <bruno@clisp.org>
29882
29883         mbrlen: Fix cross-compilation guess for AIX.
29884         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
29885         guess. Leftover from 2008-12-22.
29886
29887 2010-07-30  Bruno Haible  <bruno@clisp.org>
29888
29889         mbrtowc: Fix cross-compilation guess for AIX.
29890         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
29891         guess. Leftover from 2008-12-21.
29892
29893 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
29894
29895         init.sh: work around trap limitation of some shells
29896         * tests/init.sh (setup_): Move exit trap outside of shell function.
29897
29898 2010-07-29  Eric Blake  <eblake@redhat.com>
29899
29900         strtod: aid debugging
29901         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
29902         understanding why strtod is rejected.
29903
29904 2010-07-28  Bruno Haible  <bruno@clisp.org>
29905
29906         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
29907         * lib/unistr/u8-chr.c: Include <string.h>.
29908         * tests/unistr/test-u8-chr.c: Likewise.
29909         * tests/unistr/test-u16-chr.c: Likewise.
29910         * tests/unistr/test-u32-chr.c: Likewise.
29911         * tests/unistr/test-u8-strchr.c: Likewise.
29912         * tests/unistr/test-u16-strchr.c: Likewise.
29913         * tests/unistr/test-u32-strchr.c: Likewise.
29914         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
29915         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
29916         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
29917         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
29918
29919 2010-07-28  Bruno Haible  <bruno@clisp.org>
29920
29921         Use spaces for indentation, not tabs.
29922         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29923
29924 2010-07-27  Bruno Haible  <bruno@clisp.org>
29925
29926         mbspcasecmp: Fix function specification.
29927         * lib/string.in.h (mbspcasecmp): Fix specification comment.
29928         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
29929         Reported by Eric Blake <eblake@redhat.com>.
29930
29931 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
29932
29933         timespec: use cast and not conditional, as truncation isn't possible
29934         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
29935         instead of a conditional.  Comment about the situation in more detail.
29936         This undoes most of the 2009-10-29 patch.
29937
29938 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
29939
29940         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
29941         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
29942         * lib/unistr/u8-strchr.c: Likewise.
29943         * modules/unistr/u8-chr: Depend on memchr.
29944
29945         unistr/u*-strchr: add tests
29946         * modules/unistr/u8-strchr-tests: New file.
29947         * modules/unistr/u16-strchr-tests: New file.
29948         * modules/unistr/u32-strchr-tests: New file.
29949         * tests/unistr/test-strchr.h: New file.
29950         * tests/unistr/test-u8-strchr.c: New file.
29951         * tests/unistr/test-u16-strchr.c: New file.
29952         * tests/unistr/test-u32-strchr.c: New file.
29953
29954         unistr/u*-chr: test multibyte sequences more
29955         * tests/unistr/test-chr.h: Do complete testing of the characters in the
29956         test vector.
29957         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
29958         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
29959         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
29960
29961         unistr/u*-chr: test multibyte sequences
29962         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
29963
29964         unistr/u*-chr: prepare for multibyte tests
29965         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
29966         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
29967         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
29968         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
29969         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
29970         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
29971
29972 2010-07-18  Bruno Haible  <bruno@clisp.org>
29973
29974         unistr/u8-strchr: Optimize non-ASCII argument case.
29975         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
29976         because the first byte often matches anyway.
29977         Reported by Pádraig Brady <P@draigbrady.com>.
29978
29979 2010-07-15  Karl Berry  <karl@gnu.org>
29980
29981         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
29982
29983 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
29984
29985         getcwd: on Solaris, work better if ancestors are inaccessible
29986         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
29987         buffer and size, try again with a large buffer.  This works better
29988         on Solaris, since its getcwd succeeds even if the path to the root
29989         is inaccessible, and this is helpful in common cases such as .zfs
29990         hidden directories.  Problem reported by J Chapman Flack in
29991         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
29992         Use system getcwd if it's declared, not merely if it's partly
29993         working; use the partly-working test only to avoid needless effort
29994         if the system getcwd fails.
29995         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
29996         comment that was already obsolete and is now even more obsolete.
29997         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
29998         now might call strdup.
29999
30000 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30001
30002         pthread: Add enough so that coreutils/src/sort.c compiles.
30003         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30004         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30005         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30006         Include <sys/types.h>, in case it defines pthread_t.
30007         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30008         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30009         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30010         (pthread_rwlockattr_t, pthread_spinlock_t):
30011         New typedefs, if HAVE_PTHREAD_T is not defined.
30012         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30013         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30014         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30015         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30016         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30017         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30018         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30019         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30020         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30021         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30022         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30023         New macros.
30024         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30025         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30026         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30027         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30028         (pthread_spin_unlock): New dummy functions.
30029         (pthread_create): Return EAGAIN; don't set errno.
30030         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30031         require AC_C_INLINE.
30032         * modules/pthread (Depends-on): Add sched, time.
30033         (pthread.h): Use AM_V_GEN.
30034
30035 2010-07-13  Bruno Haible  <bruno@clisp.org>
30036
30037         striconveh: Don't malloc memory if the result buffer is sufficient.
30038         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30039         buffer if its size is sufficient.
30040         Reported by Ludovic Courtès <ludo@gnu.org>.
30041
30042 2010-07-13  Bruno Haible  <bruno@clisp.org>
30043
30044         strtod: Add safety check.
30045         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30046
30047 2010-07-12  Bruno Haible  <bruno@clisp.org>
30048
30049         Unify tests that set gl_cv_func_ldexpl_no_libm.
30050         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30051         gl_FUNC_LDEXPL.
30052         (gl_FUNC_LDEXPL): Invoke it.
30053         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30054
30055 2010-07-12  Bruno Haible  <bruno@clisp.org>
30056
30057         Unify tests that set gl_cv_func_ldexp_no_libm.
30058         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30059         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30060         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30061         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30062         * modules/strtod (Files): Add m4/ldexp.m4.
30063
30064 2010-07-12  Bruno Haible  <bruno@clisp.org>
30065
30066         Unify tests that set gl_cv_func_frexpl_no_libm.
30067         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30068         gl_FUNC_FREXPL_NO_LIBM.
30069         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30070         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30071
30072 2010-07-12  Bruno Haible  <bruno@clisp.org>
30073
30074         Unify tests that set gl_cv_func_frexp_no_libm.
30075         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30076         gl_FUNC_FREXP_NO_LIBM.
30077         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30078         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30079
30080 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30081
30082         memcoll: clarify sizes versus lengths, document better, and tweak perf
30083         * lib/memcoll.c (strcoll_loop, memcoll0):
30084         Improve quality of descriptive comments.  Name variables
30085         consistently as to whether they are lengths (which do not include
30086         terminating null) versus sizes (which do).
30087         * lib/xmemcoll.c (xmemcoll0): Likewise.
30088         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30089         returned when s1size == 0; this is easier to compile and saves
30090         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30091
30092 2010-07-12  Bruno Haible  <bruno@clisp.org>
30093
30094         Tests for module '_Exit'.
30095         * modules/_Exit-tests: New file.
30096         * tests/test-_Exit.sh: New file.
30097         * tests/test-_Exit.c: New file.
30098
30099         New module '_Exit'.
30100         * lib/stdlib.in.h (__attribute__): New macro.
30101         (_Exit): New declaration.
30102         * lib/_Exit.c: New file.
30103         * m4/_Exit.m4: New file.
30104         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30105         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30106         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30107         * modules/_Exit: New file.
30108         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30109         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30110
30111 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30112
30113         strtod: make it more-accurate typically, and don't require libm
30114         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30115         Include limits.h.  Don't include string.h.
30116         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30117         (locale_isspace): New function, so that no casts are needed to
30118         check whether *s is a space.
30119         (ldexp): Provide an unused dummy if not available.
30120         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30121         (strtod): Use them.  This implementation prefers to use the
30122         underlying strtod if available, falling back on our own code
30123         only to fix known bugs.  This is more likely to produce an
30124         accurate result.  Also, it avoids the use of libm functions.
30125         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30126         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30127         was absent, but it caused a test failure with coreutils.
30128         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30129         with libm.
30130         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30131         * modules/strtod-tests (Makefile.am): Likewise.
30132
30133 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30134             Bruno Haible  <bruno@clisp.org>
30135
30136         unistr/u8-strchr: Optimize ASCII argument case.
30137         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30138
30139 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30140
30141         (x)memcoll: minor tweaks
30142         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30143         is after the type that it qualifies.
30144         (memcoll0): Likewise.
30145         * lib/memcoll.h (memcoll0): Likewise.
30146         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30147         * lib/xmemcoll.h (xmemcoll0): Likewise.
30148         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30149         differs from memcoll in that the NUL byte is part of the argument.
30150         Omit the abort-checks, as performance is a real issue here.  Plus,
30151         the checks were wrong anyway (an off-by-one error).  Omit local
30152         variable 'diff', as it's a bit clearer that way.
30153         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30154         no longer needed.
30155
30156 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30157
30158         (x)memcoll: speedup when input is known to be NUL delimited
30159         * lib/memcoll.c: Include stdlib.
30160         (memcoll0): New function.
30161         (strcoll_loop): New function, refactored for use in both memcoll
30162         and memcoll0.
30163         * lib/memcoll.h (memcoll0): Add prototype.
30164         * lib/xmemcoll.c (xmemcoll0): New function.
30165         (collate_error): New function, refactored for use in both xmemcoll
30166         and xmemcoll0.
30167         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30168         * m4/memcoll.m4: add inline invocation.
30169
30170 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30171
30172         * build-aux/bootstrap: Remove any local translations
30173         from the translation project synchronization directory,
30174         so that local only translations are not distributed.
30175
30176 2010-07-04  Bruno Haible  <bruno@clisp.org>
30177
30178         fsusage: Clarify which code applies to which platforms.
30179         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30180         platform.
30181         * lib/fsusage.c (get_fs_usage): Likewise.
30182
30183 2010-07-04  Bruno Haible  <bruno@clisp.org>
30184
30185         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30186         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30187         Reported by Martin Lambers <marlam@marlam.de>.
30188
30189 2010-07-04  Jim Meyering  <meyering@redhat.com>
30190
30191         hash: once again explicitly disallow insertion of NULL
30192         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30193         inserting a NULL pointer cannot work with these functions.
30194         Add a comment with details.
30195         This reverts part of the 2010-07-01 commit, 5bef1a35
30196         "hash: extend module to deal with non-pointer keys".
30197
30198 2010-07-01  Bruno Haible  <bruno@clisp.org>
30199
30200         stdbool: Update doc.
30201         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30202         Info from Christian Weisgerber <naddy@mips.inka.de>.
30203
30204 2010-07-01  Jim Meyering  <meyering@redhat.com>
30205
30206         hash: extend module to deal with non-pointer keys
30207         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30208         but that allows insertion of non-pointer entries.
30209         Do not disallow an ENTRY value of NULL.
30210         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30211         * lib/hash.h (hash_insert0): Declare.
30212
30213 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30214
30215         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30216         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30217         not present (i.e. with autoconf 2.59 and when using gettextize, not
30218         gnulib), require AC_GNU_SOURCE instead.
30219
30220 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30221
30222         idpriv-drop: Fix tests.
30223         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30224         not to the test-idpriv-droptemp program.
30225
30226 2010-06-29  Bruno Haible  <bruno@clisp.org>
30227
30228         string: Fix syntax error with g++ 2.96.
30229         * lib/string.in.h (__pure__): Remove definition.
30230         (_GL_ATTRIBUTE_PURE): New macro.
30231         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30232         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30233         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30234
30235 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30236
30237         unitypes: Fix bug introduced on 2010-05-18.
30238         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30239
30240 2010-06-22  Eric Blake  <eblake@redhat.com>
30241
30242         memmem: slight optimization
30243         * lib/str-two-way.h (critical_factorization): Update comments.
30244         Reduce work during factorization phase.
30245         Reported by Carlos Bueno <carlos@bueno.org>.
30246
30247 2010-06-21  Bruno Haible  <bruno@clisp.org>
30248
30249         Fix HAVE_CALLOC_POSIX misnomer.
30250         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30251         !HAVE_CALLOC_POSIX.
30252         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30253         HAVE_CALLOC_POSIX.
30254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30255         instead of HAVE_CALLOC_POSIX.
30256         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30257         HAVE_CALLOC_POSIX.
30258
30259         Use modern idiom for calloc() replacement.
30260         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30261         AC_FUNC_CALLOC.
30262         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30263         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30264         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30265         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30266         (gl_REPLACE_CALLOC): New macro.
30267
30268 2010-06-21  Bruno Haible  <bruno@clisp.org>
30269
30270         Fix HAVE_REALLOC_POSIX misnomer.
30271         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30272         !HAVE_REALLOC_POSIX.
30273         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30274         HAVE_REALLOC_POSIX.
30275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30276         instead of HAVE_REALLOC_POSIX.
30277         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30278         HAVE_REALLOC_POSIX.
30279
30280         Use modern idiom for realloc() replacement.
30281         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30282         AC_FUNC_REALLOC.
30283         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30284         Autoconf's AC_FUNC_REALLOC.
30285         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30286         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30287         (gl_REPLACE_REALLOC): New macro.
30288         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30289
30290 2010-06-21  Bruno Haible  <bruno@clisp.org>
30291
30292         Fix HAVE_MALLOC_POSIX misnomer.
30293         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30294         !HAVE_MALLOC_POSIX.
30295         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30296         HAVE_MALLOC_POSIX.
30297         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30298         instead of HAVE_MALLOC_POSIX.
30299         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30300         HAVE_MALLOC_POSIX.
30301
30302         Use modern idiom for malloc() replacement.
30303         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30304         AC_FUNC_MALLOC.
30305         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30306         Autoconf's AC_FUNC_MALLOC.
30307         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30308         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30309         (gl_REPLACE_MALLOC): New macro.
30310         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30311
30312 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30313
30314         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30315         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30316         This macro takes 3 arguments, not 4.
30317
30318 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30319
30320         ipv6: fix detection under mingw
30321         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30322         in6_addr.
30323
30324 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30325
30326         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30327         that strtod() works when cross-compiling to a glibc version known
30328         to work.
30329
30330 2010-06-15  Bruno Haible  <bruno@clisp.org>
30331
30332         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30333
30334 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30335
30336         select: Correct timeout.
30337         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30338
30339 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30340
30341         git-version-gen: init shell var to avoid env var influence
30342         * build-aux/git-version-gen (v): Init shell var to empty.
30343
30344 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30345
30346         priv-set: Don't assume that priv.h exists merely because getppriv does.
30347         See Jan Andersen's bug report about AIX 5L in
30348         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30349         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30350         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30351         * lib/priv-set.h: Likewise.
30352         * tests/test-priv-set.c: Likewise.
30353
30354 2010-06-13  Bruno Haible  <bruno@clisp.org>
30355
30356         relocatable: Make it easier to test whether to install wrappers.
30357         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30358         RELOCATABLE_VIA_WRAPPER.
30359
30360 2010-06-13  Bruno Haible  <bruno@clisp.org>
30361
30362         gnulib-tool: Display specified modules and dependencies differently.
30363         * gnulib-tool (func_show_module_list): New function.
30364         (func_import, func_create_testdir): Invoke it.
30365         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30366
30367 2010-06-13  Bruno Haible  <bruno@clisp.org>
30368
30369         gnulib-tool: Align code of func_import and func_create_testdir.
30370         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30371         specified_modules.
30372
30373 2010-06-12  Jim Meyering  <meyering@redhat.com>
30374
30375         test-inttostr: avoid spurious failure on Solaris 9
30376         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30377         to accept "%ju".  Reported by Bruno Haible.
30378
30379 2010-06-11  Jim Meyering  <meyering@redhat.com>
30380
30381         test-sys_socket: mark variables as used more readably
30382         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30383         as "used" explicitly via (void) statement casts.  This is more
30384         readable than using them in an artificial return expression.
30385         Suggestion from Bruno Haible.
30386
30387 2010-06-11  Bruno Haible  <bruno@clisp.org>
30388
30389         Avoid some more warnings from "gcc -Wwrite-strings".
30390         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30391         to 'const char *'.
30392         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30393         * tests/test-c-strcasestr.c (main): Likewise.
30394         * tests/test-mbscasestr1.c (main): Likewise.
30395         * tests/test-mbscasestr2.c (main): Likewise.
30396         * tests/test-memmem.c (main): Likewise.
30397         * tests/test-strstr.c (main): Likewise.
30398         * tests/test-strcasestr.c (main): Likewise.
30399
30400 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30401
30402         init.sh: change framework_failure_ to fail with status 99, not 1
30403         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30404         automake's parallel-tests rule that this is an unexpected failure,
30405         even if the test is listed in XFAIL_TESTS.
30406
30407 2010-06-11  Jim Meyering  <meyering@redhat.com>
30408
30409         test-inttostr: avoid warnings about 4-6KB literal strings
30410         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30411         Include "macros.h", for its definition of ASSERT.
30412         (CK): s/assert/ASSERT/
30413         * modules/inttostr-tests (Files): Add macros.h.
30414
30415         init.sh: don't use $ME_ or skip_ before they are defined
30416         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30417         their first uses.  Also hoist their companions: warn_, fail_,
30418         framework_failure_, $stderr_fileno.  Prompted by a patch from
30419         Stefano Lattarini.
30420
30421         test-sys_socket: avoid set-but-not-used warnings from gcc
30422         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30423         avoid warning about set-but-not-used variables.
30424
30425         test-xvasprintf: avoid 'const' discard warnings
30426         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30427         "const" when assigning from literal strings.
30428         (test_xasprintf): Add "void" in function argument list to placate
30429         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30430
30431         tests: avoid compilation warnings in argmatch and exclude tests...
30432         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30433         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30434         Since it always exits, declare with the "noreturn" attribute.
30435         * tests/test-argmatch.c: Likewise.
30436
30437         tests: avoid 'const' discard warnings in mbsstr tests
30438         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30439         * tests/test-mbsstr2.c (main): Likewise.
30440
30441         test-verify: avoid warning from gcc's -Wmissing-declarations
30442         * tests/test-verify.c (function): Declare to be static.
30443
30444         test-inttostr.c: include <string.h> for use of strcmp
30445         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30446
30447         test-linkat: avoid failed assertion on "other" architectures
30448         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30449         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30450         sparc: https://bugs.launchpad.net/bugs/591968
30451
30452 2010-06-11  Jim Meyering  <meyering@redhat.com>
30453
30454         printf.m4: avoid autoconf's "Expanded Before Required" warning
30455         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30456         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30457         autoconf warning.
30458
30459 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30460
30461         Replacement header templates are now named with ".in", not "_".
30462         * doc/gnulib-intro.texi: Correct.
30463
30464 2010-06-10  Jim Meyering  <meyering@redhat.com>
30465
30466         inttostr-tests: depend on snprintf, not snprintf-posix
30467         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30468         snprintf-posix, to avoid this aclocal failure:
30469           missing file gnulib-tests/vasnprintf.c
30470           configure.ac:45: error: expected source file, required through \
30471           AC_LIBSOURCES, not found
30472
30473 2010-06-10  Jim Meyering  <meyering@redhat.com>
30474
30475         inttostr: add a new function, inttostr, and tests
30476         The namesake function was not available.  The existence of the
30477         template file, inttostr.c makes its addition nontrivial.
30478         * lib/anytostr.c: Rename from inttostr.c.
30479         (anytostr): Rename from inttostr.
30480         * lib/inttostr.c: New file.
30481         * modules/inttostr (Files): Add anytostr.c.
30482         (Makefile.am): Set lib_SOURCES instead of ...
30483         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30484         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30485         * lib/offtostr.c: Likewise.
30486         * lib/uinttostr.c: Likewise.
30487         * lib/umaxtostr.c: Likewise.
30488         * modules/inttostr-tests: New file.
30489         * tests/test-inttostr.c: New file.  Test these functions.
30490
30491 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30492             Bruno Haible  <bruno@clisp.org>
30493
30494         Add "Extending Gnulib" chapter to manual.
30495         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30496         chapter.
30497         (Extending Gnulib): New chapter.
30498         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30499         chapter.
30500
30501 2010-06-09  Bruno Haible  <bruno@clisp.org>
30502
30503         Avoid relocwrapper link errors due to gnulib replacement functions.
30504         * lib/areadlink.c: Use the system's malloc, realloc functions.
30505         (areadlink): Set errno to ENOMEM explicitly.
30506         * modules/areadlink (Depends-on): Remove malloc-posix.
30507         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30508
30509 2010-06-09  Bruno Haible  <bruno@clisp.org>
30510
30511         Avoid relocwrapper link errors due to gnulib replacement functions.
30512         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30513         * lib/malloca.c: Likewise.
30514         * lib/relocatable.c: Likewise.
30515         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30516         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30517         * lib/setenv.c: Use the system's malloc, realloc functions.
30518         * lib/strerror.c: Use the system's sprintf function.
30519         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30520
30521 2010-06-04  Bruno Haible  <bruno@clisp.org>
30522
30523         Prefer documented low-level autoconf macro names.
30524         * m4/lib-link.m4: Use m4_translit instead of translit.
30525         * m4/environ.m4: Likewise.
30526         * m4/mathfunc.m4: Likewise.
30527         * m4/onceonly.m4: Likewise.
30528         * m4/stdint.m4: Likewise.
30529         Suggested by Eric Blake.
30530
30531 2010-06-04  Martin Lambers  <marlam@marlam.de>
30532             Bruno Haible  <bruno@clisp.org>
30533
30534         havelib: Allow library names with '+' characters.
30535         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30536         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30537
30538 2010-06-09  Bruno Haible  <bruno@clisp.org>
30539
30540         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30541         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30542         realloc failed.
30543
30544 2010-06-08  Peter Simons  <simons@cryp.to>
30545
30546         maint.mk: make the news-check rule more configurable
30547         * top/maint.mk (news-check-lines-spec): New variable.
30548         (news-check): Use "sed -n 1,10p" in place of "head".
30549
30550 2010-06-07  Jim Meyering  <meyering@redhat.com>
30551
30552         do-release-commit-and-tag: fix typo in --help
30553         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30554
30555         regex: avoid new dead-code warning with gcc-4.6.0
30556         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30557         if-block containing a while-loop.  It's been unused for at least
30558         5 years.
30559
30560 2010-06-05  Bruno Haible  <bruno@clisp.org>
30561
30562         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30563         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30564
30565 2010-06-04  Bruno Haible  <bruno@clisp.org>
30566
30567         Update to GNU gettext 0.18.1.
30568         * modules/gettext (configure.ac): Require gettext infrastructure from
30569         version 0.18.1.
30570
30571 2010-06-03  Bruno Haible  <bruno@clisp.org>
30572
30573         Don't use AC_LIBOBJ with file names in subdirectories.
30574         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30575         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30576         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30577         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30578         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30579         gl_LIBUNISTRING_LIBSOURCE.
30580         (Makefile.am): Augment lib_SOURCES here, conditionally.
30581         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30582
30583 2010-06-03  Bruno Haible  <bruno@clisp.org>
30584
30585         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
30586         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
30587         expansion does not end with a newline.
30588         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
30589         unnecessary newline.
30590
30591 2010-06-03  Bruno Haible  <bruno@clisp.org>
30592
30593         Reduce dependencies.
30594         * tests/test-quotearg.h: New file, extracted from
30595         tests/test-quotearg.c.
30596         * tests/test-quotearg-simple.c: New file, extracted from
30597         tests/test-quotearg.c.
30598         * tests/test-quotearg.c: Don't include <ctype.h>.
30599         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
30600         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
30601         use_quote_double_quotes, use_quotearg_colon): Moved to
30602         tests/test-quotearg.h.
30603         (results_g, flag_results, custom_quotes, custom_results): Moved
30604         to tests/test-quotearg-simple.c.
30605         (main): Moved the part that does not depend on gettext to
30606         tests/test-quotearg-simple.c. Return 77 if the test cannot be
30607         performed.
30608         * modules/quotearg-simple: New file.
30609         * modules/quotearg-simple-tests: New file.
30610         * modules/quotearg (Depends-on): Add quotearg-simple.
30611         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
30612         (Files): Add tests/test-quotearg.h.
30613         Reported by Paolo Bonzini.
30614
30615 2010-06-03  Bruno Haible  <bruno@clisp.org>
30616
30617         Reduce dependencies.
30618         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
30619
30620 2010-06-03  Bruno Haible  <bruno@clisp.org>
30621
30622         time: Undefine more broken macros.
30623         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
30624         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
30625         Reported by Eric Blake.
30626
30627 2010-06-03  Bruno Haible  <bruno@clisp.org>
30628
30629         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
30630         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
30631         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
30632         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
30633         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
30634         Reported by Ludovic Courtès <ludo@gnu.org>.
30635
30636 2010-06-02  Eric Blake  <eblake@redhat.com>
30637
30638         time: work with mingw + pthreads-win32 library
30639         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
30640         if timespec is defined only in pthread.h.
30641         * modules/time (Makefile.am): Substitute it.
30642         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
30643         <pthread.h>, when needed.
30644         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
30645         from the library.
30646
30647 2010-05-31  Bruno Haible  <bruno@clisp.org>
30648
30649         Avoid expanding two macros in the wrong order.
30650         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
30651         gl_LIBUNISTRING if it is defined.
30652         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
30653         autoconf >= 2.64.
30654         Reported by Ludovic Courtès <ludo@gnu.org>.
30655
30656 2010-05-27  Jim Meyering  <meyering@redhat.com>
30657
30658         maint.mk: also prohibit "#undef" of always-defined symbols
30659         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
30660         Allow more than one space before the symbol name.
30661         (sc_prohibit_always-defined_macros): Use grep's -E, now that
30662         the regexp uses alternation.
30663
30664 2010-05-26  Eric Blake  <eblake@redhat.com>
30665
30666         maint.mk: avoid echo -e
30667         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
30668         Convert all uses of echo -* to printf.
30669         Reported by Matthias Bolte.
30670
30671 2010-05-25  Bruno Haible  <bruno@clisp.org>
30672
30673         Update to GNU gettext 0.18, part 2.
30674         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
30675         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
30676
30677 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30678
30679         Add missing include in test-pwrite.c.
30680         * tests/test-pwrite.c: Include string.h, for strcmp.
30681
30682 2010-05-24  Bruno Haible  <bruno@clisp.org>
30683
30684         * NEWS: Mention requirement for Automake option 'subdir-objects'.
30685
30686 2010-05-24  Bruno Haible  <bruno@clisp.org>
30687
30688         Don't use conversion with transliteration in u{8,16,32}_strcoll.
30689         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
30690         iconveh_error argument.
30691         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
30692         U_STRCONV_TO_LOCALE.
30693         * lib/unistr/u16-strcoll.c: Likewise.
30694         * lib/unistr/u32-strcoll.c: Likewise.
30695         * modules/unistr/u8-strcoll (Depends-on): Add
30696         uniconv/u8-strconv-to-enc, localcharset. Remove
30697         uniconv/u8-strconv-to-locale.
30698         (configure.ac): Bump version number.
30699         * modules/unistr/u16-strcoll (Depends-on): Add
30700         uniconv/u16-strconv-to-enc, localcharset. Remove
30701         uniconv/u16-strconv-to-locale.
30702         (configure.ac): Bump version number.
30703         * modules/unistr/u32-strcoll (Depends-on): Add
30704         uniconv/u32-strconv-to-enc, localcharset. Remove
30705         uniconv/u32-strconv-to-locale.
30706         (configure.ac): Bump version number.
30707
30708 2010-05-24  Bruno Haible  <bruno@clisp.org>
30709
30710         Avoid a test failure on NetBSD 5.0.
30711         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
30712         an iconv() bug.
30713
30714 2010-05-24  Bruno Haible  <bruno@clisp.org>
30715
30716         Adjust #include directive style.
30717         * modules/regex (Includes): Recommend to write <regex.h>.
30718
30719 2010-05-24  Bruno Haible  <bruno@clisp.org>
30720
30721         regex: Don't require alloca.
30722         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
30723         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
30724         only inside if (0).
30725
30726 2010-05-23  Jim Meyering  <meyering@redhat.com>
30727
30728         test-renameat.c: include <sys/stat.h>
30729         * tests/test-renameat.c: Include <sys/stat.h>; required for
30730         definition of S_IS* macros.
30731
30732 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
30733
30734         Update maintainer documentation for 'relocatable-prog' module.
30735         * doc/relocatable-maint.texi: Update.
30736         Comments by Bruno Haible.
30737
30738 2010-05-23  Bruno Haible  <bruno@clisp.org>
30739
30740         git-merge-changelog: Enable --split-merged-entry by default.
30741         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
30742         (usage): Don't mention this option any more.
30743         Reported by Ralf Wildenhues.
30744
30745 2010-05-23  Jim Meyering  <meyering@redhat.com>
30746
30747         test-pwrite: do not leave behind a test file named "out"
30748         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
30749         The trivial-looking use of init.sh is really necessary.
30750         It ensures that the temporary file, "out", is created in
30751         a temporary directory, and removed upon termination.
30752         * tests/test-pwrite.sh: Re-add file.
30753         * modules/pwrite-tests: Reference it.
30754
30755 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30756
30757         Fix output redirection buglet in init.sh.
30758         * tests/init.sh: Fix redirection of stderr.
30759
30760 2010-05-20  Simon Josefsson  <simon@josefsson.org>
30761
30762         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
30763
30764 2010-05-17  Simon Josefsson  <simon@josefsson.org>
30765
30766         * modules/valgrind-tests: New file.
30767         * m4/valgrind-tests.m4: New file.
30768         * doc/valgrind-tests.texi: New file.
30769         * doc/gnulib.texi (Running self-tests under valgrind): New
30770         section.
30771
30772 2010-05-19  Bruno Haible  <bruno@clisp.org>
30773
30774         Clean up dead code in recent commit.
30775         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
30776         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
30777         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
30778         Suggested by Paolo Bonzini.
30779
30780 2010-05-19  Bruno Haible  <bruno@clisp.org>
30781
30782         Avoid valgrind error reports from libunistring.
30783         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
30784         * modules/libunistring (Files): Add it.
30785         * modules/libunistring-optional (Files): Likewise.
30786
30787 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
30788             Bruno Haible  <bruno@clisp.org>
30789
30790         New module 'libunistring-optional'.
30791         * modules/libunistring-optional: New file.
30792         * m4/libunistring-base.m4: New file.
30793         * m4/libunistring-optional.m4: New file.
30794         * lib/unicase.in.h: Renamed from lib/unicase.h.
30795         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
30796         * lib/unictype.in.h: Renamed from lib/unictype.h.
30797         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
30798         * lib/uniname.in.h: Renamed from lib/uniname.h.
30799         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
30800         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
30801         * lib/unistr.in.h: Renamed from lib/unistr.h.
30802         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
30803         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
30804         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
30805         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
30806         gl_LIBUNISTRING. If the library was found, determine the installed
30807         version and set LIBUNISTRING_VERSION.
30808         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
30809         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
30810         handle a configuration option --with-included-libunistring.
30811         * modules/libunistring (Files): Add m4/absolute-header.m4.
30812         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
30813         Add m4/libunistring-base.m4.
30814         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30815         (Makefile.am): Build unicase.h from unicase.in.h.
30816         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
30817         Add m4/libunistring-base.m4.
30818         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30819         (Makefile.am): Build uniconv.h from uniconv.in.h.
30820         * modules/unictype/base (Files): Use unictype.in.h instead of
30821         unictype.h. Add m4/libunistring-base.m4.
30822         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30823         (Makefile.am): Build unictype.h from unictype.in.h.
30824         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
30825         Add m4/libunistring-base.m4.
30826         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30827         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
30828         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
30829         Add m4/libunistring-base.m4.
30830         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30831         (Makefile.am): Build uniname.h from uniname.in.h.
30832         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
30833         Add m4/libunistring-base.m4.
30834         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30835         (Makefile.am): Build uninorm.h from uninorm.in.h.
30836         * modules/unistdio/base (Files): Use unistdio.in.h instead of
30837         unistdio.h. Add m4/libunistring-base.m4.
30838         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30839         (Makefile.am): Build unistdio.h from unistdio.in.h.
30840         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
30841         Add m4/libunistring-base.m4.
30842         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30843         (Makefile.am): Build unistr.h from unistr.in.h.
30844         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
30845         Add m4/libunistring-base.m4.
30846         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30847         (Makefile.am): Build unitypes.h from unitypes.in.h.
30848         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
30849         Add m4/libunistring-base.m4.
30850         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30851         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
30852         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
30853         uniwidth.h. Add m4/libunistring-base.m4.
30854         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30855         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
30856         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
30857         instead of augmenting lib_SOURCES.
30858         * modules/unicase/empty-suffix-context: Likewise.
30859         * modules/unicase/locale-language: Likewise.
30860         * modules/unicase/tolower: Likewise.
30861         * modules/unicase/totitle: Likewise.
30862         * modules/unicase/toupper: Likewise.
30863         * modules/unicase/u8-casecmp: Likewise.
30864         * modules/unicase/u8-casecoll: Likewise.
30865         * modules/unicase/u8-casefold: Likewise.
30866         * modules/unicase/u8-casexfrm: Likewise.
30867         * modules/unicase/u8-ct-casefold: Likewise.
30868         * modules/unicase/u8-ct-tolower: Likewise.
30869         * modules/unicase/u8-ct-totitle: Likewise.
30870         * modules/unicase/u8-ct-toupper: Likewise.
30871         * modules/unicase/u8-is-cased: Likewise.
30872         * modules/unicase/u8-is-casefolded: Likewise.
30873         * modules/unicase/u8-is-lowercase: Likewise.
30874         * modules/unicase/u8-is-titlecase: Likewise.
30875         * modules/unicase/u8-is-uppercase: Likewise.
30876         * modules/unicase/u8-prefix-context: Likewise.
30877         * modules/unicase/u8-suffix-context: Likewise.
30878         * modules/unicase/u8-tolower: Likewise.
30879         * modules/unicase/u8-totitle: Likewise.
30880         * modules/unicase/u8-toupper: Likewise.
30881         * modules/unicase/u16-casecmp: Likewise.
30882         * modules/unicase/u16-casecoll: Likewise.
30883         * modules/unicase/u16-casefold: Likewise.
30884         * modules/unicase/u16-casexfrm: Likewise.
30885         * modules/unicase/u16-ct-casefold: Likewise.
30886         * modules/unicase/u16-ct-tolower: Likewise.
30887         * modules/unicase/u16-ct-totitle: Likewise.
30888         * modules/unicase/u16-ct-toupper: Likewise.
30889         * modules/unicase/u16-is-cased: Likewise.
30890         * modules/unicase/u16-is-casefolded: Likewise.
30891         * modules/unicase/u16-is-lowercase: Likewise.
30892         * modules/unicase/u16-is-titlecase: Likewise.
30893         * modules/unicase/u16-is-uppercase: Likewise.
30894         * modules/unicase/u16-prefix-context: Likewise.
30895         * modules/unicase/u16-suffix-context: Likewise.
30896         * modules/unicase/u16-tolower: Likewise.
30897         * modules/unicase/u16-totitle: Likewise.
30898         * modules/unicase/u16-toupper: Likewise.
30899         * modules/unicase/u32-casecmp: Likewise.
30900         * modules/unicase/u32-casecoll: Likewise.
30901         * modules/unicase/u32-casefold: Likewise.
30902         * modules/unicase/u32-casexfrm: Likewise.
30903         * modules/unicase/u32-ct-casefold: Likewise.
30904         * modules/unicase/u32-ct-tolower: Likewise.
30905         * modules/unicase/u32-ct-totitle: Likewise.
30906         * modules/unicase/u32-ct-toupper: Likewise.
30907         * modules/unicase/u32-is-cased: Likewise.
30908         * modules/unicase/u32-is-casefolded: Likewise.
30909         * modules/unicase/u32-is-lowercase: Likewise.
30910         * modules/unicase/u32-is-titlecase: Likewise.
30911         * modules/unicase/u32-is-uppercase: Likewise.
30912         * modules/unicase/u32-prefix-context: Likewise.
30913         * modules/unicase/u32-suffix-context: Likewise.
30914         * modules/unicase/u32-tolower: Likewise.
30915         * modules/unicase/u32-totitle: Likewise.
30916         * modules/unicase/u32-toupper: Likewise.
30917         * modules/unicase/ulc-casecmp: Likewise.
30918         * modules/unicase/ulc-casecoll: Likewise.
30919         * modules/unicase/ulc-casexfrm: Likewise.
30920         * modules/uniconv/u8-conv-from-enc: Likewise.
30921         * modules/uniconv/u8-conv-to-enc: Likewise.
30922         * modules/uniconv/u8-strconv-from-enc: Likewise.
30923         * modules/uniconv/u8-strconv-from-locale: Likewise.
30924         * modules/uniconv/u8-strconv-to-enc: Likewise.
30925         * modules/uniconv/u8-strconv-to-locale: Likewise.
30926         * modules/uniconv/u16-conv-from-enc: Likewise.
30927         * modules/uniconv/u16-conv-to-enc: Likewise.
30928         * modules/uniconv/u16-strconv-from-enc: Likewise.
30929         * modules/uniconv/u16-strconv-from-locale: Likewise.
30930         * modules/uniconv/u16-strconv-to-enc: Likewise.
30931         * modules/uniconv/u16-strconv-to-locale: Likewise.
30932         * modules/uniconv/u32-conv-from-enc: Likewise.
30933         * modules/uniconv/u32-conv-to-enc: Likewise.
30934         * modules/uniconv/u32-strconv-from-enc: Likewise.
30935         * modules/uniconv/u32-strconv-from-locale: Likewise.
30936         * modules/uniconv/u32-strconv-to-enc: Likewise.
30937         * modules/uniconv/u32-strconv-to-locale: Likewise.
30938         * modules/unictype/bidicategory-byname: Likewise.
30939         * modules/unictype/bidicategory-name: Likewise.
30940         * modules/unictype/bidicategory-of: Likewise.
30941         * modules/unictype/bidicategory-test: Likewise.
30942         * modules/unictype/block-list: Likewise.
30943         * modules/unictype/block-test: Likewise.
30944         * modules/unictype/category-C: Likewise.
30945         * modules/unictype/category-Cc: Likewise.
30946         * modules/unictype/category-Cf: Likewise.
30947         * modules/unictype/category-Cn: Likewise.
30948         * modules/unictype/category-Co: Likewise.
30949         * modules/unictype/category-Cs: Likewise.
30950         * modules/unictype/category-L: Likewise.
30951         * modules/unictype/category-Ll: Likewise.
30952         * modules/unictype/category-Lm: Likewise.
30953         * modules/unictype/category-Lo: Likewise.
30954         * modules/unictype/category-Lt: Likewise.
30955         * modules/unictype/category-Lu: Likewise.
30956         * modules/unictype/category-M: Likewise.
30957         * modules/unictype/category-Mc: Likewise.
30958         * modules/unictype/category-Me: Likewise.
30959         * modules/unictype/category-Mn: Likewise.
30960         * modules/unictype/category-N: Likewise.
30961         * modules/unictype/category-Nd: Likewise.
30962         * modules/unictype/category-Nl: Likewise.
30963         * modules/unictype/category-No: Likewise.
30964         * modules/unictype/category-P: Likewise.
30965         * modules/unictype/category-Pc: Likewise.
30966         * modules/unictype/category-Pd: Likewise.
30967         * modules/unictype/category-Pe: Likewise.
30968         * modules/unictype/category-Pf: Likewise.
30969         * modules/unictype/category-Pi: Likewise.
30970         * modules/unictype/category-Po: Likewise.
30971         * modules/unictype/category-Ps: Likewise.
30972         * modules/unictype/category-S: Likewise.
30973         * modules/unictype/category-Sc: Likewise.
30974         * modules/unictype/category-Sk: Likewise.
30975         * modules/unictype/category-Sm: Likewise.
30976         * modules/unictype/category-So: Likewise.
30977         * modules/unictype/category-Z: Likewise.
30978         * modules/unictype/category-Zl: Likewise.
30979         * modules/unictype/category-Zp: Likewise.
30980         * modules/unictype/category-Zs: Likewise.
30981         * modules/unictype/category-and: Likewise.
30982         * modules/unictype/category-and-not: Likewise.
30983         * modules/unictype/category-byname: Likewise.
30984         * modules/unictype/category-name: Likewise.
30985         * modules/unictype/category-none: Likewise.
30986         * modules/unictype/category-of: Likewise.
30987         * modules/unictype/category-or: Likewise.
30988         * modules/unictype/category-test: Likewise.
30989         * modules/unictype/combining-class: Likewise.
30990         * modules/unictype/ctype-alnum: Likewise.
30991         * modules/unictype/ctype-alpha: Likewise.
30992         * modules/unictype/ctype-blank: Likewise.
30993         * modules/unictype/ctype-cntrl: Likewise.
30994         * modules/unictype/ctype-digit: Likewise.
30995         * modules/unictype/ctype-graph: Likewise.
30996         * modules/unictype/ctype-lower: Likewise.
30997         * modules/unictype/ctype-print: Likewise.
30998         * modules/unictype/ctype-punct: Likewise.
30999         * modules/unictype/ctype-space: Likewise.
31000         * modules/unictype/ctype-upper: Likewise.
31001         * modules/unictype/ctype-xdigit: Likewise.
31002         * modules/unictype/decimal-digit: Likewise.
31003         * modules/unictype/digit: Likewise.
31004         * modules/unictype/mirror: Likewise.
31005         * modules/unictype/numeric: Likewise.
31006         * modules/unictype/property-alphabetic: Likewise.
31007         * modules/unictype/property-ascii-hex-digit: Likewise.
31008         * modules/unictype/property-bidi-arabic-digit: Likewise.
31009         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31010         * modules/unictype/property-bidi-block-separator: Likewise.
31011         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31012         * modules/unictype/property-bidi-common-separator: Likewise.
31013         * modules/unictype/property-bidi-control: Likewise.
31014         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31015         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31016         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31017         * modules/unictype/property-bidi-european-digit: Likewise.
31018         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31019         * modules/unictype/property-bidi-left-to-right: Likewise.
31020         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31021         * modules/unictype/property-bidi-other-neutral: Likewise.
31022         * modules/unictype/property-bidi-pdf: Likewise.
31023         * modules/unictype/property-bidi-segment-separator: Likewise.
31024         * modules/unictype/property-bidi-whitespace: Likewise.
31025         * modules/unictype/property-byname: Likewise.
31026         * modules/unictype/property-combining: Likewise.
31027         * modules/unictype/property-composite: Likewise.
31028         * modules/unictype/property-currency-symbol: Likewise.
31029         * modules/unictype/property-dash: Likewise.
31030         * modules/unictype/property-decimal-digit: Likewise.
31031         * modules/unictype/property-default-ignorable-code-point: Likewise.
31032         * modules/unictype/property-deprecated: Likewise.
31033         * modules/unictype/property-diacritic: Likewise.
31034         * modules/unictype/property-extender: Likewise.
31035         * modules/unictype/property-format-control: Likewise.
31036         * modules/unictype/property-grapheme-base: Likewise.
31037         * modules/unictype/property-grapheme-extend: Likewise.
31038         * modules/unictype/property-grapheme-link: Likewise.
31039         * modules/unictype/property-hex-digit: Likewise.
31040         * modules/unictype/property-hyphen: Likewise.
31041         * modules/unictype/property-id-continue: Likewise.
31042         * modules/unictype/property-id-start: Likewise.
31043         * modules/unictype/property-ideographic: Likewise.
31044         * modules/unictype/property-ids-binary-operator: Likewise.
31045         * modules/unictype/property-ids-trinary-operator: Likewise.
31046         * modules/unictype/property-ignorable-control: Likewise.
31047         * modules/unictype/property-iso-control: Likewise.
31048         * modules/unictype/property-join-control: Likewise.
31049         * modules/unictype/property-left-of-pair: Likewise.
31050         * modules/unictype/property-line-separator: Likewise.
31051         * modules/unictype/property-logical-order-exception: Likewise.
31052         * modules/unictype/property-lowercase: Likewise.
31053         * modules/unictype/property-math: Likewise.
31054         * modules/unictype/property-non-break: Likewise.
31055         * modules/unictype/property-not-a-character: Likewise.
31056         * modules/unictype/property-numeric: Likewise.
31057         * modules/unictype/property-other-alphabetic: Likewise.
31058         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31059         * modules/unictype/property-other-grapheme-extend: Likewise.
31060         * modules/unictype/property-other-id-continue: Likewise.
31061         * modules/unictype/property-other-id-start: Likewise.
31062         * modules/unictype/property-other-lowercase: Likewise.
31063         * modules/unictype/property-other-math: Likewise.
31064         * modules/unictype/property-other-uppercase: Likewise.
31065         * modules/unictype/property-paired-punctuation: Likewise.
31066         * modules/unictype/property-paragraph-separator: Likewise.
31067         * modules/unictype/property-pattern-syntax: Likewise.
31068         * modules/unictype/property-pattern-white-space: Likewise.
31069         * modules/unictype/property-private-use: Likewise.
31070         * modules/unictype/property-punctuation: Likewise.
31071         * modules/unictype/property-quotation-mark: Likewise.
31072         * modules/unictype/property-radical: Likewise.
31073         * modules/unictype/property-sentence-terminal: Likewise.
31074         * modules/unictype/property-soft-dotted: Likewise.
31075         * modules/unictype/property-space: Likewise.
31076         * modules/unictype/property-terminal-punctuation: Likewise.
31077         * modules/unictype/property-test: Likewise.
31078         * modules/unictype/property-titlecase: Likewise.
31079         * modules/unictype/property-unassigned-code-value: Likewise.
31080         * modules/unictype/property-unified-ideograph: Likewise.
31081         * modules/unictype/property-uppercase: Likewise.
31082         * modules/unictype/property-variation-selector: Likewise.
31083         * modules/unictype/property-white-space: Likewise.
31084         * modules/unictype/property-xid-continue: Likewise.
31085         * modules/unictype/property-xid-start: Likewise.
31086         * modules/unictype/property-zero-width: Likewise.
31087         * modules/unictype/scripts: Likewise.
31088         * modules/unictype/syntax-c-ident: Likewise.
31089         * modules/unictype/syntax-c-whitespace: Likewise.
31090         * modules/unictype/syntax-java-ident: Likewise.
31091         * modules/unictype/syntax-java-whitespace: Likewise.
31092         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31093         * modules/unilbrk/u8-width-linebreaks: Likewise.
31094         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31095         * modules/unilbrk/u16-width-linebreaks: Likewise.
31096         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31097         * modules/unilbrk/u32-width-linebreaks: Likewise.
31098         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31099         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31100         * modules/uniname/uniname: Likewise.
31101         * modules/uninorm/canonical-decomposition: Likewise.
31102         * modules/uninorm/composition: Likewise.
31103         * modules/uninorm/decomposing-form: Likewise.
31104         * modules/uninorm/decomposition: Likewise.
31105         * modules/uninorm/filter: Likewise.
31106         * modules/uninorm/nfc: Likewise.
31107         * modules/uninorm/nfd: Likewise.
31108         * modules/uninorm/nfkc: Likewise.
31109         * modules/uninorm/nfkd: Likewise.
31110         * modules/uninorm/u8-normalize: Likewise.
31111         * modules/uninorm/u8-normcmp: Likewise.
31112         * modules/uninorm/u8-normcoll: Likewise.
31113         * modules/uninorm/u8-normxfrm: Likewise.
31114         * modules/uninorm/u16-normalize: Likewise.
31115         * modules/uninorm/u16-normcmp: Likewise.
31116         * modules/uninorm/u16-normcoll: Likewise.
31117         * modules/uninorm/u16-normxfrm: Likewise.
31118         * modules/uninorm/u32-normalize: Likewise.
31119         * modules/uninorm/u32-normcmp: Likewise.
31120         * modules/uninorm/u32-normcoll: Likewise.
31121         * modules/uninorm/u32-normxfrm: Likewise.
31122         * modules/unistdio/u8-asnprintf: Likewise.
31123         * modules/unistdio/u8-asprintf: Likewise.
31124         * modules/unistdio/u8-snprintf: Likewise.
31125         * modules/unistdio/u8-sprintf: Likewise.
31126         * modules/unistdio/u8-u8-asnprintf: Likewise.
31127         * modules/unistdio/u8-u8-asprintf: Likewise.
31128         * modules/unistdio/u8-u8-snprintf: Likewise.
31129         * modules/unistdio/u8-u8-sprintf: Likewise.
31130         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31131         * modules/unistdio/u8-u8-vasprintf: Likewise.
31132         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31133         * modules/unistdio/u8-u8-vsprintf: Likewise.
31134         * modules/unistdio/u8-vasnprintf: Likewise.
31135         * modules/unistdio/u8-vasprintf: Likewise.
31136         * modules/unistdio/u8-vsnprintf: Likewise.
31137         * modules/unistdio/u8-vsprintf: Likewise.
31138         * modules/unistdio/u16-asnprintf: Likewise.
31139         * modules/unistdio/u16-asprintf: Likewise.
31140         * modules/unistdio/u16-snprintf: Likewise.
31141         * modules/unistdio/u16-sprintf: Likewise.
31142         * modules/unistdio/u16-u16-asnprintf: Likewise.
31143         * modules/unistdio/u16-u16-asprintf: Likewise.
31144         * modules/unistdio/u16-u16-snprintf: Likewise.
31145         * modules/unistdio/u16-u16-sprintf: Likewise.
31146         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31147         * modules/unistdio/u16-u16-vasprintf: Likewise.
31148         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31149         * modules/unistdio/u16-u16-vsprintf: Likewise.
31150         * modules/unistdio/u16-vasnprintf: Likewise.
31151         * modules/unistdio/u16-vasprintf: Likewise.
31152         * modules/unistdio/u16-vsnprintf: Likewise.
31153         * modules/unistdio/u16-vsprintf: Likewise.
31154         * modules/unistdio/u32-asnprintf: Likewise.
31155         * modules/unistdio/u32-asprintf: Likewise.
31156         * modules/unistdio/u32-snprintf: Likewise.
31157         * modules/unistdio/u32-sprintf: Likewise.
31158         * modules/unistdio/u32-u32-asnprintf: Likewise.
31159         * modules/unistdio/u32-u32-asprintf: Likewise.
31160         * modules/unistdio/u32-u32-snprintf: Likewise.
31161         * modules/unistdio/u32-u32-sprintf: Likewise.
31162         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31163         * modules/unistdio/u32-u32-vasprintf: Likewise.
31164         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31165         * modules/unistdio/u32-u32-vsprintf: Likewise.
31166         * modules/unistdio/u32-vasnprintf: Likewise.
31167         * modules/unistdio/u32-vasprintf: Likewise.
31168         * modules/unistdio/u32-vsnprintf: Likewise.
31169         * modules/unistdio/u32-vsprintf: Likewise.
31170         * modules/unistdio/ulc-asnprintf: Likewise.
31171         * modules/unistdio/ulc-asprintf: Likewise.
31172         * modules/unistdio/ulc-fprintf: Likewise.
31173         * modules/unistdio/ulc-snprintf: Likewise.
31174         * modules/unistdio/ulc-sprintf: Likewise.
31175         * modules/unistdio/ulc-vasnprintf: Likewise.
31176         * modules/unistdio/ulc-vasprintf: Likewise.
31177         * modules/unistdio/ulc-vfprintf: Likewise.
31178         * modules/unistdio/ulc-vsnprintf: Likewise.
31179         * modules/unistdio/ulc-vsprintf: Likewise.
31180         * modules/unistr/u8-check: Likewise.
31181         * modules/unistr/u8-chr: Likewise.
31182         * modules/unistr/u8-cmp: Likewise.
31183         * modules/unistr/u8-cmp2: Likewise.
31184         * modules/unistr/u8-cpy: Likewise.
31185         * modules/unistr/u8-cpy-alloc: Likewise.
31186         * modules/unistr/u8-endswith: Likewise.
31187         * modules/unistr/u8-mblen: Likewise.
31188         * modules/unistr/u8-mbsnlen: Likewise.
31189         * modules/unistr/u8-mbtouc: Likewise.
31190         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31191         * modules/unistr/u8-mbtoucr: Likewise.
31192         * modules/unistr/u8-move: Likewise.
31193         * modules/unistr/u8-next: Likewise.
31194         * modules/unistr/u8-prev: Likewise.
31195         * modules/unistr/u8-set: Likewise.
31196         * modules/unistr/u8-startswith: Likewise.
31197         * modules/unistr/u8-stpcpy: Likewise.
31198         * modules/unistr/u8-stpncpy: Likewise.
31199         * modules/unistr/u8-strcat: Likewise.
31200         * modules/unistr/u8-strchr: Likewise.
31201         * modules/unistr/u8-strcmp: Likewise.
31202         * modules/unistr/u8-strcoll: Likewise.
31203         * modules/unistr/u8-strcpy: Likewise.
31204         * modules/unistr/u8-strcspn: Likewise.
31205         * modules/unistr/u8-strdup: Likewise.
31206         * modules/unistr/u8-strlen: Likewise.
31207         * modules/unistr/u8-strmblen: Likewise.
31208         * modules/unistr/u8-strmbtouc: Likewise.
31209         * modules/unistr/u8-strncat: Likewise.
31210         * modules/unistr/u8-strncmp: Likewise.
31211         * modules/unistr/u8-strncpy: Likewise.
31212         * modules/unistr/u8-strnlen: Likewise.
31213         * modules/unistr/u8-strpbrk: Likewise.
31214         * modules/unistr/u8-strrchr: Likewise.
31215         * modules/unistr/u8-strspn: Likewise.
31216         * modules/unistr/u8-strstr: Likewise.
31217         * modules/unistr/u8-strtok: Likewise.
31218         * modules/unistr/u8-to-u16: Likewise.
31219         * modules/unistr/u8-to-u32: Likewise.
31220         * modules/unistr/u8-uctomb: Likewise.
31221         * modules/unistr/u16-check: Likewise.
31222         * modules/unistr/u16-chr: Likewise.
31223         * modules/unistr/u16-cmp: Likewise.
31224         * modules/unistr/u16-cmp2: Likewise.
31225         * modules/unistr/u16-cpy: Likewise.
31226         * modules/unistr/u16-cpy-alloc: Likewise.
31227         * modules/unistr/u16-endswith: Likewise.
31228         * modules/unistr/u16-mblen: Likewise.
31229         * modules/unistr/u16-mbsnlen: Likewise.
31230         * modules/unistr/u16-mbtouc: Likewise.
31231         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31232         * modules/unistr/u16-mbtoucr: Likewise.
31233         * modules/unistr/u16-move: Likewise.
31234         * modules/unistr/u16-next: Likewise.
31235         * modules/unistr/u16-prev: Likewise.
31236         * modules/unistr/u16-set: Likewise.
31237         * modules/unistr/u16-startswith: Likewise.
31238         * modules/unistr/u16-stpcpy: Likewise.
31239         * modules/unistr/u16-stpncpy: Likewise.
31240         * modules/unistr/u16-strcat: Likewise.
31241         * modules/unistr/u16-strchr: Likewise.
31242         * modules/unistr/u16-strcmp: Likewise.
31243         * modules/unistr/u16-strcoll: Likewise.
31244         * modules/unistr/u16-strcpy: Likewise.
31245         * modules/unistr/u16-strcspn: Likewise.
31246         * modules/unistr/u16-strdup: Likewise.
31247         * modules/unistr/u16-strlen: Likewise.
31248         * modules/unistr/u16-strmblen: Likewise.
31249         * modules/unistr/u16-strmbtouc: Likewise.
31250         * modules/unistr/u16-strncat: Likewise.
31251         * modules/unistr/u16-strncmp: Likewise.
31252         * modules/unistr/u16-strncpy: Likewise.
31253         * modules/unistr/u16-strnlen: Likewise.
31254         * modules/unistr/u16-strpbrk: Likewise.
31255         * modules/unistr/u16-strrchr: Likewise.
31256         * modules/unistr/u16-strspn: Likewise.
31257         * modules/unistr/u16-strstr: Likewise.
31258         * modules/unistr/u16-strtok: Likewise.
31259         * modules/unistr/u16-to-u32: Likewise.
31260         * modules/unistr/u16-to-u8: Likewise.
31261         * modules/unistr/u16-uctomb: Likewise.
31262         * modules/unistr/u32-check: Likewise.
31263         * modules/unistr/u32-chr: Likewise.
31264         * modules/unistr/u32-cmp: Likewise.
31265         * modules/unistr/u32-cmp2: Likewise.
31266         * modules/unistr/u32-cpy: Likewise.
31267         * modules/unistr/u32-cpy-alloc: Likewise.
31268         * modules/unistr/u32-endswith: Likewise.
31269         * modules/unistr/u32-mblen: Likewise.
31270         * modules/unistr/u32-mbsnlen: Likewise.
31271         * modules/unistr/u32-mbtouc: Likewise.
31272         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31273         * modules/unistr/u32-mbtoucr: Likewise.
31274         * modules/unistr/u32-move: Likewise.
31275         * modules/unistr/u32-next: Likewise.
31276         * modules/unistr/u32-prev: Likewise.
31277         * modules/unistr/u32-set: Likewise.
31278         * modules/unistr/u32-startswith: Likewise.
31279         * modules/unistr/u32-stpcpy: Likewise.
31280         * modules/unistr/u32-stpncpy: Likewise.
31281         * modules/unistr/u32-strcat: Likewise.
31282         * modules/unistr/u32-strchr: Likewise.
31283         * modules/unistr/u32-strcmp: Likewise.
31284         * modules/unistr/u32-strcoll: Likewise.
31285         * modules/unistr/u32-strcpy: Likewise.
31286         * modules/unistr/u32-strcspn: Likewise.
31287         * modules/unistr/u32-strdup: Likewise.
31288         * modules/unistr/u32-strlen: Likewise.
31289         * modules/unistr/u32-strmblen: Likewise.
31290         * modules/unistr/u32-strmbtouc: Likewise.
31291         * modules/unistr/u32-strncat: Likewise.
31292         * modules/unistr/u32-strncmp: Likewise.
31293         * modules/unistr/u32-strncpy: Likewise.
31294         * modules/unistr/u32-strnlen: Likewise.
31295         * modules/unistr/u32-strpbrk: Likewise.
31296         * modules/unistr/u32-strrchr: Likewise.
31297         * modules/unistr/u32-strspn: Likewise.
31298         * modules/unistr/u32-strstr: Likewise.
31299         * modules/unistr/u32-strtok: Likewise.
31300         * modules/unistr/u32-to-u16: Likewise.
31301         * modules/unistr/u32-to-u8: Likewise.
31302         * modules/unistr/u32-uctomb: Likewise.
31303         * modules/uniwbrk/u8-wordbreaks: Likewise.
31304         * modules/uniwbrk/u16-wordbreaks: Likewise.
31305         * modules/uniwbrk/u32-wordbreaks: Likewise.
31306         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31307         * modules/uniwbrk/wordbreak-property: Likewise.
31308         * modules/uniwidth/u8-strwidth: Likewise.
31309         * modules/uniwidth/u8-width: Likewise.
31310         * modules/uniwidth/u16-strwidth: Likewise.
31311         * modules/uniwidth/u16-width: Likewise.
31312         * modules/uniwidth/u32-strwidth: Likewise.
31313         * modules/uniwidth/u32-width: Likewise.
31314         * modules/uniwidth/width: Likewise.
31315         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31316         with $(LIBUNISTRING).
31317         * modules/unicase/ignorable-tests: Likewise.
31318         * modules/unicase/locale-language-tests: Likewise.
31319         * modules/unicase/tolower-tests: Likewise.
31320         * modules/unicase/totitle-tests: Likewise.
31321         * modules/unicase/toupper-tests: Likewise.
31322         * modules/unicase/u8-casecmp-tests: Likewise.
31323         * modules/unicase/u8-casecoll-tests: Likewise.
31324         * modules/unicase/u8-casefold-tests: Likewise.
31325         * modules/unicase/u8-is-cased-tests: Likewise.
31326         * modules/unicase/u8-is-casefolded-tests: Likewise.
31327         * modules/unicase/u8-is-lowercase-tests: Likewise.
31328         * modules/unicase/u8-is-titlecase-tests: Likewise.
31329         * modules/unicase/u8-is-uppercase-tests: Likewise.
31330         * modules/unicase/u8-tolower-tests: Likewise.
31331         * modules/unicase/u8-totitle-tests: Likewise.
31332         * modules/unicase/u8-toupper-tests: Likewise.
31333         * modules/unicase/u16-casecmp-tests: Likewise.
31334         * modules/unicase/u16-casecoll-tests: Likewise.
31335         * modules/unicase/u16-casefold-tests: Likewise.
31336         * modules/unicase/u16-is-cased-tests: Likewise.
31337         * modules/unicase/u16-is-casefolded-tests: Likewise.
31338         * modules/unicase/u16-is-lowercase-tests: Likewise.
31339         * modules/unicase/u16-is-titlecase-tests: Likewise.
31340         * modules/unicase/u16-is-uppercase-tests: Likewise.
31341         * modules/unicase/u16-tolower-tests: Likewise.
31342         * modules/unicase/u16-totitle-tests: Likewise.
31343         * modules/unicase/u16-toupper-tests: Likewise.
31344         * modules/unicase/u32-casecmp-tests: Likewise.
31345         * modules/unicase/u32-casecoll-tests: Likewise.
31346         * modules/unicase/u32-casefold-tests: Likewise.
31347         * modules/unicase/u32-is-cased-tests: Likewise.
31348         * modules/unicase/u32-is-casefolded-tests: Likewise.
31349         * modules/unicase/u32-is-lowercase-tests: Likewise.
31350         * modules/unicase/u32-is-titlecase-tests: Likewise.
31351         * modules/unicase/u32-is-uppercase-tests: Likewise.
31352         * modules/unicase/u32-tolower-tests: Likewise.
31353         * modules/unicase/u32-totitle-tests: Likewise.
31354         * modules/unicase/u32-toupper-tests: Likewise.
31355         * modules/unicase/ulc-casecmp-tests: Likewise.
31356         * modules/unicase/ulc-casecoll-tests: Likewise.
31357         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31358         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31359         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31360         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31361         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31362         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31363         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31364         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31365         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31366         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31367         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31368         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31369         * modules/unictype/bidicategory-byname-tests: Likewise.
31370         * modules/unictype/bidicategory-name-tests: Likewise.
31371         * modules/unictype/bidicategory-of-tests: Likewise.
31372         * modules/unictype/bidicategory-test-tests: Likewise.
31373         * modules/unictype/block-list-tests: Likewise.
31374         * modules/unictype/block-of-tests: Likewise.
31375         * modules/unictype/block-test-tests: Likewise.
31376         * modules/unictype/category-C-tests: Likewise.
31377         * modules/unictype/category-Cc-tests: Likewise.
31378         * modules/unictype/category-Cf-tests: Likewise.
31379         * modules/unictype/category-Cn-tests: Likewise.
31380         * modules/unictype/category-Co-tests: Likewise.
31381         * modules/unictype/category-Cs-tests: Likewise.
31382         * modules/unictype/category-L-tests: Likewise.
31383         * modules/unictype/category-Ll-tests: Likewise.
31384         * modules/unictype/category-Lm-tests: Likewise.
31385         * modules/unictype/category-Lo-tests: Likewise.
31386         * modules/unictype/category-Lt-tests: Likewise.
31387         * modules/unictype/category-Lu-tests: Likewise.
31388         * modules/unictype/category-M-tests: Likewise.
31389         * modules/unictype/category-Mc-tests: Likewise.
31390         * modules/unictype/category-Me-tests: Likewise.
31391         * modules/unictype/category-Mn-tests: Likewise.
31392         * modules/unictype/category-N-tests: Likewise.
31393         * modules/unictype/category-Nd-tests: Likewise.
31394         * modules/unictype/category-Nl-tests: Likewise.
31395         * modules/unictype/category-No-tests: Likewise.
31396         * modules/unictype/category-P-tests: Likewise.
31397         * modules/unictype/category-Pc-tests: Likewise.
31398         * modules/unictype/category-Pd-tests: Likewise.
31399         * modules/unictype/category-Pe-tests: Likewise.
31400         * modules/unictype/category-Pf-tests: Likewise.
31401         * modules/unictype/category-Pi-tests: Likewise.
31402         * modules/unictype/category-Po-tests: Likewise.
31403         * modules/unictype/category-Ps-tests: Likewise.
31404         * modules/unictype/category-S-tests: Likewise.
31405         * modules/unictype/category-Sc-tests: Likewise.
31406         * modules/unictype/category-Sk-tests: Likewise.
31407         * modules/unictype/category-Sm-tests: Likewise.
31408         * modules/unictype/category-So-tests: Likewise.
31409         * modules/unictype/category-Z-tests: Likewise.
31410         * modules/unictype/category-Zl-tests: Likewise.
31411         * modules/unictype/category-Zp-tests: Likewise.
31412         * modules/unictype/category-Zs-tests: Likewise.
31413         * modules/unictype/category-and-not-tests: Likewise.
31414         * modules/unictype/category-and-tests: Likewise.
31415         * modules/unictype/category-byname-tests: Likewise.
31416         * modules/unictype/category-name-tests: Likewise.
31417         * modules/unictype/category-none-tests: Likewise.
31418         * modules/unictype/category-of-tests: Likewise.
31419         * modules/unictype/category-or-tests: Likewise.
31420         * modules/unictype/category-test-withtable-tests: Likewise.
31421         * modules/unictype/combining-class-tests: Likewise.
31422         * modules/unictype/ctype-alnum-tests: Likewise.
31423         * modules/unictype/ctype-alpha-tests: Likewise.
31424         * modules/unictype/ctype-blank-tests: Likewise.
31425         * modules/unictype/ctype-cntrl-tests: Likewise.
31426         * modules/unictype/ctype-digit-tests: Likewise.
31427         * modules/unictype/ctype-graph-tests: Likewise.
31428         * modules/unictype/ctype-lower-tests: Likewise.
31429         * modules/unictype/ctype-print-tests: Likewise.
31430         * modules/unictype/ctype-punct-tests: Likewise.
31431         * modules/unictype/ctype-space-tests: Likewise.
31432         * modules/unictype/ctype-upper-tests: Likewise.
31433         * modules/unictype/ctype-xdigit-tests: Likewise.
31434         * modules/unictype/decimal-digit-tests: Likewise.
31435         * modules/unictype/digit-tests: Likewise.
31436         * modules/unictype/mirror-tests: Likewise.
31437         * modules/unictype/numeric-tests: Likewise.
31438         * modules/unictype/property-alphabetic-tests: Likewise.
31439         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31440         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31441         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31442         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31443         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31444         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31445         * modules/unictype/property-bidi-control-tests: Likewise.
31446         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31447         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31448         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31449         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31450         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31451         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31452         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31453         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31454         * modules/unictype/property-bidi-pdf-tests: Likewise.
31455         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31456         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31457         * modules/unictype/property-byname-tests: Likewise.
31458         * modules/unictype/property-combining-tests: Likewise.
31459         * modules/unictype/property-composite-tests: Likewise.
31460         * modules/unictype/property-currency-symbol-tests: Likewise.
31461         * modules/unictype/property-dash-tests: Likewise.
31462         * modules/unictype/property-decimal-digit-tests: Likewise.
31463         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31464         * modules/unictype/property-deprecated-tests: Likewise.
31465         * modules/unictype/property-diacritic-tests: Likewise.
31466         * modules/unictype/property-extender-tests: Likewise.
31467         * modules/unictype/property-format-control-tests: Likewise.
31468         * modules/unictype/property-grapheme-base-tests: Likewise.
31469         * modules/unictype/property-grapheme-extend-tests: Likewise.
31470         * modules/unictype/property-grapheme-link-tests: Likewise.
31471         * modules/unictype/property-hex-digit-tests: Likewise.
31472         * modules/unictype/property-hyphen-tests: Likewise.
31473         * modules/unictype/property-id-continue-tests: Likewise.
31474         * modules/unictype/property-id-start-tests: Likewise.
31475         * modules/unictype/property-ideographic-tests: Likewise.
31476         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31477         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31478         * modules/unictype/property-ignorable-control-tests: Likewise.
31479         * modules/unictype/property-iso-control-tests: Likewise.
31480         * modules/unictype/property-join-control-tests: Likewise.
31481         * modules/unictype/property-left-of-pair-tests: Likewise.
31482         * modules/unictype/property-line-separator-tests: Likewise.
31483         * modules/unictype/property-logical-order-exception-tests: Likewise.
31484         * modules/unictype/property-lowercase-tests: Likewise.
31485         * modules/unictype/property-math-tests: Likewise.
31486         * modules/unictype/property-non-break-tests: Likewise.
31487         * modules/unictype/property-not-a-character-tests: Likewise.
31488         * modules/unictype/property-numeric-tests: Likewise.
31489         * modules/unictype/property-other-alphabetic-tests: Likewise.
31490         * modules/unictype/property-other-default-ignorable-code-point-tests:
31491         Likewise.
31492         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31493         * modules/unictype/property-other-id-continue-tests: Likewise.
31494         * modules/unictype/property-other-id-start-tests: Likewise.
31495         * modules/unictype/property-other-lowercase-tests: Likewise.
31496         * modules/unictype/property-other-math-tests: Likewise.
31497         * modules/unictype/property-other-uppercase-tests: Likewise.
31498         * modules/unictype/property-paired-punctuation-tests: Likewise.
31499         * modules/unictype/property-paragraph-separator-tests: Likewise.
31500         * modules/unictype/property-pattern-syntax-tests: Likewise.
31501         * modules/unictype/property-pattern-white-space-tests: Likewise.
31502         * modules/unictype/property-private-use-tests: Likewise.
31503         * modules/unictype/property-punctuation-tests: Likewise.
31504         * modules/unictype/property-quotation-mark-tests: Likewise.
31505         * modules/unictype/property-radical-tests: Likewise.
31506         * modules/unictype/property-sentence-terminal-tests: Likewise.
31507         * modules/unictype/property-soft-dotted-tests: Likewise.
31508         * modules/unictype/property-space-tests: Likewise.
31509         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31510         * modules/unictype/property-test-tests: Likewise.
31511         * modules/unictype/property-titlecase-tests: Likewise.
31512         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31513         * modules/unictype/property-unified-ideograph-tests: Likewise.
31514         * modules/unictype/property-uppercase-tests: Likewise.
31515         * modules/unictype/property-variation-selector-tests: Likewise.
31516         * modules/unictype/property-white-space-tests: Likewise.
31517         * modules/unictype/property-xid-continue-tests: Likewise.
31518         * modules/unictype/property-xid-start-tests: Likewise.
31519         * modules/unictype/property-zero-width-tests: Likewise.
31520         * modules/unictype/scripts-tests: Likewise.
31521         * modules/unictype/syntax-c-ident-tests: Likewise.
31522         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31523         * modules/unictype/syntax-java-ident-tests: Likewise.
31524         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31525         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31526         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31527         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31528         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31529         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31530         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31531         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31532         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31533         * modules/uniname/uniname-tests: Likewise.
31534         * modules/uninorm/canonical-decomposition-tests: Likewise.
31535         * modules/uninorm/compat-decomposition-tests: Likewise.
31536         * modules/uninorm/composition-tests: Likewise.
31537         * modules/uninorm/decomposing-form-tests: Likewise.
31538         * modules/uninorm/decomposition-tests: Likewise.
31539         * modules/uninorm/filter-tests: Likewise.
31540         * modules/uninorm/nfc-tests: Likewise.
31541         * modules/uninorm/nfd-tests: Likewise.
31542         * modules/uninorm/nfkc-tests: Likewise.
31543         * modules/uninorm/nfkd-tests: Likewise.
31544         * modules/uninorm/u8-normcmp-tests: Likewise.
31545         * modules/uninorm/u8-normcoll-tests: Likewise.
31546         * modules/uninorm/u16-normcmp-tests: Likewise.
31547         * modules/uninorm/u16-normcoll-tests: Likewise.
31548         * modules/uninorm/u32-normcmp-tests: Likewise.
31549         * modules/uninorm/u32-normcoll-tests: Likewise.
31550         * modules/unistdio/u8-asnprintf-tests: Likewise.
31551         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31552         * modules/unistdio/u8-vasprintf-tests: Likewise.
31553         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31554         * modules/unistdio/u8-vsprintf-tests: Likewise.
31555         * modules/unistdio/u16-asnprintf-tests: Likewise.
31556         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31557         * modules/unistdio/u16-vasprintf-tests: Likewise.
31558         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31559         * modules/unistdio/u16-vsprintf-tests: Likewise.
31560         * modules/unistdio/u32-asnprintf-tests: Likewise.
31561         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31562         * modules/unistdio/u32-vasprintf-tests: Likewise.
31563         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31564         * modules/unistdio/u32-vsprintf-tests: Likewise.
31565         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31566         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31567         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31568         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31569         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31570         * modules/unistr/u8-check-tests: Likewise.
31571         * modules/unistr/u8-chr-tests: Likewise.
31572         * modules/unistr/u8-cmp-tests: Likewise.
31573         * modules/unistr/u8-cmp2-tests: Likewise.
31574         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31575         * modules/unistr/u8-cpy-tests: Likewise.
31576         * modules/unistr/u8-mblen-tests: Likewise.
31577         * modules/unistr/u8-mbsnlen-tests: Likewise.
31578         * modules/unistr/u8-mbtouc-tests: Likewise.
31579         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31580         * modules/unistr/u8-mbtoucr-tests: Likewise.
31581         * modules/unistr/u8-move-tests: Likewise.
31582         * modules/unistr/u8-next-tests: Likewise.
31583         * modules/unistr/u8-prev-tests: Likewise.
31584         * modules/unistr/u8-set-tests: Likewise.
31585         * modules/unistr/u8-stpcpy-tests: Likewise.
31586         * modules/unistr/u8-stpncpy-tests: Likewise.
31587         * modules/unistr/u8-strcat-tests: Likewise.
31588         * modules/unistr/u8-strcmp-tests: Likewise.
31589         * modules/unistr/u8-strcoll-tests: Likewise.
31590         * modules/unistr/u8-strcpy-tests: Likewise.
31591         * modules/unistr/u8-strdup-tests: Likewise.
31592         * modules/unistr/u8-strlen-tests: Likewise.
31593         * modules/unistr/u8-strmblen-tests: Likewise.
31594         * modules/unistr/u8-strmbtouc-tests: Likewise.
31595         * modules/unistr/u8-strncat-tests: Likewise.
31596         * modules/unistr/u8-strncmp-tests: Likewise.
31597         * modules/unistr/u8-strncpy-tests: Likewise.
31598         * modules/unistr/u8-strnlen-tests: Likewise.
31599         * modules/unistr/u8-to-u16-tests: Likewise.
31600         * modules/unistr/u8-to-u32-tests: Likewise.
31601         * modules/unistr/u8-uctomb-tests: Likewise.
31602         * modules/unistr/u16-check-tests: Likewise.
31603         * modules/unistr/u16-chr-tests: Likewise.
31604         * modules/unistr/u16-cmp-tests: Likewise.
31605         * modules/unistr/u16-cmp2-tests: Likewise.
31606         * modules/unistr/u16-cpy-alloc-tests: Likewise.
31607         * modules/unistr/u16-cpy-tests: Likewise.
31608         * modules/unistr/u16-mblen-tests: Likewise.
31609         * modules/unistr/u16-mbsnlen-tests: Likewise.
31610         * modules/unistr/u16-mbtouc-tests: Likewise.
31611         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
31612         * modules/unistr/u16-mbtoucr-tests: Likewise.
31613         * modules/unistr/u16-move-tests: Likewise.
31614         * modules/unistr/u16-next-tests: Likewise.
31615         * modules/unistr/u16-prev-tests: Likewise.
31616         * modules/unistr/u16-set-tests: Likewise.
31617         * modules/unistr/u16-stpcpy-tests: Likewise.
31618         * modules/unistr/u16-stpncpy-tests: Likewise.
31619         * modules/unistr/u16-strcat-tests: Likewise.
31620         * modules/unistr/u16-strcmp-tests: Likewise.
31621         * modules/unistr/u16-strcoll-tests: Likewise.
31622         * modules/unistr/u16-strcpy-tests: Likewise.
31623         * modules/unistr/u16-strdup-tests: Likewise.
31624         * modules/unistr/u16-strlen-tests: Likewise.
31625         * modules/unistr/u16-strmblen-tests: Likewise.
31626         * modules/unistr/u16-strmbtouc-tests: Likewise.
31627         * modules/unistr/u16-strncat-tests: Likewise.
31628         * modules/unistr/u16-strncmp-tests: Likewise.
31629         * modules/unistr/u16-strncpy-tests: Likewise.
31630         * modules/unistr/u16-strnlen-tests: Likewise.
31631         * modules/unistr/u16-to-u32-tests: Likewise.
31632         * modules/unistr/u16-to-u8-tests: Likewise.
31633         * modules/unistr/u16-uctomb-tests: Likewise.
31634         * modules/unistr/u32-check-tests: Likewise.
31635         * modules/unistr/u32-chr-tests: Likewise.
31636         * modules/unistr/u32-cmp-tests: Likewise.
31637         * modules/unistr/u32-cmp2-tests: Likewise.
31638         * modules/unistr/u32-cpy-alloc-tests: Likewise.
31639         * modules/unistr/u32-cpy-tests: Likewise.
31640         * modules/unistr/u32-mblen-tests: Likewise.
31641         * modules/unistr/u32-mbsnlen-tests: Likewise.
31642         * modules/unistr/u32-mbtouc-tests: Likewise.
31643         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
31644         * modules/unistr/u32-mbtoucr-tests: Likewise.
31645         * modules/unistr/u32-move-tests: Likewise.
31646         * modules/unistr/u32-next-tests: Likewise.
31647         * modules/unistr/u32-prev-tests: Likewise.
31648         * modules/unistr/u32-set-tests: Likewise.
31649         * modules/unistr/u32-stpcpy-tests: Likewise.
31650         * modules/unistr/u32-stpncpy-tests: Likewise.
31651         * modules/unistr/u32-strcat-tests: Likewise.
31652         * modules/unistr/u32-strcmp-tests: Likewise.
31653         * modules/unistr/u32-strcoll-tests: Likewise.
31654         * modules/unistr/u32-strcpy-tests: Likewise.
31655         * modules/unistr/u32-strdup-tests: Likewise.
31656         * modules/unistr/u32-strlen-tests: Likewise.
31657         * modules/unistr/u32-strmblen-tests: Likewise.
31658         * modules/unistr/u32-strmbtouc-tests: Likewise.
31659         * modules/unistr/u32-strncat-tests: Likewise.
31660         * modules/unistr/u32-strncmp-tests: Likewise.
31661         * modules/unistr/u32-strncpy-tests: Likewise.
31662         * modules/unistr/u32-strnlen-tests: Likewise.
31663         * modules/unistr/u32-to-u16-tests: Likewise.
31664         * modules/unistr/u32-to-u8-tests: Likewise.
31665         * modules/unistr/u32-uctomb-tests: Likewise.
31666         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
31667         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
31668         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
31669         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
31670         * modules/uniwidth/u8-strwidth-tests: Likewise.
31671         * modules/uniwidth/u8-width-tests: Likewise.
31672         * modules/uniwidth/u16-strwidth-tests: Likewise.
31673         * modules/uniwidth/u16-width-tests: Likewise.
31674         * modules/uniwidth/u32-strwidth-tests: Likewise.
31675         * modules/uniwidth/u32-width-tests: Likewise.
31676         * modules/uniwidth/width-tests: Likewise.
31677
31678 2010-05-18  Richard Jones  <rjones@redhat.com>
31679
31680         doc: users.txt: list hivex
31681         * users.txt: Add hivex.
31682
31683 2010-05-18  Richard Jones  <rjones@redhat.com>
31684
31685         doc: users.txt: list febootstrap
31686         * users.txt: Add febootstrap.
31687
31688 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
31689
31690         bootstrap: fix an error when gnulib is not used as a git submodule
31691         * build-aux/bootstrap (gnulib_path): If its length is zero then
31692         assign "gnulib" to it.
31693         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
31694
31695 2010-05-16  Bruno Haible  <bruno@clisp.org>
31696
31697         Avoid autoconf warnings about AM_ICONV.
31698         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
31699         2.64.
31700
31701 2010-05-16  Bruno Haible  <bruno@clisp.org>
31702
31703         absolute-header: Make the macro usable in more situations.
31704         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
31705         from gl_ABSOLUTE_HEADER.
31706         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
31707
31708 2010-05-16  James Youngman  <jay@gnu.org>
31709
31710         doc: update users.txt
31711         * users.txt: Add CSSC.
31712
31713 2010-05-16  Jim Meyering  <meyering@redhat.com>
31714
31715         init.sh: fix an error in the previous change; add more comments
31716         * tests/init.sh: Compare exit code in loop against 9, not 2.
31717         Patch by Bruno Haible.
31718         Make the two tests more similar by adding an empty "then" clause.
31719         Add comments.
31720
31721         init.sh: avoid unnecessary shell re-exec
31722         * tests/init.sh: Improve the re-exec-required check to first test the
31723         current shell.  If it passes the test, do not search for a shell that
31724         does pass, and do not re-exec.  This test is particularly contorted to
31725         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
31726         of $(...) evokes a syntax error and causes immediate shell exit with
31727         status 2.  Bruno Haible reported that the re-exec made it impossible
31728         to single-step through any init.sh-using script.
31729
31730 2010-05-16  Bruno Haible  <bruno@clisp.org>
31731
31732         Fix collision between gnulib's and libintl's printf replacements.
31733         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
31734         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
31735         (printf): When using GNU C, map the __printf__ function to rpl_printf
31736         via __asm__. When not using GNU C, define rpl_printf instead of
31737         __printf__.
31738         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
31739         commit.
31740         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
31741         commit.
31742         * m4/asm-underscore.m4: New file.
31743         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
31744         * modules/stdio (Files): Add m4/asm-underscore.m4.
31745         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
31746         Reported by Ben Pfaff.
31747
31748 2010-05-16  Bruno Haible  <bruno@clisp.org>
31749
31750         verify: Avoid skipping the test on openSUSE 11.0.
31751         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
31752
31753 2010-05-13  Bruno Haible  <bruno@clisp.org>
31754
31755         Avoid useless warnings from G++.
31756         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
31757         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
31758         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31759
31760 2010-05-11  Jim Meyering  <meyering@redhat.com>
31761
31762         maint.mk: tweak preceding change
31763         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
31764         regexps tighter by anchoring at EOL, and make the new group "shy"
31765         for slightly decreased overhead.
31766
31767 2010-05-11  Eric Blake  <eblake@redhat.com>
31768
31769         maint.mk: gnulib doesn't guarantee NSIG
31770         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
31771
31772 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31773
31774         test-pwrite.c: Remove unused variable declaration.
31775         * tests/test-pwrite.c (main): Remove read_buf declaration.
31776
31777         Remove useless test-pwrite.sh file.
31778         * tests/test-pwrite.sh: Delete file.
31779         * modules/pwrite-tests: Remove references.
31780         Reported by Bruno Haible.
31781
31782 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31783
31784         init.sh: fix a typo
31785         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
31786
31787 2010-05-10  Jim Meyering  <meyering@redhat.com>
31788
31789         maint.mk: avoid using a temporary file in the always-defined-macros check
31790         * top/maint.mk (.re-defmac): Remove rule.
31791         (gl_trap_): Remove definition.
31792         (sc_prohibit_always-defined_macros): Rewrite not to create and
31793         depend on a temporary file.  Instead, depend on GNU grep's ability
31794         to read a list of regular expressions from stdin when given "-f -".
31795
31796 2010-05-09  Bruno Haible  <bruno@clisp.org>
31797
31798         Update to GNU gettext 0.18, part 1.
31799         * m4/gettext.m4: Update to GNU gettext 0.18.
31800         * m4/intl.m4: Likewise.
31801         * m4/po.m4: Likewise.
31802         * modules/gettext (Files): Add m4/fcntl-o.m4.
31803         (configure.ac): Require gettext infrastructure from version 0.18.
31804
31805 2010-05-09  Jim Meyering  <meyering@redhat.com>
31806
31807         init.sh: enable MALLOC_PERTURB_
31808         * tests/init.sh: Enable glibc's malloc-perturbing option.
31809
31810         maint.mk: improve sc_cross_check_PATH_usage_in_tests
31811         With my recent change in init.sh from the two-line form:
31812             -#   : ${srcdir=.}
31813             -#   . "$srcdir/init.sh"; path_prepend_ .
31814             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
31815         I noticed that using the one-line form would cause this test
31816         to fail with a false-positive, or to stop working altogether,
31817         depending on whether help-version changed or all the tests did.
31818         * top/maint.mk (_hv_regex): Remove this definition.
31819         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
31820         (_hv_regex_strong): Use a stronger regex to check for conformance.
31821         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
31822         Give a separate diagnostic for lack of conforming use.
31823
31824         maint.mk: prohibit definition of symbols defined by gnulib
31825         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
31826         definition of symbols defined by gnulib.
31827
31828 2010-05-09  Bruno Haible  <bruno@clisp.org>
31829
31830         acl: Avoid test failure on Cygwin-hosted mingw.
31831         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
31832
31833 2010-05-09  Bruno Haible  <bruno@clisp.org>
31834
31835         error: Use system's fcntl function.
31836         * lib/error.c (fcntl): Undefine.
31837
31838 2010-05-09  Jim Meyering  <meyering@redhat.com>
31839
31840         verify: adjust formatting to be more consistent
31841         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
31842         argument-list '('s, and after one comma.
31843
31844 2010-05-09  Bruno Haible  <bruno@clisp.org>
31845
31846         error: More reliable output on mingw.
31847         * lib/error.c: Include <windows.h>.
31848         (is_open): New function.
31849         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
31850         defined.
31851
31852 2010-05-09  Bruno Haible  <bruno@clisp.org>
31853
31854         vasnprintf: Fix syntax errors in libintl build on mingw.
31855         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
31856         pad_ourselves and prec_ourselves after use.
31857
31858 2010-05-08  Bruno Haible  <bruno@clisp.org>
31859
31860         * lib/config.charset: Update comments for Cygwin 1.7.
31861         * lib/localcharset.c: Likewise.
31862
31863 2010-05-07  Jim Meyering  <meyering@redhat.com>
31864
31865         init.sh: improve comments
31866         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
31867         . "${srcdir=.}/init.sh"; path_prepend_ .
31868         Add a note about path_prepend_ and the alternative of using
31869         TESTS_ENVIRONMENT.
31870
31871 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31872
31873         exclude: Unescape hashed patterns in wildcard mode.
31874         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
31875         to the hash list.
31876         * tests/test-exclude8.sh: New test case.
31877         * modules/exclude-tests: Add new test.
31878
31879 2010-05-05  Eric Blake  <eblake@redhat.com>
31880
31881         verify: automate tests
31882         * modules/verify-tests: New module.
31883         * tests/test-verify.sh: New file.
31884         * tests/test-verify.c: Guard each negative test with a unique id.
31885         Also avoid warning about unused left hand of comma expressions.
31886
31887 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31888
31889         Further improvements to verify.h, suggested by Eric Blake.
31890         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
31891         the GL_* versions, to avoid collision with OpenGL.
31892         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
31893         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
31894         than testing merely whether it's defined.
31895
31896         Modify verify.h to pacify gcc -Wredundant_decls.
31897         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
31898         These use the prefix "GL_" since they're likely to be useful elsewhere.
31899         We may need to break them out into a different .h file.
31900         (__COUNTER__): Define to 0 if the compiler doesn't support it.
31901         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
31902         of verify_function__.
31903
31904 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31905
31906         Tests for module pwrite.
31907         * modules/pwrite-tests: New file.
31908         * tests/test-pwrite.sh: New file.
31909         * tests/test-pwrite.c: New file.
31910
31911         New module pwrite.
31912         * lib/unistd.in.h (pwrite): New declaration.
31913         * lib/pwrite.c: New file, from glibc with modifications.
31914         * m4/pwrite.m4: New file.
31915         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
31916         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
31917         REPLACE_PWRITE.
31918         * modules/pwrite: New file.
31919         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
31920         REPLACE_PWRITE.
31921         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
31922         * doc/posix-functions/pwrite.texi: Mention the new module.
31923
31924 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31925
31926         pread: Update documentation.
31927         * doc/posix-functions/pread.texi: Mention the 'pread' module.
31928
31929 2010-05-04  Eric Blake  <eblake@redhat.com>
31930
31931         docs: update cygwin progress
31932         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
31933         this bug.
31934         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
31935         Added in cygwin 1.7.2.
31936         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
31937         Likewise.
31938         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
31939         Likewise.
31940         * doc/glibc-functions/dup3.texi (dup3): Likewise.
31941         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
31942         * doc/glibc-functions/accept4.texi (accept4): Likewise.
31943         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
31944         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
31945         Mention nproc module.
31946         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
31947         bug in cygwin 1.7.5 addition.
31948         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
31949         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
31950         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
31951         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
31952         1.7.5.
31953         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
31954         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
31955         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
31956         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
31957         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
31958         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
31959         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
31960         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
31961         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
31962         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
31963         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
31964         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
31965         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
31966         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
31967         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
31968         Likewise.
31969         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
31970         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
31971         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
31972         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
31973         Likewise.
31974         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
31975         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
31976         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
31977         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
31978         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
31979         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
31980         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
31981         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
31982         Likewise.
31983         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
31984         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
31985         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
31986         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
31987         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
31988         Likewise.
31989         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
31990         Likewise.
31991         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
31992         Likewise.
31993         * doc/glibc-functions/xdrrec_endofrecord.texi
31994         (xdrrec_endofrecord): Likewise.
31995         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
31996         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
31997         Likewise.
31998         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
31999         Likewise.
32000
32001 2010-05-04  Jim Meyering  <meyering@redhat.com>
32002
32003         gendocs.sh: make its "-s FILE" option more useful
32004         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32005         $PACKAGE to reflect the probably-different basename of "FILE".
32006
32007 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32008
32009         bootstrap: don't ignore download_po_files failure
32010         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32011         failure.
32012
32013 2010-05-03  Jim Meyering  <meyering@redhat.com>
32014
32015         maint.mk: allow to pass options to gendocs.sh
32016         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32017         (gendocs_options_): New overridable variable.
32018
32019         gnu-web-doc-update: don't ignore configure or build failure
32020         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32021
32022         announce-gen: backslash-escape '@'s in --help output
32023         * build-aux/announce-gen: Fix syntax errors.
32024
32025         maint.mk, announce-gen: allow project-specific announcement mail headers
32026         * top/maint.mk (translation_project_): Define default.
32027         (announcement_Cc_, announcement_mail_headers_): Likewise.
32028         (announcement): Invoke announce-gen with new --mail-headers option.
32029         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32030
32031         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32032         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32033         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32034         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32035         line in the "err2" output file when running "make check" in verbose
32036         mode (i.e., with set -x enabled).
32037
32038 2010-05-03  Bruno Haible  <bruno@clisp.org>
32039
32040         wctob: Fix for weird platforms.
32041         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32042         argument value.
32043
32044 2010-05-03  Jim Meyering  <meyering@redhat.com>
32045
32046         maint.mk: prohibit unwarranted use of <strings.h>
32047         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32048         strings.h in a file that does not also use strcasecmp, strncasecmp,
32049         ffs or ffsll.
32050
32051         maint.mk: remove obsolete comments
32052         * top/maint.mk: Remove stale, commented-out rules.
32053
32054 2010-05-02  Bruno Haible  <bruno@clisp.org>
32055
32056         wcwidth: Declare also when it's aliased.
32057         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32058         macro.
32059
32060 2010-05-02  Bruno Haible  <bruno@clisp.org>
32061
32062         Fix regression from 2010-04-25.
32063         * gnulib-tool (func_modules_transitive_closure): Check the status of
32064         all modules, not only of the tests that are of the form foo-tests where
32065         foo is a module.
32066
32067 2010-05-02  Bruno Haible  <bruno@clisp.org>
32068
32069         wctob: Work around nasty Cygwin 1.7.2 bug.
32070         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32071         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32072
32073 2010-05-01  Bruno Haible  <bruno@clisp.org>
32074
32075         fpurge: Sharper test.
32076         * tests/test-fpurge.c (main): Add one more ftell check.
32077         * modules/fpurge-tests (Depends-on): Add ftell.
32078         Suggested by Eric Blake.
32079
32080 2010-05-01  Bruno Haible  <bruno@clisp.org>
32081
32082         ftello: Another test.
32083         * tests/test-ftello3.c: New file.
32084         * modules/ftello-tests (Files): Add it.
32085         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32086         MOSTLYCLEANFILES.
32087
32088         ftell: Another test.
32089         * tests/test-ftell3.c: New file.
32090         * modules/ftell-tests (Files): Add it.
32091         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32092         MOSTLYCLEANFILES.
32093
32094 2010-05-01  Bruno Haible  <bruno@clisp.org>
32095
32096         ftell, ftello: Work around Solaris bug.
32097         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32098         * lib/ftello.c: Include stdio-impl.h.
32099         (ftello): On Solaris, when _IOWRT is set, compute the result without
32100         looking at _IOREAD.
32101         * modules/ftello (Files): Add lib/stdio-impl.h.
32102         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32103         * doc/posix-functions/ftello.texi: Likewise.
32104         Reported by Eric Blake.
32105
32106 2010-05-01  Bruno Haible  <bruno@clisp.org>
32107
32108         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32109         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32110         the _IOWRT flag is also set.
32111
32112 2010-05-01  Bruno Haible  <bruno@clisp.org>
32113
32114         Fix doc about a HP-UX stdio bug.
32115         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32116         * doc/posix-functions/ftello.texi: Likewise.
32117
32118 2010-05-01  Bruno Haible  <bruno@clisp.org>
32119
32120         lseek test: Fix failure on Solaris.
32121         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32122         output.
32123
32124 2010-04-30  Jim Meyering  <meyering@redhat.com>
32125
32126         bootstrap: don't ignore failure to generate po*/Makevars
32127         * build-aux/bootstrap (with_gettext): Don't ignore failure
32128         to create po/Makevars or runtime-po/Makevars.
32129
32130 2010-04-29  Eric Blake  <eblake@redhat.com>
32131
32132         headers: relax license to LGPLv2+
32133         * modules/fcntl-h (License): Relax license.
32134         * modules/getopt-posix (License): Likewise.
32135         * modules/locale (License): Likewise.
32136         * modules/math (License): Likewise.
32137         * modules/pty (License): Likewise.
32138         * modules/sched (License): Likewise.
32139         * modules/search (License): Likewise.
32140         * modules/spawn (License): Likewise.
32141         * modules/stdarg (License): Likewise.
32142         * modules/sysexits (License): Likewise.
32143
32144 2010-04-29  Jim Meyering  <meyering@redhat.com>
32145
32146         inttypes: relax license to LGPLv2+
32147         * modules/inttypes (License): Relax license.
32148
32149 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32150
32151         * top/maint.mk (indent): Run twice to produce idempotent results.
32152
32153 2010-04-28  Bruno Haible  <bruno@clisp.org>
32154
32155         getdate: Generate getdate.c in the source directory.
32156         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32157         MOSTLYCLEANFILES.
32158         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32159
32160 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32161
32162         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32163         is not declared as a const *; avoid warnings in that case.
32164
32165 2010-04-28  Eric Blake  <eblake@redhat.com>
32166
32167         canonicalize-lgpl: avoid compiler warning
32168         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32169         declaration' / 'extraneous semicolon' warning with some compilers.
32170         Reported by Andreas Gruenbacher.
32171
32172 2010-04-28  Jim Meyering  <meyering@redhat.com>
32173
32174         init.sh: ensure a more reliable exit status when exiting via trap
32175         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32176         Inspired by patches from Dmitry V. Levin.
32177         Also trap on signal 3 (SIGQUIT).
32178
32179 2010-04-27  Bruno Haible  <bruno@clisp.org>
32180
32181         Update doc about utimes().
32182         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32183         'utimens' module.
32184         Reported by Andreas Gruenbacher <agruen@suse.de>.
32185
32186 2010-04-27  Eric Blake  <eblake@redhat.com>
32187
32188         full-read, full-write: relax license
32189         * modules/full-read (License): Drop to LGPLv2+.
32190         * modules/full-write (License): Likewise.
32191         * modules/safe-read (License): Likewise.
32192         * modules/safe-write (License): Likewise.
32193
32194         pthread: mention library for linking
32195         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32196
32197 2010-04-27  Jim Meyering  <meyering@redhat.com>
32198
32199         maint.mk: fix a bug introduced in last change
32200         * top/maint.mk (gl_assured_headers_): Now that all names are on
32201         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32202         is not anchored to end of word, it should be adequate.
32203
32204         maint.mk: avoid side-effect in latest syntax-check
32205         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32206         to run commands via $(shell...), and hence to incur cost only when
32207         the new rule is actually run.
32208
32209         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32210         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32211         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32212         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32213         (gl_assured_headers_, az_, AZ_): Define.
32214         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32215
32216 2010-04-26  Jim Meyering  <jim@meyering.net>
32217             Bruno Haible  <bruno@clisp.org>
32218
32219         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32220         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32221         Prompted by an exchange with Gilles Espinasse.
32222
32223 2010-04-26  Jim Meyering  <meyering@redhat.com>
32224
32225         git-version-gen: aesthetic tweak
32226         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32227         so that the command remains on a single line.
32228
32229 2010-04-26  Eric Blake  <eblake@redhat.com>
32230
32231         git-version-gen: allow use on EBCDIC hosts
32232         * build-aux/git-version-gen (dirty): Use literal rather than tying
32233         ourselves to ascii.
32234         Reported by Steve Goetze.
32235
32236 2010-04-25  Bruno Haible  <bruno@clisp.org>
32237
32238         netdb: Add support for GNULIB_POSIXCHECK.
32239         * lib/netdb.in.h: Include warn-on-use.h.
32240         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32241         functions are used when GNULIB_POSIXCHECK is defined and the
32242         getaddrinfo module is not in use.
32243         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32244         freeaddrinfo, gai_strerror, getnameinfo are declared.
32245         * modules/netdb (Depends-on): Add warn-on-use.
32246         (Makefile.am): Include warn-on-use.h in netdb.h.
32247
32248 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32249
32250         build: avoid "make check" failure without .git/ directory
32251         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32252         there is no .git/ directory.
32253
32254 2010-04-25  Bruno Haible  <bruno@clisp.org>
32255
32256         ptsname: Fix misuse of ttyname_r.
32257         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32258         of errno.
32259
32260 2010-04-25  Bruno Haible  <bruno@clisp.org>
32261
32262         ttyname_r: Make it work on Solaris 10.
32263         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32264         if the system function has the POSIX declaration. Test whether the
32265         function fails if the buffer is less than 128 bytes large.
32266         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32267         system's ttyname_r function. Provide a reasonably large buffer.
32268         * modules/ttyname_r (Depends-on): Add extensions.
32269         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32270
32271 2010-04-25  Bruno Haible  <bruno@clisp.org>
32272
32273         Use the 'extensions' module for some more functions on Solaris.
32274         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32275         module.
32276         * doc/posix-functions/ctime_r.texi: Likewise.
32277         * doc/posix-functions/getgrgid_r.texi: Likewise.
32278         * doc/posix-functions/getgrnam_r.texi: Likewise.
32279         * doc/posix-functions/getpwnam_r.texi: Likewise.
32280         * doc/posix-functions/getpwuid_r.texi: Likewise.
32281         * doc/posix-functions/readdir_r.texi: Likewise.
32282         * doc/posix-functions/sigwait.texi: Likewise.
32283         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32284         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32285
32286 2010-04-25  Bruno Haible  <bruno@clisp.org>
32287
32288         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32289         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32290         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32291         * lib/ttyname_r.c: Include <limits.h>.
32292         (ttyname_r): Define using the system's ttyname_r function, if it exists
32293         and not on Solaris.
32294         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32295         set.
32296         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32297         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32298         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32299         Reported by Simon Josefsson.
32300
32301 2010-04-25  Bruno Haible  <bruno@clisp.org>
32302
32303         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32304         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32305         * doc/posix-functions/ctime_r.texi: Likewise.
32306         * doc/posix-functions/getgrgid_r.texi: Likewise.
32307         * doc/posix-functions/getgrnam_r.texi: Likewise.
32308         * doc/posix-functions/getlogin_r.texi: Likewise.
32309         * doc/posix-functions/getpwnam_r.texi: Likewise.
32310         * doc/posix-functions/getpwuid_r.texi: Likewise.
32311         * doc/posix-functions/readdir_r.texi: Likewise.
32312         * doc/posix-functions/sigwait.texi: Likewise.
32313         * doc/posix-functions/ttyname_r.texi: Likewise.
32314         Reported by Simon Josefsson.
32315
32316 2010-04-25  Bruno Haible  <bruno@clisp.org>
32317
32318         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32319         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32320         also to --create-testdir.
32321         (func_acceptable): Don't consider the status of *-tests modules here.
32322         (func_modules_transitive_closure): Consider it here, before including a
32323         test module.
32324         (func_import, func_create_testdir): Set inc_all_direct_tests,
32325         inc_all_indirect_tests.
32326         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32327         --create-testdir and --create-megatestdir.
32328
32329 2010-04-25  Bruno Haible  <bruno@clisp.org>
32330
32331         gnulib-tool: Add --without-*-tests options.
32332         * gnulib-tool (func_usage): Document the --without-*-tests options.
32333         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32334         excl_unportable_tests): New variables.
32335         Fail if they are specified with --import or --update.
32336         (func_acceptable): Respect the excl_*_tests variables.
32337         (func_import): Set the excl_*_tests variables to empty.
32338
32339 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32340             Bruno Haible  <bruno@clisp.org>
32341
32342         Work around a MacOS X 10.4 bug with openpty.
32343         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32344         * tests/test-openpty.c (main): Close the master side explicitly.
32345
32346 2010-04-25  Bruno Haible  <bruno@clisp.org>
32347
32348         strnlen: Fix a C++ test error on MacOS X and Solaris.
32349         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32350         the function is not declared.
32351         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32352         Simon Josefsson.
32353
32354 2010-04-24  Bruno Haible  <bruno@clisp.org>
32355
32356         Avoid a gcc warning.
32357         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32358         of correct type for %08lx directive.
32359         Reported by Eric Blake.
32360
32361 2010-04-24  Bruno Haible  <bruno@clisp.org>
32362
32363         vasnprintf: Correct errno value in case of out-of-memory.
32364         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32365         or sprintf. Use the errno value from SNPRINTF or sprintf.
32366         Reported by Ian Beckwith <ianb@erislabs.net>.
32367
32368 2010-04-24  Bruno Haible  <bruno@clisp.org>
32369
32370         ansi-c++-opt: Find correct compiler when cross-compiling.
32371         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32372         AC_CHECK_PROGS.
32373         Reported by Simon Josefsson.
32374
32375 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32376
32377         vc-list-files: Add support for subversion
32378         * build-aux/vc-list-files: Use "svn list" to generate the list of
32379         files controlled by subversion.
32380
32381 2010-04-23  Jim Meyering  <meyering@redhat.com>
32382
32383         vc-list-files tests: convert to use init.sh
32384         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32385         path_prepend_.
32386         Use Exit, not exit.
32387         Use skip_ rather than open coding it.
32388         Remove trap set-up and compare definitions.
32389         * tests/test-vc-list-files-git.sh: Likewise.
32390         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32391
32392 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32393
32394         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32395         backup files.
32396
32397 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32398
32399         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32400
32401 2010-04-20  Eric Blake  <eblake@redhat.com>
32402
32403         tests: be robust to ignored SIGPIPE
32404         * tests/test-select-in.sh: Consume all output.
32405         * tests/test-lseek.sh: Check correct exit status, while avoiding
32406         EPIPE.
32407
32408 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32409             Bruno Haible  <bruno@clisp.org>
32410
32411         visibility: Don't use -fvisibility if it leads to a warning.
32412         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32413         yes, don't pretend that visibility works if it leads to a warning.
32414         Reported by Mike Gran <spk121@yahoo.com>.
32415
32416 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32417
32418         * build-aux/bootstrap: Use "git -h" for testing for supported options
32419         instead of "git --help".  The short-form option only shows a summary,
32420         and doesn't layout the full man page.  Grep for the full option name
32421         in the summary, too.
32422
32423 2010-04-19  Bruno Haible  <bruno@clisp.org>
32424
32425         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32426         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32427         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32428         mention of RELOCATABLE_STRIP.
32429         Reported by Sylvain Beucler <beuc@beuc.net>.
32430
32431 2010-04-19  Bruno Haible  <bruno@clisp.org>
32432
32433         * lib/diffseq.h: Fix typo in comment.
32434         Reported by Eric Blake.
32435
32436 2010-04-19  Bruno Haible  <bruno@clisp.org>
32437
32438         ioctl: Move autoconf macro to a .m4 file.
32439         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32440         * modules/ioctl (Files): Add it.
32441         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32442         Reported by Ian Beckwith <ianb@erislabs.net>.
32443
32444 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32445             Bruno Haible  <bruno@clisp.org>
32446
32447         diffseq: Accommodate use-case with abstract arrays.
32448         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32449         is not defined.
32450         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32451         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32452
32453 2010-04-18  Bruno Haible  <bruno@clisp.org>
32454
32455         * doc/posix-headers/stdbool.texi: More precise wording.
32456
32457 2010-04-17  Jim Meyering  <meyering@redhat.com>
32458
32459         maint.mk: use gnu-style indentation in an embedded perl script
32460         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32461         Rename variable: s/two/last_two_bytes/
32462
32463 2010-04-16  Eric Blake  <eblake@redhat.com>
32464
32465         test-stdbool: skip test that fails with Solaris CC
32466         * tests/test-stdbool.c (f): Skip test that causes compilation
32467         error under buggy C++ compiler.
32468         * lib/stdbool.in.h: Document the limitation.
32469         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32470
32471         setenv: allow compilation with C++
32472         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32473         register keyword.
32474
32475         stdint: allow test to pass with C++
32476         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32477
32478         getopt: allow compilation with C++
32479         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32480         struct.
32481         * lib/getopt.c (_getopt_internal_r): Use correct type.
32482         Reported by Dagobert Michelson, via Joel E. Denny.
32483
32484 2010-04-16  Bruno Haible  <bruno@clisp.org>
32485
32486         Override netdb.h always.
32487         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32488         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32489         Reported by Ludovic Courtès <ludo@gnu.org>.
32490
32491 2010-04-15  Bruno Haible  <bruno@clisp.org>
32492
32493         openpty: Fix mistake from 2010-03-21.
32494         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32495         Reported by Simon Josefsson.
32496
32497 2010-04-15  Eric Blake  <eblake@redhat.com>
32498
32499         test-forkpty: fix expected signature
32500         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32501         Reported by Simon Josefsson.
32502
32503 2010-04-15  Jim Meyering  <meyering@redhat.com>
32504
32505         maint.mk: texinfo_suffix_re_: correct the default regexp
32506         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32507
32508         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32509         make it configurable via texinfo_suffix_re_.
32510
32511 2010-04-14  Eric Blake  <eblake@redhat.com>
32512
32513         strtok_r: relax license to LGPLv2+
32514         * modules/strtok_r (License): Relax license.
32515         Reported by Matthias Bolte.
32516
32517 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32518
32519         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32520         version 1.4.4 by default instead of requiring the libgcrypt
32521         version used during build.  This makes it possible to use the
32522         application with older but still binary compatible libgcrypt
32523         versions.
32524
32525 2010-04-13  Eric Blake  <eblake@redhat.com>
32526
32527         getopt-gnu: match recent glibc fixes and posix ruling
32528         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32529         '+' handling, when requesting extensions.
32530         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32531         'W;' handling.
32532         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32533         * doc/posix-functions/getopt.texi (getopt): Document this.
32534         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32535         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32536         Likewise.
32537
32538         getopt: merge bug fixes from glibc
32539         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32540         diagnostics.  Honor '+:' correctly.  Reject ';'.
32541
32542         getopt-posix: detect MacOS bug
32543         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32544         optind when missing a required argument.
32545         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32546         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32547         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32548         Likewise.
32549
32550         getopt-posix: avoid spurious failure on Solaris
32551         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32552         an indicator that setting optind=1 is sufficient for reset.
32553
32554         getopt-posix: avoid spurious failure on FreeBSD
32555         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32556         in POSIX mode, since the m4 test uses it.
32557
32558         gnulib-tool: silence warning on BSD sh
32559         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32560
32561 2010-04-13  Jim Meyering  <meyering@redhat.com>
32562
32563         doc: users.txt: GNU patch now uses gnulib
32564         * users.txt: Add patch.
32565
32566 2010-04-12  Jim Meyering  <meyering@redhat.com>
32567
32568         maint.mk: generate more concise timing data for syntax-check rules
32569         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32570         " done" from each line that reports a syntax-check test duration.
32571
32572 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32573
32574         git-version-gen: use "git update-index..." rather than "git status"
32575         * build-aux/git-version-gen: Use git update-index --refresh, not
32576         "git status".  With some versions of git, "git status" would fail
32577         to update the index and result in an unwarranted "-dirty" suffix.
32578
32579 2010-04-11  Jim Meyering  <meyering@redhat.com>
32580
32581         openat: correct formatting (no semantic change)
32582         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32583         Suggested by Bruno Haible.
32584
32585 2010-04-11  Bruno Haible  <bruno@clisp.org>
32586
32587         Stricter declaration checking in testdirs.
32588         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32589         If for_tests is true, augment AM_CPPFLAGS to define
32590         GNULIB_STRICT_CHECKING.
32591         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
32592         GNULIB_STRICT_CHECKING is defined, verify that the function is
32593         declared.
32594
32595 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
32596             Bruno Haible  <bruno@clisp.org>
32597
32598         libunistring: Improve configure output.
32599         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
32600         Don't say "consider installing GNU libunistring" when checking again
32601         with libiconv.
32602
32603 2010-04-11  Bruno Haible  <bruno@clisp.org>
32604
32605         libunistring: Correct value of $LTLIBUNISTRING.
32606         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
32607         correct the value of $LTLIBUNISTRING.
32608
32609 2010-04-11  Bruno Haible  <bruno@clisp.org>
32610
32611         havelib: Add static libraries to LIBS in the right order.
32612         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
32613         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
32614
32615 2010-04-11  Bruno Haible  <bruno@clisp.org>
32616
32617         libunistring: Detect libunistring also when it depends on libiconv.
32618         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
32619         the second AC_LIB_HAVE_LINKFLAGS invocation.
32620
32621 2010-04-11  James Youngman  <jay@gnu.org>
32622
32623         close-stream: declare local scalars to be "const"
32624         * lib/close-stream.c (close_stream): Make boolean variables const
32625         to document the fact that we set but do not change them.
32626
32627 2010-04-11  Bruno Haible  <bruno@clisp.org>
32628
32629         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
32630
32631 2010-04-11  Jim Meyering  <meyering@redhat.com>
32632
32633         maint.mk: don't include dist-check.mk
32634         * top/maint.mk: Remove bogus include directive.
32635
32636         maint.mk: improve empty-line-at-EOF check
32637         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
32638         solution, rather than tail+Perl-based one.  The latter would read
32639         a few kilobytes from the end of each file, and did not handle empty
32640         files properly.
32641
32642         maint.mk: print the elapsed time for each syntax-check rule
32643         * top/maint.mk (sc_m_rules_): Save start time in a file.
32644         (sc_z_rules_): New rules: remove temp file and print elapsed time.
32645         (local-check): Interpose the .z rules
32646
32647 2010-04-11  Jim Meyering  <meyering@redhat.com>
32648
32649         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
32650         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
32651         empty file with one that ends in an empty line.
32652
32653 2010-04-10  Bruno Haible  <bruno@clisp.org>
32654
32655         mkdir: Make it work on mingw64.
32656         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
32657         * lib/mkdir.c: Update comment.
32658         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
32659
32660 2010-04-10  Bruno Haible  <bruno@clisp.org>
32661
32662         Don't override improved macro from newer autoconf.
32663         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
32664         autoconf >= 2.62.
32665         Reported by Joel E. Denny <jdenny@clemson.edu>.
32666
32667 2010-04-10  Jim Meyering  <meyering@redhat.com>
32668
32669         maint.mk: new syntax-check rule: prohibit empty lines at end of file
32670         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
32671
32672         maint.mk: correct a diagnostic
32673         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
32674         in diagnostic; now use $prohibit.
32675
32676 2010-04-10  Bruno Haible  <address@hidden>
32677
32678         fchownat: Fix a C++ test error on Solaris 8.
32679         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
32680         the function does not exist.
32681
32682 2010-04-10  Bruno Haible  <bruno@clisp.org>
32683
32684         vasnprintf: Add more tests.
32685         * tests/test-vasnprintf-posix.c: Include <errno.h>.
32686         (test_function): Test converting an invalid wide string.
32687
32688         vasnprintf: Correct handling of unconvertible wide string arguments.
32689         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
32690         VASNPRINTF.
32691         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
32692         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
32693         smaller than the expected maximum need for the directive. Set errno to
32694         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
32695         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
32696         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
32697         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
32698         * modules/vasnprintf (Files): Add m4/printf.m4.
32699         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32700
32701 2010-04-10  Bruno Haible  <bruno@clisp.org>
32702
32703         vasnprintf: Fix crash in %ls directive.
32704         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
32705         string is passed as argument to %ls, with no precision and no width.
32706         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32707
32708 2010-04-10  Bruno Haible  <bruno@clisp.org>
32709
32710         vasnprintf: Fix multiple test failures on mingw.
32711         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
32712         _snprintf, or snwprintf, not _snwprintf.
32713
32714 2010-04-10  Bruno Haible  <bruno@clisp.org>
32715
32716         write: Fix a C++ test error on mingw.
32717         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
32718
32719 2010-04-10  Bruno Haible  <bruno@clisp.org>
32720
32721         vasnprintf test: Reduce code duplication.
32722         * tests/test-vasnprintf.c (test_function): New function, extracted from
32723         test_vasnprintf.
32724         (test_vasnprintf, test_asnprintf): Invoke it.
32725
32726 2010-04-10  Bruno Haible  <bruno@clisp.org>
32727
32728         strnlen: Fix warning in C++ mode on MacOS X.
32729         * lib/string.in.h (strnlen): Use the modern idiom.
32730         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
32731         defining strnlen as a macro already in <config.h>.
32732         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32733         REPLACE_STRNLEN.
32734         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
32735         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32736
32737 2010-04-08  James Youngman  <jay@gnu.org>
32738
32739         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
32740         the example.
32741
32742 2010-04-09  Jim Meyering  <meyering@redhat.com>
32743
32744         maint.mk: print better diagnostic when there is no $(_hv_file)
32745         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
32746         announce that when $(_hv_file) (aka help-version) does not exist.
32747
32748         init.sh: run tr in the "C" locale to avoid multibyte interpretation
32749         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
32750         not try to interpret its random input bytes.  Jarno Rajahalme reported
32751         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
32752         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
32753         (mktempd_): Likewise, just in case.
32754
32755         ftruncate: add two years to projected module removal date: 2012
32756         * m4/ftruncate.m4: Adjust comments.
32757
32758         ftruncate: mark module as obsolete; even MinGW provides it, now
32759         * modules/ftruncate (Status): Obsolete.
32760         (Notice): Say that.
32761         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
32762         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
32763
32764 2010-04-08  Bruno Haible  <bruno@clisp.org>
32765
32766         Fix side effects from tests-related modules.
32767         * modules/dprintf-posix (Comment): New section.
32768         * modules/fprintf-posix (Comment): Likewise.
32769         * modules/obstack-printf-posix (Comment): Likewise.
32770         * modules/printf-posix (Comment): Likewise.
32771         * modules/snprintf-posix (Comment): Likewise.
32772         * modules/sprintf-posix (Comment): Likewise.
32773         * modules/vasnprintf-posix (Comment): Likewise.
32774         * modules/vasprintf-posix (Comment): Likewise.
32775         * modules/vdprintf-posix (Comment): Likewise.
32776         * modules/vfprintf-posix (Comment): Likewise.
32777         * modules/vprintf-posix (Comment): Likewise.
32778         * modules/vsnprintf-posix (Comment): Likewise.
32779         * modules/vsprintf-posix (Comment): Likewise.
32780         * modules/xprintf-posix (Comment): Likewise.
32781         * modules/xvasprintf-posix (Comment): Likewise.
32782         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
32783         * modules/floorf-tests (Depends-on): Likewise.
32784         * modules/round-tests (Depends-on): Likewise.
32785         * modules/roundf-tests (Depends-on): Likewise.
32786         * modules/trunc-tests (Depends-on): Likewise.
32787         * modules/truncf-tests (Depends-on): Likewise.
32788         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
32789         'fprintf-posix' module is not present.
32790         * tests/test-floorf2.c (check): Likewise.
32791         * tests/test-trunc2.c (check): Likewise.
32792         * tests/test-truncf2.c (check): Likewise.
32793         * tests/test-round2.c (equal): Likewise.
32794         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32795
32796 2010-04-07  Karl Berry  <karl@gnu.org>
32797
32798         * config/srclist.txt,
32799         * config/srclistvars.sh,
32800         * config/srclist-update: doc fixes.
32801
32802 2010-04-07  Jim Meyering  <meyering@redhat.com>
32803
32804         maint.mk: add a PATH crosschecking syntax-check rule
32805         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
32806         Useful if you use a test like the one in help-version (coreutils,
32807         diffutils, grep, gzip) that ensures $(VERSION) matches what is
32808         printed by prog --version.
32809
32810 2010-04-06  Bruno Haible  <bruno@clisp.org>
32811
32812         Fix link error on mingw.
32813         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
32814         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
32815
32816 2010-04-06  Bruno Haible  <bruno@clisp.org>
32817
32818         Assume rmdir exists.
32819         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
32820
32821 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
32822
32823         doc: update users.txt
32824         * users.txt: Add gcal.
32825
32826 2010-04-06  Jim Meyering  <meyering@redhat.com>
32827
32828         init.sh: simply unset TMPDIR rather than risking env -i
32829         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
32830         although it probably works fine on all Unix-based systems, some
32831         systems (Cygwin?) cannot tolerate a totally cleared environment.
32832         Suggestion from Eric Blake.
32833
32834 2010-04-06  Jim Meyering  <meyering@redhat.com>
32835
32836         init.sh: portability fix: use env's POSIX-specified -i option not -u
32837         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
32838         than unportable env -u.  Solaris 5.11's env lacks support for -u.
32839
32840 2010-04-05  Bruno Haible  <bruno@clisp.org>
32841
32842         btowc: Work around Cygwin 1.7.2 bug.
32843         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
32844         does not map NUL to 0.
32845         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
32846
32847 2010-04-05  Bruno Haible  <bruno@clisp.org>
32848
32849         Make the multithread modules work on Cygwin 1.7.2.
32850         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
32851         imported symbols can be declared weak, so that it returns "no" on
32852         Cygwin 1.7.2.
32853
32854 2010-04-05  Bruno Haible  <bruno@clisp.org>
32855
32856         Use the module 'strncat'.
32857         * modules/unistr/u8-strncat (Depends-on): Add strncat.
32858
32859         Tests for module 'strncat'.
32860         * modules/strncat-tests: New file.
32861         * tests/test-strncat.c: New file.
32862
32863         New module 'strncat'.
32864         * lib/string.in.h (strncat): New declaration.
32865         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
32866         * m4/strncat.m4: New file, based on m4/memchr.m4.
32867         * modules/strncat: New file.
32868         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
32869         is declared.
32870         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
32871         REPLACE_STRNCAT.
32872         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
32873         REPLACE_STRNCAT.
32874         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
32875         module.
32876         * tests/test-string-c++.cc: Check signature of strncat.
32877
32878 2010-04-05  Jim Meyering  <meyering@redhat.com>
32879
32880         xstrtoumax-tests: convert to use init.sh
32881         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
32882         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32883         Use Exit, not exit.
32884         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32885
32886         xstrtoimax-tests: convert to use init.sh
32887         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
32888         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32889         Use Exit, not exit.
32890         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32891
32892 2010-04-05  Bruno Haible  <bruno@clisp.org>
32893
32894         sys_socket: Avoid #define replacements in C++ mode.
32895         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
32896         warning to the function if possible, rather than #defining the symbol
32897         to a dysfunctional alias.
32898
32899 2010-04-05  Bruno Haible  <bruno@clisp.org>
32900
32901         fseeko: Fix C++ test error on mingw.
32902         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
32903         gl_FUNC_FSEEKO.
32904         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
32905         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
32906         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
32907         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
32908
32909 2010-04-05  Bruno Haible  <bruno@clisp.org>
32910
32911         duplocale: Improve test output.
32912         * tests/test-duplocale.c (main): Print reason for skipped test.
32913
32914 2010-04-05  Bruno Haible  <bruno@clisp.org>
32915
32916         Assume rmdir exists.
32917         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
32918         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
32919
32920 2010-04-05  Bruno Haible  <bruno@clisp.org>
32921
32922         Fix link error on Solaris 8 with cc.
32923         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
32924
32925 2010-04-05  Bruno Haible  <bruno@clisp.org>
32926
32927         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32928         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
32929
32930 2010-04-05  Bruno Haible  <bruno@clisp.org>
32931
32932         vasprintf: Update documentation.
32933         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
32934
32935 2010-04-05  Bruno Haible  <bruno@clisp.org>
32936
32937         ptsname: Improve test.
32938         * tests/test-ptsname.c (main): Also try the various master names of BSD
32939         systems.
32940
32941 2010-04-05  Bruno Haible  <bruno@clisp.org>
32942
32943         memchr: Avoid a possible C++ test error.
32944         * lib/string.in.h (memchr): Provide declaration if function is missing.
32945         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
32946         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
32947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
32948         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
32949
32950 2010-04-05  Bruno Haible  <bruno@clisp.org>
32951
32952         strtok_r: Improve idiom.
32953         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
32954         AC_LIBOBJ is used.
32955
32956 2010-04-05  Bruno Haible  <bruno@clisp.org>
32957
32958         strdup: Improve idiom.
32959         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
32960         AC_LIBOBJ is used.
32961         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
32962         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
32963         when AC_LIBOBJ is used.
32964
32965 2010-04-05  Bruno Haible  <bruno@clisp.org>
32966
32967         mbsinit, mbrtowc, wcrtomb: Improve idioms.
32968         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
32969         don't set REPLACE_MBSINIT to 1.
32970         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
32971         don't set REPLACE_MBRTOWC to 1.
32972         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
32973         exist, don't set REPLACE_MBSRTOWCS to 1.
32974         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
32975         exist, don't set REPLACE_MBSNRTOWCS to 1.
32976         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
32977         don't set REPLACE_WCRTOMB to 1.
32978         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
32979         exist, don't set REPLACE_WCSRTOMBS to 1.
32980         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
32981         exist, don't set REPLACE_WCSNRTOMBS to 1.
32982
32983 2010-04-05  Bruno Haible  <bruno@clisp.org>
32984
32985         ldexpl: Improve idiom.
32986         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
32987         make sure to set HAVE_DECL_LDEXPL to 0.
32988
32989 2010-04-05  Jim Meyering  <meyering@redhat.com>
32990
32991         xstrtol-tests: convert to use init.sh
32992         * modules/xstrtol-tests (Files): Add tests/init.sh.
32993         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32994         Use Exit, not exit.
32995         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32996
32997         atexit-tests: convert to use init.sh
32998         * modules/atexit-tests (Files): Add tests/init.sh.
32999         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33000         Use Exit, not exit.
33001         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33002
33003         init.sh: fix typo
33004         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33005
33006         init.sh: make it easier for a test script to write to the tty, ...
33007         when using automake's parallel-tests mode.
33008         * tests/init.sh (stderr_fileno_): Define overridable variable.
33009         (warn_): New function, to use it.
33010         (fail_, skip_, framework_failure_): Use warn_.
33011
33012 2010-04-04  Bruno Haible  <bruno@clisp.org>
33013
33014         btowc: Avoid warning.
33015         * lib/btowc.c: Include <stdlib.h>.
33016         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33017
33018 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33019             Bruno Haible  <bruno@clisp.org>
33020
33021         wchar: Port to NetBSD 1.5.
33022         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33023         * lib/wctype.in.h (WEOF): Likewise.
33024
33025 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33026             Bruno Haible  <bruno@clisp.org>
33027
33028         Port extended stdio to NetBSD 1.5.
33029         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33030         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33031         older.
33032
33033 2010-04-04  Bruno Haible  <bruno@clisp.org>
33034
33035         string: Remove unused substitution.
33036         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33037         HAVE_DECL_STRERROR.
33038         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33039
33040 2010-04-04  Bruno Haible  <bruno@clisp.org>
33041
33042         strtod: Avoid a possible C++ test error.
33043         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33044         set REPLACE_STRTOD.
33045
33046 2010-04-04  Bruno Haible  <bruno@clisp.org>
33047
33048         strerror: Update documentation.
33049         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33050
33051 2010-04-04  Bruno Haible  <bruno@clisp.org>
33052
33053         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33054         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33055         _GL_CXXALIAS_SYS_CAST.
33056
33057 2010-04-04  Bruno Haible  <bruno@clisp.org>
33058
33059         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33060         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33061         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33062         REPLACE_FREXPL to 1.
33063         * doc/posix-functions/frexpl.texi: Update documentation.
33064
33065 2010-04-04  Bruno Haible  <bruno@clisp.org>
33066
33067         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33068         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33069
33070 2010-04-04  Bruno Haible  <bruno@clisp.org>
33071
33072         Implement nanosleep for native Windows.
33073         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33074
33075 2010-04-04  Bruno Haible  <bruno@clisp.org>
33076
33077         math: Fix some C++ test errors on Solaris 8.
33078         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33079
33080 2010-04-04  Bruno Haible  <bruno@clisp.org>
33081
33082         math: Fix some C++ test errors on Cygwin.
33083         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33084         truncl): Provide declaration if the system does not have it.
33085         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33086         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33087         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33088         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33089         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33090         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33091         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33092         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33093         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33094         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33095         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33096         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33097         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33098         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33099         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33100         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33101         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33102         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33103         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33104         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33105         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33106         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33107
33108 2010-04-04  Bruno Haible  <bruno@clisp.org>
33109
33110         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33111         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33112         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33113         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33114         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33115         * m4/isinf.m4 (gl_ISINF): Likewise.
33116         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33117
33118 2010-04-04  Bruno Haible  <bruno@clisp.org>
33119
33120         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33121         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33122
33123 2010-04-04  Bruno Haible  <bruno@clisp.org>
33124
33125         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33126         * modules/tmpfile (configure.ac): Update.
33127
33128         tmpfile: Fix C++ test error on mingw.
33129         * lib/stdio.in.h (tmpfile): New declaration.
33130         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33131         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33132         * modules/tmpfile (Depends-on): Add stdio.
33133         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33134         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33135         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33136         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33137         REPLACE_TMPFILE.
33138         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33139
33140 2010-04-04  Bruno Haible  <bruno@clisp.org>
33141
33142         ioctl: Fix C++ test error on mingw.
33143         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33144         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33145         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33146
33147 2010-04-03  Bruno Haible  <bruno@clisp.org>
33148
33149         wcwidth: Fix C++ test error on mingw.
33150         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33152         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33153
33154 2010-04-03  Bruno Haible  <bruno@clisp.org>
33155
33156         nanosleep: Fix C++ test error on mingw.
33157         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33158         * lib/time.in.h (nanosleep): Use modern idiom.
33159         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33160         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33161         REPLACE_NANOSLEEP to 1.
33162         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33163         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33164
33165 2010-04-03  Bruno Haible  <bruno@clisp.org>
33166
33167         strptime: Fix C++ test error on mingw.
33168         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33169         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33170         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33171         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33172         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33173         not REPLACE_STRPTIME.
33174         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33175         REPLACE_STRPTIME.
33176
33177 2010-04-03  Bruno Haible  <bruno@clisp.org>
33178
33179         timegm: Fix C++ test error on mingw.
33180         * lib/time.in.h (timegm): Use modern idiom.
33181         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33182         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33183         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33184         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33185
33186 2010-04-03  Bruno Haible  <bruno@clisp.org>
33187
33188         timegm: Assume declaration if function exists.
33189         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33190         if it exists. Don't clobber ac_cv_func_timegm.
33191
33192 2010-04-03  Bruno Haible  <bruno@clisp.org>
33193
33194         time_r: Fix C++ test error on mingw.
33195         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33196         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33197         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33198         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33199         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33200
33201 2010-04-03  Bruno Haible  <bruno@clisp.org>
33202
33203         time_r: Minor updates.
33204         * modules/time_r (Description): Mention the provided functions.
33205         * lib/time_r.c: Don't include <string.h>.
33206         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33207         * doc/posix-functions/localtime_r.texi: Likewise.
33208
33209 2010-04-03  Bruno Haible  <bruno@clisp.org>
33210
33211         time: Fix regression introduced on 2010-03-08.
33212         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33213         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33214
33215 2010-04-03  Jim Meyering  <meyering@redhat.com>
33216
33217         maint.mk: don't silently disable project-specific syntax-check rules
33218         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33219         that they need to convert their project-specific syntax-check rules
33220         to use the new _sc_search_regexp.
33221
33222 2010-04-03  Bruno Haible  <bruno@clisp.org>
33223
33224         fchdir: Fix regression introduced on 2010-03-08.
33225         * lib/unistd.in.h (fchdir): Fix declaration.
33226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33228         REPLACE_FCHDIR.
33229         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33230         REPLACE_FCHDIR.
33231
33232 2010-04-03  Bruno Haible  <bruno@clisp.org>
33233
33234         getpagesize: Fix C++ test error on mingw.
33235         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33236         system does not declare the function.
33237         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33238         declared.
33239         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33240         HAVE_DECL_GETPAGESIZE.
33241         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33242
33243 2010-04-03  Bruno Haible  <bruno@clisp.org>
33244
33245         stdio: Make C++ tests work on mingw.
33246         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33247         does not declare the function.
33248
33249 2010-04-03  Bruno Haible  <bruno@clisp.org>
33250
33251         ftello: Fix C++ test error on mingw.
33252         * lib/stdio.in.h (ftello): Use modern idiom.
33253         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33254         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33255         is missing and that it needs to be replaced.
33256         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33258         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33259
33260 2010-04-03  Bruno Haible  <bruno@clisp.org>
33261
33262         fseeko: Fix C++ test error on mingw.
33263         * lib/stdio.in.h (fseeko): Use modern idiom.
33264         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33265         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33266         is missing and that it needs to be replaced.
33267         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33268         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33269         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33270
33271 2010-04-03  Bruno Haible  <bruno@clisp.org>
33272
33273         mkstemp: Fix C++ test error on mingw.
33274         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33275         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33276         function is missing and that it needs to be replaced.
33277         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33278         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33279
33280 2010-04-03  Bruno Haible  <bruno@clisp.org>
33281
33282         stpncpy: Fix C++ test error on mingw.
33283         * lib/string.in.h (stpncpy): Use modern idiom.
33284         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33285         function is missing and that it needs to be replaced.
33286         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33287         REPLACE_STPNCPY.
33288         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33289
33290 2010-04-03  Bruno Haible  <bruno@clisp.org>
33291
33292         sys_stat: Fix C++ test error on mingw.
33293         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33294         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33295
33296 2010-04-03  Bruno Haible  <bruno@clisp.org>
33297
33298         pty: Update doc.
33299         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33300
33301 2010-04-03  Bruno Haible  <bruno@clisp.org>
33302
33303         unistd: Fix C++ test error on mingw.
33304         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33305
33306 2010-04-03  Bruno Haible  <bruno@clisp.org>
33307
33308         Update doc regarding mingw.
33309         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33310         * doc/glibc-functions/login_tty.texi: Likewise.
33311         * doc/glibc-functions/forkpty.texi: Likewise.
33312
33313 2010-04-03  Bruno Haible  <bruno@clisp.org>
33314
33315         stdlib: Avoid compilation failure of c-strtold on mingw.
33316         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33317
33318 2010-04-03  Bruno Haible  <bruno@clisp.org>
33319
33320         locale: Make C++ tests work on Cygwin and mingw.
33321         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33322         cannot provide the function.
33323         Reported by Simon Josefsson.
33324
33325 2010-04-03  Bruno Haible  <bruno@clisp.org>
33326
33327         localename: Port to MacOS X 10.6.
33328         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33329         memory layout of the locales in MacOS X 10.6 as well.
33330         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33331
33332 2010-04-02  Bruno Haible  <bruno@clisp.org>
33333
33334         gnulib-tool: Ensure that long-running tests are executed last.
33335         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33336         running tests after the one for the other tests.
33337
33338 2010-04-02  Bruno Haible  <bruno@clisp.org>
33339
33340         gnulib-tool: Ensure the tests in the main directory are executed first.
33341         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33342         start with the current directory.
33343
33344 2010-04-02  Bruno Haible  <bruno@clisp.org>
33345
33346         Tests for module 'havelib', moved here from GNU gettext.
33347         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33348         modifications.
33349         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33350         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33351         with modifications.
33352         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33353         modifications.
33354         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33355         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33356         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33357         with modifications.
33358         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33359         with modifications.
33360         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33361         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33362         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33363         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33364         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33365         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33366         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33367         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33368         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33369         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33370         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33371         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33372         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33373         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33374         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33375         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33376         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33377         with modifications.
33378         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33379         with modifications.
33380         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33381         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33382         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33383         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33384         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33385         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33386         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33387         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33388         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33389         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33390         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33391         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33392         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33393         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33394         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33395         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33396         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33397         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33398         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33399         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33400         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33401         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33402         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33403         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33404         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33405         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33406         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33407         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33408         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33409         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33410         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33411         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33412         * tests/havelib/rpathx/rpathx.c: New file, from
33413         gettext/autoconf-lib-link.
33414         * tests/havelib/rpathx/Makefile.am: New file, from
33415         gettext/autoconf-lib-link.
33416         * tests/havelib/rpathx/configure.ac: New file, from
33417         gettext/autoconf-lib-link with modifications.
33418         * tests/havelib/rpathy/rpathy.c: New file, from
33419         gettext/autoconf-lib-link.
33420         * tests/havelib/rpathy/Makefile.am: New file, from
33421         gettext/autoconf-lib-link.
33422         * tests/havelib/rpathy/configure.ac: New file, from
33423         gettext/autoconf-lib-link with modifications.
33424         * tests/havelib/rpathz/rpathz.c: New file, from
33425         gettext/autoconf-lib-link.
33426         * tests/havelib/rpathz/Makefile.am: New file, from
33427         gettext/autoconf-lib-link.
33428         * tests/havelib/rpathz/configure.ac: New file, from
33429         gettext/autoconf-lib-link with modifications.
33430         * tests/havelib/rpathlx/usex.c: New file, from
33431         gettext/autoconf-lib-link.
33432         * tests/havelib/rpathlx/Makefile.am: New file, from
33433         gettext/autoconf-lib-link.
33434         * tests/havelib/rpathlx/configure.ac: New file, from
33435         gettext/autoconf-lib-link with modifications.
33436         * tests/havelib/rpathly/usey.c: New file, from
33437         gettext/autoconf-lib-link.
33438         * tests/havelib/rpathly/Makefile.am: New file, from
33439         gettext/autoconf-lib-link.
33440         * tests/havelib/rpathly/configure.ac: New file, from
33441         gettext/autoconf-lib-link with modifications.
33442         * tests/havelib/rpathlz/usez.c: New file, from
33443         gettext/autoconf-lib-link.
33444         * tests/havelib/rpathlz/Makefile.am: New file, from
33445         gettext/autoconf-lib-link.
33446         * tests/havelib/rpathlz/configure.ac: New file, from
33447         gettext/autoconf-lib-link with modifications.
33448         * tests/havelib/rpathlyx/usey.c: New file, from
33449         gettext/autoconf-lib-link.
33450         * tests/havelib/rpathlyx/Makefile.am: New file, from
33451         gettext/autoconf-lib-link.
33452         * tests/havelib/rpathlyx/configure.ac: New file, from
33453         gettext/autoconf-lib-link with modifications.
33454         * tests/havelib/rpathlzyx/usez.c: New file, from
33455         gettext/autoconf-lib-link.
33456         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33457         gettext/autoconf-lib-link.
33458         * tests/havelib/rpathlzyx/configure.ac: New file, from
33459         gettext/autoconf-lib-link with modifications.
33460         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33461         with modifications.
33462
33463 2010-04-02  Bruno Haible  <bruno@clisp.org>
33464
33465         gnulib-tool: Create distributed built sources also for the tests.
33466         * gnulib-tool (func_create_testdir): Also generate distributed built
33467         sources in the tests directory.
33468
33469 2010-04-02  Bruno Haible  <bruno@clisp.org>
33470
33471         gnulib-tool: Obey user's environment variables.
33472         * gnulib-tool (func_create_testdir): When creating built sources,
33473         respect the environment variables for autoconf, automake, etc. given by
33474         the user.
33475
33476 2010-04-02  Bruno Haible  <bruno@clisp.org>
33477
33478         gnulib-tool: Provide the value of --m4-base to modules.
33479         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33480         of gl_m4_base.
33481
33482 2010-04-02  Eric Blake  <eblake@redhat.com>
33483
33484         maint.mk: fix some fallout
33485         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33486         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33487
33488 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33489
33490         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33491         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33492         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33493         (sc_cast_of_x_alloc_return_value): Likewise.
33494         (sc_cast_of_alloca_return_value): Likewise.
33495         (sc_space_tab): Likewise.
33496         (sc_prohibit_atoi_atof): Likewise.
33497         (sc_prohibit_magic_number_exit): Likewise.
33498         (sc_error_exit_success): Likewise.
33499         (sc_file_system): Likewise.
33500         (sc_prohibit_have_config_h): Likewise.
33501         (sc_require_config_h): Likewise.
33502         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33503         (sc_obsolete_symbols): Likewise.
33504         (sc_changelog): Likewise.
33505         (sc_program_name): Likewise.
33506         (sc_the_the): Likewise.
33507         (sc_trailing_blank): Likewise.
33508         (sc_two_space_separator_in_usage): Likewise.
33509         (sc_useless_cpp_parens): Likewise.
33510         (sc_GPL_version): Likewise.
33511         (sc_GFDL_version): Likewise.
33512         (sc_texinfo_acronym): Likewise.
33513         (sc_prohibit_cvs_keyword): Likewise.
33514         (sc_prohibit_stat_st_blocks): Likewise.
33515         (sc_prohibit_S_IS_definition): Likewise.
33516         (sc_redundant_const): Likewise.
33517         (sc_makefile_TAB_only_indentation): Likewise.
33518         (sc_m4_quote_check): Likewise.
33519         (sc_makefile_path_separator_check): Likewise.
33520         (sc_copyright_check): Likewise.
33521         (sc_Wundef_boolean): Likewise.
33522         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33523
33524         maint.mk: match 0 or more whitespace-before-function-call '('
33525         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33526         that have zero or two-and-more spaces between the function name
33527         and the open parenthesis.
33528         (sc_error_message_warn_fatal): Likewise.
33529         (sc_error_message_uppercase): Likewise.
33530         (sc_error_message_period): Likewise.
33531
33532 2010-03-31  Eric Blake  <eblake@redhat.com>
33533
33534         maint.mk: check for [ as well as test
33535         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33536         Based on a libvirt report by Matthias Bolte.
33537
33538         gnumakefile: don't squelch _version output
33539         * top/GNUmakefile (_version): Create one-shot dependency rather
33540         than using $(shell) when version must be regenerated.
33541         (_autoreconf): Run verbosely, by default.
33542
33543         sys_time: avoid compiler warnings
33544         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33545         unconditional, fixing regression from 2010-03-29.
33546         Reported by Simon Josefsson.
33547
33548 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33549
33550         maint.mk: s/_header_without_use/_sc_header_without_use/
33551         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33552         (sc_prohibit_assert_without_use): Use the new name.
33553         (sc_prohibit_close_stream_without_use): Likewise.
33554         (sc_prohibit_getopt_without_use): Likewise.
33555         (sc_prohibit_quotearg_without_use): Likewise.
33556         (sc_prohibit_quote_without_use): Likewise.
33557         (sc_prohibit_long_options_without_use): Likewise.
33558         (sc_prohibit_inttostr_without_use): Likewise.
33559         (sc_prohibit_ignore_value_without_use): Likewise.
33560         (sc_prohibit_error_without_use): Likewise.
33561         (sc_prohibit_xalloc_without_use): Likewise.
33562         (sc_prohibit_hash_without_use): Likewise.
33563         (sc_prohibit_hash_pjw_without_use): Likewise.
33564         (sc_prohibit_safe_read_without_use): Likewise.
33565         (sc_prohibit_argmatch_without_use): Likewise.
33566         (sc_prohibit_canonicalize_without_use): Likewise.
33567         (sc_prohibit_root_dev_ino_without_use): Likewise.
33568         (sc_prohibit_openat_without_use): Likewise.
33569         (sc_prohibit_c_ctype_without_use): Likewise.
33570         (sc_prohibit_signal_without_use): Likewise.
33571         (sc_prohibit_intprops_without_use): Likewise.
33572
33573 2010-03-30  Eric Blake  <eblake@redhat.com>
33574
33575         maint: improve module indicators
33576         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33577         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33578         columns, and avoid extra macro expansion.
33579
33580         fdopendir: work around FreeBSD bug
33581         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33582         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33583         * modules/dirent (Makefile.am): Substitute it.
33584         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
33585         declaration.
33586         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
33587         fix.
33588         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33589
33590 2010-03-29  Bruno Haible  <bruno@clisp.org>
33591
33592         Emit #pragma system_header after the inclusion guard, not before.
33593         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
33594         guard that spans the entire file, not before. This enables an
33595         optimization in GCC's preprocessor.
33596         * lib/ctype.in.h: Likewise.
33597         * lib/dirent.in.h: Likewise.
33598         * lib/errno.in.h: Likewise.
33599         * lib/float.in.h: Likewise.
33600         * lib/getopt.in.h: Likewise.
33601         * lib/iconv.in.h: Likewise.
33602         * lib/langinfo.in.h: Likewise.
33603         * lib/locale.in.h: Likewise.
33604         * lib/math.in.h: Likewise.
33605         * lib/netdb.in.h: Likewise.
33606         * lib/netinet_in.in.h: Likewise.
33607         * lib/pty.in.h: Likewise.
33608         * lib/sched.in.h: Likewise.
33609         * lib/se-selinux.in.h: Likewise.
33610         * lib/search.in.h: Likewise.
33611         * lib/spawn.in.h: Likewise.
33612         * lib/stdarg.in.h: Likewise.
33613         * lib/stdint.in.h: Likewise.
33614         * lib/string.in.h: Likewise.
33615         * lib/strings.in.h: Likewise.
33616         * lib/sys_file.in.h: Likewise.
33617         * lib/sys_ioctl.in.h: Likewise.
33618         * lib/sys_time.in.h: Likewise.
33619         * lib/sys_times.in.h: Likewise.
33620         * lib/sys_utsname.in.h: Likewise.
33621         * lib/sys_wait.in.h: Likewise.
33622         * lib/sysexits.in.h: Likewise.
33623         * lib/wctype.in.h: Likewise.
33624
33625 2010-03-28  James Youngman  <jay@gnu.org>
33626
33627         save-cwd: don't leak a file descriptor when the caller execs.
33628         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
33629         saved file descriptor.
33630         * modules/save-cwd (Depends-on): Depend on cloexec.
33631
33632 2010-03-29  Bruno Haible  <bruno@clisp.org>
33633
33634         Remove vestiges of fts-lgpl module.
33635         * lib/fts_.h: Assume GNULIB_FTS is 1.
33636         * lib/fts.c: Likewise.
33637         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33638
33639 2010-03-28  Bruno Haible  <bruno@clisp.org>
33640
33641         Fix definition of tests witness macro.
33642         * gnulib-tool (func_import): Fix definition of witness macro.
33643
33644 2010-03-28  Bruno Haible  <bruno@clisp.org>
33645
33646         Fix ioctl's protoype on glibc systems.
33647         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
33648         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
33649         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
33650         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
33651         signature. If not, arrange to replace the ioctl function.
33652         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33653         REPLACE_IOCTL.
33654         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
33655         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
33656         Reported by Ludovic Courtès <ludo@gnu.org>.
33657
33658 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
33659
33660         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
33661         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
33662         made it so grep -r --include=GLOB* ... did not work.
33663
33664 2010-03-26  Jim Meyering  <meyering@redhat.com>
33665             Eric Blake  <eblake@redhat.com>
33666
33667         maint.mk: prohibit use of test's -o and -a operators
33668         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
33669
33670 2010-03-28  Bruno Haible  <bruno@clisp.org>
33671
33672         Remove unused GNULIB_XYZ macro definitions.
33673         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
33674         invocation.
33675
33676 2010-03-28  Bruno Haible  <bruno@clisp.org>
33677
33678         Mark privileged tests modules.
33679         * modules/idpriv-drop-tests (Status): New section.
33680         * modules/idpriv-droptemp-tests (Status): New section.
33681
33682 2010-03-28  Bruno Haible  <bruno@clisp.org>
33683
33684         Split C++ tests into separate tests modules.
33685         * modules/dirent-c++-tests: New file, extracted from
33686         modules/dirent-tests.
33687         * modules/dirent-tests: Depend on it.
33688         * modules/fcntl-h-c++-tests: New file, extracted from
33689         modules/fcntl-h-tests.
33690         * modules/fcntl-h-tests: Depend on it.
33691         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
33692         * modules/glob-tests: Depend on it.
33693         * modules/iconv-h-c++-tests: New file, extracted from
33694         modules/iconv-h-tests.
33695         * modules/iconv-h-tests: Depend on it.
33696         * modules/langinfo-c++-tests: New file, extracted from
33697         modules/langinfo-tests.
33698         * modules/langinfo-tests: Depend on it.
33699         * modules/locale-c++-tests: New file, extracted from
33700         modules/locale-tests.
33701         * modules/locale-tests: Depend on it.
33702         * modules/math-c++-tests: New file, extracted from modules/math-tests.
33703         * modules/math-tests: Depend on it.
33704         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
33705         * modules/pty-tests: Depend on it.
33706         * modules/search-c++-tests: New file, extracted from
33707         modules/search-tests.
33708         * modules/search-tests: Depend on it.
33709         * modules/signal-c++-tests: New file, extracted from
33710         modules/signal-tests.
33711         * modules/signal-tests: Depend on it.
33712         * modules/spawn-c++-tests: New file, extracted from
33713         modules/spawn-tests.
33714         * modules/spawn-tests: Depend on it.
33715         * modules/stdio-c++-tests: New file, extracted from
33716         modules/stdio-tests.
33717         * modules/stdio-tests: Depend on it.
33718         * modules/stdlib-c++-tests: New file, extracted from
33719         modules/stdlib-tests.
33720         * modules/stdlib-tests: Depend on it.
33721         * modules/string-c++-tests: New file, extracted from
33722         modules/string-tests.
33723         * modules/string-tests: Depend on it.
33724         * modules/sys_ioctl-c++-tests: New file, extracted from
33725         modules/sys_ioctl-tests.
33726         * modules/sys_ioctl-tests: Depend on it.
33727         * modules/sys_select-c++-tests: New file, extracted from
33728         modules/sys_select-tests.
33729         * modules/sys_select-tests: Depend on it.
33730         * modules/sys_socket-c++-tests: New file, extracted from
33731         modules/sys_socket-tests.
33732         * modules/sys_socket-tests: Depend on it.
33733         * modules/sys_stat-c++-tests: New file, extracted from
33734         modules/sys_stat-tests.
33735         * modules/sys_stat-tests: Depend on it.
33736         * modules/sys_time-c++-tests: New file, extracted from
33737         modules/sys_time-tests.
33738         * modules/sys_time-tests: Depend on it.
33739         * modules/time-c++-tests: New file, extracted from modules/time-tests.
33740         * modules/time-tests: Depend on it.
33741         * modules/unistd-c++-tests: New file, extracted from
33742         modules/unistd-tests.
33743         * modules/unistd-tests: Depend on it.
33744         * modules/wchar-c++-tests: New file, extracted from
33745         modules/wchar-tests.
33746         * modules/wchar-tests: Depend on it.
33747         * modules/wctype-c++-tests: New file, extracted from
33748         modules/wctype-tests.
33749         * modules/wctype-tests: Depend on it.
33750         Reported by Simon Josefsson.
33751
33752 2010-03-28  Bruno Haible  <bruno@clisp.org>
33753
33754         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
33755         * gnulib-tool (func_exists_module): New function, extracted from
33756         func_verify_module.
33757         (func_verify_module): Use it.
33758         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
33759         'foo' only if 'foo' exists.
33760         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
33761         module.
33762
33763 2010-03-28  Bruno Haible  <bruno@clisp.org>
33764
33765         gnulib-tool: Add support for special categories of tests.
33766         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
33767         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
33768         (func_usage): Document them.
33769         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
33770         inc_unportable_tests, inc_all_tests): New variables.
33771         (func_acceptable): Consider these variables.
33772         (func_modules_transitive_closure): Make it work when the 'Status' field
33773         consists of multiple words.
33774         (func_import): Store and restore the values of inc_cxx_tests,
33775         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
33776         inc_all_tests in gnulib-comp.m4.
33777         (func_create_testdir): Set inc_all_tests to true.
33778         * doc/gnulib.texi (Extra tests modules): New section.
33779         Suggested by Jim Meyering.
33780
33781 2010-03-28  Bruno Haible  <bruno@clisp.org>
33782
33783         ansi-c++-opt: Allow turning off the C++ build by default.
33784         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
33785         gl_CXX_CHOICE_DEFAULT_NO is defined.
33786         Requested by Eric Blake.
33787
33788 2010-03-28  Bruno Haible  <bruno@clisp.org>
33789
33790         unistd: Avoid #define replacements in C++ mode.
33791         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33792         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33793         setsockopt, shutdown, select): In C++, attach a warning to the function
33794         if possible, rather than #defining the symbol to a dysfunctional alias.
33795         Reported by John W. Eaton <jwe@gnu.org>.
33796
33797 2010-03-28  Bruno Haible  <bruno@clisp.org>
33798
33799         Fix link errors on mingw.
33800         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
33801         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
33802         $(LIBSOCKET).
33803         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
33804         $(LIBSOCKET).
33805
33806 2010-03-28  Bruno Haible  <bruno@clisp.org>
33807             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33808
33809         lib-ignore: Determine different options for different compilers.
33810         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
33811         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
33812         Add comments.
33813         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
33814         * NEWS: Mention the change.
33815
33816 2010-03-27  Bruno Haible  <bruno@clisp.org>
33817
33818         Remove unused GNULIB_XYZ macro definitions.
33819         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33820         * modules/fseek (configure.ac): Likewise.
33821         * modules/ioctl (configure.ac): Likewise.
33822         * modules/open (configure.ac): Likewise.
33823         * modules/stdlib-safer (configure.ac): Likewise.
33824
33825 2010-03-27  Bruno Haible  <bruno@clisp.org>
33826
33827         Add a remark about certain modules.
33828         * modules/malloc (Comment): New section.
33829         * modules/realloc (Comment): Likewise.
33830         * modules/sigpipe (Comment): Likewise.
33831
33832 2010-03-27  Bruno Haible  <bruno@clisp.org>
33833
33834         Resolve conflict between the two kinds of module indicators.
33835         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
33836         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
33837         * modules/canonicalize (configure.ac): Invoke
33838         gl_MODULE_INDICATOR_FOR_TESTS.
33839         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
33840         GNULIB_XYZ.
33841         * tests/test-dirent-c++.cc: Likewise.
33842         * tests/test-dirent-safer.c: Likewise.
33843         * tests/test-dup2.c: Likewise.
33844         * tests/test-fchdir.c: Likewise.
33845         * tests/test-fcntl-h-c++.cc: Likewise.
33846         * tests/test-getopt.c: Likewise.
33847         * tests/test-getopt.h: Likewise.
33848         * tests/test-langinfo-c++.cc: Likewise.
33849         * tests/test-locale-c++.cc: Likewise.
33850         * tests/test-math-c++.cc: Likewise.
33851         * tests/test-pty-c++.cc: Likewise.
33852         * tests/test-search-c++.cc: Likewise.
33853         * tests/test-signal-c++.cc: Likewise.
33854         * tests/test-spawn-c++.cc: Likewise.
33855         * tests/test-stdio-c++.cc: Likewise.
33856         * tests/test-stdlib-c++.cc: Likewise.
33857         * tests/test-string-c++.cc: Likewise.
33858         * tests/test-sys_ioctl-c++.cc: Likewise.
33859         * tests/test-sys_select-c++.cc: Likewise.
33860         * tests/test-sys_socket-c++.cc: Likewise.
33861         * tests/test-sys_stat-c++.cc: Likewise.
33862         * tests/test-sys_time-c++.cc: Likewise.
33863         * tests/test-time-c++.cc: Likewise.
33864         * tests/test-unistd-c++.cc: Likewise.
33865         * tests/test-wchar-c++.cc: Likewise.
33866         * tests/uninorm/test-u8-nfc.c: Likewise.
33867         * tests/uninorm/test-u8-nfd.c: Likewise.
33868         * tests/uninorm/test-u8-nfkc.c: Likewise.
33869         * tests/uninorm/test-u8-nfkd.c: Likewise.
33870         * tests/uninorm/test-u16-nfc.c: Likewise.
33871         * tests/uninorm/test-u16-nfd.c: Likewise.
33872         * tests/uninorm/test-u16-nfkc.c: Likewise.
33873         * tests/uninorm/test-u16-nfkd.c: Likewise.
33874         * tests/uninorm/test-u32-nfc.c: Likewise.
33875         * tests/uninorm/test-u32-nfc-big.c: Likewise.
33876         * tests/uninorm/test-u32-nfd.c: Likewise.
33877         * tests/uninorm/test-u32-nfd-big.c: Likewise.
33878         * tests/uninorm/test-u32-nfkc.c: Likewise.
33879         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
33880         * tests/uninorm/test-u32-nfkd.c: Likewise.
33881         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
33882         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33883
33884 2010-03-27  Bruno Haible  <bruno@clisp.org>
33885
33886         Distinguish two kinds of module indicators.
33887         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
33888         gl_MODULE_INDICATOR.
33889         (gl_MODULE_INDICATOR): New macro.
33890         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33891         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
33892         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33893         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33894         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33895         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33896         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33897         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33898         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33899         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33900         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33901         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33902         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33903         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33904         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33905         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33906         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33907         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33908         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33909         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33910         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33911         * modules/cloexec (configure.ac): Likewise.
33912         * modules/getopt-gnu (configure.ac): Likewise.
33913         * modules/uninorm/u8-normalize (configure.ac): Likewise.
33914         * modules/uninorm/u16-normalize (configure.ac): Likewise.
33915         * modules/uninorm/u32-normalize (configure.ac): Likewise.
33916         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
33917
33918 2010-03-27  Bruno Haible  <bruno@clisp.org>
33919
33920         New module description field 'Comment'.
33921         * gnulib-tool: New option --extract-comment.
33922         (func_usage): Document it.
33923         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
33924         (func_get_comment): New function.
33925         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
33926
33927 2010-03-27  Bruno Haible  <bruno@clisp.org>
33928
33929         Addendum to 2010-02-07 commit.
33930         * gnulib-tool (func_usage): Document --extract-applicability option.
33931
33932 2010-03-27  Bruno Haible  <bruno@clisp.org>
33933
33934         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
33935         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
33936         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
33937         rather than link errors.
33938
33939 2010-03-27  Bruno Haible  <bruno@clisp.org>
33940
33941         Avoid side effects from tests-related modules on the compilation of lib.
33942         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
33943         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
33944         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
33945         parameter. Emit into AM_CPPFLAGS a definition of the designated C
33946         macro.
33947         (func_import): Define a witness macro. Assign it a value that depends
33948         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
33949         tests-related modules.
33950         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
33951         Reported by Jim Meyering.
33952
33953 2010-03-27  Bruno Haible  <bruno@clisp.org>
33954
33955         Factorize common .m4 code.
33956         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
33957         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
33958         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
33959         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
33960         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33961         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
33962         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
33963         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33964         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33965         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33966         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
33967         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33968         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33969         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33970         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33971         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
33972         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33973         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33975         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
33976         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
33977         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33978         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33979         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33980         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33981         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33982         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
33983         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
33984         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
33985         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33986         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33987         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33988
33989 2010-03-27  Bruno Haible  <bruno@clisp.org>
33990
33991         Fix a compilation error on Cygwin with g++ >= 4.3.
33992         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
33993         if it is undefined or if we alias it to chmod.
33994         (lstat): Don't warn about the use of this function if it is undefined
33995         or if we alias it to stat.
33996         Reported by Simon Josefsson.
33997
33998 2010-03-27  Bruno Haible  <bruno@clisp.org>
33999
34000         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34001         * modules/getlogin (configure.ac): Update.
34002
34003         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34004         * modules/getlogin_r (configure.ac): Update.
34005
34006         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34007         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34008         * modules/inet_ntop (configure.ac): Update.
34009
34010         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34011         * modules/inet_pton (configure.ac): Update.
34012
34013         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34014         * modules/mbslen (configure.ac): Update.
34015
34016         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34017         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34018         * modules/forkpty (configure.ac): Update.
34019         * modules/openpty (configure.ac): Update.
34020
34021 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34022
34023         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34024         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34025
34026 2010-03-25  Eric Blake  <eblake@redhat.com>
34027
34028         maint: use pragma consistently across replacement headers
34029         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34030         * lib/dirent.in.h (system_header): Likewise.
34031         * lib/errno.in.h (system_header): Likewise.
34032         * lib/float.in.h (system_header): Likewise.
34033         * lib/getopt.in.h (system_header): Likewise.
34034         * lib/iconv.in.h (system_header): Likewise.
34035         * lib/inttypes.in.h (system_header): Likewise.
34036         * lib/langinfo.in.h (system_header): Likewise.
34037         * lib/locale.in.h (system_header): Likewise.
34038         * lib/math.in.h (system_header): Likewise.
34039         * lib/netdb.in.h (system_header): Likewise.
34040         * lib/netinet_in.in.h (system_header): Likewise.
34041         * lib/pty.in.h (system_header): Likewise.
34042         * lib/sched.in.h (system_header): Likewise.
34043         * lib/se-selinux.in.h (system_header): Likewise.
34044         * lib/search.in.h (system_header): Likewise.
34045         * lib/spawn.in.h (system_header): Likewise.
34046         * lib/stdarg.in.h (system_header): Likewise.
34047         * lib/stdint.in.h (system_header): Likewise.
34048         * lib/string.in.h (system_header): Likewise.
34049         * lib/strings.in.h (system_header): Likewise.
34050         * lib/sys_file.in.h (system_header): Likewise.
34051         * lib/sys_ioctl.in.h (system_header): Likewise.
34052         * lib/sys_socket.in.h (system_header): Likewise.
34053         * lib/sys_times.in.h (system_header): Likewise.
34054         * lib/sys_utsname.in.h (system_header): Likewise.
34055         * lib/sys_wait.in.h (system_header): Likewise.
34056         * lib/sysexits.in.h (system_header): Likewise.
34057         * lib/unistd.in.h (system_header): Likewise.
34058         * lib/wctype.in.h (system_header): Likewise.
34059
34060         arpa/inet: fix mingw compilation warning
34061         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34062         Reported by Matthew Bolte.
34063
34064 2010-03-25  Bruno Haible  <bruno@clisp.org>
34065
34066         Avoid collision between gnulib wrapper and libintl wrapper.
34067         * lib/printf.c (printf): Don't define if a printf wrapper is already
34068         defined in intl/printf.c.
34069         Reported by Michel Boaventura <michel@michelboaventura.com>.
34070
34071 2010-03-25  Bruno Haible  <bruno@clisp.org>
34072
34073         Use ANSI C.
34074         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34075
34076 2010-03-25  Bruno Haible  <bruno@clisp.org>
34077
34078         Minor formatting changes.
34079         * lib/acosl.c: Insert space before function argument list.
34080         * lib/argz.c: Likewise.
34081         * lib/asinl.c: Likewise.
34082         * lib/expl.c: Likewise.
34083         * lib/gen-uni-tables.c: Likewise.
34084         * lib/gettext.h: Likewise.
34085         * lib/glthread/lock.h: Likewise.
34086         * lib/tanl.c: Likewise.
34087         * lib/uniname/uniname.c: Likewise.
34088         * tests/test-idpriv-drop.c: Likewise.
34089         * tests/test-idpriv-droptemp.c: Likewise.
34090         * tests/test-lock.c: Likewise.
34091         * tests/test-tls.c: Likewise.
34092         * lib/argp-help.c: Insert space before function-like macro argument
34093         list.
34094         * lib/memcmp.c: Likewise.
34095         * tests/test-base64.c: Likewise.
34096         * lib/localename.c: Insert space before sizeof's argument list.
34097         * lib/safe-alloc.h: Likewise.
34098         * lib/file-set.h: Insert space before macro argument list.
34099         * tests/test-argp.c: Likewise.
34100         * lib/argp-namefrob.h: Insert space before function parameter list.
34101         * lib/getaddrinfo.c: Likewise.
34102         * lib/netdb.in.h: Likewise.
34103         * lib/parse-duration.h: Likewise.
34104         * lib/parse-duration.c: Likewise.
34105         * lib/poll.c: Likewise.
34106         * lib/select.c: Likewise.
34107         * lib/trim.h: Likewise.
34108         * tests/test-usleep.c: Likewise.
34109         * lib/ldexpl.c: Insert space before function parameter list and before
34110         function argument list.
34111         * lib/logl.c: Likewise.
34112         * lib/sqrtl.c: Likewise.
34113         * lib/trim.c: Likewise.
34114         * lib/cosl.c: Use GNU style indentation. Insert space before function
34115         argument list.
34116         * lib/sinl.c: Likewise.
34117         * lib/tsearch.c: Insert space after 'for'.
34118         Reported by Jim Meyering.
34119
34120 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34121
34122         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34123         config header before grepping, as it's not present before
34124         autoreconf/configure are run.  Reported by Simon Josefsson.
34125
34126 2010-03-23  Bruno Haible  <bruno@clisp.org>
34127
34128         pt_chown: Make it work with automake < 1.11.
34129         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34130         Reported by Simon Josefsson.
34131
34132 2010-03-23  Bruno Haible  <bruno@clisp.org>
34133
34134         pt_chown: Don't depend on GPLed modules.
34135         * lib/pt_chown.c: Don't include idpriv.h.
34136         (main): Don't drop privileges.
34137         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34138         Reported by Simon Josefsson.
34139
34140 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34141
34142         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34143         suggestions from karl@freefriends.org (Karl Berry).
34144
34145 2010-03-22  Eric Blake  <eblake@redhat.com>
34146
34147         gethostname: further tweaks
34148         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34149         are overriding gethostname.
34150         Suggested by Bruno Haible.
34151
34152 2010-03-21  Bruno Haible  <bruno@clisp.org>
34153
34154         Fix comments.
34155         * lib/forkpty.c (rpl_forkpty): Fix comment.
34156         * lib/openpty.c (rpl_openpty): Likewise.
34157         Reported by Eric Blake.
34158
34159 2010-03-22  Eric Blake  <eblake@redhat.com>
34160
34161         gethostname: fix build on mingw
34162         * lib/unistd.in.h (includes): Work around fact that mingw
34163         <winsock2.h> re-includes <unistd.h>, by avoiding any
34164         redeclarations if we are being included by <winsock2.h>.
34165         Reported by Matthias Bolte.
34166
34167 2010-03-21  Bruno Haible  <bruno@clisp.org>
34168
34169         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34170         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34171         modifications.
34172         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34173         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34174         provide the replacement.
34175         * modules/forkpty (Depends-on): Add openpty, login_tty.
34176         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34177         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34178         * doc/glibc-functions/forkpty.texi: More supported platforms.
34179         * config/srclist.txt: Add forkpty.c (commented).
34180
34181 2010-03-21  Bruno Haible  <bruno@clisp.org>
34182
34183         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34184         (Makefile.am): Verify that PTY_LIB is defined.
34185
34186         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34187
34188 2010-03-21  Bruno Haible  <bruno@clisp.org>
34189
34190         Tests for module 'login_tty'.
34191         * modules/login_tty-tests: New file.
34192         * tests/test-login_tty.c: New file.
34193
34194         New module 'login_tty'.
34195         * lib/login_tty.c: New file.
34196         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34197         * modules/login_tty: New file.
34198         * doc/glibc-functions/login_tty.texi: Mention the new module.
34199
34200 2010-03-21  Bruno Haible  <bruno@clisp.org>
34201
34202         login_tty: Documentation.
34203         * doc/glibc-functions/login_tty.texi: New file.
34204         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34205
34206 2010-03-21  Bruno Haible  <bruno@clisp.org>
34207
34208         pty: Consistent macro naming.
34209         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34210         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34211         * modules/pty (configure.ac): Update.
34212
34213 2010-03-21  Bruno Haible  <bruno@clisp.org>
34214
34215         Tests for openpty: Make stricter.
34216         * tests/test-openpty.c (main): Add test of canonical processing and
34217         erase.
34218         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34219
34220         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34221         * lib/openpty.c (openpty): New replacement function.
34222         * lib/pty.in.h: Include <termios.h>.
34223         (openpty): Update declaration. Add comments.
34224         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34225         is not declared, arrange to provide the replacement. Check for _getpty
34226         and posix_openpt.
34227         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34228         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34229         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34230         * modules/pty-tests (test_pty_c___LDADD): New variable.
34231         * doc/glibc-functions/openpty.texi: More supported platforms.
34232
34233 2010-03-21  Bruno Haible  <bruno@clisp.org>
34234
34235         setenv: Tweaks.
34236         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34237         the test program.
34238         * doc/posix-functions/setenv.texi: Update platforms list.
34239
34240 2010-03-21  Bruno Haible  <bruno@clisp.org>
34241
34242         New module 'unlockpt'.
34243         * lib/unlockpt.c: New file, from glibc with modifications.
34244         * m4/unlockpt.m4: New file.
34245         * modules/unlockpt: New file.
34246         * lib/stdlib.in.h (unlockpt): New declaration.
34247         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34248         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34249         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34250         HAVE_UNLOCKPT.
34251         * doc/posix-functions/unlockpt.texi: Mention the new module.
34252         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34253         * config/srclist.txt: Add unlockpt.c (commented).
34254
34255 2010-03-21  Jim Meyering  <meyering@redhat.com>
34256
34257         maint.mk: prohibit inclusion of "intprops.h" without use
34258         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34259
34260 2010-03-21  Bruno Haible  <bruno@clisp.org>
34261
34262         New module 'grantpt'.
34263         * lib/grantpt.c: New file, from glibc with modifications.
34264         * m4/grantpt.m4: New file.
34265         * modules/grantpt: New file.
34266         * lib/stdlib.in.h (grantpt): New declaration.
34267         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34268         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34269         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34270         HAVE_GRANTPT.
34271         * doc/posix-functions/grantpt.texi: Mention the new module.
34272         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34273         * config/srclist.txt: Add grantpt.c (commented).
34274
34275 2010-03-21  Bruno Haible  <bruno@clisp.org>
34276
34277         New module 'pt_chown'.
34278         * lib/pt_chown.c: New file, from glibc with modifications.
34279         * lib/pty-private.h: New file, from glibc with modifications.
34280         * modules/pt_chown: New file.
34281         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34282
34283 2010-03-21  Bruno Haible  <bruno@clisp.org>
34284
34285         Tests for module 'ptsname'.
34286         * modules/ptsname-tests: New file.
34287         * tests/test-ptsname.c: New file.
34288
34289         New module 'ptsname'.
34290         * lib/ptsname.c: New file, from glibc with modifications.
34291         * m4/ptsname.m4: New file.
34292         * modules/ptsname: New file.
34293         * lib/stdlib.in.h (ptsname): New declaration.
34294         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34295         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34296         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34297         HAVE_PTSNAME.
34298         * doc/posix-functions/ptsname.texi: Mention the new module.
34299         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34300         * config/srclist.txt: Add ptsname.c (commented).
34301
34302 2010-03-21  Bruno Haible  <bruno@clisp.org>
34303
34304         Tests for module 'ttyname_r'.
34305         * modules/ttyname_r-tests: New file.
34306         * tests/test-ttyname_r.c: New file.
34307
34308         New module 'ttyname_r'.
34309         * lib/ttyname_r.c: New file.
34310         * m4/ttyname_r.m4: New file.
34311         * modules/ttyname_r: New file.
34312         * lib/unistd.in.h (ttyname_r): New declaration.
34313         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34314         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34315         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34316         HAVE_TTYNAME_R.
34317         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34318         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34319
34320 2010-03-20  Bruno Haible  <bruno@clisp.org>
34321
34322         signal: Undefine macro definitions in C++ mode.
34323         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34324         sigfillset): Undefine macro definitions from the system header in C++
34325         mode.
34326         Reported by John W. Eaton <jwe@gnu.org>.
34327
34328 2010-03-20  Bruno Haible  <bruno@clisp.org>
34329
34330         Ensure no #include statements inside extern "C" { ... }.
34331         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34332         contain #include statements.
34333         * lib/time.in.h: Likewise.
34334
34335 2010-03-20  Bruno Haible  <bruno@clisp.org>
34336
34337         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34338         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34339         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34340         Reported by John W. Eaton <jwe@gnu.org>.
34341
34342 2010-03-20  Bruno Haible  <bruno@clisp.org>
34343
34344         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34345         Reported by Jim Meyering.
34346
34347 2010-03-20  Bruno Haible  <bruno@clisp.org>
34348
34349         pipe: Set errno upon failure.
34350         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34351         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34352         errno value in error message.
34353
34354 2010-03-20  Bruno Haible  <bruno@clisp.org>
34355             Jim Meyering  <meyering@redhat.com>
34356
34357         lchown: Avoid "unused variable" warning.
34358         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34359
34360 2010-03-20  Bruno Haible  <bruno@clisp.org>
34361
34362         Work around unlink() bug on MacOS X 10.5.6.
34363         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34364         attempting to unlink a parent directory.
34365         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34366         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34367         activate for the replacement function.
34368         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34369
34370 2010-03-20  Bruno Haible  <bruno@clisp.org>
34371
34372         Fix link errors on Solaris 8.
34373         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34374         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34375
34376 2010-03-19  Jim Meyering  <meyering@redhat.com>
34377
34378         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34379         The _LIBC implementation of build_range_exp correctly honors the
34380         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34381         However, the non-_LIBC implementation would ignore that syntax-bit
34382         flag and return REG_ERANGE unconditionally.
34383         This change makes it honor that flag.
34384         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34385         Make two pointer parameters "const".
34386         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34387         (parse_bracket_exp): Update caller.
34388
34389         regex.m4: correct the reversed range endpoint ([b-a]) test
34390         * m4/regex.m4: When requiring that [b-a] evoke failure,
34391         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34392         test pass once again for x86-based systems.
34393
34394 2010-03-19  Bruno Haible  <bruno@clisp.org>
34395
34396         scandir: Fix link error on Solaris 8.
34397         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34398         macros.
34399
34400 2010-03-19  Bruno Haible  <bruno@clisp.org>
34401
34402         getusershell: Fix documentation.
34403         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34404         module.
34405         * doc/glibc-functions/setusershell.texi: Likewise.
34406
34407         getusershell: Provide declaration, missing on Solaris 9.
34408         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34409         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34410         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34411         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34413         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34414         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34415         HAVE_GETUSERSHELL.
34416         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34417
34418 2010-03-19  Bruno Haible  <bruno@clisp.org>
34419
34420         wctype: Provide iswblank function.
34421         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34422         exists and is fine.
34423         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34424         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34425         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34426         * doc/posix-functions/iswblank.texi: Update.
34427
34428 2010-03-19  Bruno Haible  <bruno@clisp.org>
34429
34430         Tests of module 'pty' in C++ mode.
34431         * modules/pty-tests: New file.
34432         * tests/test-pty-c++.cc: New file.
34433         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34434
34435 2010-03-19  Eric Blake  <eblake@redhat.com>
34436
34437         logb: fix documentation
34438         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34439         1.5 declaration bug.
34440
34441         forkpty, openpty: prefer glibc's const-safe prototype
34442         * lib/forkpty.c (rpl_forkpty): New file.
34443         * lib/openpty.c (rpl_openpty): Likewise.
34444         * modules/forkpty (Files): Distribute it.
34445         * modules/openpty (Files): Likewise.
34446         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34447         check...
34448         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34449         replacement for for non-const BSD signature.
34450         * modules/pty (Makefile.am): Substitute witnesses.
34451         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34452         * tests/test-forkpty.c: Update signature check.
34453         * tests/test-openpty.c: Likewise.
34454         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34455         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34456
34457         forkpty, openpty: split functions into new modules
34458         * modules/pty (Makefile.am): Substitute new witnesses.
34459         (Libraries): Move library detection...
34460         * modules/forkpty: ...into new module.
34461         * modules/openpty: Another new module.
34462         * modules/pty-tests: Rename and split...
34463         * modules/forkpty-tests: ...to this...
34464         * modules/openpty-tests: ...and this.
34465         * tests/test-pty.c: Rename and split...
34466         * tests/test-forkpty.c: ...to this...
34467         * tests/test-openpty.c: ...and this.
34468         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34469         (gl_PTY): Split library searching...
34470         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34471         (gl_FORKPTY, gl_OPENPTY): New macros.
34472         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34473         * NEWS: Mention the split.
34474         * MODULES.html.sh (Misc): Document the modules.
34475         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34476         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34477
34478         pty: improve replacement header
34479         * lib/pty.in.h: New file.
34480         * modules/pty (Files): Ship it.
34481         (Makefile.am): Always build replacement.
34482         * m4/pty.m4: Rename...
34483         * m4/pty_h.m4: ...to this.
34484         (gl_PTY): Modernize setting of witness macros; update check of
34485         forkpty to take proper advantage of cache.
34486         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34487
34488         getopt: avoid compiler warning
34489         * lib/getopt.c (attribute_hidden): Remove unused macro.
34490
34491 2010-03-18  Bruno Haible  <bruno@clisp.org>
34492
34493         Fix link errors on Solaris 8.
34494         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34495         * modules/search-tests (test_search_c___LDADD): Likewise.
34496         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34497         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34498         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34499         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34500         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34501         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34502         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34503
34504 2010-03-18  Bruno Haible  <bruno@clisp.org>
34505
34506         Fix bug introduced on 2010-03-14.
34507         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34508         (gl_SPAWN_H): Require it.
34509         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34510         Reported by Simon Josefsson.
34511
34512 2010-03-18  Bruno Haible  <bruno@clisp.org>
34513
34514         Fix typo introduced on 2009-12-31.
34515         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34516         posix_spawn_file_actions_adddup2.
34517
34518 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34519         and Eric Blake  <eblake@redhat.com>
34520
34521         test-vc-list-files-git: make more robust
34522         * tests/test-vc-list-files-git.sh: Unset problematic environment
34523         variables.  Chain commands together.
34524
34525 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34526
34527         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34528         `AC_CHECK_DECL' invocation.
34529
34530 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34531
34532         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34533         appears before executable statements. Suggested by Petr Sumbera
34534         <Petr.Sumbera@Sun.COM>.
34535
34536 2010-03-14  Bruno Haible  <bruno@clisp.org>
34537
34538         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34539         portability problems. Instead use a simpler test.
34540         (main): Check that invalid arguments are rejected only on Linux.
34541
34542 2010-03-14  Bruno Haible  <bruno@clisp.org>
34543
34544         Fix bug introduced on 2009-12-31.
34545         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34546         gl_PREREQ_SYS_H_WINSOCK2 always.
34547         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34548         SYS_SOCKET_H variable.
34549         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34550         Update comments.
34551         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34552         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34553         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34554         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34555         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34556
34557 2010-03-14  Bruno Haible  <bruno@clisp.org>
34558
34559         Fix values returned by sinl, cosl.
34560         * lib/trigl.h: Add specification comments.
34561         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34562         that combines the values from the precomputed table with the values of
34563         the Chebyshev polynomials.
34564
34565 2010-03-14  Bruno Haible  <bruno@clisp.org>
34566
34567         Fix compilation error when modules 'posix_spawn[p]' are not used.
34568         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34569         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34570
34571 2010-03-14  Bruno Haible  <bruno@clisp.org>
34572
34573         Fix compilation error on mingw when module 'time_r' is not used.
34574         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34575         is 1.
34576         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34577         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34578         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34579         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34580
34581 2010-03-14  Bruno Haible  <bruno@clisp.org>
34582
34583         Fix compilation error with Sun C.
34584         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
34585         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
34586         instead of GCC specific ULONG_LONG_MAX.
34587         * lib/xstrtoll.c: Likewise.
34588         * lib/xstrtoull.c: Likewise.
34589
34590 2010-03-13  Bruno Haible  <bruno@clisp.org>
34591
34592         Allow the user to disable C++ code and tests.
34593         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
34594         (gl_PROG_ANSI_CXX): Require it.
34595
34596 2010-03-13  Bruno Haible  <bruno@clisp.org>
34597
34598         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
34599         cases.
34600
34601 2010-03-13  Bruno Haible  <bruno@clisp.org>
34602
34603         Test that gnulib does not break the standard C++ headers.
34604         * tests/test-locale-c++2.cc: New file.
34605         * modules/locale-tests (Files): Add it.
34606         (Makefile.am): Compile it for test-locale-c++.
34607         * tests/test-math-c++2.cc: New file.
34608         * modules/math-tests (Files): Add it.
34609         (Makefile.am): Compile it for test-math-c++.
34610         * tests/test-signal-c++2.cc: New file.
34611         * modules/signal-tests (Files): Add it.
34612         (Makefile.am): Compile it for test-signal-c++.
34613         * tests/test-stdio-c++2.cc: New file.
34614         * modules/stdio-tests (Files): Add it.
34615         (Makefile.am): Compile it for test-stdio-c++.
34616         * tests/test-stdlib-c++2.cc: New file.
34617         * modules/stdlib-tests (Files): Add it.
34618         (Makefile.am): Compile it for test-stdlib-c++.
34619         * tests/test-string-c++2.cc: New file.
34620         * modules/string-tests (Files): Add it.
34621         (Makefile.am): Compile it for test-string-c++.
34622         * tests/test-time-c++2.cc: New file.
34623         * modules/time-tests (Files): Add it.
34624         (Makefile.am): Compile it for test-time-c++.
34625         Reported by John W. Eaton <jwe@gnu.org>.
34626
34627 2010-03-13  Bruno Haible  <bruno@clisp.org>
34628
34629         * gnulib-tool (func_usage): Clarify which options are available for
34630         --create-testdir and --create-megatestdir.
34631
34632 2010-03-13  Bruno Haible  <bruno@clisp.org>
34633
34634         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
34635         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
34636         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
34637         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
34638         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
34639         when appropriate.
34640         Reported by Jim Meyering.
34641
34642 2010-03-12  Simon Josefsson  <simon@josefsson.org>
34643
34644         * gnulib-tool (func_import): Explain origin of code.
34645
34646 2010-03-12  Bruno Haible  <bruno@clisp.org>
34647
34648         Fix problem with automake's definition of CXXLINK.
34649         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
34650         Reported by Simon Josefsson and Ludovic Courtès.
34651
34652 2010-03-12  Bruno Haible  <bruno@clisp.org>
34653
34654         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
34655         stable releases.
34656
34657 2010-03-11  Bruno Haible  <bruno@clisp.org>
34658
34659         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
34660         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
34661         whether the system provides one variant or multiple variants of the
34662         function.
34663         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
34664         C++ compilers.
34665         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
34666         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
34667         Reported by Jim Meyering.
34668
34669 2010-03-09  Simon Josefsson  <simon@josefsson.org>
34670
34671         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
34672
34673 2010-03-08  Bruno Haible  <bruno@clisp.org>
34674
34675         gnulib-tool: Add support for --libtool in --create-testdir.
34676         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
34677         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
34678
34679 2010-03-08  Eric Blake  <eblake@redhat.com>
34680
34681         gnulib-tool.texi: mention possibility of git submodule
34682         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
34683         submodules.
34684         * doc/.gitignore: Ignore another generated file.
34685
34686 2010-03-08  Karl Berry  <karl@gnu.org>
34687
34688         * doc/gnulib-tool.texi (VCS Issues): Mention third option
34689         of committing gnulib files while skipping others.
34690
34691 2010-03-07  Bruno Haible  <bruno@clisp.org>
34692
34693         Tests of module 'wctype' in C++ mode.
34694         * tests/test-wctype-c++.cc: New file.
34695         * modules/wctype-tests (Files): Add it and tests/signature.h.
34696         (Depends-on): Add ansi-c++-opt.
34697         (Makefile.am): Arrange to compile and run test-wctype-c++.
34698
34699         Tests of module 'wchar' in C++ mode.
34700         * tests/test-wchar-c++.cc: New file.
34701         * modules/wchar-tests (Files): Add it and tests/signature.h.
34702         (Depends-on): Add ansi-c++-opt.
34703         (Makefile.am): Arrange to compile and run test-wchar-c++.
34704         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
34705         gl_MODULE_INDICATOR.
34706
34707         Tests of module 'unistd' in C++ mode.
34708         * tests/test-unistd-c++.cc: New file.
34709         * modules/unistd-tests (Files): Add it and tests/signature.h.
34710         (Depends-on): Add ansi-c++-opt.
34711         (Makefile.am): Arrange to compile and run test-unistd-c++.
34712         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
34713         gl_MODULE_INDICATOR.
34714
34715         Tests of module 'time' in C++ mode.
34716         * tests/test-time-c++.cc: New file.
34717         * modules/time-tests (Files): Add it and tests/signature.h.
34718         (Depends-on): Add ansi-c++-opt.
34719         (Makefile.am): Arrange to compile and run test-time-c++.
34720         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34721
34722         Tests of module 'sys_time' in C++ mode.
34723         * tests/test-sys_time-c++.cc: New file.
34724         * modules/sys_time-tests (Files): Add it and tests/signature.h.
34725         (Depends-on): Add ansi-c++-opt.
34726         (Makefile.am): Arrange to compile and run test-sys_time-c++.
34727         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
34728         gl_MODULE_INDICATOR.
34729
34730         Tests of module 'sys_stat' in C++ mode.
34731         * tests/test-sys_stat-c++.cc: New file.
34732         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
34733         (Depends-on): Add ansi-c++-opt.
34734         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
34735         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
34736         gl_MODULE_INDICATOR.
34737
34738         Tests of module 'sys_socket' in C++ mode.
34739         * tests/test-sys_socket-c++.cc: New file.
34740         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
34741         (Depends-on): Add ansi-c++-opt.
34742         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
34743         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
34744         gl_MODULE_INDICATOR.
34745
34746         Tests of module 'sys_select' in C++ mode.
34747         * tests/test-sys_select-c++.cc: New file.
34748         * modules/sys_select-tests (Files): Add it and tests/signature.h.
34749         (Depends-on): Add ansi-c++-opt.
34750         (Makefile.am): Arrange to compile and run test-sys_select-c++.
34751         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
34752         gl_MODULE_INDICATOR.
34753
34754         Tests of module 'sys_ioctl' in C++ mode.
34755         * tests/test-sys_ioctl-c++.cc: New file.
34756         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
34757         (Depends-on): Add ansi-c++-opt.
34758         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
34759         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
34760         gl_MODULE_INDICATOR.
34761
34762         Tests of module 'string' in C++ mode.
34763         * tests/test-string-c++.cc: New file.
34764         * modules/string-tests (Files): Add it and tests/signature.h.
34765         (Depends-on): Add ansi-c++-opt.
34766         (Makefile.am): Arrange to compile and run test-string-c++.
34767         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
34768         gl_MODULE_INDICATOR.
34769
34770         Tests of module 'stdlib' in C++ mode.
34771         * tests/test-stdlib-c++.cc: New file.
34772         * modules/stdlib-tests (Files): Add it and tests/signature.h.
34773         (Depends-on): Add ansi-c++-opt.
34774         (Makefile.am): Arrange to compile and run test-stdlib-c++.
34775         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
34776         gl_MODULE_INDICATOR.
34777
34778         Tests of module 'stdio' in C++ mode.
34779         * tests/test-stdio-c++.cc: New file.
34780         * modules/stdio-tests (Files): Add it and tests/signature.h.
34781         (Depends-on): Add ansi-c++-opt.
34782         (Makefile.am): Arrange to compile and run test-stdio-c++.
34783         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
34784         gl_MODULE_INDICATOR.
34785
34786         Tests of module 'spawn' in C++ mode.
34787         * tests/test-spawn-c++.cc: New file.
34788         * modules/spawn-tests (Files): Add it and tests/signature.h.
34789         (Depends-on): Add ansi-c++-opt.
34790         (Makefile.am): Arrange to compile and run test-spawn-c++.
34791         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
34792         gl_MODULE_INDICATOR.
34793
34794         Tests of module 'signal' in C++ mode.
34795         * tests/test-signal-c++.cc: New file.
34796         * modules/signal-tests (Files): Add it and tests/signature.h.
34797         (Depends-on): Add ansi-c++-opt.
34798         (Makefile.am): Arrange to compile and run test-signal-c++.
34799         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
34800         gl_MODULE_INDICATOR.
34801
34802         Tests of module 'search' in C++ mode.
34803         * tests/test-search-c++.cc: New file.
34804         * modules/search-tests (Files): Add it and tests/signature.h.
34805         (Depends-on): Add ansi-c++-opt.
34806         (Makefile.am): Arrange to compile and run test-search-c++.
34807         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
34808         gl_MODULE_INDICATOR.
34809
34810         Tests of module 'math' in C++ mode.
34811         * tests/test-math-c++.cc: New file.
34812         * modules/math-tests (Files): Add it and tests/signature.h.
34813         (Depends-on): Add ansi-c++-opt.
34814         (Makefile.am): Arrange to compile and run test-math-c++.
34815         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34816
34817         Tests of module 'locale' in C++ mode.
34818         * tests/test-locale-c++.cc: New file.
34819         * modules/locale-tests (Files): Add it and tests/signature.h.
34820         (Depends-on): Add ansi-c++-opt.
34821         (Makefile.am): Arrange to compile and run test-locale-c++.
34822         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
34823         gl_MODULE_INDICATOR.
34824
34825         Tests of module 'langinfo' in C++ mode.
34826         * tests/test-langinfo-c++.cc: New file.
34827         * modules/langinfo-tests (Files): Add it and tests/signature.h.
34828         (Depends-on): Add ansi-c++-opt.
34829         (Makefile.am): Arrange to compile and run test-langinfo-c++.
34830         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
34831         gl_MODULE_INDICATOR.
34832
34833         Tests of module 'iconv-h' in C++ mode.
34834         * tests/test-iconv-h-c++.cc: New file.
34835         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
34836         (Depends-on): Add ansi-c++-opt.
34837         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
34838
34839         Tests of module 'glob' in C++ mode.
34840         * tests/test-glob-c++.cc: New file.
34841         * modules/glob-tests (Files): Add it.
34842         (Depends-on): Add ansi-c++-opt.
34843         (Makefile.am): Arrange to compile and run test-glob-c++.
34844
34845         Tests of module 'fcntl-h' in C++ mode.
34846         * tests/test-fcntl-h-c++.cc: New file.
34847         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
34848         (Depends-on): Add ansi-c++-opt.
34849         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
34850         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
34851         gl_MODULE_INDICATOR.
34852
34853         Tests of module 'dirent' in C++ mode.
34854         * tests/test-dirent-c++.cc: New file.
34855         * modules/dirent-tests (Files): Add it and tests/signature.h.
34856         (Depends-on): Add ansi-c++-opt.
34857         (Makefile.am): Arrange to compile and run test-dirent-c++.
34858         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34859         gl_MODULE_INDICATOR.
34860
34861         New module 'ansi-c++-opt'.
34862         * modules/ansi-c++-opt: New file.
34863         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
34864
34865         Document C++ namespace mode.
34866         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
34867
34868         wctype: Avoid #define replacements in C++ mode.
34869         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
34870         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
34871         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
34872         In C++, define a namespaced alias symbol.
34873         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
34874         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
34875         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
34876         rule.
34877
34878         wchar: Avoid #define replacements in C++ mode.
34879         * lib/wchar.in.h: Include c++defs.h.
34880         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
34881         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
34882         symbol.
34883         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
34884         * modules/wchar (Depends-on): Add c++defs.
34885         (Makefile.am): Update wchar.h rule.
34886
34887         unistd: Avoid #define replacements in C++ mode.
34888         * lib/unistd.in.h: Include c++defs.h.
34889         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
34890         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
34891         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
34892         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
34893         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
34894         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
34895         symbol.
34896         (environ): Update.
34897         * modules/unistd (Depends-on): Add c++defs.
34898         (Makefile.am): Update unistd.h rule.
34899
34900         time: Avoid #define replacements in C++ mode.
34901         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
34902         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
34903         define a namespaced alias symbol.
34904         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
34905         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
34906         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
34907         * modules/time (Depends-on): Add c++defs, warn-on-use.
34908         (Makefile.am): Update time.h rule.
34909         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34910         * modules/nanosleep (configure.ac): Likewise.
34911         * modules/strptime (configure.ac): Likewise.
34912         * modules/timegm (configure.ac): Likewise.
34913
34914         sys_time: Avoid #define replacements in C++ mode.
34915         * lib/sys_time.in.h: Include c++defs.h.
34916         (gettimeofday): In C++, define a namespaced alias symbol.
34917         * modules/sys_time (Depends-on): Add c++defs.
34918         (Makefile.am): Update sys/time.h rule.
34919
34920         sys_stat: Avoid #define replacements in C++ mode.
34921         * lib/sys_stat.in.h: Include c++defs.h.
34922         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
34923         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
34924         namespaced alias symbol.
34925         In C++, define a namespaced alias symbol.
34926         * modules/sys_stat (Depends-on): Add c++defs.
34927         (Makefile.am): Update sys/stat.h rule.
34928
34929         sys_socket: Avoid #define replacements in C++ mode.
34930         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
34931         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
34932         definitions also when the system has a <sys/socket.h>.
34933         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34934         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
34935         In C++, define a namespaced alias symbol.
34936         * modules/sys_socket (Depends-on): Add c++defs.
34937         (Makefile.am): Update sys/socket.h rule.
34938
34939         sys_select: Avoid #define replacements in C++ mode.
34940         * lib/sys_select.in.h: Include c++defs.h. Enable the function
34941         definitions also when the system has a <sys/select.h>.
34942         (select): In C++, define a namespaced alias symbol.
34943         * modules/sys_select (Depends-on): Add c++defs.
34944         (Makefile.am): Update sys/select.h rule.
34945
34946         sys_ioctl: Avoid #define replacements in C++ mode.
34947         * lib/sys_ioctl.in.h: Include c++defs.h.
34948         (ioctl): In C++, define a namespaced alias symbol.
34949         * modules/sys_ioctl (Depends-on): Add c++defs.
34950         (Makefile.am): Update sys/ioctl.h rule.
34951
34952         string: Avoid #define replacements in C++ mode.
34953         * lib/string.in.h: Include c++defs.h.
34954         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
34955         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34956         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34957         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
34958         strsignal, strverscmp): In C++, define a namespaced alias symbol.
34959         * modules/string (Depends-on): Add c++defs.
34960         (Makefile.am): Update string.h rule.
34961
34962         stdlib: Avoid #define replacements in C++ mode.
34963         * lib/stdlib.in.h: Include c++defs.h.
34964         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
34965         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
34966         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
34967         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
34968         symbol.
34969         * modules/stdlib (Depends-on): Add c++defs.
34970         (Makefile.am): Update stdlib.h rule.
34971
34972         stdio: Avoid #define replacements in C++ mode.
34973         * lib/stdio.in.h: Include c++defs.h.
34974         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
34975         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
34976         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
34977         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
34978         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
34979         namespaced alias symbol.
34980         * modules/stdio (Depends-on): Add c++defs.
34981         (Makefile.am): Update stdio.h rule.
34982
34983         spawn: Avoid #define replacements in C++ mode.
34984         * lib/spawn.in.h: Include c++defs.h.
34985         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34986         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34987         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34988         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34989         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34990         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34991         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34992         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34993         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34994         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34995         In C++, define a namespaced alias symbol.
34996         * modules/spawn (Depends-on): Add c++defs.
34997         (Makefile.am): Update spawn.h rule.
34998
34999         signal: Avoid #define replacements in C++ mode.
35000         * lib/signal.in.h: Include c++defs.h.
35001         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35002         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35003         namespaced alias symbol.
35004         * modules/signal (Depends-on): Add c++defs.
35005         (Makefile.am): Update signal.h rule.
35006
35007         search: Avoid #define replacements in C++ mode.
35008         * lib/search.in.h: Include c++defs.h.
35009         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35010         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35011         symbol.
35012         * modules/search (Depends-on): Add c++defs.
35013         (Makefile.am): Update search.h rule.
35014
35015         math: Avoid #define replacements in C++ mode.
35016         * lib/math.in.h: Include c++defs.h.
35017         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35018         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35019         trunc, truncl): In C++, define a namespaced alias symbol.
35020         * modules/math (Depends-on): Add c++defs.
35021         (Makefile.am): Update math.h rule.
35022
35023         locale: Avoid #define replacements in C++ mode.
35024         * lib/locale.in.h: Include c++defs.h.
35025         (duplocale): In C++, define a namespaced alias symbol.
35026         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35027         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35028         * modules/locale (Depends-on): Add c++defs.
35029         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35030
35031         langinfo: Avoid #define replacements in C++ mode.
35032         * lib/langinfo.in.h: Include c++defs.h.
35033         (nl_langinfo): In C++, define a namespaced alias symbol.
35034         * modules/langinfo (Depends-on): Add c++defs.
35035         (Makefile.am): Update langinfo.h rule.
35036
35037         iconv-h: Avoid #define replacements in C++ mode.
35038         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35039         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35040         symbol.
35041         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35042         whenever iconv is present.
35043         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35044         (Makefile.am): Update iconv.h rule.
35045
35046         glob: Avoid #define replacements in C++ mode.
35047         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35048         (_gl_glob_errfunc_fn): New type.
35049         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35050         symbol.
35051         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35052         (Makefile.am): Update glob.h rule.
35053
35054         fcntl-h: Avoid #define replacements in C++ mode.
35055         * lib/fcntl.in.h: Include c++defs.h.
35056         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35057         * modules/fcntl-h (Depends-on): Add c++defs.
35058         (Makefile.am): Update fcntl.h rule.
35059
35060         dirent: Avoid #define replacements in C++ mode.
35061         * lib/dirent.in.h: Include c++defs.h.
35062         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35063         namespaced alias symbol.
35064         (dirfd): Update declaration.
35065         * modules/dirent (Depends-on): Add c++defs.
35066         (Makefile.am): Update dirent.h rule.
35067
35068         ctype: Make it usable in C++ code.
35069         * lib/ctype.in.h: Include c++defs.h.
35070         (isblank): Declare as extern "C".
35071         * modules/ctype (Depends-on): Add c++defs.
35072         (Makefile.am): Update ctype.h rule.
35073
35074         New module 'c++defs'.
35075         * modules/c++defs: New file.
35076         * build-aux/c++defs.h: New file.
35077         Reported by John W. Eaton <jwe@gnu.org>.
35078
35079 2010-03-07  Bruno Haible  <bruno@clisp.org>
35080
35081         logb: Provide missing declaration for Cygwin.
35082         * lib/math.in.h (logb): New declaration.
35083         * m4/logb.m4: New file.
35084         * modules/logb (Files): Add m4/logb.m4.
35085         (Depends-on): Add math.
35086         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35087         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35088         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35089         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35090         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35091
35092 2010-03-07  Bruno Haible  <bruno@clisp.org>
35093
35094         Fix test-cond link error.
35095         * tests/test-cond.c: Include <stdio.h>.
35096
35097 2010-03-07  Bruno Haible  <bruno@clisp.org>
35098
35099         Fix test-dirent-safer link error.
35100         * modules/dirent-safer-tests (Makefile.am): Define
35101         test_dirent_safer_LDADD.
35102
35103 2010-03-07  Bruno Haible  <bruno@clisp.org>
35104
35105         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35106         among default module list.
35107
35108 2010-03-07  Bruno Haible  <bruno@clisp.org>
35109
35110         Fix link error on platforms with GNU libiconv.
35111         * modules/unistr/u8-strcoll-tests (Makefile): Define
35112         test_u8_strcoll_LDADD.
35113         * modules/unistr/u16-strcoll-tests (Makefile): Define
35114         test_u16_strcoll_LDADD.
35115         * modules/unistr/u32-strcoll-tests (Makefile): Define
35116         test_u32_strcoll_LDADD.
35117
35118 2010-03-07  Bruno Haible  <bruno@clisp.org>
35119
35120         Use POSIX declarations for socket functions.
35121         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35122         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35123         rpl_sendto): Change declaration to match POSIX.
35124         * lib/connect.c (rpl_connect): Likewise.
35125         * lib/accept.c (rpl_accept): Likewise.
35126         * lib/bind.c (rpl_bind): Likewise.
35127         * lib/getpeername.c (rpl_getpeername): Likewise.
35128         * lib/getsockname.c (rpl_getsockname): Likewise.
35129         * lib/recv.c (rpl_recv): Likewise.
35130         * lib/send.c (rpl_send): Likewise.
35131         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35132         * lib/sendto.c (rpl_sendto): Likewise.
35133
35134 2010-03-06  Bruno Haible  <bruno@clisp.org>
35135
35136         Clarify access, euidaccess, faccessat.
35137         * doc/posix-functions/faccessat.texi: Mention security problem under
35138         "Other problems", not "Portability problems".
35139         * doc/posix-functions/access.texi: Likewise. Mention a related security
35140         problem.
35141         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35142         * lib/euidaccess.c: Add comments about platforms.
35143         * lib/unistd.in.h (access, euidaccess): Add warnings.
35144
35145 2010-03-07  Bruno Haible  <bruno@clisp.org>
35146
35147         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35148         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35149         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35150         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35151         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35152         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35153         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35154         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35155         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35156         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35157         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35158         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35159         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35160         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35161         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35162         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35163         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35164         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35165         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35166         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35167         Likewise.
35168         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35169         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35170         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35171         Likewise.
35172         * tests/test-spawn.c (main): Make it work when
35173         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35174
35175 2010-03-07  Bruno Haible  <bruno@clisp.org>
35176
35177         Fix incorrect Makefile.am generation in German locale.
35178         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35179         Execute sed command with character range in C locale.
35180
35181 2010-03-06  Bruno Haible  <bruno@clisp.org>
35182
35183         Tests for module 'iconv-h'.
35184         * modules/iconv-h-tests: New file.
35185         * tests/test-iconv-h.c: New file.
35186
35187         New module 'iconv-h'.
35188         * modules/iconv-h: New file.
35189         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35190         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35191         (configure.ac): Remove gl_ICONV_H.
35192         (Makefile.am): Remove rule for iconv.h.
35193
35194 2010-03-06  Bruno Haible  <bruno@clisp.org>
35195
35196         More consistent naming of *.m4 files.
35197         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35198         * modules/wctype (Files): Update.
35199
35200         More consistent naming of *.m4 files.
35201         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35202         * modules/wchar (Files): Update.
35203
35204 2010-03-06  Jim Meyering  <meyering@redhat.com>
35205
35206         euidaccess: relax license to LGPLv2+
35207         * modules/euidaccess (License): Relax to LGPLv2+.
35208
35209 2010-03-06  Bruno Haible  <bruno@clisp.org>
35210
35211         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35212         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35213         (Makefile.am): Augment lib_SOURCES instead.
35214
35215 2010-03-04  Jim Meyering  <meyering@redhat.com>
35216
35217         utime: remove obsolete module
35218         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35219         unnecessary for years, and has been marked as obsolete for 10 months.
35220         * modules/utime: Remove file.
35221         * lib/utime.c: Remove file.
35222         * m4/utime.m4: Remove file.
35223         * m4/utimes-null.m4: Remove file.
35224         * doc/posix-functions/utime.texi (utime): Remove reference to
35225         the module.  Move the sole "fixed by gnulib" item into the
35226         "problems not fixed by Gnulib" list.
35227         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35228
35229 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35230
35231         * modules/exit (License): Relax license to LGPLv2+.
35232         (Status): Mark as obsolete.
35233         * NEWS: Mention deprecated 'exit' module.
35234         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35235         of now obsolete 'exit'.
35236
35237 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35238
35239         fts-lgpl: remove unused module
35240         * modules/fts-lgpl: Remove.
35241         * MODULES.html.sh (func_all_modules): Adjust.
35242         * check-module (find_included_lib_files): Adjust.
35243         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35244
35245 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35246
35247         copy-acl: enhance Solaris ACL error handling
35248         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35249         * lib/set-mode-acl.c (qset_acl): Likewise.
35250
35251 2010-03-02  Bruno Haible  <bruno@clisp.org>
35252
35253         spawn: Don't override the system defined values on FreeBSD 8.
35254         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35255         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35256         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35257         if HAVE_POSIX_SPAWN is 1.
35258         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35259
35260 2010-03-01  Bruno Haible  <bruno@clisp.org>
35261
35262         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35263         regarding Automake.
35264
35265 2010-02-25  Bruno Haible  <bruno@clisp.org>
35266
35267         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35268         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35269         setting, not afterwards.
35270         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35271
35272 2010-02-24  Eric Blake  <eblake@redhat.com>
35273
35274         bootstrap, git-version-gen: use timestamp
35275         * build-aux/git-version-gen (scriptversion): Force UTC.
35276         * build-aux/bootstrap (scriptversion): New variable.
35277
35278         bootstrap: allow older git
35279         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35280         older than 1.6.4.  Requested by the libvirt project.
35281
35282 2010-02-23  Eric Blake  <eblake@redhat.com>
35283
35284         warn-on-use: work with old autoconf
35285         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35286         AS_VAR semantics of autoconf 2.60.
35287         Reported by Bruno Haible.
35288
35289         bootstrap: improve some comments
35290         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35291         clarification comments.
35292
35293         gettimeofday: provide correct function
35294         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35295         when replacement is declared, otherwise provide gettimeofday.
35296         Reported by Michael Goffioul.
35297
35298 2010-02-23  Jim Meyering  <meyering@redhat.com>
35299
35300         lib-ignore: relax license to "unlimited", not LGPLv2+
35301         * modules/lib-ignore (License): Relax to "unlimited".
35302
35303 2010-02-23  Jim Meyering  <meyering@redhat.com>
35304
35305         lib-ignore: relax license to LGPLv2+
35306         * modules/lib-ignore (License): Relax to LGPLv2+.
35307
35308 2010-02-22  Eric Blake  <eblake@redhat.com>
35309
35310         lseek: avoid bash 3.2 broken pipe bug
35311         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35312         warning from bash 3.2.
35313         Reported by Ben Pfaff, with analysis from Bruno Haible.
35314
35315         bootstrap: support non-FSF copyright holder
35316         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35317         bootstrap.conf override of COPYRIGHT_HOLDER.
35318         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35319
35320         bootstrap: interoperate with gettext 0.14.1
35321         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35322
35323         bootstrap: allow for alternate submodule location
35324         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35325         hardcoding submodule location.
35326         (gnulib_mk): Allow direct use of Makefile.am.
35327
35328         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35329         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35330         rather than reconfiguring where the submodule points.
35331
35332         gettimeofday: restore support for platforms that lack function
35333         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35334         replacement if function is missing.
35335         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35336         * modules/sys_time (Makefile.am): Substitute it.
35337         * lib/sys_time.in.h (gettimeofday): Check it.
35338         Reported by Michael Goffioul.
35339
35340 2010-02-21  Bruno Haible  <bruno@clisp.org>
35341
35342         * lib/stdio.in.h (obstack_printf): Fix typo.
35343
35344 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35345
35346         vc-list-files: use bzr ls's -R option
35347         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35348         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35349
35350 2010-02-21  Jim Meyering  <meyering@redhat.com>
35351
35352         init.sh: fix EXEEXT shims to work also for names like test-prog
35353         * tests/init.sh: Re-exec a better shell, when needed.
35354         If the current shell lacks support for posix $(...), an init.sh-using
35355         test will now try to find a shell that supports that.  If EXEEXT is
35356         nonempty, we also require support for hyphen-in-alias-name and shell
35357         substitutions like ${var#glob}.  Failure to find such a shell results
35358         in a skipped test.
35359
35360 2010-02-21  Bruno Haible  <bruno@clisp.org>
35361
35362         Really work around around "broken pipe" error message from bash 3.2.
35363         * gnulib-tool (func_reset_sigpipe): Remove function.
35364         (echo): In bash 3.2, define to a function that uses printf.
35365         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35366
35367 2010-02-20  Bruno Haible  <bruno@clisp.org>
35368
35369         Restore support for automake 1.9.6 with autoconf 2.61.
35370         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35371         Reported by James Youngman <jay@gnu.org>.
35372
35373 2010-02-20  Bruno Haible  <bruno@clisp.org>
35374
35375         Improve *printf warning condition.
35376         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35377         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35378         and the function is overridden due to SIGPIPE emulation.
35379
35380 2010-02-20  Bruno Haible  <bruno@clisp.org>
35381
35382         * lib/stdio.in.h: Tweak comments.
35383
35384 2010-02-19  Bruno Haible  <bruno@clisp.org>
35385
35386         Make it easier to find modules. New gnulib-tool option '--find'.
35387         * gnulib-tool: New option --find.
35388         (func_usage): Document it.
35389         (func_sanitize_modulelist): New function, extracted from
35390         func_all_modules.
35391         (func_all_modules): Invoke it.
35392         * doc/gnulib-tool.texi (Which modules?): New node.
35393
35394 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35395
35396         * lib/sys_select.in.h: Provide select replacement even if
35397         sys/select.h exists on a system, for Interix.
35398
35399 2010-02-18  Jim Meyering  <meyering@redhat.com>
35400
35401         init.sh: don't use $(...) just yet
35402         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35403         to accommodate e.g., Solaris' /bin/sh.
35404
35405 2010-02-17  Bruno Haible  <bruno@clisp.org>
35406
35407         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35408         Reported by Ludovic Courtès <ludo@gnu.org>.
35409
35410 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35411
35412         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35413         linking with -lintl.
35414
35415 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35416
35417         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35418         if not provided by the system's netdb.h.  Reported by
35419         ludo@gnu.org (Ludovic Courtès).
35420
35421 2010-02-15  Jim Meyering  <meyering@redhat.com>
35422
35423         init.sh: improve portability and efficiency
35424         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35425         "dummy" in a for loop.
35426         Use '!', not '^' to select the complement of a character set used
35427         in a "case" statement.
35428         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35429         Suggestions from Eric Blake.
35430
35431         init.sh: automatically accommodate programs with the .exe suffix
35432         Automatically arrange for an invocation of "prog" to execute the
35433         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35434         may use the simpler "prog", yet still work when built on a system
35435         that requires specifying the added suffix.
35436         Do this by constructing a function named "prog" that invokes
35437         "prog.exe" for each .exe file in selected directories.
35438         * tests/init.sh (find_exe_basenames_): New function.
35439         (create_exe_shim_functions_): New function.
35440         (path_prepend_): Use it.
35441
35442         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35443         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35444         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35445
35446 2010-02-14  Jim Meyering  <meyering@redhat.com>
35447
35448         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35449         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35450         (sc_prohibit_hash_pjw_without_use): New rule.
35451
35452         maint.mk: allow the default upload destination dir to be overridden
35453         * top/maint.mk (upload_dest_dir_): Define with a default that
35454         preserves the status quo.
35455         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35456         Reported by Peter Simons.
35457
35458         maint.mk: prohibit inclusion of "hash.h" without_use
35459         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35460
35461 2010-02-10  Jim Meyering  <meyering@redhat.com>
35462
35463         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35464         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35465
35466 2010-02-09  Eric Blake  <ebb9@byu.net>
35467         and Bruno Haible  <bruno@clisp.org>
35468
35469         obstack-printf-posix: ensure declaration
35470         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35471         extracted from gl_FUNC_OBSTACK_PRINTF.
35472         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35473         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35474         Likewise.
35475         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35476         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35477         0.
35478
35479 2010-02-08  Bruno Haible  <bruno@clisp.org>
35480
35481         gnulib-tool: Fix typo in 2010-02-07 commit.
35482         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35483         Reported by Eric Blake.
35484
35485 2010-02-07  Bruno Haible  <bruno@clisp.org>
35486
35487         gnulib-tool: Fix up caching patches.
35488         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35489         option --no-cache. Use associative arrays when supported by the shell.
35490         (sed_comments): New variable.
35491         (modcache): Renamed from do_cache.
35492         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35493         abbreviate unnecessarily.
35494         (have_associative): New variable.
35495         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35496         way also for ksh and zsh.
35497         (func_init_sed_convert_to_cache_statements): New function, extracted
35498         from func_cache_lookup_module. Add support for associative arrays.
35499         Don't set the c_MODULE_cached variable here. Ignore all lines before
35500         the first field header. Remove only the final newline, not all trailing
35501         newlines. Support empty fields correctly. Limit the use of 'eval' to
35502         assignments.
35503         (func_get_description, func_get_status, func_get_notice,
35504         func_get_applicability, func_get_filelist, func_get_dependencies,
35505         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35506         func_get_automake_snippet, func_get_include_directive,
35507         func_get_link_directive, func_get_license, func_get_maintainer):
35508         Update documentation. List the unoptimized code first. Add support for
35509         associative arrays. Limit the use of 'eval' to assignments.
35510         (func_get_applicability): Undo stylistic pessimisations.
35511         (func_get_automake_snippet, func_get_include_directive): Reduce code
35512         duplication.
35513         (func_modules_transitive_closure, func_modules_add_dummy,
35514         func_modules_notice, func_modules_to_filelist, func_add_file,
35515         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35516         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35517         func_create_testdir, func_create_megatestdir): Update documentation.
35518
35519 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35520
35521         * gnulib-tool (func_cache_lookup_module): Store the module name
35522         belonging to the cache variable; error out if two different
35523         module names map to the same cache variable name.
35524
35525 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35526
35527         gnulib-tool: Make caching optional.
35528         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35529         Update matching short versions of --no-changelog.
35530         (func_usage): Update.
35531         (sed_extract_cache_prog): Renamed from ...
35532         (sed_extract_prog): ... this; revert to old extraction script.
35533         (func_get_description, func_get_status)
35534         (func_get_notice, func_get_applicability, func_get_filelist)
35535         (func_get_dependencies, func_get_autoconf_early_snippet)
35536         (func_get_autoconf_snippet, func_get_automake_snippet)
35537         (func_get_include_directive, func_get_link_directive)
35538         (func_get_license, func_get_maintainer): If $do_cache is false,
35539         use old, non-caching extraction scripts.
35540         Suggestion by Bruno Haible.
35541
35542 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35543
35544         gnulib-tool: cache module metainformation.
35545         * gnulib-tool (sed_extract_prog): Match newline before each
35546         header, and rewrite header to a shell variable suffix.
35547         (func_cache_var, func_cache_lookup_module): New functions,
35548         to turn a module name into a cache variable prefix, and to
35549         look up and cache module metainformation.
35550         (func_get_description, func_get_status)
35551         (func_get_notice, func_get_applicability, func_get_filelist)
35552         (func_get_dependencies, func_get_autoconf_early_snippet)
35553         (func_get_autoconf_snippet, func_get_automake_snippet)
35554         (func_get_include_directive, func_get_link_directive)
35555         (func_get_license, func_get_maintainer): Use
35556         func_cache_lookup_module.
35557
35558 2010-02-07  Bruno Haible  <bruno@clisp.org>
35559
35560         fnctl: Fix missing dependency.
35561         * modules/fcntl (Depends-on): Add getdtablesize.
35562         Reported by John W. Eaton <jwe@gnu.org>.
35563
35564 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35565
35566         Argp: fix recognition of short alias options.
35567
35568         * lib/argp-parse.c (convert_options): Fix improper use of
35569         `|' between character values.
35570         * tests/test-argp.c (group1_option): New alias option
35571         --read (-r).
35572         (group1_parser): Special handling for 'r'.
35573         (test15): New test case.
35574         (test_fun): Add test15.
35575         * tests/test-argp-2.sh: Update expected --help and --usage
35576         outputs.
35577
35578 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35579
35580         * tests/test-argp.c: Fix indentation.
35581
35582 2010-02-04  Eric Blake  <ebb9@byu.net>
35583
35584         gettimeofday: expose type of second argument
35585         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
35586         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
35587         * tests/test-gettimeofday.c: Use it to silence warning.
35588         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
35589         the issue.
35590
35591 2010-02-03  Jim Meyering  <meyering@redhat.com>
35592
35593         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
35594         * lib/regcomp.c (TYPE_SIGNED): Define.
35595         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
35596
35597         regcomp.c: avoid a new -Wshadow warning
35598         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
35599
35600 2010-02-01  Jim Meyering  <meyering@redhat.com>
35601
35602         removing useless parentheses in cpp #define directives
35603         For motivation, see commit c0221df4, "define STREQ(a,b)
35604         consistently, removing useless parentheses"
35605         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
35606         * lib/mountlist.c (MNT_IGNORE): Likewise.
35607         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
35608
35609 2010-02-01  Eric Blake  <ebb9@byu.net>
35610
35611         sys_time: use link-warning
35612         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
35613         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
35614         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
35615         * modules/sys_time (Depends-on): Add warn-on-use.
35616         (Makefile.am): Always build replacement.
35617         (configure.ac): Update substitutions.
35618         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
35619         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
35620         bother with SYS_TIME_H.
35621         * modules/gettimeofday (configure.ac): Declare indicator.
35622         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
35623         in use.
35624
35625         closein-tests: silence compiler warning
35626         * tests/test-closein.c (main): Ignore fread result.
35627         * modules/closein-tests (Depends-on): Add ignore-value.
35628
35629         tests: silence warning about system return
35630         * tests/test-areadlink-with-size.c (main): Ignore system result.
35631         * tests/test-areadlink.c (main): Likewise.
35632         * tests/test-areadlinkat-with-size.c (main): Likewise.
35633         * tests/test-areadlinkat.c (main): Likewise.
35634         * tests/test-canonicalize-lgpl.c (main): Likewise.
35635         * tests/test-canonicalize.c (main): Likewise.
35636         * tests/test-chown.c (main): Likewise.
35637         * tests/test-fchownat.c (main): Likewise.
35638         * tests/test-fdutimensat.c (main): Likewise.
35639         * tests/test-fstatat.c (main): Likewise.
35640         * tests/test-futimens.c (main): Likewise.
35641         * tests/test-lchown.c (main): Likewise.
35642         * tests/test-link.c (main): Likewise.
35643         * tests/test-linkat.c (main): Likewise.
35644         * tests/test-lstat.c (main): Likewise.
35645         * tests/test-mkdir.c (main): Likewise.
35646         * tests/test-mkdirat.c (main): Likewise.
35647         * tests/test-mkfifo.c (main): Likewise.
35648         * tests/test-mkfifoat.c (main): Likewise.
35649         * tests/test-mknod.c (main): Likewise.
35650         * tests/test-readlink.c (main): Likewise.
35651         * tests/test-remove.c (main): Likewise.
35652         * tests/test-rename.c (main): Likewise.
35653         * tests/test-renameat.c (main): Likewise.
35654         * tests/test-rmdir.c (main): Likewise.
35655         * tests/test-symlink.c (main): Likewise.
35656         * tests/test-symlinkat.c (main): Likewise.
35657         * tests/test-unlink.c (main): Likewise.
35658         * tests/test-unlinkat.c (main): Likewise.
35659         * tests/test-utimens.c (main): Likewise.
35660         * tests/test-utimensat.c (main): Likewise.
35661         * modules/areadlink-tests (Depends-on): Add ignore-value.
35662         * modules/areadlink-with-size-tests (Depends-on): Likewise.
35663         * modules/areadlinkat-tests (Depends-on): Likewise.
35664         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
35665         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35666         * modules/canonicalize-tests (Depends-on): Likewise.
35667         * modules/chown-tests (Depends-on): Likewise.
35668         * modules/fdutimensat-tests (Depends-on): Likewise.
35669         * modules/futimens-tests (Depends-on): Likewise.
35670         * modules/lchown-tests (Depends-on): Likewise.
35671         * modules/link-tests (Depends-on): Likewise.
35672         * modules/linkat-tests (Depends-on): Likewise.
35673         * modules/lstat-tests (Depends-on): Likewise.
35674         * modules/mkdir-tests (Depends-on): Likewise.
35675         * modules/mkfifo-tests (Depends-on): Likewise.
35676         * modules/mkfifoat-tests (Depends-on): Likewise.
35677         * modules/mknod-tests (Depends-on): Likewise.
35678         * modules/openat-tests (Depends-on): Likewise.
35679         * modules/readlink-tests (Depends-on): Likewise.
35680         * modules/remove-tests (Depends-on): Likewise.
35681         * modules/rename-tests (Depends-on): Likewise.
35682         * modules/renameat-tests (Depends-on): Likewise.
35683         * modules/rmdir-tests (Depends-on): Likewise.
35684         * modules/symlink-tests (Depends-on): Likewise.
35685         * modules/symlinkat-tests (Depends-on): Likewise.
35686         * modules/unlink-tests (Depends-on): Likewise.
35687         * modules/utimens-tests (Depends-on): Likewise.
35688         * modules/utimensat-tests (Depends-on): Likewise.
35689
35690 2010-01-31  Bruno Haible  <bruno@clisp.org>
35691
35692         Perform the same test for many <math.h> functions.
35693         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
35694         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
35695         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
35696         of gl_MATHFUNC.
35697         * modules/acos (configure.ac): Likewise.
35698         * modules/asin (configure.ac): Likewise.
35699         * modules/atan (configure.ac): Likewise.
35700         * modules/atan2 (configure.ac): Likewise.
35701         * modules/cbrt (configure.ac): Likewise.
35702         * modules/copysign (configure.ac): Likewise.
35703         * modules/cos (configure.ac): Likewise.
35704         * modules/cosh (configure.ac): Likewise.
35705         * modules/erf (configure.ac): Likewise.
35706         * modules/erfc (configure.ac): Likewise.
35707         * modules/exp (configure.ac): Likewise.
35708         * modules/fmod (configure.ac): Likewise.
35709         * modules/hypot (configure.ac): Likewise.
35710         * modules/j0 (configure.ac): Likewise.
35711         * modules/j1 (configure.ac): Likewise.
35712         * modules/jn (configure.ac): Likewise.
35713         * modules/lgamma (configure.ac): Likewise.
35714         * modules/log (configure.ac): Likewise.
35715         * modules/log10 (configure.ac): Likewise.
35716         * modules/log1p (configure.ac): Likewise.
35717         * modules/pow (configure.ac): Likewise.
35718         * modules/remainder (configure.ac): Likewise.
35719         * modules/sin (configure.ac): Likewise.
35720         * modules/sinh (configure.ac): Likewise.
35721         * modules/tan (configure.ac): Likewise.
35722         * modules/tanh (configure.ac): Likewise.
35723         * modules/y0 (configure.ac): Likewise.
35724         * modules/y1 (configure.ac): Likewise.
35725         * modules/yn (configure.ac): Likewise.
35726         Suggested by Paolo Bonzini.
35727
35728 2010-01-31  Bruno Haible  <bruno@clisp.org>
35729
35730         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
35731
35732 2010-01-31  Bruno Haible  <bruno@clisp.org>
35733
35734         Work around getdelim() bug on FreeBSD 8.0.
35735         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
35736         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
35737         not work.
35738         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
35739         is 1.
35740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
35741         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
35742         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
35743         a non-zero size.
35744         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
35745
35746 2010-01-31  Bruno Haible  <bruno@clisp.org>
35747
35748         Work around getline() bug on FreeBSD 8.0.
35749         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
35750         and a non-zero size.
35751         * tests/test-getline.c (main): Likewise.
35752         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
35753         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
35754
35755 2010-01-28  Eric Blake  <ebb9@byu.net>
35756
35757         regex: fix build failure
35758         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
35759         platforms.
35760
35761 2010-01-28  Jim Meyering  <meyering@redhat.com>
35762
35763         regex: do not ignore memory allocation failure
35764         * lib/regex_internal.c (create_cd_newstate): Detect
35765         re_node_set_init_copy failure.   Extracted from glibc commit
35766         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35767
35768         regex: sync more white-space changes from libc
35769         * lib/regex_internal.c: White-space only changes.
35770         * lib/regexec.c: Likewise.
35771
35772         regex: add many uses of __attribute_warn_unused_result__
35773         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
35774         * lib/regexec.c: Likewise.
35775         Extracted from a messy glibc commit.
35776
35777         regcomp.c: spelling and merge-artifact from glibc
35778         * lib/regcomp.c: Merge remainder of glibc's
35779         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35780
35781         regcomp.c: sync white-space changes from glibc
35782         * lib/regcomp.c: Merge to accommodate white space
35783         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35784
35785         regcomp.c: do not ignore internal return values
35786         * lib/regcomp.c: Do not ignore internal return values.
35787         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
35788         but without its white-space changes and spelling fixes.
35789
35790         regex_internal.h: define __attribute_warn_unused_result__
35791         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
35792
35793         maint: add a syntax-check rule to check for vulnerable Makefile.in
35794         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
35795
35796 2010-01-27  Jim Meyering  <meyering@redhat.com>
35797
35798         ncftpput-ftp: clean up spaces
35799         * build-aux/ncftpput-ftp: Make Copyright line consistent.
35800         Remove trailing blanks.
35801
35802 2010-01-27  Simon Josefsson  <simon@josefsson.org>
35803
35804         * build-aux/git-version-gen: Fix copyright statement.
35805         * build-aux/gnupload: Likewise.
35806         * tests/test-arcfour.c: Likewise.
35807         * tests/test-arctwo.c: Likewise.
35808         * tests/test-count-one-bits.c: Likewise.
35809         * tests/test-crc.c: Likewise.
35810         * tests/test-des.c: Likewise.
35811         * tests/test-gc-arcfour.c: Likewise.
35812         * tests/test-gc-arctwo.c: Likewise.
35813         * tests/test-gc-des.c: Likewise.
35814         * tests/test-gc-hmac-md5.c: Likewise.
35815         * tests/test-gc-hmac-sha1.c: Likewise.
35816         * tests/test-gc-md2.c: Likewise.
35817         * tests/test-gc-md4.c: Likewise.
35818         * tests/test-gc-md5.c: Likewise.
35819         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35820         * tests/test-gc-rijndael.c: Likewise.
35821         * tests/test-gc-sha1.c: Likewise.
35822         * tests/test-gc.c: Likewise.
35823         * tests/test-gethostname.c: Likewise.
35824         * tests/test-gettimeofday.c: Likewise.
35825         * tests/test-hash.c: Likewise.
35826         * tests/test-hmac-md5.c: Likewise.
35827         * tests/test-hmac-sha1.c: Likewise.
35828         * tests/test-md2.c: Likewise.
35829         * tests/test-md4.c: Likewise.
35830         * tests/test-md5.c: Likewise.
35831         * tests/test-memchr.c: Likewise.
35832         * tests/test-memchr2.c: Likewise.
35833         * tests/test-memcmp.c: Likewise.
35834         * tests/test-memmem.c: Likewise.
35835         * tests/test-memrchr.c: Likewise.
35836         * tests/test-rawmemchr.c: Likewise.
35837         * tests/test-read-file.c: Likewise.
35838         * tests/test-rijndael.c: Likewise.
35839         * tests/test-sockets.c: Likewise.
35840         * tests/test-strchrnul.c: Likewise.
35841         * tests/test-strstr.c: Likewise.
35842         * tests/test-strtod.c: Likewise.
35843         * build-aux/ncftpput-ftp: Likewise.
35844
35845 2010-01-26  Eric Blake  <ebb9@byu.net>
35846
35847         ignore-value: update recommended header name
35848         * modules/ignore-value (Include): Only use <> for headers that
35849         exist in glibc.
35850
35851 2010-01-26  Jim Meyering  <meyering@redhat.com>
35852
35853         test-userspec.c: avoid compiler warnings
35854         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
35855         and "initialization discards qualifiers..." warnings.
35856         Put the first "uid" in its own scope, and make char* members "const".
35857
35858 2010-01-25  Bruno Haible  <bruno@clisp.org>
35859
35860         gnulib-tool: Make warning diagnostics consistent.
35861         * gnulib-tool (func_warning): New function.
35862         Use it everywhere where gnulib-tool produces output to stderr and it is
35863         not a fatal error.
35864
35865 2010-01-25  Bruno Haible  <bruno@clisp.org>
35866
35867         Fix test dependencies.
35868         * modules/xstrtol-tests (Depends-on): Add inttypes.
35869         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
35870
35871 2010-01-25 Pádraig Brady <P@draigBrady.com>
35872
35873         syntax-check: detect incorrect boolean macro values in config.h
35874         * modules/maintainer-makefile (configure.ac): Parameterize the location
35875         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
35876         The logic is from Eric Blake and the location indicated by Jim Meyering.
35877         Note the more natural CONFIG_HEADER name is prohibited by automake
35878         for backwards compatibility reasons.
35879         * top/maint.mk (sc_Wundef_boolean): New rule.
35880
35881 2010-01-25  Jim Meyering  <meyering@redhat.com>
35882
35883         bootstrap: detect MacOS 10.6's shasum, too
35884         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
35885         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
35886
35887 2010-01-23  Jim Meyering  <meyering@redhat.com>
35888
35889         xstrtoll: new module
35890         * modules/xstrtoll: New file.
35891         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
35892         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
35893         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
35894         ./configure fails if you use this module and lack "long long".
35895         * modules/xstrtoll-tests: New module.
35896         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
35897         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
35898         new init.sh-based test framework.
35899
35900 2010-01-24  Bruno Haible  <bruno@clisp.org>
35901
35902         Tests for module 'yn'.
35903         * modules/yn-tests: New file.
35904         * tests/test-yn.c: New file.
35905
35906         Tests for module 'y1'.
35907         * modules/y1-tests: New file.
35908         * tests/test-y1.c: New file.
35909
35910         Tests for module 'y0'.
35911         * modules/y0-tests: New file.
35912         * tests/test-y0.c: New file.
35913
35914         Tests for module 'tanh'.
35915         * modules/tanh-tests: New file.
35916         * tests/test-tanh.c: New file.
35917
35918         Tests for module 'tan'.
35919         * modules/tan-tests: New file.
35920         * tests/test-tan.c: New file.
35921
35922         Tests for module 'sqrt'.
35923         * modules/sqrt-tests: New file.
35924         * tests/test-sqrt.c: New file.
35925
35926         Tests for module 'sinh'.
35927         * modules/sinh-tests: New file.
35928         * tests/test-sinh.c: New file.
35929
35930         Tests for module 'sin'.
35931         * modules/sin-tests: New file.
35932         * tests/test-sin.c: New file.
35933
35934         Tests for module 'rint'.
35935         * modules/rint-tests: New file.
35936         * tests/test-rint.c: New file.
35937
35938         Tests for module 'remainder'.
35939         * modules/remainder-tests: New file.
35940         * tests/test-remainder.c: New file.
35941
35942         Tests for module 'pow'.
35943         * modules/pow-tests: New file.
35944         * tests/test-pow.c: New file.
35945
35946         Tests for module 'nextafter'.
35947         * modules/nextafter-tests: New file.
35948         * tests/test-nextafter.c: New file.
35949
35950         Tests for module 'modf'.
35951         * modules/modf-tests: New file.
35952         * tests/test-modf.c: New file.
35953
35954         Tests for module 'logb'.
35955         * modules/logb-tests: New file.
35956         * tests/test-logb.c: New file.
35957
35958         Tests for module 'log1p'.
35959         * modules/log1p-tests: New file.
35960         * tests/test-log1p.c: New file.
35961
35962         Tests for module 'log10'.
35963         * modules/log10-tests: New file.
35964         * tests/test-log10.c: New file.
35965
35966         Tests for module 'log'.
35967         * modules/log-tests: New file.
35968         * tests/test-log.c: New file.
35969
35970         Tests for module 'lgamma'.
35971         * modules/lgamma-tests: New file.
35972         * tests/test-lgamma.c: New file.
35973
35974         Tests for module 'ldexp'.
35975         * modules/ldexp-tests: New file.
35976         * tests/test-ldexp.c: New file.
35977
35978         Tests for module 'jn'.
35979         * modules/jn-tests: New file.
35980         * tests/test-jn.c: New file.
35981
35982         Tests for module 'j1'.
35983         * modules/j1-tests: New file.
35984         * tests/test-j1.c: New file.
35985
35986         Tests for module 'j0'.
35987         * modules/j0-tests: New file.
35988         * tests/test-j0.c: New file.
35989
35990         Tests for module 'hypot'.
35991         * modules/hypot-tests: New file.
35992         * tests/test-hypot.c: New file.
35993
35994         Tests for module 'fmod'.
35995         * modules/fmod-tests: New file.
35996         * tests/test-fmod.c: New file.
35997
35998         Tests for module 'fabs'.
35999         * modules/fabs-tests: New file.
36000         * tests/test-fabs.c: New file.
36001
36002         Tests for module 'exp'.
36003         * modules/exp-tests: New file.
36004         * tests/test-exp.c: New file.
36005
36006         Tests for module 'erfc'.
36007         * modules/erfc-tests: New file.
36008         * tests/test-erfc.c: New file.
36009
36010         Tests for module 'erf'.
36011         * modules/erf-tests: New file.
36012         * tests/test-erf.c: New file.
36013
36014         Tests for module 'cosh'.
36015         * modules/cosh-tests: New file.
36016         * tests/test-cosh.c: New file.
36017
36018         Tests for module 'cos'.
36019         * modules/cos-tests: New file.
36020         * tests/test-cos.c: New file.
36021
36022         Tests for module 'copysign'.
36023         * modules/copysign-tests: New file.
36024         * tests/test-copysign.c: New file.
36025
36026         Tests for module 'cbrt'.
36027         * modules/cbrt-tests: New file.
36028         * tests/test-cbrt.c: New file.
36029
36030         Tests for module 'atan2'.
36031         * modules/atan2-tests: New file.
36032         * tests/test-atan2.c: New file.
36033
36034         Tests for module 'atan'.
36035         * modules/atan-tests: New file.
36036         * tests/test-atan.c: New file.
36037
36038         Tests for module 'asin'.
36039         * modules/asin-tests: New file.
36040         * tests/test-asin.c: New file.
36041
36042         Tests for module 'acos'.
36043         * modules/acos-tests: New file.
36044         * tests/test-acos.c: New file.
36045
36046 2010-01-24  Bruno Haible  <bruno@clisp.org>
36047
36048         Fix tests for common <math.h> functions.
36049         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36050         code snippet that references the function pointer, rather than merely
36051         calling the function. Substitute the FUNC_LIBM variable.
36052         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36053         * modules/acos (configure.ac): Likewise.
36054         * modules/asin (configure.ac): Likewise.
36055         * modules/atan (configure.ac): Likewise.
36056         * modules/atan2 (configure.ac): Likewise.
36057         * modules/cbrt (configure.ac): Likewise.
36058         * modules/copysign (configure.ac): Likewise.
36059         * modules/cos (configure.ac): Likewise.
36060         * modules/cosh (configure.ac): Likewise.
36061         * modules/erf (configure.ac): Likewise.
36062         * modules/erfc (configure.ac): Likewise.
36063         * modules/exp (configure.ac): Likewise.
36064         * modules/fabs (configure.ac): Likewise.
36065         * modules/fmod (configure.ac): Likewise.
36066         * modules/hypot (configure.ac): Likewise.
36067         * modules/j0 (configure.ac): Likewise.
36068         * modules/j1 (configure.ac): Likewise.
36069         * modules/jn (configure.ac): Likewise.
36070         * modules/ldexp (configure.ac): Likewise.
36071         * modules/lgamma (configure.ac): Likewise.
36072         * modules/log (configure.ac): Likewise.
36073         * modules/log10 (configure.ac): Likewise.
36074         * modules/log1p (configure.ac): Likewise.
36075         * modules/logb (configure.ac): Likewise.
36076         * modules/modf (configure.ac): Likewise.
36077         * modules/nextafter (configure.ac): Likewise.
36078         * modules/pow (configure.ac): Likewise.
36079         * modules/remainder (configure.ac): Likewise.
36080         * modules/rint (configure.ac): Likewise.
36081         * modules/sin (configure.ac): Likewise.
36082         * modules/sinh (configure.ac): Likewise.
36083         * modules/tan (configure.ac): Likewise.
36084         * modules/tanh (configure.ac): Likewise.
36085         * modules/y0 (configure.ac): Likewise.
36086         * modules/y1 (configure.ac): Likewise.
36087         * modules/yn (configure.ac): Likewise.
36088
36089 2010-01-24  Bruno Haible  <bruno@clisp.org>
36090
36091         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36092         * tests/test-acosl.c (x): New variable.
36093         (main): Store argument in x and fetch it from x.
36094         * tests/test-asinl.c (x): New variable.
36095         (main): Store argument in x and fetch it from x.
36096         * tests/test-atanl.c (x): New variable.
36097         (main): Store argument in x and fetch it from x.
36098         * tests/test-cosl.c (x): New variable.
36099         (main): Store argument in x and fetch it from x.
36100         * tests/test-expl.c (x): New variable.
36101         (main): Store argument in x and fetch it from x.
36102         * tests/test-logl.c (x): New variable.
36103         (main): Store argument in x and fetch it from x.
36104         * tests/test-sinl.c (x): New variable.
36105         (main): Store argument in x and fetch it from x.
36106         * tests/test-sqrtl.c (x): New variable.
36107         (main): Store argument in x and fetch it from x.
36108         * tests/test-tanl.c (x): New variable.
36109         (main): Store argument in x and fetch it from x.
36110
36111 2010-01-24  Bruno Haible  <bruno@clisp.org>
36112
36113         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36114         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36115         assignments to the initial TESTS_ENVIRONMENT.
36116         * doc/gnulib.texi (Unit test modules): Document it.
36117         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36118         TESTS_ENVIRONMENT.
36119         * modules/btowc-tests (Makefile.am): Likewise.
36120         * modules/c-stack-tests (Makefile.am): Likewise.
36121         * modules/c-strcase-tests (Makefile.am): Likewise.
36122         * modules/copy-file-tests (Makefile.am): Likewise.
36123         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36124         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36125         * modules/mbrtowc-tests (Makefile.am): Likewise.
36126         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36127         * modules/mbscasestr-tests (Makefile.am): Likewise.
36128         * modules/mbschr-tests (Makefile.am): Likewise.
36129         * modules/mbscspn-tests (Makefile.am): Likewise.
36130         * modules/mbsinit-tests (Makefile.am): Likewise.
36131         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36132         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36133         * modules/mbspbrk-tests (Makefile.am): Likewise.
36134         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36135         * modules/mbsrchr-tests (Makefile.am): Likewise.
36136         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36137         * modules/mbsspn-tests (Makefile.am): Likewise.
36138         * modules/mbsstr-tests (Makefile.am): Likewise.
36139         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36140         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36141         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36142         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36143         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36144         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36145         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36146         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36147         * modules/wcrtomb-tests (Makefile.am): Likewise.
36148         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36149         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36150         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36151         assignments from TESTS_ENVIRONMENT.
36152         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36153         augmentation.
36154         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36155         * modules/atexit-tests (Makefile.am): Likewise.
36156         * modules/binary-io-tests (Makefile.am): Likewise.
36157         * modules/closein-tests (Makefile.am): Likewise.
36158         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36159         * modules/exclude-tests (Makefile.am): Likewise.
36160         * modules/fflush-tests (Makefile.am): Likewise.
36161         * modules/fpending-tests (Makefile.am): Likewise.
36162         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36163         * modules/freadahead-tests (Makefile.am): Likewise.
36164         * modules/freadptr-tests (Makefile.am): Likewise.
36165         * modules/freadseek-tests (Makefile.am): Likewise.
36166         * modules/fseek-tests (Makefile.am): Likewise.
36167         * modules/fseeko-tests (Makefile.am): Likewise.
36168         * modules/ftell-tests (Makefile.am): Likewise.
36169         * modules/ftello-tests (Makefile.am): Likewise.
36170         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36171         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36172         * modules/lseek-tests (Makefile.am): Likewise.
36173         * modules/parse-duration-tests (Makefile.am): Likewise.
36174         * modules/perror-tests (Makefile.am): Likewise.
36175         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36176         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36177         * modules/pipe-tests (Makefile.am): Likewise.
36178         * modules/pread-tests (Makefile.am): Likewise.
36179         * modules/printf-posix-tests (Makefile.am): Likewise.
36180         * modules/select-tests (Makefile.am): Likewise.
36181         * modules/sigpipe-tests (Makefile.am): Likewise.
36182         * modules/tsearch-tests (Makefile.am): Likewise.
36183         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36184         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36185         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36186         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36187         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36188         * modules/version-etc-tests (Makefile.am): Likewise.
36189         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36190         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36191         * modules/xalloc-die-tests (Makefile.am): Likewise.
36192         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36193         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36194         * modules/xstrtol-tests (Makefile.am): Likewise.
36195         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36196         * modules/yesno-tests (Makefile.am): Likewise.
36197         Suggested by Jim Meyering.
36198
36199 2010-01-24  Bruno Haible  <bruno@clisp.org>
36200
36201         More documentation.
36202         * doc/gnulib.texi (Writing modules): New chapter.
36203         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36204         the new chapter.
36205
36206 2010-01-24  Jim Meyering  <meyering@redhat.com>
36207
36208         maint.mk: do not prepend "./" after filtering
36209         * top/maint.mk (_prepend_srcdir_prefix): New variable
36210         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36211         "./" when $(srcdir) is ".".
36212
36213         define STREQ(a,b) consistently, removing useless parentheses
36214         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36215         since the only risk is that "a" or "b" contains an unparenthesized
36216         comma, but if either did that, STREQ would have 3 or more arguments.
36217         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36218         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36219         * lib/hash-triple.c (STREQ): Likewise.
36220         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36221         * lib/getugroups.c (STREQ): Likewise.
36222
36223 2010-01-23  Jim Meyering  <meyering@redhat.com>
36224
36225         maint.mk: fix syntax-check in a non-srcdir build directory
36226         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36227         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36228
36229 2010-01-22  Jim Meyering  <meyering@redhat.com>
36230
36231         userspec: add unit tests
36232         * tests/test-userspec.c: New file.
36233         * modules/userspec-tests: Likewise.
36234
36235 2010-01-21  Jim Meyering  <meyering@redhat.com>
36236
36237         maint.mk: handle source file names containing "." robustly
36238         * top/maint.mk (_dot_escaped_srcdir): Define.
36239         (VC_LIST): Use it in LHS of sed substitution.
36240
36241 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36242
36243         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36244         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36245         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36246         from a non-srcdir build.
36247
36248 2010-01-20  Eric Blake  <ebb9@byu.net>
36249
36250         warn-on-use: use instead of link-warning
36251         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36252         * modules/unistd (Depends-on, Makefile.am): Likewise.
36253         * modules/arpa_inet (Depends-on): Replace link-warning with
36254         warn-on-use.
36255         (Makefile.am): Update rules accordingly.
36256         * modules/ctype (Depends-on, Makefile.am): Likewise.
36257         * modules/dirent (Depends-on, Makefile.am): Likewise.
36258         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36259         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36260         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36261         * modules/locale (Depends-on, Makefile.am): Likewise.
36262         * modules/math (Depends-on, Makefile.am): Likewise.
36263         * modules/search (Depends-on, Makefile.am): Likewise.
36264         * modules/signal (Depends-on, Makefile.am): Likewise.
36265         * modules/spawn (Depends-on, Makefile.am): Likewise.
36266         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36267         * modules/string (Depends-on, Makefile.am): Likewise.
36268         * modules/strings (Depends-on, Makefile.am): Likewise.
36269         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36270         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36271         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36272         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36273         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36274         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36275         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36276         * modules/wchar (Depends-on, Makefile.am): Likewise.
36277         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36278         should be poisoned.
36279         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36280         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36281         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36282         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36283         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36284         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36285         * m4/math_h.m4 (gl_MATH_H): Likewise.
36286         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36287         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36288         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36289         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36290         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36291         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36292         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36293         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36294         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36295         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36296         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36297         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36298         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36299         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36300         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36301         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36302         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36303         GL_LINK_WARNING.
36304         * lib/ctype.in.h: Likewise.
36305         * lib/dirent.in.h: Likewise.
36306         * lib/fcntl.in.h: Likewise.
36307         * lib/inttypes.in.h: Likewise.
36308         * lib/langinfo.in.h: Likewise.
36309         * lib/locale.in.h: Likewise.
36310         * lib/math.in.h: Likewise.
36311         * lib/search.in.h: Likewise.
36312         * lib/signal.in.h: Likewise.
36313         * lib/spawn.in.h: Likewise.
36314         * lib/stdio.in.h: Likewise.
36315         * lib/stdlib.in.h: Likewise.
36316         * lib/string.in.h: Likewise.
36317         * lib/strings.in.h: Likewise.
36318         * lib/sys_file.in.h: Likewise.
36319         * lib/sys_ioctl.in.h: Likewise.
36320         * lib/sys_select.in.h: Likewise.
36321         * lib/sys_socket.in.h: Likewise.
36322         * lib/sys_stat.in.h: Likewise.
36323         * lib/sys_times.in.h: Likewise.
36324         * lib/sys_utsname.in.h: Likewise.
36325         * lib/unistd.in.h: Likewise.
36326         * lib/wchar.in.h: Likewise.
36327
36328 2010-01-20  Bruno Haible  <bruno@clisp.org>
36329
36330         Avoid duplicate -lm.
36331         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36332         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36333         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36334         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36335         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36336         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36337         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36338         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36339         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36340         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36341         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36342         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36343         Reported by Paolo Bonzini.
36344
36345 2010-01-19  Bruno Haible  <bruno@clisp.org>
36346
36347         langinfo, nl_langinfo: Relicense under LGPLv2+.
36348         * modules/langinfo (License): Change to LGPLv2+.
36349         * modules/nl_langinfo (License): Likewise.
36350         Patch by David Lutterkort <lutter@redhat.com>.
36351
36352 2010-01-19  Bruno Haible  <bruno@clisp.org>
36353
36354         Avoid compilation error with cc on OSF/1 5.1.
36355         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36356         statement, not before.
36357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36358
36359 2010-01-18  Bruno Haible  <bruno@clisp.org>
36360
36361         Avoid a link error due to the __printf__ symbol.
36362         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36363         and 2.6.x.
36364         (__format__, __printf__): Remove definitions.
36365         * lib/argp-fmtstream.h: Likewise.
36366         * lib/argp.h: Likewise.
36367         * lib/error.h: Likewise.
36368         * lib/vasnprintf.h: Likewise.
36369         * lib/xprintf.h: Likewise.
36370         * lib/xvasprintf.h: Likewise.
36371         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36372
36373 2010-01-18  Bruno Haible  <bruno@clisp.org>
36374
36375         Tests for module 'tanl'.
36376         * modules/tanl-tests: New file.
36377         * tests/test-tanl.c: New file.
36378
36379         Tests for module 'sqrtl'.
36380         * modules/sqrtl-tests: New file.
36381         * tests/test-sqrtl.c: New file.
36382
36383         Tests for module 'sinl'.
36384         * modules/sinl-tests: New file.
36385         * tests/test-sinl.c: New file.
36386
36387         Tests for module 'logl'.
36388         * modules/logl-tests: New file.
36389         * tests/test-logl.c: New file.
36390
36391         Tests for module 'expl'.
36392         * modules/expl-tests: New file.
36393         * tests/test-expl.c: New file.
36394
36395         Tests for module 'cosl'.
36396         * modules/cosl-tests: New file.
36397         * tests/test-cosl.c: New file.
36398
36399         Tests for module 'atanl'.
36400         * modules/atanl-tests: New file.
36401         * tests/test-atanl.c: New file.
36402
36403         Tests for module 'asinl'.
36404         * modules/asinl-tests: New file.
36405         * tests/test-asinl.c: New file.
36406
36407         Tests for module 'acosl'.
36408         * modules/acosl-tests: New file.
36409         * tests/test-acosl.c: New file.
36410
36411         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36412         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36413         tanl): Use the standard gnulib idiom.
36414         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36415         * lib/sinl.c: Likewise.
36416         * lib/tanl.c: Don't include trigl.c.
36417         (kernel_tanl): Make static.
36418         * lib/sincosl.c: Include trigl.h first.
36419         * lib/trigl.c: Likewise.
36420         * m4/acosl.m4: New file.
36421         * m4/asinl.m4: New file.
36422         * m4/atanl.m4: New file.
36423         * m4/cosl.m4: New file.
36424         * m4/expl.m4: New file.
36425         * m4/logl.m4: New file.
36426         * m4/sinl.m4: New file.
36427         * m4/sqrtl.m4: New file.
36428         * m4/tanl.m4: New file.
36429         * m4/mathl.m4: Remove file.
36430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36431         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36432         Don't initialize GNULIB_MATHL.
36433         * modules/acosl: New file.
36434         * modules/asinl: New file.
36435         * modules/atanl: New file.
36436         * modules/cosl: New file.
36437         * modules/expl: New file.
36438         * modules/logl: New file.
36439         * modules/sinl: New file.
36440         * modules/sqrtl: New file.
36441         * modules/tanl: New file.
36442         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36443         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36444         substitute GNULIB_MATHL.
36445         * modules/mathl: Rewritten.
36446         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36447         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36448         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36449         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36450         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36451         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36452         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36453         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36454         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36455
36456 2010-01-18  Bruno Haible  <bruno@clisp.org>
36457
36458         sqrt: Make gl_FUNC_SQRT requirable.
36459         * m4/sqrt.m4: New file.
36460         * modules/sqrt (Files): Add it.
36461         (configure.ac): Invoke gl_FUNC_SQRT.
36462
36463 2010-01-18  Bruno Haible  <bruno@clisp.org>
36464
36465         New modules for common <math.h> functions.
36466         * m4/mathfunc.m4: New file.
36467         * modules/acos: New file.
36468         * modules/asin: New file.
36469         * modules/atan: New file.
36470         * modules/atan2: New file.
36471         * modules/cbrt: New file.
36472         * modules/copysign: New file.
36473         * modules/cos: New file.
36474         * modules/cosh: New file.
36475         * modules/erf: New file.
36476         * modules/erfc: New file.
36477         * modules/exp: New file.
36478         * modules/fabs: New file.
36479         * modules/fmod: New file.
36480         * modules/hypot: New file.
36481         * modules/j0: New file.
36482         * modules/j1: New file.
36483         * modules/jn: New file.
36484         * modules/ldexp: New file.
36485         * modules/lgamma: New file.
36486         * modules/log: New file.
36487         * modules/log10: New file.
36488         * modules/log1p: New file.
36489         * modules/logb: New file.
36490         * modules/modf: New file.
36491         * modules/nextafter: New file.
36492         * modules/pow: New file.
36493         * modules/remainder: New file.
36494         * modules/rint: New file.
36495         * modules/sin: New file.
36496         * modules/sinh: New file.
36497         * modules/sqrt: New file.
36498         * modules/tan: New file.
36499         * modules/tanh: New file.
36500         * modules/y0: New file.
36501         * modules/y1: New file.
36502         * modules/yn: New file.
36503         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36504         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36505         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36506         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36507         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36508         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36509         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36510         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36511         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36512         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36513         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36514         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36515         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36516         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36517         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36518         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36519         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36520         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36521         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36522         * doc/posix-functions/log.texi: Mention the 'log' module.
36523         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36524         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36525         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36526         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36527         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36528         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36529         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36530         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36531         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36532         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36533         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36534         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36535         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36536         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36537         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36538         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36539
36540 2010-01-18  Jim Meyering  <meyering@redhat.com>
36541
36542         ignore-value: relax license to LGPLv2+
36543         * modules/ignore-value (License): Relax to LGPLv2+.
36544
36545         getdate: don't leak when TZ contains two or more '"'s
36546         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36547         double quote in TZ after the first one.
36548
36549         readtokens: do not leak internal token_lengths buffer
36550         * lib/readtokens.c (readtokens): Free the local, lengths,
36551         when the supplied "token_lengths" parameter is NULL.
36552
36553 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36554
36555         Fix a couple of missing LIBTHREAD link failures on AIX.
36556         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36557         $(LIBTHREAD).
36558         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36559
36560         Link test-poll against INET_PTON_LIB.
36561         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36562         for inet_pton on Solaris 10.
36563
36564 2010-01-17  Bruno Haible  <bruno@clisp.org>
36565
36566         unistdio/*-sprintf: Fix typo in module description.
36567         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36568         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36569         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36570         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36571         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36572         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36573         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36574         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36575
36576 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36577
36578         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36579         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36580         variables in shell case patterns, for AIX and HP-UX ksh.
36581
36582         Split large sed scripts, for HP-UX sed.
36583         * modules/stdio: Split sed scripts around 50 sed commands,
36584         to avoid HP-UX limit of 99 commands, in the near future.
36585         * modules/string: Likewise.
36586         * modules/unistd: Likewise.
36587
36588         gnulib-tool: avoid writing in the current directory.
36589         * gnulib-tool (func_emit_lib_Makefile_am)
36590         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
36591         not in the current directory, so concurrent gnulib-tool
36592         instances do not interfere.
36593
36594 2010-01-16  Jim Meyering  <meyering@redhat.com>
36595
36596         doc: update users.txt
36597         * users.txt: Add grep.
36598         (diffutils, gzip): Update URLs.
36599
36600 2010-01-12  Bruno Haible  <bruno@clisp.org>
36601
36602         posix_spawn: Avoid test failure on Cygwin.
36603         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
36604         characters.
36605         Reported by Simon Josefsson.
36606
36607 2010-01-12  Bruno Haible  <bruno@clisp.org>
36608
36609         * tests/test-cond.c (main): When skipping the test, show the reason.
36610
36611 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36612
36613         * lib/striconv.c (str_cd_iconv): Avoid if before free.
36614
36615 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36616
36617         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
36618         VC_LIST_ALWAYS_EXCLUDE_REGEX.
36619
36620 2010-01-12  Eric Blake  <ebb9@byu.net>
36621
36622         build: guarantee AS_VAR_IF
36623         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
36624         (gl_AS_VAR_IF): Move...
36625         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
36626         Reported by Simon Josefsson.
36627
36628 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36629
36630         * lib/stdio.in.h: Fix typo.
36631
36632 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36633
36634         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
36635         libgpg-error.
36636
36637 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36638
36639         * tests/test-xalloc-die.sh: Use $EXEEXT.
36640
36641 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36642             Bruno Haible  <bruno@clisp.org>
36643
36644         getlogin, getlogin_r: Avoid test failure.
36645         * tests/test-getlogin.c: Include <stdio.h>.
36646         (main): Skip the test when the function fails because stdin is not a
36647         tty.
36648         * tests/test-getlogin_r.c: Include <stdio.h>.
36649         (main): Skip the test when the function fails because stdin is not a
36650         tty.
36651
36652 2010-01-11  Eric Blake  <ebb9@byu.net>
36653
36654         tests: avoid more large file warnings
36655         * tests/test-fflush.c: Avoid warning about ftell use.
36656         * tests/test-fseek.c: Avoid warning about fseek use.
36657
36658 2010-01-10  Bruno Haible  <bruno@clisp.org>
36659
36660         nproc: Work better on Linux when /proc and /sys are not mounted.
36661         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
36662         as lower bound when, on glibc/Linux systems,
36663         sysconf (_SC_NPROCESSORS_CONF) returns 1.
36664         Suggested by Pádraig Brady <P@draigbrady.com>.
36665         Reported by Dmitry V. Levin <ldv@altlinux.org>.
36666
36667         nproc: Refactor.
36668         * lib/nproc.c (num_processors_via_affinity_mask): New function,
36669         extracted from num_processors.
36670         (num_processors): Call it.
36671
36672 2010-01-11  Jim Meyering  <meyering@redhat.com>
36673
36674         utimecmp: avoid new warning from upcoming gcc-4.5.0
36675         * lib/utimecmp.c (BILLION): Define using #define rather than an
36676         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
36677
36678 2010-01-11  Eric Blake  <ebb9@byu.net>
36679
36680         math: add portability warnings for classification macros
36681         * modules/math (Depends-on): Add warn-on-use.
36682         (Makefile.am): Provide new substitutions.
36683         * m4/math_h.m4 (gl_MATH_H): Require inline.
36684         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
36685         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
36686         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
36687         implement warnings.
36688
36689         unistd: warn on use of environ without module
36690         * modules/unistd (Depends-on): Add warn-on-use.
36691         (Makefile.am): Provide new substitutions.
36692         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
36693         * lib/unistd.in.h (environ): Wrap with a warning helper function.
36694
36695         stdio: warn on suspicious uses
36696         * modules/stdio (Depends-on): Add warn-on-use.
36697         (Makefile.am): Provide new substitutions.
36698         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
36699         fseeko.
36700         * lib/stdio.in.h (gets): Always warn on use.
36701         (fseek, ftell): Adjust when warnings are issued, and honor
36702         _GL_NO_LARGE_FILES as a way to silence the warning.
36703         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
36704         any warning about large file offsets.
36705         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
36706         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
36707         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
36708         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
36709         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
36710         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
36711         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
36712         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
36713
36714         warn-on-use: new module
36715         * modules/warn-on-use: New file.
36716         * build-aux/warn-on-use.h: Likewise.
36717         * m4/warn-on-use.m4: Likewise.
36718         * MODULES.html.sh (Support for building): Mention it.
36719
36720 2010-01-10  Bruno Haible  <bruno@clisp.org>
36721
36722         Tests for module 'unistr/u32-strdup'.
36723         * modules/unistr/u32-strdup-tests: New file.
36724         * tests/unistr/test-u32-strdup.c: New file.
36725
36726         Tests for module 'unistr/u16-strdup'.
36727         * modules/unistr/u16-strdup-tests: New file.
36728         * tests/unistr/test-u16-strdup.c: New file.
36729
36730         Tests for module 'unistr/u8-strdup'.
36731         * modules/unistr/u8-strdup-tests: New file.
36732         * tests/unistr/test-u8-strdup.c: New file.
36733         * tests/unistr/test-strdup.h: New file.
36734
36735         Tests for module 'unistr/u32-strncmp'.
36736         * modules/unistr/u32-strncmp-tests: New file.
36737         * tests/unistr/test-u32-strncmp.c: New file.
36738
36739         Tests for module 'unistr/u16-strncmp'.
36740         * modules/unistr/u16-strncmp-tests: New file.
36741         * tests/unistr/test-u16-strncmp.c: New file.
36742
36743         Tests for module 'unistr/u8-strncmp'.
36744         * modules/unistr/u8-strncmp-tests: New file.
36745         * tests/unistr/test-u8-strncmp.c: New file.
36746         * tests/unistr/test-strncmp.h: New file.
36747
36748         Tests for module 'unistr/u32-strcoll'.
36749         * modules/unistr/u32-strcoll-tests: New file.
36750         * tests/unistr/test-u32-strcoll.c: New file.
36751
36752         Tests for module 'unistr/u16-strcoll'.
36753         * modules/unistr/u16-strcoll-tests: New file.
36754         * tests/unistr/test-u16-strcoll.c: New file.
36755
36756         Tests for module 'unistr/u8-strcoll'.
36757         * modules/unistr/u8-strcoll-tests: New file.
36758         * tests/unistr/test-u8-strcoll.c: New file.
36759
36760         Tests for module 'unistr/u32-strcmp'.
36761         * modules/unistr/u32-strcmp-tests: New file.
36762         * tests/unistr/test-u32-strcmp.c: New file.
36763         * tests/unistr/test-u32-strcmp.h: New file.
36764
36765         Tests for module 'unistr/u16-strcmp'.
36766         * modules/unistr/u16-strcmp-tests: New file.
36767         * tests/unistr/test-u16-strcmp.c: New file.
36768         * tests/unistr/test-u16-strcmp.h: New file.
36769
36770         Tests for module 'unistr/u8-strcmp'.
36771         * modules/unistr/u8-strcmp-tests: New file.
36772         * tests/unistr/test-u8-strcmp.c: New file.
36773         * tests/unistr/test-u8-strcmp.h: New file.
36774         * tests/unistr/test-strcmp.h: New file.
36775
36776         Tests for module 'unistr/u32-strncat'.
36777         * modules/unistr/u32-strncat-tests: New file.
36778         * tests/unistr/test-u32-strncat.c: New file.
36779
36780         Tests for module 'unistr/u16-strncat'.
36781         * modules/unistr/u16-strncat-tests: New file.
36782         * tests/unistr/test-u16-strncat.c: New file.
36783
36784         Tests for module 'unistr/u8-strncat'.
36785         * modules/unistr/u8-strncat-tests: New file.
36786         * tests/unistr/test-u8-strncat.c: New file.
36787         * tests/unistr/test-strncat.h: New file.
36788
36789         Tests for module 'unistr/u32-strcat'.
36790         * modules/unistr/u32-strcat-tests: New file.
36791         * tests/unistr/test-u32-strcat.c: New file.
36792
36793         Tests for module 'unistr/u16-strcat'.
36794         * modules/unistr/u16-strcat-tests: New file.
36795         * tests/unistr/test-u16-strcat.c: New file.
36796
36797         Tests for module 'unistr/u8-strcat'.
36798         * modules/unistr/u8-strcat-tests: New file.
36799         * tests/unistr/test-u8-strcat.c: New file.
36800         * tests/unistr/test-strcat.h: New file.
36801
36802         Tests for module 'unistr/u32-stpncpy'.
36803         * modules/unistr/u32-stpncpy-tests: New file.
36804         * tests/unistr/test-u32-stpncpy.c: New file.
36805
36806         Tests for module 'unistr/u16-stpncpy'.
36807         * modules/unistr/u16-stpncpy-tests: New file.
36808         * tests/unistr/test-u16-stpncpy.c: New file.
36809
36810         Tests for module 'unistr/u8-stpncpy'.
36811         * modules/unistr/u8-stpncpy-tests: New file.
36812         * tests/unistr/test-u8-stpncpy.c: New file.
36813         * tests/unistr/test-stpncpy.h: New file.
36814
36815         Tests for module 'unistr/u32-strncpy'.
36816         * modules/unistr/u32-strncpy-tests: New file.
36817         * tests/unistr/test-u32-strncpy.c: New file.
36818
36819         Tests for module 'unistr/u16-strncpy'.
36820         * modules/unistr/u16-strncpy-tests: New file.
36821         * tests/unistr/test-u16-strncpy.c: New file.
36822
36823         Tests for module 'unistr/u8-strncpy'.
36824         * modules/unistr/u8-strncpy-tests: New file.
36825         * tests/unistr/test-u8-strncpy.c: New file.
36826         * tests/unistr/test-strncpy.h: New file.
36827
36828         Tests for module 'unistr/u32-stpcpy'.
36829         * modules/unistr/u32-stpcpy-tests: New file.
36830         * tests/unistr/test-u32-stpcpy.c: New file.
36831
36832         Tests for module 'unistr/u16-stpcpy'.
36833         * modules/unistr/u16-stpcpy-tests: New file.
36834         * tests/unistr/test-u16-stpcpy.c: New file.
36835
36836         Tests for module 'unistr/u8-stpcpy'.
36837         * modules/unistr/u8-stpcpy-tests: New file.
36838         * tests/unistr/test-u8-stpcpy.c: New file.
36839         * tests/unistr/test-stpcpy.h: New file.
36840
36841         Tests for module 'unistr/u32-strcpy'.
36842         * modules/unistr/u32-strcpy-tests: New file.
36843         * tests/unistr/test-u32-strcpy.c: New file.
36844
36845         Tests for module 'unistr/u16-strcpy'.
36846         * modules/unistr/u16-strcpy-tests: New file.
36847         * tests/unistr/test-u16-strcpy.c: New file.
36848
36849         Tests for module 'unistr/u8-strcpy'.
36850         * modules/unistr/u8-strcpy-tests: New file.
36851         * tests/unistr/test-u8-strcpy.c: New file.
36852         * tests/unistr/test-strcpy.h: New file.
36853
36854         Tests for module 'unistr/u32-strnlen'.
36855         * modules/unistr/u32-strnlen-tests: New file.
36856         * tests/unistr/test-u32-strnlen.c: New file.
36857
36858         Tests for module 'unistr/u16-strnlen'.
36859         * modules/unistr/u16-strnlen-tests: New file.
36860         * tests/unistr/test-u16-strnlen.c: New file.
36861
36862         Tests for module 'unistr/u8-strnlen'.
36863         * modules/unistr/u8-strnlen-tests: New file.
36864         * tests/unistr/test-u8-strnlen.c: New file.
36865         * tests/unistr/test-strnlen.h: New file.
36866
36867         Tests for module 'unistr/u32-strlen'.
36868         * modules/unistr/u32-strlen-tests: New file.
36869         * tests/unistr/test-u32-strlen.c: New file.
36870
36871         Tests for module 'unistr/u16-strlen'.
36872         * modules/unistr/u16-strlen-tests: New file.
36873         * tests/unistr/test-u16-strlen.c: New file.
36874
36875         Tests for module 'unistr/u8-strlen'.
36876         * modules/unistr/u8-strlen-tests: New file.
36877         * tests/unistr/test-u8-strlen.c: New file.
36878
36879         Tests for module 'unistr/u32-prev'.
36880         * modules/unistr/u32-prev-tests: New file.
36881         * tests/unistr/test-u32-prev.c: New file.
36882
36883         Tests for module 'unistr/u16-prev'.
36884         * modules/unistr/u16-prev-tests: New file.
36885         * tests/unistr/test-u16-prev.c: New file.
36886
36887         Tests for module 'unistr/u8-prev'.
36888         * modules/unistr/u8-prev-tests: New file.
36889         * tests/unistr/test-u8-prev.c: New file.
36890
36891         Tests for module 'unistr/u32-next'.
36892         * modules/unistr/u32-next-tests: New file.
36893         * tests/unistr/test-u32-next.c: New file.
36894
36895         Tests for module 'unistr/u16-next'.
36896         * modules/unistr/u16-next-tests: New file.
36897         * tests/unistr/test-u16-next.c: New file.
36898
36899         Tests for module 'unistr/u8-next'.
36900         * modules/unistr/u8-next-tests: New file.
36901         * tests/unistr/test-u8-next.c: New file.
36902
36903         Tests for module 'unistr/u32-strmbtouc'.
36904         * modules/unistr/u32-strmbtouc-tests: New file.
36905         * tests/unistr/test-u32-strmbtouc.c: New file.
36906
36907         Tests for module 'unistr/u16-strmbtouc'.
36908         * modules/unistr/u16-strmbtouc-tests: New file.
36909         * tests/unistr/test-u16-strmbtouc.c: New file.
36910
36911         Tests for module 'unistr/u8-strmbtouc'.
36912         * modules/unistr/u8-strmbtouc-tests: New file.
36913         * tests/unistr/test-u8-strmbtouc.c: New file.
36914
36915         Tests for module 'unistr/u32-strmblen'.
36916         * modules/unistr/u32-strmblen-tests: New file.
36917         * tests/unistr/test-u32-strmblen.c: New file.
36918
36919         Tests for module 'unistr/u16-strmblen'.
36920         * modules/unistr/u16-strmblen-tests: New file.
36921         * tests/unistr/test-u16-strmblen.c: New file.
36922
36923         Tests for module 'unistr/u8-strmblen'.
36924         * modules/unistr/u8-strmblen-tests: New file.
36925         * tests/unistr/test-u8-strmblen.c: New file.
36926
36927         Tests for module 'unistr/u32-cpy-alloc'.
36928         * modules/unistr/u32-cpy-alloc-tests: New file.
36929         * tests/unistr/test-u32-cpy-alloc.c: New file.
36930
36931         Tests for module 'unistr/u16-cpy-alloc'.
36932         * modules/unistr/u16-cpy-alloc-tests: New file.
36933         * tests/unistr/test-u16-cpy-alloc.c: New file.
36934
36935         Tests for module 'unistr/u8-cpy-alloc'.
36936         * modules/unistr/u8-cpy-alloc-tests: New file.
36937         * tests/unistr/test-u8-cpy-alloc.c: New file.
36938         * tests/unistr/test-cpy-alloc.h: New file.
36939
36940         Tests for module 'unistr/u32-mbsnlen'.
36941         * modules/unistr/u32-mbsnlen-tests: New file.
36942         * tests/unistr/test-u32-mbsnlen.c: New file.
36943
36944         Tests for module 'unistr/u16-mbsnlen'.
36945         * modules/unistr/u16-mbsnlen-tests: New file.
36946         * tests/unistr/test-u16-mbsnlen.c: New file.
36947
36948         Tests for module 'unistr/u8-mbsnlen'.
36949         * modules/unistr/u8-mbsnlen-tests: New file.
36950         * tests/unistr/test-u8-mbsnlen.c: New file.
36951
36952         Tests for module 'unistr/u32-chr'.
36953         * modules/unistr/u32-chr-tests: New file.
36954         * tests/unistr/test-u32-chr.c: New file.
36955
36956         Tests for module 'unistr/u16-chr'.
36957         * modules/unistr/u16-chr-tests: New file.
36958         * tests/unistr/test-u16-chr.c: New file.
36959
36960         Tests for module 'unistr/u8-chr'.
36961         * modules/unistr/u8-chr-tests: New file.
36962         * tests/unistr/test-u8-chr.c: New file.
36963         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
36964
36965         Tests for module 'unistr/u32-cmp2'.
36966         * modules/unistr/u32-cmp2-tests: New file.
36967         * tests/unistr/test-u32-cmp2.c: New file.
36968
36969         Tests for module 'unistr/u16-cmp2'.
36970         * modules/unistr/u16-cmp2-tests: New file.
36971         * tests/unistr/test-u16-cmp2.c: New file.
36972
36973         Tests for module 'unistr/u8-cmp2'.
36974         * modules/unistr/u8-cmp2-tests: New file.
36975         * tests/unistr/test-u8-cmp2.c: New file.
36976         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
36977
36978         Tests for module 'unistr/u32-cmp'.
36979         * modules/unistr/u32-cmp-tests: New file.
36980         * tests/unistr/test-u32-cmp.c: New file.
36981
36982         Tests for module 'unistr/u16-cmp'.
36983         * modules/unistr/u16-cmp-tests: New file.
36984         * tests/unistr/test-u16-cmp.c: New file.
36985
36986         Tests for module 'unistr/u8-cmp'.
36987         * modules/unistr/u8-cmp-tests: New file.
36988         * tests/unistr/test-u8-cmp.c: New file.
36989         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
36990
36991         Tests for module 'unistr/u32-set'.
36992         * modules/unistr/u32-set-tests: New file.
36993         * tests/unistr/test-u32-set.c: New file.
36994
36995         Tests for module 'unistr/u16-set'.
36996         * modules/unistr/u16-set-tests: New file.
36997         * tests/unistr/test-u16-set.c: New file.
36998
36999         Tests for module 'unistr/u8-set'.
37000         * modules/unistr/u8-set-tests: New file.
37001         * tests/unistr/test-u8-set.c: New file.
37002         * tests/unistr/test-set.h: New file.
37003
37004         Tests for module 'unistr/u32-move'.
37005         * modules/unistr/u32-move-tests: New file.
37006         * tests/unistr/test-u32-move.c: New file.
37007
37008         Tests for module 'unistr/u16-move'.
37009         * modules/unistr/u16-move-tests: New file.
37010         * tests/unistr/test-u16-move.c: New file.
37011
37012         Tests for module 'unistr/u8-move'.
37013         * modules/unistr/u8-move-tests: New file.
37014         * tests/unistr/test-u8-move.c: New file.
37015         * tests/unistr/test-move.h: New file.
37016
37017         Tests for module 'unistr/u32-cpy'.
37018         * modules/unistr/u32-cpy-tests: New file.
37019         * tests/unistr/test-u32-cpy.c: New file.
37020
37021         Tests for module 'unistr/u16-cpy'.
37022         * modules/unistr/u16-cpy-tests: New file.
37023         * tests/unistr/test-u16-cpy.c: New file.
37024
37025         Tests for module 'unistr/u8-cpy'.
37026         * modules/unistr/u8-cpy-tests: New file.
37027         * tests/unistr/test-u8-cpy.c: New file.
37028         * tests/unistr/test-cpy.h: New file.
37029
37030 2010-01-09  Bruno Haible  <bruno@clisp.org>
37031
37032         Tests for module 'unistr/u32-uctomb'.
37033         * modules/unistr/u32-uctomb-tests: New file.
37034         * tests/unistr/test-u32-uctomb.c: New file.
37035
37036         Tests for module 'unistr/u16-uctomb'.
37037         * modules/unistr/u16-uctomb-tests: New file.
37038         * tests/unistr/test-u16-uctomb.c: New file.
37039
37040         Tests for module 'unistr/u8-uctomb'.
37041         * modules/unistr/u8-uctomb-tests: New file.
37042         * tests/unistr/test-u8-uctomb.c: New file.
37043
37044         Tests for module 'unistr/u32-mbtoucr'.
37045         * modules/unistr/u32-mbtoucr-tests: New file.
37046         * tests/unistr/test-u32-mbtoucr.c: New file.
37047
37048         Tests for module 'unistr/u16-mbtoucr'.
37049         * modules/unistr/u16-mbtoucr-tests: New file.
37050         * tests/unistr/test-u16-mbtoucr.c: New file.
37051
37052         Tests for module 'unistr/u8-mbtoucr'.
37053         * modules/unistr/u8-mbtoucr-tests: New file.
37054         * tests/unistr/test-u8-mbtoucr.c: New file.
37055
37056         Tests for module 'unistr/u32-mbtouc'.
37057         * modules/unistr/u32-mbtouc-tests: New file.
37058         * tests/unistr/test-u32-mbtouc.c: New file.
37059
37060         Tests for module 'unistr/u16-mbtouc'.
37061         * modules/unistr/u16-mbtouc-tests: New file.
37062         * tests/unistr/test-u16-mbtouc.c: New file.
37063
37064         Tests for module 'unistr/u8-mbtouc'.
37065         * modules/unistr/u8-mbtouc-tests: New file.
37066         * tests/unistr/test-u8-mbtouc.c: New file.
37067
37068         Tests for module 'unistr/u32-mbtouc-unsafe'.
37069         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37070         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37071         * tests/unistr/test-u32-mbtouc.h: New file.
37072
37073         Tests for module 'unistr/u16-mbtouc-unsafe'.
37074         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37075         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37076         * tests/unistr/test-u16-mbtouc.h: New file.
37077
37078         Tests for module 'unistr/u8-mbtouc-unsafe'.
37079         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37080         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37081         * tests/unistr/test-u8-mbtouc.h: New file.
37082
37083         Tests for module 'unistr/u32-mblen'.
37084         * modules/unistr/u32-mblen-tests: New file.
37085         * tests/unistr/test-u32-mblen.c: New file.
37086
37087         Tests for module 'unistr/u16-mblen'.
37088         * modules/unistr/u16-mblen-tests: New file.
37089         * tests/unistr/test-u16-mblen.c: New file.
37090
37091         Tests for module 'unistr/u8-mblen'.
37092         * modules/unistr/u8-mblen-tests: New file.
37093         * tests/unistr/test-u8-mblen.c: New file.
37094
37095         Tests for module 'unistr/u32-to-u16'.
37096         * modules/unistr/u32-to-u16-tests: New file.
37097         * tests/unistr/test-u32-to-u16.c: New file.
37098
37099         Tests for module 'unistr/u32-to-u8'.
37100         * modules/unistr/u32-to-u8-tests: New file.
37101         * tests/unistr/test-u32-to-u8.c: New file.
37102
37103         Tests for module 'unistr/u16-to-u32'.
37104         * modules/unistr/u16-to-u32-tests: New file.
37105         * tests/unistr/test-u16-to-u32.c: New file.
37106
37107         Tests for module 'unistr/u16-to-u8'.
37108         * modules/unistr/u16-to-u8-tests: New file.
37109         * tests/unistr/test-u16-to-u8.c: New file.
37110
37111         Tests for module 'unistr/u8-to-u32'.
37112         * modules/unistr/u8-to-u32-tests: New file.
37113         * tests/unistr/test-u8-to-u32.c: New file.
37114
37115         Tests for module 'unistr/u8-to-u16'.
37116         * modules/unistr/u8-to-u16-tests: New file.
37117         * tests/unistr/test-u8-to-u16.c: New file.
37118
37119         Tests for module 'unistr/u32-check'.
37120         * modules/unistr/u32-check-tests: New file.
37121         * tests/unistr/test-u32-check.c: New file.
37122
37123         Tests for module 'unistr/u16-check'.
37124         * modules/unistr/u16-check-tests: New file.
37125         * tests/unistr/test-u16-check.c: New file.
37126
37127         Tests for module 'unistr/u8-check'.
37128         * modules/unistr/u8-check-tests: New file.
37129         * tests/unistr/test-u8-check.c: New file.
37130
37131         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37132         (category_equals): New function.
37133         (main): Add more tests.
37134         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37135
37136         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37137
37138 2010-01-10  Bruno Haible  <bruno@clisp.org>
37139
37140         unistr/u*-strcoll: Try harder to distinguish different strings.
37141         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37142         compare s1 and s2 to see if they are different.
37143
37144 2010-01-10  Bruno Haible  <bruno@clisp.org>
37145
37146         unistr/u*-stpncpy: Fix the return value.
37147         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37148         description of the return value consistent with stpncpy in glibc.
37149         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37150         written non-NUL unit.
37151
37152 2010-01-10  Bruno Haible  <bruno@clisp.org>
37153
37154         unistr/u*-next: Add missing dependencies.
37155         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37156         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37157         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37158
37159 2010-01-10  Bruno Haible  <bruno@clisp.org>
37160
37161         unistr/u8-mbsnlen: Fix return value for incomplete character.
37162         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37163         u8_mblen.
37164         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37165         Remove unistr/u8-mblen.
37166         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37167         u16_mblen.
37168         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37169         Remove unistr/u16-mblen.
37170
37171 2010-01-10  Bruno Haible  <bruno@clisp.org>
37172
37173         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37174         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37175         Reported by Brian Gough <bjg@gnu.org> and
37176         Chris Clayton <chris2553@googlemail.com> via
37177         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37178
37179 2010-01-09  Bruno Haible  <bruno@clisp.org>
37180
37181         unistr/u16-to-u32: Reject invalid input.
37182         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37183         u16_mbtouc.
37184         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37185         Remove unistr/u16-mbtouc.
37186
37187         unistr/u16-to-u8: Reject invalid input.
37188         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37189         u16_mbtouc.
37190         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37191         Remove unistr/u16-mbtouc.
37192
37193         unistr/u8-to-u32: Reject invalid input.
37194         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37195         u8_mbtouc.
37196         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37197         Remove unistr/u8-mbtouc.
37198
37199         unistr/u8-to-u16: Reject invalid input.
37200         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37201         u8_mbtouc.
37202         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37203         Remove unistr/u8-mbtouc.
37204
37205 2010-01-09  Bruno Haible  <bruno@clisp.org>
37206
37207         Tests for module 'getlogin'.
37208         * modules/getlogin-tests: New file.
37209         * tests/test-getlogin.c: New file.
37210
37211         New module 'getlogin'.
37212         * lib/unistd.in.h (getlogin): New declaration.
37213         * lib/getlogin.c: New file.
37214         * m4/getlogin.m4: New file.
37215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37216         HAVE_GETLOGIN.
37217         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37218         HAVE_GETLOGIN.
37219         * modules/getlogin: New file.
37220         * doc/posix-functions/getlogin.texi: Mention the new module.
37221         Reported by John W. Eaton <jwe@gnu.org>.
37222
37223 2010-01-09  Bruno Haible  <bruno@clisp.org>
37224
37225         getlogin_r: Support for native Windows.
37226         * lib/getlogin_r.c: Include <windows.h>
37227         (getlogin_r): Implement for native Windows.
37228         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37229         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37230         via John W. Eaton <jwe@gnu.org>.
37231
37232 2010-01-09  Bruno Haible  <bruno@clisp.org>
37233
37234         getlogin_r: Small fixes.
37235         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37236         succeeds.
37237         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37238         before testing whether getlogin_r is declared. No need to set
37239         HAVE_DECL_GETLOGIN_R to 1.
37240         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37241
37242 2010-01-09  Bruno Haible  <bruno@clisp.org>
37243
37244         * lib/unistd.in.h (getlogin_r): Add comment.
37245
37246 2010-01-09  Bruno Haible  <bruno@clisp.org>
37247
37248         Tests for module 'getlogin_r'.
37249         * modules/getlogin_r-tests: New file.
37250         * tests/test-getlogin_r.c: New file.
37251
37252 2010-01-09  Jim Meyering  <meyering@redhat.com>
37253
37254         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37255         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37256         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37257
37258 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37259
37260         * lib/dup2.c (rpl_dup2): Improve comment.
37261
37262 2010-01-08  Eric Blake  <ebb9@byu.net>
37263
37264         maint.mk: allow packages to add makefile @@ exceptions
37265         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37266         (sc_makefile_check): Rename...
37267         (sc_makefile_at_at_check): ...to this, and use hook.
37268
37269         dup2: work around mingw bug
37270         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37271         Reported by Simon Josefsson.
37272
37273 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37274
37275         glob: Fix C++ compilation.
37276         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37277         C++.
37278
37279 2010-01-07  Bruno Haible  <bruno@clisp.org>
37280
37281         Fix indentation of wctype.in.h, broken since 2007-01-06.
37282         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37283
37284 2010-01-07  Bruno Haible  <bruno@clisp.org>
37285
37286         mbslen: Avoid collision with system function.
37287         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37288         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37289         * m4/mbslen.m4: New file.
37290         * modules/mbslen (Files): Add it.
37291         (configure.ac): Invoke gl_MBSLEN.
37292         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37293         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37294         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37295         via Ian Beckwith <ianb@erislabs.net>.
37296
37297 2010-01-07  Bruno Haible  <bruno@clisp.org>
37298
37299         dirent: Document the last fix.
37300         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37301
37302 2010-01-07  Bruno Haible  <bruno@clisp.org>
37303
37304         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37305         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37306         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37307         va_list are defined.
37308         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37309         Reported by Eric Blake.
37310
37311 2010-01-07  Bruno Haible  <bruno@clisp.org>
37312
37313         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37314         * modules/xlist (Depends-on): Add 'list',
37315         * modules/xoset (Depends-on): Add 'oset'.
37316         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37317
37318 2010-01-07  Bruno Haible  <bruno@clisp.org>
37319
37320         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37321         * doc/posix-functions/strncasecmp.texi: Likewise.
37322
37323 2010-01-07  Bruno Haible  <bruno@clisp.org>
37324
37325         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37326
37327 2010-01-07  John W. Eaton  <jwe@octave.org>
37328
37329         wctype: allow C++ use
37330         * lib/wctype.in.h: Add extern "C" block for C++.
37331
37332 2010-01-06  Eric Blake  <ebb9@byu.net>
37333
37334         maint.mk: detect incorrect GFDL usage
37335         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37336
37337 2010-01-06  Jim Meyering  <meyering@redhat.com>
37338         and Eric Blake  <ebb9@byu.net>
37339
37340         maint.mk: ignore multi-line copyright in NEWS
37341         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37342
37343 2010-01-06  Eric Blake  <ebb9@byu.net>
37344
37345         select: add missing dependency
37346         * modules/select-tests (Depends-on): Move sockets dependency...
37347         * modules/select (Depends-on): ...here.
37348         Reported by Ian Beckwith.
37349
37350         doc: regenerate INSTALL
37351         * doc/INSTALL: Reflect recent autoconf update.
37352         * doc/INSTALL.ISO: Likewise.
37353         * doc/INSTALL.UTF-8: Likewise.
37354
37355         pread: fix compilation on glibc
37356         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37357         Reported by Ralf Wildenhues.
37358
37359         dirent: fix test failure
37360         * lib/dirent.in.h (includes): Guarantee ino_t.
37361         Reported by Ralf Wildenhues.
37362
37363 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37364
37365         linkat, renameat: avoid bad free
37366         * lib/at-func2.c (at_func2): Fix typo.
37367         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37368
37369 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37370
37371         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37372         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37373         to avoid failure of symlink test later.
37374
37375 2010-01-06  Eric Blake  <ebb9@byu.net>
37376
37377         stdio, unistd: guarantee ssize_t
37378         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37379         2008 are exposed when needed.
37380         * lib/stdio.in.h (includes): Likewise.
37381         Reported by Ralf Wildenhues.
37382
37383 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37384
37385         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37386         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37387         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37388
37389 2010-01-06  Jim Meyering  <meyering@redhat.com>
37390
37391         readtokens: this module *does* require xalloc.h
37392         It uses only functions that were omitted by the old syntax-check rule.
37393         * lib/readtokens.c: Include "xalloc.h" once again.
37394         * modules/readtokens (Depends-on): Add xalloc.
37395         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37396
37397 2010-01-05  Eric Blake  <ebb9@byu.net>
37398
37399         maint: support 'make announcement' from a VPATH build
37400         * top/maint.mk (announcement): Look for correct NEWS file.
37401
37402 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37403
37404         utimens (fdutimens): ignore a negative FD, per contract
37405         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37406         when we have a valid file descriptor.  Otherwise, using a brand
37407         new glibc (with just-patched futimens that now fails with EBADF)
37408         would cause this function to fail with ENOSYS.
37409         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37410         See also http://bugzilla.redhat.com/552320.
37411
37412 2010-01-05  Eric Blake  <ebb9@byu.net>
37413
37414         strcase: document what it provides
37415         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37416         gnulib module.
37417         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37418         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37419
37420 2010-01-05  Jim Meyering  <meyering@redhat.com>
37421
37422         maint: remove useless inclusions of "xalloc.h"
37423         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37424         * lib/readtokens.c: Likewise.
37425         * lib/same.c: Likewise.
37426         * modules/getloadavg (Depends-on): Remove xalloc.
37427         * modules/readtokens: Likewise.
37428         * modules/same: Likewise.
37429
37430         maint.mk: include 4 more function names in alloca.h-checking regexp
37431         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37432         regexp.  Before, we would give a false-positive (saying alloca.h
37433         is included unnecessarily) when the only uses involved omitted symbols.
37434
37435         xalloc.h: use consistent formatting
37436         * lib/xalloc.h: Move declarations to start in the first column.
37437
37438 2010-01-05  Eric Blake  <ebb9@byu.net>
37439
37440         mkdir: avoid xalloc
37441         * lib/mkdir.c (includes): Drop unused header.
37442         Reported by John W. Eaton.
37443
37444 2010-01-04  Jim Meyering  <meyering@redhat.com>
37445
37446         nl_langinfo: avoid configure-time syntax error
37447         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37448         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37449         the empty string.  Don't let that provoke a shell syntax error.
37450
37451         regcomp, regexec, fnmatch: avoid array bounds read error
37452         * lib/regcomp.c (build_equiv_class): From glibc:
37453         Use only the low 24 bits of a findidx return value as an index
37454         into the weights array.  Patch by Ulrich Drepper:
37455         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37456         * lib/regexec.c (check_node_accept_bytes): Likewise.
37457         * lib/fnmatch_loop.c (FCT): Likewise.
37458
37459         regcomp: skip collseq lookup when there are no rules
37460         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37461         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37462
37463         regcomp: recognize ill-formed { } expressions
37464         * lib/regcomp.c (parse_dup_op): From glibc:
37465         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37466
37467         regcomp: fix typo in comment
37468         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37469         s/satisfy/satisfies/.
37470
37471         regcomp: sync from glibc: remove dead store
37472         * lib/regcomp.c (duplicate_node_closure): Remove useless
37473         search_duplicated_node call and dead store.
37474
37475         regcomp: sync from glibc; always use nl_langinfo
37476         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37477         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37478         * modules/regex (Depends-on): Add nl_langinfo.
37479
37480 2010-01-04  Eric Blake  <ebb9@byu.net>
37481
37482         fdopendir: fix configure test
37483         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37484
37485 2010-01-01  Bruno Haible  <bruno@clisp.org>
37486
37487         wchar: Remove unused configure check.
37488         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37489
37490 2010-01-01  Eric Blake  <ebb9@byu.net>
37491
37492         headers: make check of system header explicit
37493         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37494         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37495         ourselves.
37496         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37497         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37498         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37499         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37500         internals.
37501         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37502         missing.
37503         Suggested by Bruno Haible.
37504
37505 2010-01-01  Jim Meyering  <meyering@redhat.com>
37506
37507         ChangeLog: tweak to eliminate unnecessary copyright line
37508         * ChangeLog: Remove a copyright line that was mistakenly updated
37509         by today's update-copyright run.  Reported by Eric Blake.
37510
37511         test-update-copyright: don't let envvar setting cause test failure
37512         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37513
37514 2010-01-01  Bruno Haible  <bruno@clisp.org>
37515
37516         localename: Avoid gcc warning.
37517         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37518         function if it is not used.
37519
37520 2010-01-01  Jim Meyering  <meyering@redhat.com>
37521
37522         update nearly all FSF copyright year lists to include 2010
37523         Use the same procedure as for 2009, outlined in
37524         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37525
37526         version-etc: set COPYRIGHT_YEAR to 2010
37527         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37528
37529 2009-12-31  Eric Blake  <ebb9@byu.net>
37530
37531         doc: correct availability of cygwin 1.5.x getopt
37532         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37533         variables.
37534         * doc/posix-functions/opterr.texi (opterr): Likewise.
37535         * doc/posix-functions/optind.texi (optind): Likewise.
37536         * doc/posix-functions/optopt.texi (optopt): Likewise.
37537         * doc/posix-functions/tzname.texi (tzname): Likewise.
37538
37539         openat: update maintainer
37540         * modules/openat (Maintainer): Add myself.
37541
37542         utimens: avoid shadowing warning
37543         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37544         buffers into one, to avoid shadowing, as well as avoiding a
37545         redundant stat.
37546         Reported by Jim Meyering.
37547
37548         test-dup2: avoid compiler warning
37549         * tests/test-dup2.c (is_inheritable): Only define if used.
37550
37551 2010-01-01  Bruno Haible  <bruno@clisp.org>
37552
37553         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37554         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37555         defined, use wctomb instead of wcrtomb.
37556
37557 2010-01-01  Bruno Haible  <bruno@clisp.org>
37558
37559         iconv: Reject native Solaris iconv.
37560         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37561         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37562
37563 2009-12-31  Bruno Haible  <bruno@clisp.org>
37564
37565         * tests/test-signal.c (main): Remove test of 'SIG'.
37566
37567 2009-12-31  Bruno Haible  <bruno@clisp.org>
37568
37569         spawn: Fix incomplete fix.
37570         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37571         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37572         warnings for GNULIB_POSIXCHECK again.
37573         Reported by Eric Blake.
37574
37575 2009-12-31  Bruno Haible  <bruno@clisp.org>
37576
37577         Avoid namespace pollution on glibc systems.
37578         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37579         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37580         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37581         glibc systems.
37582
37583 2009-12-31  Bruno Haible  <bruno@clisp.org>
37584
37585         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
37586         (gl_REPLACE_WCHAR_H): Turn into a no-op.
37587         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
37588         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37589         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37590         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37591         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37592
37593 2009-12-31  Bruno Haible  <bruno@clisp.org>
37594
37595         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37596         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
37597         afterwards.
37598
37599 2009-12-31  Bruno Haible  <bruno@clisp.org>
37600
37601         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
37602         SYS_UTSNAME_H.
37603
37604 2009-12-31  Bruno Haible  <bruno@clisp.org>
37605
37606         spawn: Fix misapplied patch.
37607         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37608         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37609         warnings for GNULIB_POSIXCHECK.
37610
37611 2009-12-31  Bruno Haible  <bruno@clisp.org>
37612
37613         times: Update after sys_times changed.
37614         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
37615         * modules/times (Files): Add it.
37616         (configure.ac): Invoke gl_FUNC_TIMES.
37617
37618 2009-12-31  Bruno Haible  <bruno@clisp.org>
37619
37620         Use AC_C_INLINE where necessary.
37621         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
37622         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37623         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
37624         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37625         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37626         * m4/mbiter.m4 (gl_MBITER): Likewise.
37627         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37628         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37629         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
37630         * modules/u64 (configure.ac): Likewise.
37631
37632 2009-12-31  Bruno Haible  <bruno@clisp.org>
37633
37634         Use AC_C_INLINE instead of module 'inline' where possible.
37635         * modules/inline (Description): Clarify purpose.
37636         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
37637         * modules/count-one-bits (Depends-on): Remove inline.
37638         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
37639         * modules/openat (Depends-on): Remove inline.
37640         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
37641         instead of depending on module 'inline'.
37642         * modules/filevercmp (Depends-on, configure.ac): Likewise.
37643         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
37644         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
37645         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
37646         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
37647         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
37648         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
37649         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
37650         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
37651         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
37652         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
37653         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
37654         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
37655         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
37656         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
37657         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
37658         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
37659         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
37660         Likewise.
37661         * modules/unictype/property-ascii-hex-digit (Depends-on,
37662         configure.ac): Likewise.
37663         * modules/unictype/property-bidi-arabic-digit (Depends-on,
37664         configure.ac): Likewise.
37665         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
37666         configure.ac): Likewise.
37667         * modules/unictype/property-bidi-block-separator (Depends-on,
37668         configure.ac): Likewise.
37669         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
37670         configure.ac): Likewise.
37671         * modules/unictype/property-bidi-common-separator (Depends-on,
37672         configure.ac): Likewise.
37673         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
37674         Likewise.
37675         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
37676         configure.ac): Likewise.
37677         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
37678         configure.ac): Likewise.
37679         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
37680         configure.ac): Likewise.
37681         * modules/unictype/property-bidi-european-digit (Depends-on,
37682         configure.ac): Likewise.
37683         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
37684         configure.ac): Likewise.
37685         * modules/unictype/property-bidi-left-to-right (Depends-on,
37686         configure.ac): Likewise.
37687         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
37688         configure.ac): Likewise.
37689         * modules/unictype/property-bidi-other-neutral (Depends-on,
37690         configure.ac): Likewise.
37691         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
37692         Likewise.
37693         * modules/unictype/property-bidi-segment-separator (Depends-on,
37694         configure.ac): Likewise.
37695         * modules/unictype/property-bidi-whitespace (Depends-on,
37696         configure.ac): Likewise.
37697         * modules/unictype/property-combining (Depends-on, configure.ac):
37698         Likewise.
37699         * modules/unictype/property-composite (Depends-on, configure.ac):
37700         Likewise.
37701         * modules/unictype/property-currency-symbol (Depends-on,
37702         configure.ac): Likewise.
37703         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
37704         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
37705         Likewise.
37706         * modules/unictype/property-default-ignorable-code-point (Depends-on,
37707         configure.ac): Likewise.
37708         * modules/unictype/property-deprecated (Depends-on, configure.ac):
37709         Likewise.
37710         * modules/unictype/property-diacritic (Depends-on, configure.ac):
37711         Likewise.
37712         * modules/unictype/property-extender (Depends-on, configure.ac):
37713         Likewise.
37714         * modules/unictype/property-format-control (Depends-on, configure.ac):
37715         Likewise.
37716         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
37717         Likewise.
37718         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
37719         Likewise.
37720         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
37721         Likewise.
37722         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
37723         Likewise.
37724         * modules/unictype/property-hyphen (Depends-on, configure.ac):
37725         Likewise.
37726         * modules/unictype/property-id-continue (Depends-on, configure.ac):
37727         Likewise.
37728         * modules/unictype/property-id-start (Depends-on, configure.ac):
37729         Likewise.
37730         * modules/unictype/property-ideographic (Depends-on, configure.ac):
37731         Likewise.
37732         * modules/unictype/property-ids-binary-operator (Depends-on,
37733         configure.ac): Likewise.
37734         * modules/unictype/property-ids-trinary-operator (Depends-on,
37735         configure.ac): Likewise.
37736         * modules/unictype/property-ignorable-control (Depends-on,
37737         configure.ac): Likewise.
37738         * modules/unictype/property-iso-control (Depends-on, configure.ac):
37739         Likewise.
37740         * modules/unictype/property-join-control (Depends-on, configure.ac):
37741         Likewise.
37742         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
37743         Likewise.
37744         * modules/unictype/property-line-separator (Depends-on, configure.ac):
37745         Likewise.
37746         * modules/unictype/property-logical-order-exception (Depends-on,
37747         configure.ac): Likewise.
37748         * modules/unictype/property-lowercase (Depends-on, configure.ac):
37749         Likewise.
37750         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
37751         * modules/unictype/property-non-break (Depends-on, configure.ac):
37752         Likewise.
37753         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
37754         Likewise.
37755         * modules/unictype/property-numeric (Depends-on, configure.ac):
37756         Likewise.
37757         * modules/unictype/property-other-alphabetic (Depends-on,
37758         configure.ac): Likewise.
37759         * modules/unictype/property-other-default-ignorable-code-point
37760         (Depends-on, configure.ac): Likewise.
37761         * modules/unictype/property-other-grapheme-extend (Depends-on,
37762         configure.ac): Likewise.
37763         * modules/unictype/property-other-id-continue (Depends-on,
37764         configure.ac): Likewise.
37765         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
37766         Likewise.
37767         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
37768         Likewise.
37769         * modules/unictype/property-other-math (Depends-on, configure.ac):
37770         Likewise.
37771         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
37772         Likewise.
37773         * modules/unictype/property-paired-punctuation (Depends-on,
37774         configure.ac): Likewise.
37775         * modules/unictype/property-paragraph-separator (Depends-on,
37776         configure.ac): Likewise.
37777         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
37778         Likewise.
37779         * modules/unictype/property-pattern-white-space (Depends-on,
37780         configure.ac): Likewise.
37781         * modules/unictype/property-private-use (Depends-on, configure.ac):
37782         Likewise.
37783         * modules/unictype/property-punctuation (Depends-on, configure.ac):
37784         Likewise.
37785         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
37786         Likewise.
37787         * modules/unictype/property-radical (Depends-on, configure.ac):
37788         Likewise.
37789         * modules/unictype/property-sentence-terminal (Depends-on,
37790         configure.ac): Likewise.
37791         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
37792         Likewise.
37793         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
37794         * modules/unictype/property-terminal-punctuation (Depends-on,
37795         configure.ac): Likewise.
37796         * modules/unictype/property-titlecase (Depends-on, configure.ac):
37797         Likewise.
37798         * modules/unictype/property-unassigned-code-value (Depends-on,
37799         configure.ac): Likewise.
37800         * modules/unictype/property-unified-ideograph (Depends-on,
37801         configure.ac): Likewise.
37802         * modules/unictype/property-uppercase (Depends-on, configure.ac):
37803         Likewise.
37804         * modules/unictype/property-variation-selector (Depends-on,
37805         configure.ac): Likewise.
37806         * modules/unictype/property-white-space (Depends-on, configure.ac):
37807         Likewise.
37808         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
37809         Likewise.
37810         * modules/unictype/property-xid-start (Depends-on, configure.ac):
37811         Likewise.
37812         * modules/unictype/property-zero-width (Depends-on, configure.ac):
37813         Likewise.
37814         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
37815         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
37816         Likewise.
37817
37818 2009-12-31  Bruno Haible  <bruno@clisp.org>
37819
37820         Remove unnecessary AC_C_INLINE invocation.
37821         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
37822         since 2009-08-21.
37823
37824 2009-12-31  Jim Meyering  <meyering@redhat.com>
37825
37826         maint.mk: don't require explicit gpg_key_ID in cfg.mk
37827         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
37828         With this change, we can all remove the gpg_key_ID = ... definition
37829         from our respective cfg.mk files.
37830
37831         maint.mk: create announcement template in ~/, not in /tmp
37832         * top/maint.mk (emit_upload_commands): Adjust.
37833         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
37834         Remove temporary file, .ci-msg.
37835
37836 2009-12-31  Eric Blake  <ebb9@byu.net>
37837
37838         link-warning: always build headers with link warnings
37839         * modules/arpa_inet (Makefile.am): Always build replacement
37840         header.
37841         * modules/ctype (Makefile.am): Likewise.
37842         * modules/dirent (Makefile.am): Likewise.
37843         * modules/inttypes (Makefile.am): Likewise.
37844         * modules/langinfo (Makefile.am): Likewise.
37845         * modules/locale (Makefile.am): Likewise.
37846         * modules/spawn (Makefile.am): Likewise.
37847         * modules/sys_file (Makefile.am): Likewise.
37848         * modules/sys_ioctl (Makefile.am): Likewise.
37849         * modules/sys_select (Makefile.am): Likewise.
37850         * modules/sys_socket (Makefile.am): Likewise.
37851         * modules/sys_times (Makefile.am): Likewise.
37852         * modules/sys_utsname (Makefile.am): Likewise.
37853         * modules/sys_wait (Makefile.am): Likewise.
37854         * modules/wchar (Makefile.am): Likewise.
37855         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
37856         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
37857         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
37858         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
37859         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
37860         Likewise.
37861         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37862         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37863         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
37864         Likewise.
37865         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
37866         Likewise.
37867         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
37868         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
37869         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
37870         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37871         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37872         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37873         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37874         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
37875         (gl_WCHAR_H_DEFAULTS): Likewise.
37876
37877 2009-12-31  Eric Blake  <ebb9@byu.net>
37878
37879         signal, spawn: use link warnings
37880         * lib/signal.in.h (sigset_t): Make unconditional.
37881         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
37882         (sigpending, sigprocmask, sigaction): Add link warnings.
37883         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
37884         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
37885         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
37886         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
37887         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
37888         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
37889         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
37890         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
37891         (posix_spawn_file_actions_destroy)
37892         (posix_spawn_file_actions_addopen)
37893         (posix_spawn_file_actions_addclose)
37894         (posix_spawn_file_actions_adddup2): Likewise.
37895         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
37896         * tests/test-signal.c (main): Enhance test.
37897
37898         spawn: improve wrapper support
37899         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
37900         (gl_SPAWN_H_DEFAULTS): New defaults.
37901         * modules/spawn (Makefile.am): Substitute them.
37902         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
37903         Only declare if missing or broken.
37904
37905         sys_times, sys_utsname: use include_next
37906         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
37907         header.
37908         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
37909         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37910         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37911         * modules/sys_times (Depends-on): Add include_next.
37912         (Makefile.am): Substitute additional values.
37913         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37914         * lib/sys_times.in.h (includes): Include native header, if
37915         available.
37916         * lib/sys_utsname.in.h (includes): Likewise.
37917         * tests/test-sys_times.c (main): Enhance test.
37918
37919         fdutimensat: revert prior patch
37920         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
37921         utimens.h.
37922         Reported by Bruno Haible.
37923
37924 2009-12-30  Eric Blake  <ebb9@byu.net>
37925
37926         sys_wait: drop link-warning dependency
37927         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
37928         link-warning efforts.
37929         * lib/sys_wait.in.h: Likewise.
37930
37931         fdutimensat: remove bogus dependency
37932         * modules/fdutimensat (Depends-on): Drop inline.
37933
37934         unistd: fix typo
37935         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
37936
37937 2009-12-30  Bruno Haible  <bruno@clisp.org>
37938
37939         Fix compilation error with Solaris cc.
37940         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
37941         * lib/unicase/u16-is-invariant.c: Likewise.
37942         * lib/unicase/u32-is-invariant.c: Likewise.
37943         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37944
37945 2009-12-30  Bruno Haible  <bruno@clisp.org>
37946
37947         Fix test crash.
37948         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
37949         locales.
37950         Reported by Simon Josefsson <simon@josefsson.org>.
37951
37952 2009-12-30  Bruno Haible  <bruno@clisp.org>
37953
37954         Fix compilation error on most platforms.
37955         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
37956         Reported by Simon Josefsson <simon@josefsson.org>
37957         and Nelson H. F. Beebe <beebe@math.utah.edu>.
37958
37959 2009-12-30  Eric Blake  <ebb9@byu.net>
37960
37961         futimens, utimensat: work around ntfs-3g bug
37962         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
37963         a ctime bug is present, and expand workaround to cover ntfs-3g.
37964         * lib/utimens.c (fdutimens, lutimens): Likewise.
37965         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
37966         (validate_timespec): Adjust return value.
37967         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
37968         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37969         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
37970
37971 2009-12-29  Eric Blake  <ebb9@byu.net>
37972
37973         link-warning: make usage consistent
37974         * modules/ctype (Depends-on): Add link-warning.
37975         (Makefile.am): Update rules accordingly.
37976         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37977         * modules/locale (Depends-on, Makefile.am): Likewise.
37978         * modules/sys_file (Makefile.am): Likewise.
37979         * modules/getopt-posix (Makefile.am): Delete unused link warning
37980         efforts.
37981         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
37982         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
37983         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
37984         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
37985
37986         stdio: remove unused variables
37987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
37988         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
37989         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
37990
37991         tests: test more substitute headers
37992         * modules/ctype-tests: New file.
37993         * modules/dirent-tests: Likewise.
37994         * modules/spawn-tests: Likewise.
37995         * modules/sys_file-tests: Likewise.
37996         * modules/sys_ioctl-tests: Likewise.
37997         * modules/sys_wait-tests: Likewise.
37998         * tests/test-ctype.c: Likewise.
37999         * tests/test-dirent.c: Likewise.
38000         * tests/test-spawn.c: Likewise.
38001         * tests/test-sys_file.c: Likewise.
38002         * tests/test-sys_ioctl.c: Likewise.
38003         * tests/test-sys_wait.c: Likewise.
38004         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38005         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38006         whether or not flock is in use.
38007
38008         tests: remove License section from module
38009         * modules/arpa_inet-tests: Remove unneeded section.
38010         * modules/byteswap-tests: Likewise.
38011         * modules/ceilf-tests: Likewise.
38012         * modules/ceill-tests: Likewise.
38013         * modules/crypto/des-tests: Likewise.
38014         * modules/crypto/gc-arcfour-tests: Likewise.
38015         * modules/crypto/gc-arctwo-tests: Likewise.
38016         * modules/crypto/gc-des-tests: Likewise.
38017         * modules/crypto/gc-hmac-md5-tests: Likewise.
38018         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38019         * modules/crypto/gc-md2-tests: Likewise.
38020         * modules/crypto/gc-md4-tests: Likewise.
38021         * modules/crypto/gc-md5-tests: Likewise.
38022         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38023         * modules/crypto/gc-rijndael-tests: Likewise.
38024         * modules/crypto/gc-sha1-tests: Likewise.
38025         * modules/crypto/gc-tests: Likewise.
38026         * modules/crypto/md2-tests: Likewise.
38027         * modules/crypto/md4-tests: Likewise.
38028         * modules/fcntl-h-tests: Likewise.
38029         * modules/floorf-tests: Likewise.
38030         * modules/floorl-tests: Likewise.
38031         * modules/frexp-nolibm-tests: Likewise.
38032         * modules/frexp-tests: Likewise.
38033         * modules/frexpl-nolibm-tests: Likewise.
38034         * modules/frexpl-tests: Likewise.
38035         * modules/getaddrinfo-tests: Likewise.
38036         * modules/inttypes-tests: Likewise.
38037         * modules/isfinite-tests: Likewise.
38038         * modules/isinf-tests: Likewise.
38039         * modules/ldexpl-tests: Likewise.
38040         * modules/locale-tests: Likewise.
38041         * modules/math-tests: Likewise.
38042         * modules/netdb-tests: Likewise.
38043         * modules/netinet_in-tests: Likewise.
38044         * modules/printf-frexp-tests: Likewise.
38045         * modules/printf-frexpl-tests: Likewise.
38046         * modules/priv-set-tests: Likewise.
38047         * modules/random_r-tests: Likewise.
38048         * modules/round-tests: Likewise.
38049         * modules/roundf-tests: Likewise.
38050         * modules/roundl-tests: Likewise.
38051         * modules/search-tests: Likewise.
38052         * modules/select-tests: Likewise.
38053         * modules/signal-tests: Likewise.
38054         * modules/stdbool-tests: Likewise.
38055         * modules/stddef-tests: Likewise.
38056         * modules/stdint-tests: Likewise.
38057         * modules/stdio-tests: Likewise.
38058         * modules/stdlib-tests: Likewise.
38059         * modules/string-tests: Likewise.
38060         * modules/strings-tests: Likewise.
38061         * modules/sys_select-tests: Likewise.
38062         * modules/sys_socket-tests: Likewise.
38063         * modules/sys_stat-tests: Likewise.
38064         * modules/sys_time-tests: Likewise.
38065         * modules/sys_utsname-tests: Likewise.
38066         * modules/sysexits-tests: Likewise.
38067         * modules/time-tests: Likewise.
38068         * modules/trunc-tests: Likewise.
38069         * modules/truncf-tests: Likewise.
38070         * modules/truncl-tests: Likewise.
38071         * modules/tsearch-tests: Likewise.
38072         * modules/unistd-tests: Likewise.
38073         * modules/wchar-tests: Likewise.
38074         * modules/wctype-tests: Likewise.
38075
38076         tests: fix license on several tests
38077         * tests/test-des.c: Update to GPLv3+.
38078         * tests/test-flock.c: Likewise.
38079         * tests/test-fsync.c: Likewise.
38080         * tests/test-futimens.h: Likewise.
38081         * tests/test-gc-arcfour.c: Likewise.
38082         * tests/test-gc-arctwo.c: Likewise.
38083         * tests/test-gc-des.c: Likewise.
38084         * tests/test-gc-hmac-md5.c: Likewise.
38085         * tests/test-gc-hmac-sha1.c: Likewise.
38086         * tests/test-gc-md2.c: Likewise.
38087         * tests/test-gc-md4.c: Likewise.
38088         * tests/test-gc-md5.c: Likewise.
38089         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38090         * tests/test-gc-rijndael.c: Likewise.
38091         * tests/test-gc-sha1.c: Likewise.
38092         * tests/test-gc.c: Likewise.
38093         * tests/test-getcwd.c: Likewise.
38094         * tests/test-link.c: Likewise.
38095         * tests/test-link.h: Likewise.
38096         * tests/test-lutimens.h: Likewise.
38097         * tests/test-md2.c: Likewise.
38098         * tests/test-md4.c: Likewise.
38099         * tests/test-mkdir.h: Likewise.
38100         * tests/test-rename.c: Likewise.
38101         * tests/test-rename.h: Likewise.
38102         * tests/test-safe-alloc.c: Likewise.
38103         * tests/test-utimens-common.h: Likewise.
38104         * tests/test-utimens.h: Likewise.
38105
38106         maint: sync license texts
38107         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38108         * doc/gpl-3.0.texi: Revert copyright year update.
38109         * doc/lgpl-3.0.texi: Likewise.
38110
38111 2009-12-29  Jim Meyering  <meyering@redhat.com>
38112
38113         update nearly all FSF copyright year lists to include 2009
38114         The files named by the following are exempted:
38115             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38116               test -f "$dst" && { echo "$dst"; continue; }
38117               test -d "$dst" || continue
38118               echo "$dst"/$(basename "$src")
38119             done > exempt
38120             git ls-files tests/unictype >> exempt
38121         In the remaining files, convert to all-interval notation if
38122         - there is already at least one year interval like 2000-2003
38123         - the file is maintained by me
38124         - the file is in lib/uni*/, where that style already prevails
38125         Otherwise, use update-copyright's default.
38126
38127 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38128         and Eric Blake  <ebb9@byu.net>
38129
38130         tests: don't require debug system() to pass
38131         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38132         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38133         * tests/test-unlink.h (test_unlink_func): Likewise.
38134         * tests/test-fstatat.c (main): ...into callers.
38135         * tests/test-lstat.c (main): Likewise.
38136         * tests/test-rmdir.c (main): Likewise.
38137         * tests/test-unlink.c (main): Likewise.
38138         * tests/test-unlinkat.c (main): Likewise.
38139         * tests/test-areadlink-with-size.c (main): Don't require a
38140         debug-only system call to pass, aiding cross-testing to mingw.
38141         * tests/test-areadlink.c (main): Likewise.
38142         * tests/test-areadlinkat-with-size.c (main): Likewise.
38143         * tests/test-areadlinkat.c (main): Likewise.
38144         * tests/test-canonicalize-lgpl.c (main): Likewise.
38145         * tests/test-canonicalize.c (main): Likewise.
38146         * tests/test-chown.c (main): Likewise.
38147         * tests/test-fchownat.c (main): Likewise.
38148         * tests/test-lchown.c (main): Likewise.
38149         * tests/test-fdutimensat.c (main): Likewise.
38150         * tests/test-futimens.c (main): Likewise.
38151         * tests/test-link.c (main): Likewise.
38152         * tests/test-linkat.c (main): Likewise.
38153         * tests/test-mkdir.c (main): Likewise.
38154         * tests/test-mkdirat.c (main): Likewise.
38155         * tests/test-mkfifo.c (main): Likewise.
38156         * tests/test-mkfifoat.c (main): Likewise.
38157         * tests/test-mknod.c (main): Likewise.
38158         * tests/test-readlink.c (main): Likewise.
38159         * tests/test-remove.c (main): Likewise.
38160         * tests/test-rename.c (main): Likewise.
38161         * tests/test-renameat.c (main): Likewise.
38162         * tests/test-symlink.c (main): Likewise.
38163         * tests/test-symlinkat.c (main): Likewise.
38164         * tests/test-utimens.c (main): Likewise.
38165         * tests/test-utimensat.c (main): Likewise.
38166
38167 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38168
38169         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38170         on $(UNUSED_PARAMETER_H) to avoid build failure.
38171
38172 2009-12-28  Jim Meyering  <meyering@redhat.com>
38173
38174         update-copyright: you may specify a max. line length other than 72
38175         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38176
38177         maint: use consistent FSF copyright line syntax
38178         * lib/posixtm.c: Add missing comma in FSF copyright line.
38179         * lib/posixtm.h: Likewise.
38180         * lib/getugroups.c: Add missing ", Inc.".
38181
38182         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38183         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38184         FSF copyright line.  Remove trailing blanks.
38185
38186 2009-12-28  Eric Blake  <ebb9@byu.net>
38187
38188         test-dup2: reduce dependencies
38189         * modules/cloexec (Configure.ac): Set witness.
38190         * modules/dup2-tests (Depends-on): Drop cloexec.
38191         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38192         not present.
38193         Suggested by Bruno Haible.
38194
38195 2009-12-26  Bruno Haible  <bruno@clisp.org>
38196
38197         Remove an unneeded dependency.
38198         * modules/fseterr (Depends-on): Remove dup2.
38199
38200 2009-12-26  Eric Blake  <ebb9@byu.net>
38201
38202         tests: use macros.h in more places
38203         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38204         (ASSERT_STREAM): Provide default of stderr.
38205         * tests/test-dirent-safer.c: Include macros.h, using alternate
38206         stream for assertions.
38207         * tests/test-dup-safer.c: Likewise.
38208         * tests/test-freopen-safer.c: Likewise.
38209         * tests/test-getopt.c: Likewise.
38210         * tests/test-openat-safer.c: Likewise.
38211         * tests/test-pipe.c: Likewise.
38212         * tests/test-popen-safer.c: Likewise.
38213         * modules/dirent-safer-tests (Files): Include macros.h.
38214         * modules/unistd-safer-tests (Files): Likewise.
38215         * modules/freopen-safer-tests (Files): Likewise.
38216         * modules/getopt-posix-tests (Files): Likewise.
38217         * modules/openat-safer-tests (Files): Likewise.
38218         * modules/pipe-tests (Files): Likewise.
38219
38220 2009-12-26  Bruno Haible  <bruno@clisp.org>
38221
38222         javacomp: Portability fix.
38223         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38224         that it also works on Solaris.
38225
38226 2009-12-26  Bruno Haible  <bruno@clisp.org>
38227
38228         localename: Fix storage allocation of gl_locale_name_thread's result.
38229         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38230         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38231         all platforms that have 'uselocale'.
38232         (gl_locale_name_thread_unsafe): New function, extracted from
38233         gl_locale_name_thread.
38234         (gl_locale_name_thread): Call struniq on all platforms that have
38235         'uselocale'.
38236         * tests/test-localename.c (test_locale_name_thread): Check that the
38237         resulting strings are permanently allocated.
38238         * modules/localename-tests (Depends-on): Add strdup.
38239
38240 2009-12-26  Bruno Haible  <bruno@clisp.org>
38241
38242         * tests/test-localename.c (categories): Fill in the strings.
38243
38244 2009-12-26  Jim Meyering  <meyering@redhat.com>
38245
38246         isdir: complete the removal of m4/isdir.m4
38247         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38248
38249         isdir: clean up, since at least grep still uses it
38250         * lib/isdir.c: Include "isdir.h".
38251         (S_ISDIR): Remove now-unneeded definition.
38252         * modules/isdir (Files): Add lib/isdir.h.
38253         * lib/isdir.h: New file, with declaration.
38254         * m4/isdir.m4: Remove file -- unneeded.
38255
38256 2009-12-25  Bruno Haible  <bruno@clisp.org>
38257
38258         selinux-h: Make generated .h files standalone.
38259         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38260         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38261         * lib/se-selinux.in.h: Likewise.
38262         * modules/selinux-h (Depends-on): Add unused-parameter.
38263         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38264         selinux/selinux.h and selinux/context.h.
38265         Suggested by Eric Blake.
38266
38267 2009-12-25  Bruno Haible  <bruno@clisp.org>
38268
38269         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38270         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38271         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38272         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38273         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38274
38275 2009-12-24  Bruno Haible  <bruno@clisp.org>
38276
38277         openat: Fix warning.
38278         * lib/openat-proc.c: Include <unistd.h>.
38279
38280 2009-12-24  Bruno Haible  <bruno@clisp.org>
38281
38282         New module 'unused-parameter'.
38283         * build-aux/unused-parameter.h: New file, extracted from earlier
38284         gnulib-common.m4.
38285         * modules/unused-parameter: New file.
38286         * lib/unistr.h: Include unused-parameter.h.
38287         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38288         _GL_UNUSED.
38289         * modules/unistr/base (Depends-on): Add unused-parameter.
38290
38291 2009-12-24  Bruno Haible  <bruno@clisp.org>
38292
38293         Add missing dependencies to 'extensions' module.
38294         * m4/extensions.m4: Add comment.
38295         * modules/accept4 (Depends-on): Add extensions.
38296         * modules/dup3 (Depends-on): Likewise.
38297         * modules/fcntl (Depends-on): Likewise.
38298         * modules/futimens (Depends-on): Likewise.
38299         * modules/mknod (Depends-on): Likewise.
38300         * modules/pipe2 (Depends-on): Likewise.
38301         * modules/stat-time (Depends-on): Likewise.
38302         * modules/strcasestr-simple (Depends-on): Likewise.
38303         * modules/strsignal (Depends-on): Likewise.
38304         * modules/utimensat (Depends-on): Likewise.
38305         * modules/localcharset (Depends-on): Likewise. Needed because of
38306         gl_FCNTL_O_FLAGS.
38307         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38308         AC_TYPE_MBSTATE_T.
38309         * modules/wcsnrtombs (Depends-on): Likewise.
38310         * modules/wcsrtombs (Depends-on): Likewise.
38311
38312 2009-12-24  Bruno Haible  <bruno@clisp.org>
38313
38314         binary-io: Avoid gcc warning due to SET_BINARY.
38315         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38316         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38317
38318 2009-12-24  Bruno Haible  <bruno@clisp.org>
38319
38320         Avoid future namespace pollution on glibc systems.
38321         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38322         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38323         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38324         glibc systems.
38325
38326 2009-12-24  Bruno Haible  <bruno@clisp.org>
38327
38328         Refactor common macros used in tests.
38329         * tests/macros.h: New file.
38330         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38331         and/or <stdlib.h>, if appropriate.
38332         (ASSERT, SIZEOF): Remove macros.
38333         * tests/test-areadlink-with-size.c: Likewise.
38334         * tests/test-areadlinkat.c: Likewise.
38335         * tests/test-areadlinkat-with-size.c: Likewise.
38336         * tests/test-argmatch.c: Likewise.
38337         * tests/test-argv-iter.c: Likewise.
38338         * tests/test-array-mergesort.c: Likewise.
38339         * tests/test-array_list.c: Likewise.
38340         * tests/test-array_oset.c: Likewise.
38341         * tests/test-avltree_list.c: Likewise.
38342         * tests/test-avltree_oset.c: Likewise.
38343         * tests/test-avltreehash_list.c: Likewise.
38344         * tests/test-base64.c: Likewise.
38345         * tests/test-binary-io.c: Likewise.
38346         * tests/test-bitrotate.c: Likewise.
38347         * tests/test-btowc.c: Likewise.
38348         * tests/test-byteswap.c: Likewise.
38349         * tests/test-c-ctype.c: Likewise.
38350         * tests/test-c-stack.c: Likewise.
38351         * tests/test-c-strcasecmp.c: Likewise.
38352         * tests/test-c-strcasestr.c: Likewise.
38353         * tests/test-c-strncasecmp.c: Likewise.
38354         * tests/test-c-strstr.c: Likewise.
38355         * tests/test-canonicalize-lgpl.c: Likewise.
38356         * tests/test-canonicalize.c: Likewise.
38357         * tests/test-carray_list.c: Likewise.
38358         * tests/test-ceilf1.c: Likewise.
38359         * tests/test-ceilf2.c: Likewise.
38360         * tests/test-ceill.c: Likewise.
38361         * tests/test-chown.c: Likewise.
38362         * tests/test-cloexec.c: Likewise.
38363         * tests/test-copy-acl.c: Likewise.
38364         * tests/test-copy-file.c: Likewise.
38365         * tests/test-count-one-bits.c: Likewise.
38366         * tests/test-dprintf-posix.c: Likewise.
38367         * tests/test-dup2.c: Likewise.
38368         * tests/test-dup3.c: Likewise.
38369         * tests/test-duplocale.c: Likewise.
38370         * tests/test-fbufmode.c: Likewise.
38371         * tests/test-fchdir.c: Likewise.
38372         * tests/test-fchownat.c: Likewise.
38373         * tests/test-fcntl-safer.c: Likewise.
38374         * tests/test-fcntl.c: Likewise.
38375         * tests/test-fdopendir.c: Likewise.
38376         * tests/test-fdutimensat.c: Likewise.
38377         * tests/test-fflush2.c: Likewise.
38378         * tests/test-file-has-acl.c: Likewise.
38379         * tests/test-filevercmp.c: Likewise.
38380         * tests/test-flock.c: Likewise.
38381         * tests/test-floorf1.c: Likewise.
38382         * tests/test-floorf2.c: Likewise.
38383         * tests/test-floorl.c: Likewise.
38384         * tests/test-fnmatch.c: Likewise.
38385         * tests/test-fopen.h: Likewise.
38386         * tests/test-fpending.c: Likewise.
38387         * tests/test-fprintf-posix.c: Likewise.
38388         * tests/test-fpurge.c: Likewise.
38389         * tests/test-freadable.c: Likewise.
38390         * tests/test-freadahead.c: Likewise.
38391         * tests/test-freading.c: Likewise.
38392         * tests/test-freadptr.c: Likewise.
38393         * tests/test-freadptr2.c: Likewise.
38394         * tests/test-freadseek.c: Likewise.
38395         * tests/test-freopen.c: Likewise.
38396         * tests/test-frexp.c: Likewise.
38397         * tests/test-frexpl.c: Likewise.
38398         * tests/test-fseek.c: Likewise.
38399         * tests/test-fseeko.c: Likewise.
38400         * tests/test-fstatat.c: Likewise.
38401         * tests/test-fstrcmp.c: Likewise.
38402         * tests/test-fsync.c: Likewise.
38403         * tests/test-ftell.c: Likewise.
38404         * tests/test-ftello.c: Likewise.
38405         * tests/test-func.c: Likewise.
38406         * tests/test-futimens.c: Likewise.
38407         * tests/test-fwritable.c: Likewise.
38408         * tests/test-fwriting.c: Likewise.
38409         * tests/test-getcwd.c: Likewise.
38410         * tests/test-getdate.c: Likewise.
38411         * tests/test-getdelim.c: Likewise.
38412         * tests/test-getdtablesize.c: Likewise.
38413         * tests/test-getgroups.c: Likewise.
38414         * tests/test-getline.c: Likewise.
38415         * tests/test-getndelim2.c: Likewise.
38416         * tests/test-glob.c: Likewise.
38417         * tests/test-hash.c: Likewise.
38418         * tests/test-i-ring.c: Likewise.
38419         * tests/test-iconv-utf.c: Likewise.
38420         * tests/test-iconv.c: Likewise.
38421         * tests/test-idpriv-drop.c: Likewise.
38422         * tests/test-idpriv-droptemp.c: Likewise.
38423         * tests/test-inet_ntop.c: Likewise.
38424         * tests/test-inet_pton.c: Likewise.
38425         * tests/test-isblank.c: Likewise.
38426         * tests/test-isfinite.c: Likewise.
38427         * tests/test-isinf.c: Likewise.
38428         * tests/test-isnan.c: Likewise.
38429         * tests/test-isnand.h: Likewise.
38430         * tests/test-isnanf.h: Likewise.
38431         * tests/test-isnanl.h: Likewise.
38432         * tests/test-lchown.c: Likewise.
38433         * tests/test-ldexpl.c: Likewise.
38434         * tests/test-link.c: Likewise.
38435         * tests/test-linkat.c: Likewise.
38436         * tests/test-linked_list.c: Likewise.
38437         * tests/test-linkedhash_list.c: Likewise.
38438         * tests/test-localename.c: Likewise.
38439         * tests/test-lseek.c: Likewise.
38440         * tests/test-lstat.c: Likewise.
38441         * tests/test-mbmemcasecmp.c: Likewise.
38442         * tests/test-mbmemcasecoll.c: Likewise.
38443         * tests/test-mbrtowc.c: Likewise.
38444         * tests/test-mbscasecmp.c: Likewise.
38445         * tests/test-mbscasestr1.c: Likewise.
38446         * tests/test-mbscasestr2.c: Likewise.
38447         * tests/test-mbscasestr3.c: Likewise.
38448         * tests/test-mbscasestr4.c: Likewise.
38449         * tests/test-mbschr.c: Likewise.
38450         * tests/test-mbscspn.c: Likewise.
38451         * tests/test-mbsinit.c: Likewise.
38452         * tests/test-mbsncasecmp.c: Likewise.
38453         * tests/test-mbsnrtowcs.c: Likewise.
38454         * tests/test-mbspbrk.c: Likewise.
38455         * tests/test-mbspcasecmp.c: Likewise.
38456         * tests/test-mbsrchr.c: Likewise.
38457         * tests/test-mbsrtowcs.c: Likewise.
38458         * tests/test-mbsspn.c: Likewise.
38459         * tests/test-mbsstr1.c: Likewise.
38460         * tests/test-mbsstr2.c: Likewise.
38461         * tests/test-mbsstr3.c: Likewise.
38462         * tests/test-memchr.c: Likewise.
38463         * tests/test-memchr2.c: Likewise.
38464         * tests/test-memcmp.c: Likewise.
38465         * tests/test-memmem.c: Likewise.
38466         * tests/test-memrchr.c: Likewise.
38467         * tests/test-mkdir.c: Likewise.
38468         * tests/test-mkdirat.c: Likewise.
38469         * tests/test-mkfifo.c: Likewise.
38470         * tests/test-mkfifoat.c: Likewise.
38471         * tests/test-mknod.c: Likewise.
38472         * tests/test-nanosleep.c: Likewise.
38473         * tests/test-nl_langinfo.c: Likewise.
38474         * tests/test-obstack-printf.c: Likewise.
38475         * tests/test-open.c: Likewise.
38476         * tests/test-openat.c: Likewise.
38477         * tests/test-pipe-filter-gi1.c: Likewise.
38478         * tests/test-pipe-filter-gi2-main.c: Likewise.
38479         * tests/test-pipe-filter-ii1.c: Likewise.
38480         * tests/test-pipe-filter-ii2-main.c: Likewise.
38481         * tests/test-pipe2.c: Likewise.
38482         * tests/test-popen.h: Likewise.
38483         * tests/test-posixtm.c: Likewise.
38484         * tests/test-pread.c: Likewise.
38485         * tests/test-printf-frexp.c: Likewise.
38486         * tests/test-printf-frexpl.c: Likewise.
38487         * tests/test-printf-posix.c: Likewise.
38488         * tests/test-priv-set.c: Likewise.
38489         * tests/test-quotearg.c: Likewise.
38490         * tests/test-random_r.c: Likewise.
38491         * tests/test-rawmemchr.c: Likewise.
38492         * tests/test-rbtree_list.c: Likewise.
38493         * tests/test-rbtree_oset.c: Likewise.
38494         * tests/test-rbtreehash_list.c: Likewise.
38495         * tests/test-readlink.c: Likewise.
38496         * tests/test-remove.c: Likewise.
38497         * tests/test-rename.c: Likewise.
38498         * tests/test-renameat.c: Likewise.
38499         * tests/test-rmdir.c: Likewise.
38500         * tests/test-round1.c: Likewise.
38501         * tests/test-roundf1.c: Likewise.
38502         * tests/test-roundl.c: Likewise.
38503         * tests/test-safe-alloc.c: Likewise.
38504         * tests/test-sameacls.c: Likewise.
38505         * tests/test-set-mode-acl.c: Likewise.
38506         * tests/test-setenv.c: Likewise.
38507         * tests/test-sigaction.c: Likewise.
38508         * tests/test-signbit.c: Likewise.
38509         * tests/test-sleep.c: Likewise.
38510         * tests/test-snprintf-posix.c: Likewise.
38511         * tests/test-snprintf.c: Likewise.
38512         * tests/test-sprintf-posix.c: Likewise.
38513         * tests/test-stat-time.c: Likewise.
38514         * tests/test-stat.c: Likewise.
38515         * tests/test-strcasestr.c: Likewise.
38516         * tests/test-strchrnul.c: Likewise.
38517         * tests/test-strerror.c: Likewise.
38518         * tests/test-striconv.c: Likewise.
38519         * tests/test-striconveh.c: Likewise.
38520         * tests/test-striconveha.c: Likewise.
38521         * tests/test-strsignal.c: Likewise.
38522         * tests/test-strstr.c: Likewise.
38523         * tests/test-strtod.c: Likewise.
38524         * tests/test-strverscmp.c: Likewise.
38525         * tests/test-symlink.c: Likewise.
38526         * tests/test-symlinkat.c: Likewise.
38527         * tests/test-trunc1.c: Likewise.
38528         * tests/test-trunc2.c: Likewise.
38529         * tests/test-truncf1.c: Likewise.
38530         * tests/test-truncf2.c: Likewise.
38531         * tests/test-truncl.c: Likewise.
38532         * tests/test-uname.c: Likewise.
38533         * tests/test-unlink.c: Likewise.
38534         * tests/test-unlinkat.c: Likewise.
38535         * tests/test-unsetenv.c: Likewise.
38536         * tests/test-usleep.c: Likewise.
38537         * tests/test-utimens.c: Likewise.
38538         * tests/test-utimensat.c: Likewise.
38539         * tests/test-vasnprintf-posix.c: Likewise.
38540         * tests/test-vasnprintf-posix2.c: Likewise.
38541         * tests/test-vasnprintf.c: Likewise.
38542         * tests/test-vasprintf-posix.c: Likewise.
38543         * tests/test-vasprintf.c: Likewise.
38544         * tests/test-vdprintf-posix.c: Likewise.
38545         * tests/test-vfprintf-posix.c: Likewise.
38546         * tests/test-vprintf-posix.c: Likewise.
38547         * tests/test-vsnprintf-posix.c: Likewise.
38548         * tests/test-vsnprintf.c: Likewise.
38549         * tests/test-vsprintf-posix.c: Likewise.
38550         * tests/test-wcrtomb.c: Likewise.
38551         * tests/test-wcsnrtombs.c: Likewise.
38552         * tests/test-wcsrtombs.c: Likewise.
38553         * tests/test-wctype.c: Likewise.
38554         * tests/test-wcwidth.c: Likewise.
38555         * tests/test-xfprintf-posix.c: Likewise.
38556         * tests/test-xmemdup0.c: Likewise.
38557         * tests/test-xprintf-posix.c: Likewise.
38558         * tests/test-xvasprintf.c: Likewise.
38559         * tests/unicase/test-locale-language.c: Likewise.
38560         * tests/unicase/test-mapping-part1.h: Likewise.
38561         * tests/unicase/test-predicate-part1.h: Likewise.
38562         * tests/unicase/test-u8-casecmp.c: Likewise.
38563         * tests/unicase/test-u8-casecoll.c: Likewise.
38564         * tests/unicase/test-u8-casefold.c: Likewise.
38565         * tests/unicase/test-u8-is-cased.c: Likewise.
38566         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38567         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38568         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38569         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38570         * tests/unicase/test-u8-tolower.c: Likewise.
38571         * tests/unicase/test-u8-totitle.c: Likewise.
38572         * tests/unicase/test-u8-toupper.c: Likewise.
38573         * tests/unicase/test-u16-casecmp.c: Likewise.
38574         * tests/unicase/test-u16-casecoll.c: Likewise.
38575         * tests/unicase/test-u16-casefold.c: Likewise.
38576         * tests/unicase/test-u16-is-cased.c: Likewise.
38577         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38578         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38579         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38580         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38581         * tests/unicase/test-u16-tolower.c: Likewise.
38582         * tests/unicase/test-u16-totitle.c: Likewise.
38583         * tests/unicase/test-u16-toupper.c: Likewise.
38584         * tests/unicase/test-u32-casecmp.c: Likewise.
38585         * tests/unicase/test-u32-casecoll.c: Likewise.
38586         * tests/unicase/test-u32-casefold.c: Likewise.
38587         * tests/unicase/test-u32-is-cased.c: Likewise.
38588         * tests/unicase/test-u32-is-casefolded.c: Likewise.
38589         * tests/unicase/test-u32-is-lowercase.c: Likewise.
38590         * tests/unicase/test-u32-is-titlecase.c: Likewise.
38591         * tests/unicase/test-u32-is-uppercase.c: Likewise.
38592         * tests/unicase/test-u32-tolower.c: Likewise.
38593         * tests/unicase/test-u32-totitle.c: Likewise.
38594         * tests/unicase/test-u32-toupper.c: Likewise.
38595         * tests/unicase/test-ulc-casecmp.c: Likewise.
38596         * tests/unicase/test-ulc-casecoll.c: Likewise.
38597         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38598         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38599         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38600         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38601         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38602         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38603         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38604         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38605         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38606         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38607         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38608         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38609         * tests/unictype/test-bidi_byname.c: Likewise.
38610         * tests/unictype/test-bidi_name.c: Likewise.
38611         * tests/unictype/test-bidi_of.c: Likewise.
38612         * tests/unictype/test-bidi_test.c: Likewise.
38613         * tests/unictype/test-block_list.c: Likewise.
38614         * tests/unictype/test-block_of.c: Likewise.
38615         * tests/unictype/test-block_test.c: Likewise.
38616         * tests/unictype/test-categ_and.c: Likewise.
38617         * tests/unictype/test-categ_and_not.c: Likewise.
38618         * tests/unictype/test-categ_byname.c: Likewise.
38619         * tests/unictype/test-categ_name.c: Likewise.
38620         * tests/unictype/test-categ_none.c: Likewise.
38621         * tests/unictype/test-categ_of.c: Likewise.
38622         * tests/unictype/test-categ_or.c: Likewise.
38623         * tests/unictype/test-categ_test_withtable.c: Likewise.
38624         * tests/unictype/test-combining.c: Likewise.
38625         * tests/unictype/test-decdigit.c: Likewise.
38626         * tests/unictype/test-digit.c: Likewise.
38627         * tests/unictype/test-mirror.c: Likewise.
38628         * tests/unictype/test-numeric.c: Likewise.
38629         * tests/unictype/test-pr_byname.c: Likewise.
38630         * tests/unictype/test-pr_test.c: Likewise.
38631         * tests/unictype/test-predicate-part1.h: Likewise.
38632         * tests/unictype/test-scripts.c: Likewise.
38633         * tests/unictype/test-sy_c_ident.c: Likewise.
38634         * tests/unictype/test-sy_java_ident.c: Likewise.
38635         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
38636         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
38637         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
38638         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
38639         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
38640         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
38641         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
38642         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
38643         * tests/uninorm/test-canonical-decomposition.c: Likewise.
38644         * tests/uninorm/test-compat-decomposition.c: Likewise.
38645         * tests/uninorm/test-composition.c: Likewise.
38646         * tests/uninorm/test-decomposing-form.c: Likewise.
38647         * tests/uninorm/test-decomposition.c: Likewise.
38648         * tests/uninorm/test-u8-nfc.c: Likewise.
38649         * tests/uninorm/test-u8-nfd.c: Likewise.
38650         * tests/uninorm/test-u8-nfkc.c: Likewise.
38651         * tests/uninorm/test-u8-nfkd.c: Likewise.
38652         * tests/uninorm/test-u8-normcmp.c: Likewise.
38653         * tests/uninorm/test-u8-normcoll.c: Likewise.
38654         * tests/uninorm/test-u16-nfc.c: Likewise.
38655         * tests/uninorm/test-u16-nfd.c: Likewise.
38656         * tests/uninorm/test-u16-nfkc.c: Likewise.
38657         * tests/uninorm/test-u16-nfkd.c: Likewise.
38658         * tests/uninorm/test-u16-normcmp.c: Likewise.
38659         * tests/uninorm/test-u16-normcoll.c: Likewise.
38660         * tests/uninorm/test-u32-nfc.c: Likewise.
38661         * tests/uninorm/test-u32-nfd.c: Likewise.
38662         * tests/uninorm/test-u32-nfkc.c: Likewise.
38663         * tests/uninorm/test-u32-nfkd.c: Likewise.
38664         * tests/uninorm/test-u32-normalize-big.c: Likewise.
38665         * tests/uninorm/test-u32-normcmp.c: Likewise.
38666         * tests/uninorm/test-u32-normcoll.c: Likewise.
38667         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
38668         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38669         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38670         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38671         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38672         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38673         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38674         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38675         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38676         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38677         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38678         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38679         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38680         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38681         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38682         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38683         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38684         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38685         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38686         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38687         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38688         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38689         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38690         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38691         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38692         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38693         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38694         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38695         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38696         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
38697         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
38698         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
38699         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
38700         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38701         * tests/uniwidth/test-u8-width.c: Likewise.
38702         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38703         * tests/uniwidth/test-u16-width.c: Likewise.
38704         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38705         * tests/uniwidth/test-u32-width.c: Likewise.
38706         * tests/uniwidth/test-uc_width.c: Likewise.
38707         * tests/uniwidth/test-uc_width2.c: Likewise.
38708         * modules/acl-tests (Files): Add tests/macros.h.
38709         * modules/areadlink-tests (Files): Likewise.
38710         * modules/areadlink-with-size-tests (Files): Likewise.
38711         * modules/areadlinkat-tests (Files): Likewise.
38712         * modules/areadlinkat-with-size-tests (Files): Likewise.
38713         * modules/argmatch-tests (Files): Likewise.
38714         * modules/argv-iter-tests (Files): Likewise.
38715         * modules/array-list-tests (Files): Likewise.
38716         * modules/array-mergesort-tests (Files): Likewise.
38717         * modules/array-oset-tests (Files): Likewise.
38718         * modules/avltree-list-tests (Files): Likewise.
38719         * modules/avltree-oset-tests (Files): Likewise.
38720         * modules/avltreehash-list-tests (Files): Likewise.
38721         * modules/base64-tests (Files): Likewise.
38722         * modules/binary-io-tests (Files): Likewise.
38723         * modules/bitrotate-tests (Files): Likewise.
38724         * modules/btowc-tests (Files): Likewise.
38725         * modules/byteswap-tests (Files): Likewise.
38726         * modules/c-ctype-tests (Files): Likewise.
38727         * modules/c-stack-tests (Files): Likewise.
38728         * modules/c-strcase-tests (Files): Likewise.
38729         * modules/c-strcasestr-tests (Files): Likewise.
38730         * modules/c-strstr-tests (Files): Likewise.
38731         * modules/canonicalize-lgpl-tests (Files): Likewise.
38732         * modules/canonicalize-tests (Files): Likewise.
38733         * modules/carray-list-tests (Files): Likewise.
38734         * modules/ceilf-tests (Files): Likewise.
38735         * modules/ceill-tests (Files): Likewise.
38736         * modules/chown-tests (Files): Likewise.
38737         * modules/cloexec-tests (Files): Likewise.
38738         * modules/copy-file-tests (Files): Likewise.
38739         * modules/count-one-bits-tests (Files): Likewise.
38740         * modules/dprintf-posix-tests (Files): Likewise.
38741         * modules/dup2-tests (Files): Likewise.
38742         * modules/dup3-tests (Files): Likewise.
38743         * modules/duplocale-tests (Files): Likewise.
38744         * modules/fbufmode-tests (Files): Likewise.
38745         * modules/fchdir-tests (Files): Likewise.
38746         * modules/fcntl-safer-tests (Files): Likewise.
38747         * modules/fcntl-tests (Files): Likewise.
38748         * modules/fdopendir-tests (Files): Likewise.
38749         * modules/fdutimensat-tests (Files): Likewise.
38750         * modules/fflush-tests (Files): Likewise.
38751         * modules/filevercmp-tests (Files): Likewise.
38752         * modules/flock-tests (Files): Likewise.
38753         * modules/floorf-tests (Files): Likewise.
38754         * modules/floorl-tests (Files): Likewise.
38755         * modules/fnmatch-tests (Files): Likewise.
38756         * modules/fopen-safer-tests (Files): Likewise.
38757         * modules/fopen-tests (Files): Likewise.
38758         * modules/fpending-tests (Files): Likewise.
38759         * modules/fprintf-posix-tests (Files): Likewise.
38760         * modules/fpurge-tests (Files): Likewise.
38761         * modules/freadable-tests (Files): Likewise.
38762         * modules/freadahead-tests (Files): Likewise.
38763         * modules/freading-tests (Files): Likewise.
38764         * modules/freadptr-tests (Files): Likewise.
38765         * modules/freadseek-tests (Files): Likewise.
38766         * modules/freopen-tests (Files): Likewise.
38767         * modules/frexp-nolibm-tests (Files): Likewise.
38768         * modules/frexp-tests (Files): Likewise.
38769         * modules/frexpl-nolibm-tests (Files): Likewise.
38770         * modules/frexpl-tests (Files): Likewise.
38771         * modules/fseek-tests (Files): Likewise.
38772         * modules/fseeko-tests (Files): Likewise.
38773         * modules/fstrcmp-tests (Files): Likewise.
38774         * modules/fsync-tests (Files): Likewise.
38775         * modules/ftell-tests (Files): Likewise.
38776         * modules/ftello-tests (Files): Likewise.
38777         * modules/func-tests (Files): Likewise.
38778         * modules/futimens-tests (Files): Likewise.
38779         * modules/fwritable-tests (Files): Likewise.
38780         * modules/fwriting-tests (Files): Likewise.
38781         * modules/getcwd-tests (Files): Likewise.
38782         * modules/getdate-tests (Files): Likewise.
38783         * modules/getdelim-tests (Files): Likewise.
38784         * modules/getdtablesize-tests (Files): Likewise.
38785         * modules/getgroups-tests (Files): Likewise.
38786         * modules/getline-tests (Files): Likewise.
38787         * modules/getndelim2-tests (Files): Likewise.
38788         * modules/glob-tests (Files): Likewise.
38789         * modules/hash-tests (Files): Likewise.
38790         * modules/i-ring-tests (Files): Likewise.
38791         * modules/iconv-tests (Files): Likewise.
38792         * modules/iconv_open-utf-tests (Files): Likewise.
38793         * modules/idpriv-drop-tests (Files): Likewise.
38794         * modules/idpriv-droptemp-tests (Files): Likewise.
38795         * modules/inet_ntop-tests (Files): Likewise.
38796         * modules/inet_pton-tests (Files): Likewise.
38797         * modules/isblank-tests (Files): Likewise.
38798         * modules/isfinite-tests (Files): Likewise.
38799         * modules/isinf-tests (Files): Likewise.
38800         * modules/isnan-tests (Files): Likewise.
38801         * modules/isnand-nolibm-tests (Files): Likewise.
38802         * modules/isnand-tests (Files): Likewise.
38803         * modules/isnanf-nolibm-tests (Files): Likewise.
38804         * modules/isnanf-tests (Files): Likewise.
38805         * modules/isnanl-nolibm-tests (Files): Likewise.
38806         * modules/isnanl-tests (Files): Likewise.
38807         * modules/lchown-tests (Files): Likewise.
38808         * modules/ldexpl-tests (Files): Likewise.
38809         * modules/link-tests (Files): Likewise.
38810         * modules/linkat-tests (Files): Likewise.
38811         * modules/linked-list-tests (Files): Likewise.
38812         * modules/linkedhash-list-tests (Files): Likewise.
38813         * modules/localename-tests (Files): Likewise.
38814         * modules/lseek-tests (Files): Likewise.
38815         * modules/lstat-tests (Files): Likewise.
38816         * modules/mbmemcasecmp-tests (Files): Likewise.
38817         * modules/mbmemcasecoll-tests (Files): Likewise.
38818         * modules/mbrtowc-tests (Files): Likewise.
38819         * modules/mbscasecmp-tests (Files): Likewise.
38820         * modules/mbscasestr-tests (Files): Likewise.
38821         * modules/mbschr-tests (Files): Likewise.
38822         * modules/mbscspn-tests (Files): Likewise.
38823         * modules/mbsinit-tests (Files): Likewise.
38824         * modules/mbsncasecmp-tests (Files): Likewise.
38825         * modules/mbsnrtowcs-tests (Files): Likewise.
38826         * modules/mbspbrk-tests (Files): Likewise.
38827         * modules/mbspcasecmp-tests (Files): Likewise.
38828         * modules/mbsrchr-tests (Files): Likewise.
38829         * modules/mbsrtowcs-tests (Files): Likewise.
38830         * modules/mbsspn-tests (Files): Likewise.
38831         * modules/mbsstr-tests (Files): Likewise.
38832         * modules/memchr-tests (Files): Likewise.
38833         * modules/memchr2-tests (Files): Likewise.
38834         * modules/memcmp-tests (Files): Likewise.
38835         * modules/memmem-tests (Files): Likewise.
38836         * modules/memrchr-tests (Files): Likewise.
38837         * modules/mkdir-tests (Files): Likewise.
38838         * modules/mkfifo-tests (Files): Likewise.
38839         * modules/mkfifoat-tests (Files): Likewise.
38840         * modules/mknod-tests (Files): Likewise.
38841         * modules/nanosleep-tests (Files): Likewise.
38842         * modules/nl_langinfo-tests (Files): Likewise.
38843         * modules/obstack-printf-tests (Files): Likewise.
38844         * modules/open-tests (Files): Likewise.
38845         * modules/openat-tests (Files): Likewise.
38846         * modules/pipe-filter-gi-tests (Files): Likewise.
38847         * modules/pipe-filter-ii-tests (Files): Likewise.
38848         * modules/pipe2-tests (Files): Likewise.
38849         * modules/popen-safer-tests (Files): Likewise.
38850         * modules/popen-tests (Files): Likewise.
38851         * modules/posixtm-tests (Files): Likewise.
38852         * modules/pread-tests (Files): Likewise.
38853         * modules/printf-frexp-tests (Files): Likewise.
38854         * modules/printf-frexpl-tests (Files): Likewise.
38855         * modules/printf-posix-tests (Files): Likewise.
38856         * modules/priv-set-tests (Files): Likewise.
38857         * modules/quotearg-tests (Files): Likewise.
38858         * modules/random_r-tests (Files): Likewise.
38859         * modules/rawmemchr-tests (Files): Likewise.
38860         * modules/rbtree-list-tests (Files): Likewise.
38861         * modules/rbtree-oset-tests (Files): Likewise.
38862         * modules/rbtreehash-list-tests (Files): Likewise.
38863         * modules/readlink-tests (Files): Likewise.
38864         * modules/remove-tests (Files): Likewise.
38865         * modules/rename-tests (Files): Likewise.
38866         * modules/renameat-tests (Files): Likewise.
38867         * modules/rmdir-tests (Files): Likewise.
38868         * modules/round-tests (Files): Likewise.
38869         * modules/roundf-tests (Files): Likewise.
38870         * modules/roundl-tests (Files): Likewise.
38871         * modules/safe-alloc-tests (Files): Likewise.
38872         * modules/setenv-tests (Files): Likewise.
38873         * modules/sigaction-tests (Files): Likewise.
38874         * modules/signbit-tests (Files): Likewise.
38875         * modules/sleep-tests (Files): Likewise.
38876         * modules/snprintf-posix-tests (Files): Likewise.
38877         * modules/snprintf-tests (Files): Likewise.
38878         * modules/sprintf-posix-tests (Files): Likewise.
38879         * modules/stat-tests (Files): Likewise.
38880         * modules/stat-time-tests (Files): Likewise.
38881         * modules/strcasestr-tests (Files): Likewise.
38882         * modules/strchrnul-tests (Files): Likewise.
38883         * modules/strerror-tests (Files): Likewise.
38884         * modules/striconv-tests (Files): Likewise.
38885         * modules/striconveh-tests (Files): Likewise.
38886         * modules/striconveha-tests (Files): Likewise.
38887         * modules/strsignal-tests (Files): Likewise.
38888         * modules/strstr-tests (Files): Likewise.
38889         * modules/strtod-tests (Files): Likewise.
38890         * modules/strverscmp-tests (Files): Likewise.
38891         * modules/symlink-tests (Files): Likewise.
38892         * modules/symlinkat-tests (Files): Likewise.
38893         * modules/trunc-tests (Files): Likewise.
38894         * modules/truncf-tests (Files): Likewise.
38895         * modules/truncl-tests (Files): Likewise.
38896         * modules/uname-tests (Files): Likewise.
38897         * modules/unicase/cased-tests (Files): Likewise.
38898         * modules/unicase/ignorable-tests (Files): Likewise.
38899         * modules/unicase/locale-language-tests (Files): Likewise.
38900         * modules/unicase/tolower-tests (Files): Likewise.
38901         * modules/unicase/totitle-tests (Files): Likewise.
38902         * modules/unicase/toupper-tests (Files): Likewise.
38903         * modules/unicase/u8-casecmp-tests (Files): Likewise.
38904         * modules/unicase/u8-casecoll-tests (Files): Likewise.
38905         * modules/unicase/u8-casefold-tests (Files): Likewise.
38906         * modules/unicase/u8-is-cased-tests (Files): Likewise.
38907         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
38908         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
38909         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
38910         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
38911         * modules/unicase/u8-tolower-tests (Files): Likewise.
38912         * modules/unicase/u8-totitle-tests (Files): Likewise.
38913         * modules/unicase/u8-toupper-tests (Files): Likewise.
38914         * modules/unicase/u16-casecmp-tests (Files): Likewise.
38915         * modules/unicase/u16-casecoll-tests (Files): Likewise.
38916         * modules/unicase/u16-casefold-tests (Files): Likewise.
38917         * modules/unicase/u16-is-cased-tests (Files): Likewise.
38918         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
38919         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
38920         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
38921         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
38922         * modules/unicase/u16-tolower-tests (Files): Likewise.
38923         * modules/unicase/u16-totitle-tests (Files): Likewise.
38924         * modules/unicase/u16-toupper-tests (Files): Likewise.
38925         * modules/unicase/u32-casecmp-tests (Files): Likewise.
38926         * modules/unicase/u32-casecoll-tests (Files): Likewise.
38927         * modules/unicase/u32-casefold-tests (Files): Likewise.
38928         * modules/unicase/u32-is-cased-tests (Files): Likewise.
38929         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
38930         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
38931         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
38932         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
38933         * modules/unicase/u32-tolower-tests (Files): Likewise.
38934         * modules/unicase/u32-totitle-tests (Files): Likewise.
38935         * modules/unicase/u32-toupper-tests (Files): Likewise.
38936         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
38937         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
38938         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
38939         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
38940         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
38941         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
38942         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
38943         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
38944         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
38945         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
38946         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
38947         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
38948         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
38949         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
38950         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
38951         * modules/unictype/bidicategory-name-tests (Files): Likewise.
38952         * modules/unictype/bidicategory-of-tests (Files): Likewise.
38953         * modules/unictype/bidicategory-test-tests (Files): Likewise.
38954         * modules/unictype/block-list-tests (Files): Likewise.
38955         * modules/unictype/block-of-tests (Files): Likewise.
38956         * modules/unictype/block-test-tests (Files): Likewise.
38957         * modules/unictype/category-C-tests (Files): Likewise.
38958         * modules/unictype/category-Cc-tests (Files): Likewise.
38959         * modules/unictype/category-Cf-tests (Files): Likewise.
38960         * modules/unictype/category-Cn-tests (Files): Likewise.
38961         * modules/unictype/category-Co-tests (Files): Likewise.
38962         * modules/unictype/category-Cs-tests (Files): Likewise.
38963         * modules/unictype/category-L-tests (Files): Likewise.
38964         * modules/unictype/category-Ll-tests (Files): Likewise.
38965         * modules/unictype/category-Lm-tests (Files): Likewise.
38966         * modules/unictype/category-Lo-tests (Files): Likewise.
38967         * modules/unictype/category-Lt-tests (Files): Likewise.
38968         * modules/unictype/category-Lu-tests (Files): Likewise.
38969         * modules/unictype/category-M-tests (Files): Likewise.
38970         * modules/unictype/category-Mc-tests (Files): Likewise.
38971         * modules/unictype/category-Me-tests (Files): Likewise.
38972         * modules/unictype/category-Mn-tests (Files): Likewise.
38973         * modules/unictype/category-N-tests (Files): Likewise.
38974         * modules/unictype/category-Nd-tests (Files): Likewise.
38975         * modules/unictype/category-Nl-tests (Files): Likewise.
38976         * modules/unictype/category-No-tests (Files): Likewise.
38977         * modules/unictype/category-P-tests (Files): Likewise.
38978         * modules/unictype/category-Pc-tests (Files): Likewise.
38979         * modules/unictype/category-Pd-tests (Files): Likewise.
38980         * modules/unictype/category-Pe-tests (Files): Likewise.
38981         * modules/unictype/category-Pf-tests (Files): Likewise.
38982         * modules/unictype/category-Pi-tests (Files): Likewise.
38983         * modules/unictype/category-Po-tests (Files): Likewise.
38984         * modules/unictype/category-Ps-tests (Files): Likewise.
38985         * modules/unictype/category-S-tests (Files): Likewise.
38986         * modules/unictype/category-Sc-tests (Files): Likewise.
38987         * modules/unictype/category-Sk-tests (Files): Likewise.
38988         * modules/unictype/category-Sm-tests (Files): Likewise.
38989         * modules/unictype/category-So-tests (Files): Likewise.
38990         * modules/unictype/category-Z-tests (Files): Likewise.
38991         * modules/unictype/category-Zl-tests (Files): Likewise.
38992         * modules/unictype/category-Zp-tests (Files): Likewise.
38993         * modules/unictype/category-Zs-tests (Files): Likewise.
38994         * modules/unictype/category-and-not-tests (Files): Likewise.
38995         * modules/unictype/category-and-tests (Files): Likewise.
38996         * modules/unictype/category-byname-tests (Files): Likewise.
38997         * modules/unictype/category-name-tests (Files): Likewise.
38998         * modules/unictype/category-none-tests (Files): Likewise.
38999         * modules/unictype/category-of-tests (Files): Likewise.
39000         * modules/unictype/category-or-tests (Files): Likewise.
39001         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39002         * modules/unictype/combining-class-tests (Files): Likewise.
39003         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39004         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39005         * modules/unictype/ctype-blank-tests (Files): Likewise.
39006         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39007         * modules/unictype/ctype-digit-tests (Files): Likewise.
39008         * modules/unictype/ctype-graph-tests (Files): Likewise.
39009         * modules/unictype/ctype-lower-tests (Files): Likewise.
39010         * modules/unictype/ctype-print-tests (Files): Likewise.
39011         * modules/unictype/ctype-punct-tests (Files): Likewise.
39012         * modules/unictype/ctype-space-tests (Files): Likewise.
39013         * modules/unictype/ctype-upper-tests (Files): Likewise.
39014         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39015         * modules/unictype/decimal-digit-tests (Files): Likewise.
39016         * modules/unictype/digit-tests (Files): Likewise.
39017         * modules/unictype/mirror-tests (Files): Likewise.
39018         * modules/unictype/numeric-tests (Files): Likewise.
39019         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39020         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39021         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39022         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39023         Likewise.
39024         * modules/unictype/property-bidi-block-separator-tests (Files):
39025         Likewise.
39026         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39027         Likewise.
39028         * modules/unictype/property-bidi-common-separator-tests (Files):
39029         Likewise.
39030         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39031         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39032         Likewise.
39033         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39034         Likewise.
39035         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39036         Likewise.
39037         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39038         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39039         Likewise.
39040         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39041         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39042         Likewise.
39043         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39044         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39045         * modules/unictype/property-bidi-segment-separator-tests (Files):
39046         Likewise.
39047         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39048         * modules/unictype/property-byname-tests (Files): Likewise.
39049         * modules/unictype/property-combining-tests (Files): Likewise.
39050         * modules/unictype/property-composite-tests (Files): Likewise.
39051         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39052         * modules/unictype/property-dash-tests (Files): Likewise.
39053         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39054         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39055         Likewise.
39056         * modules/unictype/property-deprecated-tests (Files): Likewise.
39057         * modules/unictype/property-diacritic-tests (Files): Likewise.
39058         * modules/unictype/property-extender-tests (Files): Likewise.
39059         * modules/unictype/property-format-control-tests (Files): Likewise.
39060         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39061         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39062         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39063         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39064         * modules/unictype/property-hyphen-tests (Files): Likewise.
39065         * modules/unictype/property-id-continue-tests (Files): Likewise.
39066         * modules/unictype/property-id-start-tests (Files): Likewise.
39067         * modules/unictype/property-ideographic-tests (Files): Likewise.
39068         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39069         * modules/unictype/property-ids-trinary-operator-tests (Files):
39070         Likewise.
39071         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39072         * modules/unictype/property-iso-control-tests (Files): Likewise.
39073         * modules/unictype/property-join-control-tests (Files): Likewise.
39074         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39075         * modules/unictype/property-line-separator-tests (Files): Likewise.
39076         * modules/unictype/property-logical-order-exception-tests (Files):
39077         Likewise.
39078         * modules/unictype/property-lowercase-tests (Files): Likewise.
39079         * modules/unictype/property-math-tests (Files): Likewise.
39080         * modules/unictype/property-non-break-tests (Files): Likewise.
39081         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39082         * modules/unictype/property-numeric-tests (Files): Likewise.
39083         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39084         * modules/unictype/property-other-default-ignorable-code-point-tests
39085         (Files): Likewise.
39086         * modules/unictype/property-other-grapheme-extend-tests (Files):
39087         Likewise.
39088         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39089         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39090         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39091         * modules/unictype/property-other-math-tests (Files): Likewise.
39092         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39093         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39094         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39095         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39096         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39097         * modules/unictype/property-private-use-tests (Files): Likewise.
39098         * modules/unictype/property-punctuation-tests (Files): Likewise.
39099         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39100         * modules/unictype/property-radical-tests (Files): Likewise.
39101         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39102         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39103         * modules/unictype/property-space-tests (Files): Likewise.
39104         * modules/unictype/property-terminal-punctuation-tests (Files):
39105         Likewise.
39106         * modules/unictype/property-test-tests (Files): Likewise.
39107         * modules/unictype/property-titlecase-tests (Files): Likewise.
39108         * modules/unictype/property-unassigned-code-value-tests (Files):
39109         Likewise.
39110         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39111         * modules/unictype/property-uppercase-tests (Files): Likewise.
39112         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39113         * modules/unictype/property-white-space-tests (Files): Likewise.
39114         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39115         * modules/unictype/property-xid-start-tests (Files): Likewise.
39116         * modules/unictype/property-zero-width-tests (Files): Likewise.
39117         * modules/unictype/scripts-tests (Files): Likewise.
39118         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39119         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39120         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39121         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39122         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39123         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39124         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39125         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39126         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39127         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39128         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39129         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39130         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39131         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39132         * modules/uninorm/composition-tests (Files): Likewise.
39133         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39134         * modules/uninorm/decomposition-tests (Files): Likewise.
39135         * modules/uninorm/filter-tests (Files): Likewise.
39136         * modules/uninorm/nfc-tests (Files): Likewise.
39137         * modules/uninorm/nfd-tests (Files): Likewise.
39138         * modules/uninorm/nfkc-tests (Files): Likewise.
39139         * modules/uninorm/nfkd-tests (Files): Likewise.
39140         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39141         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39142         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39143         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39144         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39145         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39146         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39147         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39148         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39149         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39150         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39151         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39152         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39153         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39154         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39155         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39156         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39157         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39158         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39159         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39160         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39161         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39162         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39163         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39164         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39165         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39166         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39167         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39168         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39169         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39170         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39171         * modules/uniwidth/u8-width-tests (Files): Likewise.
39172         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39173         * modules/uniwidth/u16-width-tests (Files): Likewise.
39174         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39175         * modules/uniwidth/u32-width-tests (Files): Likewise.
39176         * modules/uniwidth/width-tests (Files): Likewise.
39177         * modules/unlink-tests (Files): Likewise.
39178         * modules/unsetenv-tests (Files): Likewise.
39179         * modules/usleep-tests (Files): Likewise.
39180         * modules/utimens-tests (Files): Likewise.
39181         * modules/utimensat-tests (Files): Likewise.
39182         * modules/vasnprintf-posix-tests (Files): Likewise.
39183         * modules/vasnprintf-tests (Files): Likewise.
39184         * modules/vasprintf-posix-tests (Files): Likewise.
39185         * modules/vasprintf-tests (Files): Likewise.
39186         * modules/vdprintf-posix-tests (Files): Likewise.
39187         * modules/vfprintf-posix-tests (Files): Likewise.
39188         * modules/vprintf-posix-tests (Files): Likewise.
39189         * modules/vsnprintf-posix-tests (Files): Likewise.
39190         * modules/vsnprintf-tests (Files): Likewise.
39191         * modules/vsprintf-posix-tests (Files): Likewise.
39192         * modules/wcrtomb-tests (Files): Likewise.
39193         * modules/wcsnrtombs-tests (Files): Likewise.
39194         * modules/wcsrtombs-tests (Files): Likewise.
39195         * modules/wctype-tests (Files): Likewise.
39196         * modules/wcwidth-tests (Files): Likewise.
39197         * modules/xmemdup0-tests (Files): Likewise.
39198         * modules/xprintf-posix-tests (Files): Likewise.
39199         * modules/xvasprintf-tests (Files): Likewise.
39200
39201 2009-12-24  Eric Blake  <ebb9@byu.net>
39202
39203         test-nanosleep: fix typo
39204         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39205         patch.
39206         Reported by Bruno Haible.
39207
39208 2009-12-24  Bruno Haible  <bruno@clisp.org>
39209
39210         Reduce namespace pollution on glibc systems.
39211         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39212         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39213         systems.
39214         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39215         <getopt.h> on glibc systems.
39216         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39217         systems.
39218         * lib/fcntl.c: Include <unistd.h> here instead.
39219
39220 2009-12-24  Bruno Haible  <bruno@clisp.org>
39221
39222         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39223
39224 2009-12-24  Eric Blake  <ebb9@byu.net>
39225
39226         tests: add signature checks
39227         * tests/signature.h (SIGNATURE_CHECK): New file.
39228         * modules/atexit-tests (Files): Use it.
39229         * modules/btowc-tests (Files): Likewise.
39230         * modules/canonicalize-lgpl-tests (Files): Likewise.
39231         * modules/ceilf-tests (Files): Likewise.
39232         * modules/ceill-tests (Files): Likewise.
39233         * modules/chown-tests (Files): Likewise.
39234         * modules/dprintf-posix-tests (Files): Likewise.
39235         * modules/dup2-tests (Files): Likewise.
39236         * modules/dup3-tests (Files): Likewise.
39237         * modules/duplocale-tests (Files): Likewise.
39238         * modules/fchdir-tests (Files): Likewise.
39239         * modules/fcntl-tests (Files): Likewise.
39240         * modules/fdopendir-tests (Files): Likewise.
39241         * modules/fflush-tests (Files): Likewise.
39242         * modules/flock-tests (Files): Likewise.
39243         * modules/floorf-tests (Files): Likewise.
39244         * modules/floorl-tests (Files): Likewise.
39245         * modules/fnmatch-tests (Files): Likewise.
39246         * modules/fopen-tests (Files): Likewise.
39247         * modules/fprintf-posix-tests (Files): Likewise.
39248         * modules/freopen-tests (Files): Likewise.
39249         * modules/frexp-nolibm-tests (Files): Likewise.
39250         * modules/frexp-tests (Files): Likewise.
39251         * modules/frexpl-nolibm-tests (Files): Likewise.
39252         * modules/frexpl-tests (Files): Likewise.
39253         * modules/fseek-tests (Files): Likewise.
39254         * modules/fseeko-tests (Files): Likewise.
39255         * modules/fsync-tests (Files): Likewise.
39256         * modules/ftell-tests (Files): Likewise.
39257         * modules/ftello-tests (Files): Likewise.
39258         * modules/futimens-tests (Files): Likewise.
39259         * modules/getaddrinfo-tests (Files): Likewise.
39260         * modules/getcwd-tests (Files): Likewise.
39261         * modules/getdelim-tests (Files): Likewise.
39262         * modules/getdtablesize-tests (Files): Likewise.
39263         * modules/getgroups-tests (Files): Likewise.
39264         * modules/gethostname-tests (Files): Likewise.
39265         * modules/getline-tests (Files): Likewise.
39266         * modules/getopt-posix-tests (Files): Likewise.
39267         * modules/gettimeofday-tests (Files): Likewise.
39268         * modules/glob-tests (Files): Likewise.
39269         * modules/iconv-tests (Files): Likewise.
39270         * modules/inet_ntop-tests (Files): Likewise.
39271         * modules/inet_pton-tests (Files): Likewise.
39272         * modules/isblank-tests (Files): Likewise.
39273         * modules/lchown-tests (Files): Likewise.
39274         * modules/ldexpl-tests (Files): Likewise.
39275         * modules/link-tests (Files): Likewise.
39276         * modules/linkat-tests (Files): Likewise.
39277         * modules/lseek-tests (Files): Likewise.
39278         * modules/lstat-tests (Files): Likewise.
39279         * modules/mbrtowc-tests (Files): Likewise.
39280         * modules/mbsinit-tests (Files): Likewise.
39281         * modules/mbsnrtowcs-tests (Files): Likewise.
39282         * modules/mbsrtowcs-tests (Files): Likewise.
39283         * modules/memchr-tests (Files): Likewise.
39284         * modules/memcmp-tests (Files): Likewise.
39285         * modules/memmem-tests (Files): Likewise.
39286         * modules/memrchr-tests (Files): Likewise.
39287         * modules/mkdir-tests (Files): Likewise.
39288         * modules/mkfifo-tests (Files): Likewise.
39289         * modules/mkfifoat-tests (Files): Likewise.
39290         * modules/mknod-tests (Files): Likewise.
39291         * modules/nanosleep-tests (Files): Likewise.
39292         * modules/nl_langinfo-tests (Files): Likewise.
39293         * modules/obstack-printf-tests (Files): Likewise.
39294         * modules/open-tests (Files): Likewise.
39295         * modules/openat-tests (Files): Likewise.
39296         * modules/perror-tests (Files): Likewise.
39297         * modules/pipe2-tests (Files): Likewise.
39298         * modules/poll-tests (Files): Likewise.
39299         * modules/popen-tests (Files): Likewise.
39300         * modules/posix_spawn-tests (Files): Likewise.
39301         * modules/posix_spawnp-tests (Files): Likewise.
39302         * modules/pread-tests (Files): Likewise.
39303         * modules/printf-posix-tests (Files): Likewise.
39304         * modules/pty-tests (Files): Likewise.
39305         * modules/random_r-tests (Files): Likewise.
39306         * modules/rawmemchr-tests (Files): Likewise.
39307         * modules/readlink-tests (Files): Likewise.
39308         * modules/remove-tests (Files): Likewise.
39309         * modules/rename-tests (Files): Likewise.
39310         * modules/renameat-tests (Files): Likewise.
39311         * modules/rmdir-tests (Files): Likewise.
39312         * modules/round-tests (Files): Likewise.
39313         * modules/roundf-tests (Files): Likewise.
39314         * modules/roundl-tests (Files): Likewise.
39315         * modules/select-tests (Files): Likewise.
39316         * modules/setenv-tests (Files): Likewise.
39317         * modules/sigaction-tests (Files): Likewise.
39318         * modules/sleep-tests (Files): Likewise.
39319         * modules/snprintf-posix-tests (Files): Likewise.
39320         * modules/snprintf-tests (Files): Likewise.
39321         * modules/sprintf-posix-tests (Files): Likewise.
39322         * modules/stat-tests (Files): Likewise.
39323         * modules/strcasestr-tests (Files): Likewise.
39324         * modules/strchrnul-tests (Files): Likewise.
39325         * modules/strerror-tests (Files): Likewise.
39326         * modules/strsignal-tests (Files): Likewise.
39327         * modules/strstr-tests (Files): Likewise.
39328         * modules/strtod-tests (Files): Likewise.
39329         * modules/strverscmp-tests (Files): Likewise.
39330         * modules/symlink-tests (Files): Likewise.
39331         * modules/symlinkat-tests (Files): Likewise.
39332         * modules/times-tests (Files): Likewise.
39333         * modules/trunc-tests (Files): Likewise.
39334         * modules/truncf-tests (Files): Likewise.
39335         * modules/truncl-tests (Files): Likewise.
39336         * modules/tsearch-tests (Files): Likewise.
39337         * modules/uname-tests (Files): Likewise.
39338         * modules/unlink-tests (Files): Likewise.
39339         * modules/unsetenv-tests (Files): Likewise.
39340         * modules/usleep-tests (Files): Likewise.
39341         * modules/utimensat-tests (Files): Likewise.
39342         * modules/vasprintf-tests (Files): Likewise.
39343         * modules/vdprintf-posix-tests (Files): Likewise.
39344         * modules/vfprintf-posix-tests (Files): Likewise.
39345         * modules/vprintf-posix-tests (Files): Likewise.
39346         * modules/vsnprintf-posix-tests (Files): Likewise.
39347         * modules/vsnprintf-tests (Files): Likewise.
39348         * modules/vsprintf-posix-tests (Files): Likewise.
39349         * modules/wcrtomb-tests (Files): Likewise.
39350         * modules/wcsnrtombs-tests (Files): Likewise.
39351         * modules/wcsrtombs-tests (Files): Likewise.
39352         * modules/wcwidth-tests (Files): Likewise.
39353         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39354         * tests/test-isinf.c (isinf): Likewise.
39355         * tests/test-isnan.c (isnan): Likewise.
39356         * tests/test-signbit.c (signbit): Likewise.
39357         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39358         declaration, either as macro or with correct signature.
39359         (select): Ensure function under test is declared with correct
39360         signature in correct header.
39361         * tests/test-atexit.c (atexit): Likewise.
39362         * tests/test-btowc.c (btowc): Likewise.
39363         * tests/test-canonicalize-lgpl.c (realpath)
39364         (canonicalize_file_name): Likewise.
39365         * tests/test-ceilf1.c (ceilf): Likewise.
39366         * tests/test-ceill.c (ceill): Likewise.
39367         * tests/test-chown.c (chown): Likewise.
39368         * tests/test-dprintf-posix.c (dprintf): Likewise.
39369         * tests/test-dup2.c (dup2): Likewise.
39370         * tests/test-dup3.c (dup3): Likewise.
39371         * tests/test-duplocale.c (duplocale): Likewise.
39372         * tests/test-fchdir.c (fchdir): Likewise.
39373         * tests/test-fchownat.c (fchownat): Likewise.
39374         * tests/test-fcntl.c (fcntl): Likewise.
39375         * tests/test-fdopendir.c (fdopendir): Likewise.
39376         * tests/test-fflush.c (fflush): Likewise.
39377         * tests/test-flock.c (flock): Likewise.
39378         * tests/test-floorf1.c (floorf): Likewise.
39379         * tests/test-floorl.c (floorl): Likewise.
39380         * tests/test-fnmatch.c (fnmatch): Likewise.
39381         * tests/test-fopen.c (fopen): Likewise.
39382         * tests/test-fprintf-posix.c (fprintf): Likewise.
39383         * tests/test-freopen.c (freopen): Likewise.
39384         * tests/test-frexp.c (frexp): Likewise.
39385         * tests/test-frexpl.c (frexpl): Likewise.
39386         * tests/test-fseek.c (fseek): Likewise.
39387         * tests/test-fseeko.c (fseeko): Likewise.
39388         * tests/test-fstatat.c (fstatat): Likewise.
39389         * tests/test-fsync.c (fsync): Likewise.
39390         * tests/test-ftell.c (ftell): Likewise.
39391         * tests/test-ftello.c (ftello): Likewise.
39392         * tests/test-futimens.c (futimens): Likewise.
39393         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39394         (gai_strerror): Likewise.
39395         * tests/test-getcwd.c (getcwd): Likewise.
39396         * tests/test-getdelim.c (getdelim): Likewise.
39397         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39398         * tests/test-getgroups.c (getgroups): Likewise.
39399         * tests/test-gethostname.c (gethostname): Likewise.
39400         * tests/test-getline.c (getline): Likewise.
39401         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39402         Likewise.
39403         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39404         * tests/test-glob.c (glob, globfree): Likewise.
39405         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39406         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39407         * tests/test-inet_pton.c (inet_pton): Likewise.
39408         * tests/test-isblank.c (isblank): Likewise.
39409         * tests/test-lchown.c (lchown): Likewise.
39410         * tests/test-ldexpl.c (ldexpl): Likewise.
39411         * tests/test-link.c (link): Likewise.
39412         * tests/test-linkat.c (linkat): Likewise.
39413         * tests/test-lseek.c (lseek): Likewise.
39414         * tests/test-lstat.c (lstat): Likewise.
39415         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39416         * tests/test-mbsinit.c (mbsinit): Likewise.
39417         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39418         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39419         * tests/test-memchr.c (memchr): Likewise.
39420         * tests/test-memcmp.c (memcmp): Likewise.
39421         * tests/test-memmem.c (memmem): Likewise.
39422         * tests/test-memrchr.c (memrchr): Likewise.
39423         * tests/test-mkdir.c (mkdir): Likewise.
39424         * tests/test-mkdirat.c (mkdirat): Likewise.
39425         * tests/test-mkfifo.c (mkfifo): Likewise.
39426         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39427         * tests/test-mknod.c (mknod): Likewise.
39428         * tests/test-nanosleep.c (nanosleep): Likewise.
39429         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39430         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39431         Likewise.
39432         * tests/test-open.c (open): Likewise.
39433         * tests/test-openat.c (openat): Likewise.
39434         * tests/test-perror.c (perror): Likewise.
39435         * tests/test-pipe2.c (pipe2): Likewise.
39436         * tests/test-poll.c (poll): Likewise.
39437         * tests/test-popen.c (popen, pclose): Likewise.
39438         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39439         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39440         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39441         (posix_spawn_file_actions_destroy)
39442         (posix_spawn_file_actions_addclose)
39443         (posix_spawn_file_actions_addopen)
39444         (posix_spawn_file_actions_adddup2): Likewise.
39445         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39446         * tests/test-pread.c (pread): Likewise.
39447         * tests/test-printf-posix.c (printf): Likewise.
39448         * tests/test-pty.c (openpty, forkpty): Likewise.
39449         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39450         (random_r): Likewise.
39451         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39452         * tests/test-readlink.c (readlink): Likewise.
39453         * tests/test-remove.c (remove): Likewise.
39454         * tests/test-rename.c (rename): Likewise.
39455         * tests/test-renameat.c (renameat): Likewise.
39456         * tests/test-rmdir.c (rmdir): Likewise.
39457         * tests/test-round1.c (round): Likewise.
39458         * tests/test-roundf1.c (roundf): Likewise.
39459         * tests/test-roundl.c (roundl): Likewise.
39460         * tests/test-setenv.c (setenv): Likewise.
39461         * tests/test-sigaction.c (sigaction): Likewise.
39462         * tests/test-sleep.c (sleep): Likewise.
39463         * tests/test-snprintf.c (snprintf): Likewise.
39464         * tests/test-sprintf-posix.c (sprintf): Likewise.
39465         * tests/test-stat.c (stat): Likewise.
39466         * tests/test-stpncpy.c (stpncpy): Likewise.
39467         * tests/test-strcasestr.c (strcasestr): Likewise.
39468         * tests/test-strchrnul.c (strchrnul): Likewise.
39469         * tests/test-strerror.c (strerror): Likewise.
39470         * tests/test-strsignal.c (strsignal): Likewise.
39471         * tests/test-strstr.c (strstr): Likewise.
39472         * tests/test-strtod.c (strtod): Likewise.
39473         * tests/test-strverscmp.c (strverscmp): Likewise.
39474         * tests/test-symlink.c (symlink): Likewise.
39475         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39476         * tests/test-times.c (times): Likewise.
39477         * tests/test-trunc1.c (trunc): Likewise.
39478         * tests/test-truncf1.c (truncf): Likewise.
39479         * tests/test-truncl.c (truncl): Likewise.
39480         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39481         Likewise.
39482         * tests/test-uname.c (uname): Likewise.
39483         * tests/test-unlink.c (unlink): Likewise.
39484         * tests/test-unlinkat.c (unlinkat): Likewise.
39485         * tests/test-unsetenv.c (unsetenv): Likewise.
39486         * tests/test-usleep.c (usleep): Likewise.
39487         * tests/test-utimensat.c (utimensat): Likewise.
39488         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39489         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39490         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39491         * tests/test-vprintf-posix.c (vprintf): Likewise.
39492         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39493         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39494         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39495         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39496         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39497         * tests/test-wcwidth.c (wcwidth): Likewise.
39498
39499         build: pull in conditional headers during GNULIB_POSIXCHECK
39500         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39501         definitions from any conditionally-included headers.
39502         * lib/stdlib.in.h (includes): Likewise.
39503         * lib/unistd.in.h (includes): Likewise.
39504
39505 2009-12-24  Bruno Haible  <bruno@clisp.org>
39506
39507         * tests/test-argv-iter.c: Include header file being tested immediately
39508         after config.h.
39509         * tests/test-base64.c: Likewise.
39510         * tests/test-flock.c: Likewise.
39511         * tests/test-fsync.c: Likewise.
39512         * tests/test-getdate.c: Likewise.
39513         * tests/test-getndelim2.c: Likewise.
39514         * tests/test-isfinite.c: Likewise.
39515         * tests/test-isinf.c: Likewise.
39516         * tests/test-strerror.c: Likewise.
39517         * tests/test-strsignal.c: Likewise.
39518
39519 2009-12-23  Eric Blake  <ebb9@byu.net>
39520
39521         unistd: work around cygwin bug
39522         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39523         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39524         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39525
39526 2009-12-23  Bruno Haible  <bruno@clisp.org>
39527
39528         localename: More tests.
39529         * tests/test-localename.c (SIZEOF): New macro.
39530         (categories): New variable.
39531         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39532         test_locale_name_default): Add test w.r.t. thread locale.
39533         (test_locale_name_thread): New function.
39534         (main): Invoke it.
39535
39536         localename: Make aware of thread locale.
39537         * lib/localename.h (gl_locale_name_thread): New declaration.
39538         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39539         behaviour with respect to thread locale.
39540         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39541         <langinfo.h>, glthread/lock.h.
39542         (SIZE_BITS): New macro.
39543         (string_hash): New function.
39544         (struct hash_node): New type.
39545         (HASH_TABLE_SIZE): New macro.
39546         (struniq_hash_table, struniq_lock): New variables.
39547         (struniq): New function.
39548         (gl_locale_name_thread): New function.
39549         (gl_locale_name): Invoke it.
39550         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39551         * modules/localename (Depends-on): Add lock.
39552         Reported by Mike Gran <spk121@yahoo.com>.
39553
39554 2009-12-23  Eric Blake  <ebb9@byu.net>
39555
39556         va-args: new module
39557         * modules/va-args: New file.
39558         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39559         * MODULES.html.sh (Core language properties): Mention it.
39560
39561         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39562         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39563         named alias for __attribute__((__unused__)).
39564         * lib/chown.c: Update client.
39565         * lib/fchmodat.c: Likewise.
39566         * lib/fts.c: Likewise.
39567         * lib/getdate.y: Likewise.
39568         * lib/getgroups.c: Likewise.
39569         * lib/getopt.c: Likewise.
39570         * lib/getugroups.c: Likewise.
39571         * lib/mkdir.c: Likewise.
39572         * lib/mkfifo.c: Likewise.
39573         * lib/mkfifoat.c: Likewise.
39574         * lib/mknod.c: Likewise.
39575         * lib/mknodat.c: Likewise.
39576         * lib/readlink.c: Likewise.
39577         * lib/se-context.in.h: Likewise.
39578         * lib/se-selinux.in.h: Likewise.
39579         * lib/sockets.c: Likewise.
39580         * lib/symlink.c: Likewise.
39581         * lib/symlinkat.c: Likewise.
39582         * lib/unicodeio.c: Likewise.
39583         * lib/unistr.h: Likewise.
39584         * tests/test-areadlink.c: Likewise.
39585         * tests/test-areadlinkat.c: Likewise.
39586         * tests/test-filenamecat.c: Likewise.
39587         * tests/test-fseeko.c: Likewise.
39588         * tests/test-ftello.c: Likewise.
39589         * tests/test-getdate.c: Likewise.
39590         * tests/test-getgroups.c: Likewise.
39591         * tests/test-gethostname.c: Likewise.
39592         * tests/test-quotearg.c: Likewise.
39593         * tests/test-version-etc.c: Likewise.
39594         * tests/test-xalloc-die.c: Likewise.
39595         * tests/test-xfprintf-posix.c: Likewise.
39596         * tests/test-xprintf-posix.c: Likewise.
39597         * tests/test-xvasprintf.c: Likewise.
39598
39599         tests: avoid compiler warnings
39600         * tests/test-fcntl.c (main): Delete unused parameters.
39601         * tests/test-freopen-safer.c (main): Likewise.
39602         * tests/test-xalloc-die.c (main): Mark unused parameters.
39603         * tests/test-fseeko.c (main): Likewise.
39604         * tests/test-ftello.c (main): Likewise.
39605         * tests/test-nanosleep.c (main): Avoid declaration warning.
39606         * tests/test-sleep.c (main): Likewise.
39607         * tests/test-unsetenv.c (main): Silence warning about string
39608         literal.
39609         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
39610
39611 2009-12-23  Bruno Haible  <bruno@clisp.org>
39612
39613         * tests/test-localename.c (test_locale_name): New function, extracted
39614         from main. Also test mixed situations.
39615         (test_locale_name_posix, test_locale_name_environ,
39616         test_locale_name_default): New functions.
39617         (main): Invoke them all.
39618         * modules/localename-tests (configure.ac): Test for newlocale.
39619
39620 2009-12-23  Bruno Haible  <bruno@clisp.org>
39621
39622         unistd: Ensure getcwd gets declared before being overridden.
39623         * lib/unistd.in.h: Conditionally include <io.h>.
39624
39625 2009-12-22  Bruno Haible  <bruno@clisp.org>
39626
39627         wchar: Diagnose broken combination of glibc and gcc versions and flags.
39628         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
39629         (gl_WCHAR_H): Invoke it.
39630         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
39631         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
39632         Reported by Karl Berry <karl@freefriends.org>.
39633
39634 2009-12-22  Eric Blake  <ebb9@byu.net>
39635
39636         math, unistd: avoid redundant includes
39637         * lib/math.in.h (isnan): No need to re-include <math.h>.
39638         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
39639
39640         getsubopt: work around cygwin bug
39641         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
39642         avoid conflicting with system getsubopt.
39643         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
39644         bug.
39645
39646         getopt: synchronize from glibc
39647         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
39648         parameter order.  Adjust all callers.
39649         (_getopt_internal_r, main): Adjust quoting in error messages.
39650         Drop considerations for outdated POSIX 1003.2 error message.
39651         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
39652         callers.
39653         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
39654
39655         test-getopt: test stderr behavior
39656         * modules/getopt-posix-tests (Depends-on): Add dup2.
39657         * tests/test-getopt.c (ASSERT): Avoid stderr.
39658         (main): Move stderr to a temporary file.
39659         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
39660         Instead, add parameter to inform caller if output occurred.
39661         (test_getopt): Adjust all existing tests to expect silence, and
39662         add new tests of leading ":".
39663         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39664         glibc shortcomings with leading "-:" or "+:" in optstring.
39665         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39666         Likewise.
39667         * doc/posix-functions/getopt.texi (getopt): Likewise.
39668
39669         test-getopt: enhance test
39670         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
39671         supports optind=0.
39672         * tests/test-getopt.c (OPTIND_MIN): Move...
39673         * tests/test-getopt.h (OPTIND_MIN): ...here.
39674         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
39675         Require that optind=0 works, since modern BSD supports it in
39676         addition to optreset, and since coreutils expects it.
39677         (test_getopt_long_only): New test.
39678         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39679         glibc shortcomings with 'W;', and enforcement of optind=0.
39680         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39681         Likewise.
39682
39683 2009-12-21  Bruno Haible  <bruno@clisp.org>
39684
39685         localename: Improvements for MacOS X and Cygwin.
39686         * lib/localename.h (gl_locale_name_environ): New declaration.
39687         * lib/localename.c (gl_locale_name_environ): New function, extracted from
39688         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
39689         (gl_locale_name_posix): Invoke it.
39690         (gl_locale_name_default): Add comments. Use Windows native API also on
39691         Cygwin.
39692
39693 2009-12-21  Bruno Haible  <bruno@clisp.org>
39694
39695         Update list of Win32 locale ids.
39696         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
39697         (LANG_SAMI): Renamed from LANG_SAAMI.
39698         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
39699         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
39700         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
39701         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
39702         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
39703         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
39704         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
39705         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
39706         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
39707         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
39708         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
39709         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
39710         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
39711         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
39712         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
39713         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
39714         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
39715         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
39716         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
39717         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
39718         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
39719         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
39720         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
39721         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
39722         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
39723         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
39724         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
39725         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
39726         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
39727         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
39728         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
39729         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
39730         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
39731         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
39732         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
39733         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
39734         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
39735         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
39736         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
39737         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
39738         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
39739         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
39740         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
39741         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
39742         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
39743         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
39744         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
39745         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
39746         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
39747         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
39748         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
39749         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
39750         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
39751         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
39752         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
39753         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
39754         Add more languages and countries for Sami, Sorbian. Add more countries
39755         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
39756         for Pashto. Change country for Syriac, Tswana.
39757
39758 2009-12-21  Eric Blake  <ebb9@byu.net>
39759
39760         test-utimens: avoid spurious failure
39761         * tests/test-chown.h (nap): Factor...
39762         * tests/nap.h: ...into new file.
39763         * tests/test-lchown.h (nap): Avoid duplication.
39764         * tests/test-utimens-common.h (nap): Use shared implementation,
39765         necessary on file systems with 1-second resolution.
39766         * modules/chown-tests (Files): Include new file.
39767         * modules/fdutimensat-tests (Files): Likewise.
39768         * modules/futimens-tests (Files): Likewise.
39769         * modules/lchown-tests (Files): Likewise.
39770         * modules/openat-tests (Files): Likewise.
39771         * modules/utimens-tests (Files): Likewise.
39772         * modules/utimensat-tests (Files): Likewise.
39773
39774 2009-12-19  Eric Blake  <ebb9@byu.net>
39775
39776         futimens, utimensat: work around Linux bug
39777         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
39778         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39779         * lib/utimensat.c (rpl_utimensat): Work around it.
39780         * lib/futimens.c (rpl_futimens): Adjust comment.
39781
39782         utimens: work around Linux ctime bug
39783         * lib/utimens.c (detect_ctime_bug): New helper function.
39784         (update_timespec): Differentiate between workaround needed for
39785         this bug vs. what is needed for systems that lack utimensat.
39786         (fdutimens, lutimens): Work around bug.
39787
39788         utimens: check for ctime update
39789         * tests/test-utimens-common.h (check_ctime): Define.
39790         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
39791         * tests/test-futimens.h (test_futimens): Likewise.
39792         * tests/test-lutimens.h (test_lutimens): Likewise.
39793         * doc/posix-functions/futimens.texi (futimens): Document the bug.
39794         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39795
39796 2009-12-19  Bruno Haible  <bruno@clisp.org>
39797
39798         dprintf-posix: Check against memory leak fixed on 2009-12-15.
39799         * tests/test-dprintf-posix2.sh: New file.
39800         * tests/test-dprintf-posix2.c: New file.
39801         * modules/dprintf-posix-tests (Files): Add them.
39802         (configure.ac): Check for getrlimit and setrlimit.
39803         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39804
39805 2009-12-19  Bruno Haible  <bruno@clisp.org>
39806
39807         fprintf-posix: Check against memory leak fixed on 2009-12-15.
39808         * tests/test-fprintf-posix3.sh: New file.
39809         * tests/test-fprintf-posix3.c: New file.
39810         * modules/fprintf-posix-tests (Files): Add them.
39811         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39812
39813 2009-12-19  Eric Blake  <ebb9@byu.net>
39814
39815         dirfd: fix prototype
39816         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
39817         * lib/dirfd.c (dirfd): Likewise.
39818
39819         canonicalize: reduce memory usage
39820         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
39821         allocation to size.
39822         Reported by Solar Designer <solar@openwall.com>.
39823
39824 2009-12-19  Bruno Haible  <bruno@clisp.org>
39825
39826         New module attribute 'Applicability'.
39827         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
39828         * gnulib-tool: New option --extract-applicability.
39829         (func_usage): Document it.
39830         (sed_extract_prog): Recognize it.
39831         (func_get_applicability): New function.
39832         (func_import): Generalize handling of 'link-warning' module.
39833         * modules/link-warning (Applicability): New section.
39834         * modules/arg-nonnull (Applicability): New section.
39835         Repoted by Simon Josefsson <simon@josefsson.org>.
39836
39837 2009-12-19  Bruno Haible  <bruno@clisp.org>
39838
39839         fflush: tweak
39840         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
39841         * lib/fseeko.c (rpl_fseeko): Likewise.
39842
39843 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
39844
39845         * lib/gl_list.h: Fix typo in comment.
39846
39847 2009-12-16  Eric Blake  <ebb9@byu.net>
39848
39849         fcntl: use to simplify other modules
39850         * modules/cloexec (Depends-on): Add fcntl.
39851         * modules/fchdir (Depends-on): Likewise.
39852         * modules/fd-safer-flag (Depends-on): Likewise.
39853         * modules/unistd-safer (Depends-on): Likewise.
39854         * modules/dup3 (configure.ac): Set module indicator.
39855         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
39856         missing.
39857         * lib/fchdir.c (_gl_register_dup): Fix comment.
39858         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
39859         * lib/dup-safer.c (dup_safer): Likewise.
39860         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
39861         * lib/dup3.c (dup3): Likewise.
39862         * tests/test-fchdir.c (main): Enhance test.
39863         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
39864
39865         fcntl: port portions of fcntl to mingw
39866         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
39867         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
39868         replacement for mingw.
39869         * modules/fcntl (Description): Update.
39870         (Depends-on): Add dup2.
39871         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
39872         * modules/fcntl-h (Makefile.am): Substitute it.
39873         * lib/fcntl.in.h (fcntl): Update declaration.
39874         (F_DUPFD, F_GETFD): New macros, when needed.
39875         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39876         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
39877         * tests/test-fcntl.c (check_flags, main): Enhance test for items
39878         we now guarantee.
39879
39880         fcntl: work around cygwin bug in F_DUPFD
39881         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
39882         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
39883         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
39884         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
39885         * doc/posix-functions/fcntl.texi (fcntl): Document it.
39886
39887         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
39888         * modules/fcntl (Files): List new files.
39889         (configure.ac): Run a test.
39890         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
39891         * lib/fcntl.c (rpl_fcntl): Likewise.
39892         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
39893         (gl_FCNTL_H): Always replace fcntl.h.
39894         * modules/fcntl-h (Makefile.am): Substitute witnesses.
39895         * lib/fcntl.in.h (fcntl): Declare replacement.
39896         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
39897         needed, plus a witness.
39898         * doc/posix-functions/fcntl.texi (fcntl): Document this.
39899         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39900         * tests/test-fcntl.c: New file.
39901         * modules/fcntl-tests: Likewise.
39902
39903         binary-io: avoid potential compilation warning
39904         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
39905         directives.
39906
39907         fflush: avoid compilation error on NetBSD
39908         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
39909         between off_t and fpos_t, since the latter is sometimes a struct.
39910         * lib/fseeko.c (rpl_fseeko): Likewise.
39911         Reported by Alexander Nasonov <alnsn@yandex.ru>.
39912
39913 2009-12-15  Eric Blake  <ebb9@byu.net>
39914
39915         fcntl-h, stdio, sys_ioctl: fix declarations
39916         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
39917         function must not take arguments.
39918         * lib/sys_ioctl.in.h (ioctl): Likewise.
39919         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
39920         (open): Add a link warning.
39921
39922 2009-12-15  Jim Meyering  <meyering@redhat.com>
39923
39924         areadlink, areadlink-with-size: relax license to LGPLv2+
39925         * modules/areadlink (License): Relax to LGPLv2+.
39926         * modules/areadlink-with-size (License): Likewise.
39927
39928 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
39929             Bruno Haible  <bruno@clisp.org>
39930
39931         *printf: Fix memory leak.
39932         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
39933         * lib/vfprintf.c (vfprintf): Likewise.
39934         * lib/dprintf.c (dprintf): Likewise.
39935         * lib/vdprintf.c (vdprintf): Likewise.
39936
39937 2009-12-14  Eric Blake  <ebb9@byu.net>
39938
39939         accept4: adjust module dependencies
39940         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
39941
39942         utimens: one more try at avoiding compiler warning
39943         * lib/utimens.c (lutimens): Lower scope of result.
39944
39945 2009-12-13  Bruno Haible  <bruno@clisp.org>
39946
39947         Move the malloc checking from module 'list' to new module 'xlist'.
39948         * modules/xlist: New file.
39949         * lib/gl_xlist.h: New file.
39950         * lib/gl_xlist.c: New file.
39951         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
39952         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
39953         gl_list_add_last, gl_list_add_before, gl_list_add_after,
39954         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
39955         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
39956         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
39957         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
39958         gl_sortedlist_nx_add): New declarations.
39959         (struct gl_list_implementation): Rename and change methods accordingly.
39960         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
39961         (gl_list_nx_create): Renamed from gl_list_create.
39962         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39963         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39964         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39965         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39966         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39967         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39968         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39969         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39970         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
39971         gl_list_create_empty.
39972         (gl_list_nx_create): Renamed from gl_list_create.
39973         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39974         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39975         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39976         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39977         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39978         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39979         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39980         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39981         * lib/gl_array_list.c: Don't include xalloc.h.
39982         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
39983         NULL upon out-of-memory.
39984         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
39985         out-of-memory.
39986         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
39987         Change return type to 'int'.
39988         (gl_array_nx_set_at): Renamed from gl_array_set_at.
39989         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39990         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
39991         upon out-of-memory.
39992         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
39993         upon out-of-memory.
39994         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
39995         upon out-of-memory.
39996         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
39997         upon out-of-memory.
39998         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
39999         out-of-memory.
40000         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40001         Update.
40002         (gl_array_list_implementation): Update.
40003         * lib/gl_carray_list.c: Don't include xalloc.h.
40004         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40005         Return NULL upon out-of-memory.
40006         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40007         out-of-memory.
40008         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40009         Change return type to 'int'.
40010         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40011         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40012         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40013         upon out-of-memory.
40014         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40015         upon out-of-memory.
40016         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40017         out-of-memory.
40018         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40019         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40020         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40021         Update.
40022         (gl_carray_list_implementation): Update.
40023         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40024         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40025         gl_linked_create_empty. Return NULL upon out-of-memory.
40026         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40027         out-of-memory.
40028         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40029         Change return type to 'int'. Return -1 upon out-of-memory.
40030         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40031         out-of-memory.
40032         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40033         upon out-of-memory.
40034         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40035         upon out-of-memory.
40036         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40037         NULL upon out-of-memory.
40038         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40039         upon out-of-memory.
40040         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40041         out-of-memory.
40042         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40043         Update.
40044         * lib/gl_linked_list.c: Don't include xalloc.h.
40045         (gl_linked_list_implementation): Update.
40046         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40047         (add_to_bucket): Change return type to 'int'.
40048         (gl_linkedhash_list_implementation): Update.
40049         * lib/gl_anytree_list1.h (free_subtree): New function.
40050         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40051         gl_tree_create_empty. Return NULL upon out-of-memory.
40052         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40053         Change return type to 'int'. Return -1 upon out-of-memory.
40054         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40055         out-of-memory.
40056         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40057         (gl_tree_remove_node): New function, moved here from
40058         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40059         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40060         Update.
40061         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40062         malloc, not xmalloc. Return NULL upon out-of-memory.
40063         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40064         out-of-memory.
40065         (gl_tree_remove_node_from_tree): New function, extracted from
40066         gl_tree_remove_node.
40067         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40068         upon out-of-memory.
40069         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40070         out-of-memory.
40071         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40072         upon out-of-memory.
40073         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40074         upon out-of-memory.
40075         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40076         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40077         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_avltree_list.c: Don't include xalloc.h. Include
40092         gl_anytree_list1.h before gl_anyavltree_list2.h.
40093         (gl_avltree_list_implementation): Update.
40094         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40095         gl_anytree_list1.h before gl_anyavltree_list2.h.
40096         (gl_rbtree_list_implementation): Update.
40097         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40098         Change return type to 'int'. Return -1 upon out-of-memory. Use
40099         __builtin_expect.
40100         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40101         (gl_avltreehash_list_implementation): Update.
40102         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40103         (gl_rbtreehash_list_implementation): Update.
40104         * modules/array-list (Depends-on): Remove xalloc.
40105         * modules/carray-list (Depends-on): Likewise.
40106         * modules/linked-list (Depends-on): Likewise.
40107         * modules/linkedhash-list (Depends-on): Likewise.
40108         * modules/avltree-list (Depends-on): Likewise.
40109         * modules/rbtree-list (Depends-on): Likewise.
40110         * modules/avltreehash-list (Depends-on): Likewise.
40111         * modules/rbtreehash-list (Depends-on): Likewise.
40112
40113         * modules/xsublist: New file.
40114         * lib/gl_xsublist.h: New file.
40115         * lib/gl_xsublist.c: New file.
40116         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40117         (gl_sublist_nx_create): New declaration.
40118         * lib/gl_sublist.c: Don't include xalloc.h.
40119         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40120         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40121         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40122         Change return type to 'int'. Return -1 upon out-of-memory.
40123         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40124         upon out-of-memory.
40125         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40126         NULL upon out-of-memory.
40127         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40128         upon out-of-memory.
40129         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40130         NULL upon out-of-memory.
40131         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40132         NULL upon out-of-memory.
40133         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40134         upon out-of-memory.
40135         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40136         (gl_sublist_list_implementation): Update.
40137         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40138         upon out-of-memory.
40139         * modules/sublist (Depends-on): Remove xalloc.
40140
40141         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40142         * tests/test-carray_list.c: Likewise.
40143         * tests/test-linked_list.c: Likewise.
40144         * tests/test-linkedhash_list.c: Likewise.
40145         * tests/test-avltree_list.c: Likewise.
40146         * tests/test-rbtree_list.c: Likewise.
40147         * tests/test-avltreehash_list.c: Likewise.
40148         * tests/test-rbtreehash_list.c: Likewise.
40149         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40150         * modules/carray-list-tests (Makefile.am): Likewise.
40151         * modules/linked-list-tests (Makefile.am): Likewise.
40152         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40153         * modules/avltree-list-tests (Makefile.am): Likewise.
40154         * modules/rbtree-list-tests (Makefile.am): Likewise.
40155         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40156         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40157
40158         * NEWS: Mention the changes.
40159
40160         * lib/clean-temp.c: Include gl_xlist.h.
40161         * modules/clean-temp (Depends-on): Add xlist.
40162
40163         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40164         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40165
40166         * tests/test-array_oset.c: Include gl_xlist.h.
40167         * modules/array-oset-tests (Depends-on): Add xlist.
40168
40169         Reported by José E. Marchesi <jemarch@gnu.org>.
40170
40171 2009-12-13  Bruno Haible  <bruno@clisp.org>
40172
40173         Move the malloc checking from module 'oset' to new module 'xoset'.
40174         * modules/xoset: New file.
40175         * lib/gl_xoset.h: New file.
40176         * lib/gl_xoset.c: New file.
40177         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40178         declarations.
40179         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40180         (struct gl_oset_implementation): Rename and change methods accordingly.
40181         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40182         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40183         'int'. Mark as __warn_unused_result__.
40184         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40185         gl_oset_create_empty.
40186         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40187         'int'.
40188         * lib/gl_array_oset.c: Don't include xalloc.h.
40189         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40190         malloc, not xmalloc.
40191         (grow): Change return type to 'int'. Don't call xalloc_die.
40192         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40193         to 'int'.
40194         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40195         'int'.
40196         (gl_array_oset_implementation): Update.
40197         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40198         gl_tree_create_empty.
40199         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40200         'int'.
40201         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40202         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40203         xmalloc.
40204         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40205         not xmalloc.
40206         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40207         xmalloc.
40208         (gl_avltree_oset_implementation): Update.
40209         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40210         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40211         xmalloc.
40212         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40213         not xmalloc.
40214         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40215         xmalloc.
40216         (gl_rbtree_oset_implementation): Update.
40217         * modules/array-oset (Depends-on): Remove xalloc.
40218         * modules/avltree-oset (Depends-on): Likewise.
40219         * modules/rbtree-oset (Depends-on): Likewise.
40220         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40221         * tests/test-avltree_oset.c: Likewise.
40222         * tests/test-rbtree_oset.c: Likewise.
40223         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40224         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40225         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40226         * NEWS: Mention the change.
40227
40228 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40229
40230         maint.mk: allow a project to override release-prep commands
40231         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40232         commands into a new rule.
40233         (release-prep): New rule.
40234         (release-prep-hook): New overridable variable.
40235
40236 2009-12-13  Bruno Haible  <bruno@clisp.org>
40237
40238         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40239
40240 2009-12-13  Jim Meyering  <meyering@redhat.com>
40241
40242         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40243         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40244
40245 2009-12-12  Bruno Haible  <bruno@clisp.org>
40246
40247         duplocale: Tweak.
40248         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40249
40250 2009-12-12  Karl Berry  <karl@gnu.org>
40251
40252         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40253
40254 2009-12-12  Bruno Haible  <bruno@clisp.org>
40255
40256         * m4/po.m4: Undo incorrect untabification.
40257
40258 2009-12-12  Bruno Haible  <bruno@clisp.org>
40259
40260         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40261         * modules/c-strtod (Depends-on): Add locale.
40262         * modules/c-strtold (Depends-on): Likewise.
40263
40264 2009-12-12  Bruno Haible  <bruno@clisp.org>
40265
40266         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40267
40268 2009-12-11  Eric Blake  <ebb9@byu.net>
40269
40270         setenv: relax requirement in light of POSIX ruling
40271         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40272         not NULL.
40273         * tests/test-setenv.c (main): Relax test.
40274         * tests/test-unsetenv.c (main): Likewise.
40275         * doc/posix-functions/setenv.texi (setenv): Document this.
40276         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40277
40278 2009-12-11  Bruno Haible  <bruno@clisp.org>
40279
40280         New module 'fd-safer-flag'.
40281         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40282         * lib/dup-safer.c (dup_safer_flag): Remove function.
40283         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40284         * lib/fd-safer.c (fd_safer_flag): Remove function.
40285         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40286         * modules/cloexec (configure.ac): Drop indicator macro.
40287         * modules/fd-safer-flag: New file.
40288         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40289         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40290         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40291
40292 2009-12-11  Bruno Haible  <bruno@clisp.org>
40293
40294         Tests for module 'nl_langinfo'.
40295         * modules/nl_langinfo-tests: New file.
40296         * tests/test-nl_langinfo.sh: New file.
40297         * tests/test-nl_langinfo.c: New file.
40298
40299         New module 'nl_langinfo'.
40300         * lib/nl_langinfo.c: New file.
40301         * m4/nl_langinfo.m4: New file.
40302         * modules/nl_langinfo: New file.
40303         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40304
40305 2009-12-11  Bruno Haible  <bruno@clisp.org>
40306
40307         Tests for module 'langinfo'.
40308         * modules/langinfo-tests: New file.
40309         * tests/test-langinfo.c: New file.
40310
40311         New module 'langinfo'.
40312         * lib/langinfo.in.h: New file.
40313         * m4/langinfo_h.m4: New file.
40314         * modules/langinfo: New file.
40315         * doc/posix-headers/langinfo.texi: Mention the new module.
40316
40317 2009-12-11  Bruno Haible  <bruno@clisp.org>
40318
40319         * lib/config.charset: Untabify.
40320
40321 2009-12-11  Bruno Haible  <bruno@clisp.org>
40322
40323         * modules/unistd-safer (configure.ac): Drop indicator macro.
40324
40325 2009-12-11  Bruno Haible  <bruno@clisp.org>
40326
40327         Move pipe2-safer code to its own file.
40328         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40329         * lib/pipe-safer.c (pipe2_safer): Remove function.
40330         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40331         (Makefile.am): Add it to lib_SOURCES.
40332
40333 2009-12-10  Bruno Haible  <bruno@clisp.org>
40334
40335         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40336
40337 2009-12-10  Bruno Haible  <bruno@clisp.org>
40338
40339         Declare which arguments expect non-NULL values, for GCC and clang.
40340         * build-aux/arg-nonnull.h: New file.
40341         * modules/arg-nonnull: New file.
40342         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40343         (inet_ntop, inet_pton): Use it.
40344         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40345         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40346         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40347         (open, openat): Use it.
40348         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40349         (fnmatch): Use it.
40350         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40351         (getopt, getopt_long, getopt_long_only): Use it.
40352         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40353         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40354         Use it.
40355         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40356         (iconv_open): Use it.
40357         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40358         (strtoimax, strtoumax): Use it.
40359         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40360         (duplocale): Use it.
40361         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40362         (frexp, frexpl): Use it.
40363         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40364         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40365         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40366         (tsearch, tfind, tdelete, twalk): Use it.
40367         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40368         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40369         sigpending): Use it.
40370         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40371         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40372         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40373         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40374         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40375         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40376         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40377         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40378         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40379         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40380         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40381         Use it.
40382         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40383         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40384         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40385         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40386         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40387         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40388         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40389         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40390         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40391         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40392         strtoull, unsetenv): Use it.
40393         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40394         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40395         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40396         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40397         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40398         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40399         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40400         (strcasecmp, strncasecmp): Use it.
40401         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40402         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40403         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40404         rpl_setsockopt): Use it.
40405         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40406         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40407         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40408         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40409         (gettimeofday): Use it.
40410         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40411         (times): Use it.
40412         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40413         (uname): Use it.
40414         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40415         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40416         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40417         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40418         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40419         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40420         unlinkat, write): Use it.
40421         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40422         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40423         * lib/argv-iter.h: Include arg-nonnull.h.
40424         (_ATTRIBUTE_NONNULL_): Remove macro.
40425         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40426         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40427         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40428         optimization.
40429         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40430         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40431         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40432         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40433         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40434         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40435         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40436         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40437         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40438         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40439         * modules/dirent (Depends-on): Add arg-nonnull.
40440         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40441         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40442         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40443         * modules/fnmatch (Depends-on): Add arg-nonnull.
40444         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40445         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40446         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40447         * modules/glob (Depends-on): Add arg-nonnull.
40448         (Makefile.am): Insert arg-nonnull.h into glob.h.
40449         * modules/iconv_open (Depends-on): Add arg-nonnull.
40450         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40451         * modules/inttypes (Depends-on): Add arg-nonnull.
40452         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40453         * modules/locale (Depends-on): Add arg-nonnull.
40454         (Makefile.am): Insert arg-nonnull.h into locale.h.
40455         * modules/math (Depends-on): Add arg-nonnull.
40456         (Makefile.am): Insert arg-nonnull.h into math.h.
40457         * modules/netdb (Depends-on): Add arg-nonnull.
40458         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40459         * modules/search (Depends-on): Add arg-nonnull.
40460         (Makefile.am): Insert arg-nonnull.h into search.h.
40461         * modules/signal (Depends-on): Add arg-nonnull.
40462         (Makefile.am): Insert arg-nonnull.h into signal.h.
40463         * modules/spawn (Depends-on): Add arg-nonnull.
40464         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40465         * modules/stdio (Depends-on): Add arg-nonnull.
40466         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40467         * modules/stdlib (Depends-on): Add arg-nonnull.
40468         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40469         * modules/string (Depends-on): Add arg-nonnull.
40470         (Makefile.am): Insert arg-nonnull.h into string.h.
40471         * modules/strings (Depends-on): Add arg-nonnull.
40472         (Makefile.am): Insert arg-nonnull.h into strings.h.
40473         * modules/sys_socket (Depends-on): Add arg-nonnull.
40474         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40475         * modules/sys_stat (Depends-on): Add arg-nonnull.
40476         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40477         * modules/sys_time (Depends-on): Add arg-nonnull.
40478         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40479         * modules/sys_times (Depends-on): Add arg-nonnull.
40480         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40481         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40482         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40483         * modules/time (Depends-on): Add arg-nonnull.
40484         (Makefile.am): Insert arg-nonnull.h into time.h.
40485         * modules/unistd (Depends-on): Add arg-nonnull.
40486         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40487         * modules/wchar (Depends-on): Add arg-nonnull.
40488         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40489         * modules/argv-iter (Depends-on): Add arg-nonnull.
40490         * tests/test-canonicalize.c (null_ptr): New function.
40491         (main): Use it.
40492         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40493         (main): Use it.
40494         * tests/test-memmem.c (null_ptr): New function.
40495         (main): Use it.
40496         Reported by Jim Meyering.
40497
40498 2009-12-10  Bruno Haible  <bruno@clisp.org>
40499
40500         Use spaces for indentation, not tabs.
40501         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40502         * m4/*.m4: Untabify.
40503         * build-aux/*.h: Untabify.
40504         * tests/**/*.[hc]: Untabify.
40505         * README: New section "Indent with spaces, not TABs", based on
40506         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40507         * NEWS: Mention the change.
40508
40509 2009-12-10  Bruno Haible  <bruno@clisp.org>
40510
40511         pty test: Fix link error.
40512         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40513         test_pty_LDADD.
40514
40515 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40516
40517         * modules/pty: New file.
40518         * modules/pty-tests: New file.
40519         * m4/pty.m4: New file.
40520         * tests/test-pty.c: New file.
40521         * doc/glibc-headers/pty.texi: Modified.
40522         * doc/glibc-functions/forkpty.texi: Modified.
40523         * doc/glibc-functions/openpty.texi: Modified.
40524
40525 2009-12-10  Bruno Haible  <bruno@clisp.org>
40526
40527         Avoid syntax error in C++ mode.
40528         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40529
40530 2009-12-10  Bruno Haible  <bruno@clisp.org>
40531
40532         Use sed with option -e.
40533         * gnulib-tool (func_version, func_emit_copyright_notice,
40534         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40535         option -e to sed.
40536         * modules/link-warning (Makefile.am): Likewise.
40537
40538 2009-12-10  Jim Meyering  <meyering@redhat.com>
40539
40540         mgetgroups: do not write bytes beyond end of malloc'd buffer
40541         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40542         username, we call getgroups with a one-element-shorter buffer,
40543         but still told it the length was original, max_n_groups.
40544
40545 2009-12-09  Eric Blake  <ebb9@byu.net>
40546
40547         cloexec: relax license
40548         * modules/cloexec (Maintainer): Add myself.
40549         (License): Use LGPL, not GPL.
40550
40551         link-warning: optimize generation
40552         * modules/link-warning (Makefile.am): Reduce process usage.
40553
40554 2009-12-09  Bruno Haible  <bruno@clisp.org>
40555
40556         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40557         workaround was added on 2009-11-17.
40558
40559 2009-12-09  Jim Meyering  <meyering@redhat.com>
40560             Bruno Haible  <bruno@clisp.org>
40561
40562         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40563         * modules/link-warning (Makefile.am): Make the comment-removing sed
40564         command more robust in the face of bootstrap-prepended comment lines.
40565
40566 2009-12-09  Bruno Haible  <bruno@clisp.org>
40567
40568         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40569         most one group.
40570
40571 2009-12-09  Simon Josefsson <simon@josefsson.org>
40572             Bruno Haible  <bruno@clisp.org>
40573
40574         * build-aux/link-warning.h: Add copyright notice.
40575         * modules/link-warning (Makefile.am): Generate link-warning.h from
40576         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40577         * NEWS: Mention change in link-warning module.
40578         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40579         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40580         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40581         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40582         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40583         * modules/math (Makefile.am): Add dependency to math.h.
40584         * modules/search (Makefile.am): Add dependency to search.h.
40585         * modules/signal (Makefile.am): Add dependency to signal.h.
40586         * modules/spawn (Makefile.am): Add dependency to spawn.h.
40587         * modules/stdio (Makefile.am): Add dependency to stdio.h.
40588         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
40589         * modules/string (Makefile.am): Add dependency to string.h.
40590         * modules/strings (Makefile.am): Add dependency to strings.h.
40591         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
40592         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
40593         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
40594         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
40595         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
40596         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
40597         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
40598         * modules/unistd (Makefile.am): Add dependency to unistd.h.
40599         * modules/wchar (Makefile.am): Add dependency to wchar.h.
40600
40601 2009-12-09  Bruno Haible  <bruno@clisp.org>
40602
40603         fchdir: Optimize away rpl_fstat when possible.
40604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
40605         REPLACE_OPEN_DIRECTORY.
40606         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
40607
40608 2009-12-09  Bruno Haible  <bruno@clisp.org>
40609
40610         * lib/fchdir.c: Update comment.
40611
40612 2009-12-09  Bruno Haible  <bruno@clisp.org>
40613
40614         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
40615
40616 2009-12-08  Eric Blake  <ebb9@byu.net>
40617
40618         fchdir: avoid memory leak on re-registration.
40619         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
40620
40621 2009-12-08  Jim Meyering  <meyering@redhat.com>
40622
40623         init.sh: avoid Solaris 10 /bin/sh portability problem
40624         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
40625         sourced script:
40626           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
40627           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
40628           bar
40629         tests/init.sh relied on that, accepting a --set-path=DIR argument,
40630         and two tests used that idiom.
40631         * tests/init.sh: Update suggested usage comments.
40632         (path_prepend_): New function, to be used in place
40633         of the --src-path=DIR option.
40634         (setup_): Move PATH-prepending code into path_prepend_.
40635         * tests/test-pread.sh: Adapt to new usage.
40636         * tests/test-xalloc-die.sh: Likewise.
40637
40638 2009-12-08  Simon Josefsson  <simon@josefsson.org>
40639
40640         * doc/gnulib.texi (Glibc pty.h): Add.
40641         * doc/glibc-functions/forkpty.texi: Add.
40642         * doc/glibc-functions/openpty.texi: Add.
40643         Suggested by Bruno Haible.
40644
40645 2009-12-08  Eric Blake  <ebb9@byu.net>
40646
40647         fchdir: fix logic bugs
40648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
40649         * tests/test-fchdir.c (main): Enhance test.
40650         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
40651         is in use.
40652
40653         dup2: fix logic bugs
40654         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
40655         REPLACE_DUP2 to decide when rpl_dup2 is needed.
40656         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
40657         exists.
40658         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
40659
40660 2009-12-07  Eric Blake  <ebb9@byu.net>
40661
40662         unlink: fix m4 detection
40663         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
40664
40665         unistd-safer: add unit test
40666         * modules/unistd-safer-tests: New file.
40667         * tests/test-dup-safer.c: Likewise.
40668         * tests/test-cloexec.c (setmode): Avoid compiler warning.
40669         * tests/test-dup2.c (setmode): Likewise.
40670         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
40671
40672         cloexec: preserve text vs. binary across dup_cloexec
40673         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
40674         mode.
40675         * modules/dup2-tests (Depends-on): Add binary-io.
40676         * modules/cloexec-tests (Depends-on): Likewise.
40677         * tests/test-dup2.c (setmode, is_mode): New helpers.
40678         (main): Add tests that translation mode is preserved.
40679         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
40680         Reported by Bruno Haible.
40681
40682         mgetgroups: reduce duplicate listings
40683         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
40684         resulting array.
40685         * tests/test-chown.h (test_chown): Simplify client.
40686         * tests/test-lchown.h (test_lchown): Likewise.
40687
40688 2009-12-06  Bruno Haible  <bruno@clisp.org>
40689
40690         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
40691         value.
40692
40693 2009-12-06  Bruno Haible  <bruno@clisp.org>
40694
40695         * lib/progname.c: Include stdio.h, stdlib.h.
40696         (set_program_name): Reject a NULL argument.
40697
40698 2009-12-05  Eric Blake  <ebb9@byu.net>
40699
40700         pipe2-safer: new module
40701         * modules/pipe2-safer: New file.
40702         * lib/unistd-safer.h (pipe2_safer): New prototype.
40703         * lib/unistd--.h (pipe2): New wrapper.
40704         * lib/pipe-safer.c (pipe2_safer): New function.
40705         * modules/pipe (Depends-on): Add pipe2-safer.
40706         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
40707
40708         stdlib-safer: preserve cloexec flag for mkostemp[s]
40709         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
40710         fd_safer_flag.
40711
40712         unistd-safer: allow preservation of cloexec status via flag
40713         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
40714         prototypes.
40715         * lib/dup-safer.c (dup_safer_flag): New function.
40716         * lib/fd-safer.c (fd_safer_flag): Likewise.
40717         * modules/cloexec (configure.ac): Set witness.
40718
40719         test-dup2: enhance test
40720         * modules/dup2-tests (Depends-on): Add cloexec.
40721         * tests/test-dup2.c (main): Enhance test.
40722
40723         cloexec: add dup_cloexec
40724         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
40725         header and comments.
40726         * lib/cloexec.c (set_cloexec_flag): Add comments.
40727         (dup_cloexec): New function, with mingw implementation borrowed
40728         from...
40729         * lib/w32spawn.h (dup_noinherit): ...here.
40730         * modules/execute (Depends-on): Add cloexec.
40731         * modules/pipe (Depends-on): Likewise.
40732         * modules/cloexec (Depends-on): Add dup2.
40733         * modules/cloexec-tests (Files): New file.
40734         * tests/test-cloexec.c: Likewise.
40735
40736         test-xalloc-die: fix test for mingw
40737         * modules/xalloc-die-tests (Files): Add tests/init.sh.
40738         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
40739         directory and .exe suffix off argv[0] output.
40740
40741         test-fseeko: fix test for mingw
40742         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
40743         than undefining fseek, so test will pass on mingw.
40744
40745 2009-12-05  Bruno Haible  <bruno@clisp.org>
40746
40747         * lib/progname.h (set_program_name): Clarify specification.
40748         * lib/progname.c (set_program_name): Likewise.
40749         Reported by Jim Meyering.
40750
40751 2009-12-05  Jim Meyering  <meyering@redhat.com>
40752
40753         maint.mk: backslash-escape parens in default regexp
40754         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
40755         backslash-escape the literal parentheses.
40756
40757         maint.mk: news-date-check: use grep -E
40758         * top/maint.mk (today): Define a Make variable, not a...
40759         (news-date-check): ...shell variable.
40760         (news-date-regexp): Use the Make variable.
40761         Use grep's -E option.  Change the failing diagnostic to mention
40762         the variable, $(news-date-regexp).
40763
40764 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
40765
40766         maintainer-makefile: allow customization of NEWS entry format
40767         * top/maint.mk (news-date-regexp): New overridable variable.
40768         (news-date-check): Use it.
40769
40770 2009-12-04  Eric Blake  <ebb9@byu.net>
40771
40772         mgetgroups: add xgetgroups, and avoid ENOSYS failures
40773         * lib/mgetgroups.h (xgetgroups): New prototype.
40774         * lib/mgetgroups.c (xgetgroups): New wrapper.
40775         (mgetgroups): Handle ENOSYS.
40776         * modules/mgetgroups (Depends-on): Add realloc.
40777         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
40778
40779         mgetgroups: avoid argument promotion issues with -1
40780         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
40781         for invalid gid_t.
40782         * tests/test-chown.h (getegid, test_chown): Likewise.
40783         * tests/test-lchown.h (getegid, test_lchown): Likewise.
40784
40785 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
40786
40787         exclude: Fix header file problems.
40788         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
40789
40790 2009-12-01  Jim Meyering  <meyering@redhat.com>
40791
40792         fts: fts_open: do not let an empty string cause immediate failure
40793         This is required in support of GNU rm, for which the command
40794         "rm A '' B" must process and remove both A and B, in spite of
40795         the empty string argument.
40796         * lib/fts.c (fts_open): Do not let the presence of an empty string
40797         cause fts_open to fail immediately.  Most fts-using tools must be
40798         able to process all arguments, in order, and can be expected to
40799         diagnose such arguments themselves.
40800
40801 2009-11-30  Eric Blake  <ebb9@byu.net>
40802
40803         utimens: fix compilation error
40804         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
40805         Declare variable at right scope.
40806
40807 2009-11-29  Jim Meyering  <meyering@redhat.com>
40808
40809         bootstrap: handle perl-5.11's changed --version output
40810         * build-aux/bootstrap (get_version): Handle perl separately,
40811         since perl-5.11's --version output is different.
40812
40813 2009-11-28  Jim Meyering  <meyering@redhat.com>
40814
40815         userspec: depend on the inttostr module, too
40816         * modules/userspec (Depends-on): Add inttostr.
40817
40818         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
40819         * lib/userspec.c (parse_with_separator): Do not accept a user ID
40820         number of MAXUID when it evaluates to (uid_t) -1.
40821         Likewise for group ID.  Reported by Matt McCutchen in
40822         <http://savannah.gnu.org/bugs/?28113>
40823
40824         userspec: reformat to use spaces, not TABs
40825         * lib/userspec.c: Expand TABs to spaces.
40826         Add Emacs' "indent-tabs-mode: nil" hint.
40827
40828 2009-11-27  Eric Blake  <ebb9@byu.net>
40829
40830         getopt-gnu: flush out another BSD bug
40831         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
40832         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
40833         flush out BSD bug.
40834         * tests/test-getopt.h (test_getopt): End lists with NULL.
40835         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40836         (test_getopt_long_posix): Enhance test.
40837         * modules/getopt-posix-tests (Depends-on): Add stdbool.
40838         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
40839         getopt-gnu.
40840         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40841         Likewise.
40842
40843 2009-11-27  Simon Josefsson  <simon@josefsson.org>
40844
40845         * modules/idpriv-droptemp-tests (Notice): Fix text.
40846
40847 2009-11-27  Jim Meyering  <meyering@redhat.com>
40848
40849         test-xalloc-die: avoid spurious failure due to libtool argv difference
40850         In a libtool-enabled project, this test would fail due to a difference
40851         in the emitted program name, e.g.,
40852         -test-xalloc-die: memory exhausted
40853         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
40854         Use program to avoid that.
40855         * modules/xalloc-die-tests (Depends-on): Add progname.
40856         * tests/test-xalloc-die.c: Include progname.h".
40857         (program_name): Remove decl.
40858         (main): Call set_program_name.
40859         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
40860
40861 2009-11-26  Richard Jones  <rjones@redhat.com>
40862
40863         w32sock: leave win32 error in place.
40864         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
40865
40866 2009-11-26  Eric Blake  <ebb9@byu.net>
40867
40868         init.sh: suggest to use skip_ and fail_ functions in comments
40869         * tests/init.sh: Add a sentence.
40870
40871 2009-11-25  Bruno Haible  <bruno@clisp.org>
40872
40873         init.sh: add documentation in comments
40874         * tests/init.sh: Add some developer and user documentation.
40875
40876 2009-11-26  Jim Meyering  <meyering@redhat.com>
40877
40878         init.sh: accommodate even those who specify bogus srcdir manually
40879         * tests/init.sh: Normally, srcdir is guaranteed by automake and
40880         configure-time tests to be sanitized, so that there is no need to
40881         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
40882         (with no double quotes) suffices.  However, since tests may be
40883         invoked manually, and since you may explicitly set srcdir to the
40884         name of a directory containing spaces, do quote its uses here.
40885         * tests/test-pread.sh: Likewise.
40886         Suggested by Bruno Haible.
40887
40888         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
40889         * tests/test-pread.sh: Write no data into the pipe, because
40890         test-pread actually reads none.  This avoids a diagnostic,
40891         "bash: echo: write error: Broken pipe", that arises in the unusual
40892         event something is ignoring SIGPIPE, and might be interpreted
40893         as some sort of failure.  Reported by Bruno Haible.
40894
40895 2009-11-25  Jim Meyering  <meyering@redhat.com>
40896
40897         test-pread: cover failure with ESPIPE and EINVAL
40898         * tests/test-pread.c (main): Test for failure, too.
40899         * tests/test-pread.sh: Invoke with stdin on a pipe.
40900         Suggested by Eric Blake.
40901
40902         pread: improvement and fix
40903         * modules/pread (Depends-on): Depend on lseek, for portability to
40904         e.g., mingw.  Suggested by Eric Blake.
40905         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
40906
40907         unistd.in.h: correct declaration of pread
40908         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
40909         Reported by Richard W.M. Jones.
40910
40911         test-pread.sh: distribute the test script
40912         * modules/pread-tests (Files): Include test-pread.sh.
40913
40914         test-pread.sh: clean up
40915         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
40916         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
40917         That is unnecessary, since it's always ".".
40918         Suggestion from Eric Blake.
40919
40920         test-pread.sh: make executable
40921         * tests/test-pread.sh: Set executable bit.
40922         Reported by Eric Blake.
40923
40924         correct typo in test-pread.sh
40925         * tests/test-pread.sh: Add #! line.
40926
40927         test pread
40928         * tests/test-pread.c: New file.
40929         * tests/test-pread.sh: Likewise.
40930         * modules/pread-tests: Likewise.
40931
40932         pread: new module
40933         * modules/pread: New file.
40934         * lib/unistd.in.h (pread): Define/declare.
40935         * lib/pread.c (pread): New file.
40936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
40937         * modules/unistd (Makefile.am): Substitute witnesses.
40938         * doc/posix-functions/pread.texi (pread): Update.
40939         * MODULES.html.sh: Add pread.
40940
40941 2009-11-25  Jim Meyering  <meyering@redhat.com>
40942
40943         tests/init.sh: new file to be used via most *.sh tests
40944         * tests/init.sh: New file.
40945
40946 2009-11-25  Eric Blake  <ebb9@byu.net>
40947
40948         utimens: work around older Linux failure with symlinks
40949         * lib/utimens.c (lutimensat_works_really): New variable.
40950         (fdutimens, lutimens): Use it to manage kernels that support
40951         nanosecond times on files, but not on symlinks.
40952         Reported by OndÅ™ej Vašík.
40953
40954         utimes: fix configure grammar
40955         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
40956
40957 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
40958
40959         regex: Fix fastmap for multibyte character ranges.
40960         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
40961         characters when a multibyte character range is included.
40962
40963 2009-11-22  Andy Wingo  <wingo@pobox.com>
40964
40965         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
40966         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
40967
40968 2009-11-24  Bruno Haible  <bruno@clisp.org>
40969
40970         doc: Most *_l functions exist in MacOS X 10.5.
40971         * doc/posix-functions/duplocale.texi: Update platforms list.
40972         * doc/posix-functions/freelocale.texi: Likewise.
40973         * doc/posix-functions/newlocale.texi: Likewise.
40974         * doc/posix-functions/uselocale.texi: Likewise.
40975         * doc/posix-functions/isalnum_l.texi: Likewise.
40976         * doc/posix-functions/isalpha_l.texi: Likewise.
40977         * doc/posix-functions/isblank_l.texi: Likewise.
40978         * doc/posix-functions/iscntrl_l.texi: Likewise.
40979         * doc/posix-functions/isdigit_l.texi: Likewise.
40980         * doc/posix-functions/isgraph_l.texi: Likewise.
40981         * doc/posix-functions/islower_l.texi: Likewise.
40982         * doc/posix-functions/isprint_l.texi: Likewise.
40983         * doc/posix-functions/ispunct_l.texi: Likewise.
40984         * doc/posix-functions/isspace_l.texi: Likewise.
40985         * doc/posix-functions/isupper_l.texi: Likewise.
40986         * doc/posix-functions/iswalnum_l.texi: Likewise.
40987         * doc/posix-functions/iswalpha_l.texi: Likewise.
40988         * doc/posix-functions/iswblank_l.texi: Likewise.
40989         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40990         * doc/posix-functions/iswctype_l.texi: Likewise.
40991         * doc/posix-functions/iswdigit_l.texi: Likewise.
40992         * doc/posix-functions/iswgraph_l.texi: Likewise.
40993         * doc/posix-functions/iswlower_l.texi: Likewise.
40994         * doc/posix-functions/iswprint_l.texi: Likewise.
40995         * doc/posix-functions/iswpunct_l.texi: Likewise.
40996         * doc/posix-functions/iswspace_l.texi: Likewise.
40997         * doc/posix-functions/iswupper_l.texi: Likewise.
40998         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40999         * doc/posix-functions/isxdigit_l.texi: Likewise.
41000         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41001         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41002         * doc/posix-functions/strcoll_l.texi: Likewise.
41003         * doc/posix-functions/strfmon_l.texi: Likewise.
41004         * doc/posix-functions/strftime_l.texi: Likewise.
41005         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41006         * doc/posix-functions/strxfrm_l.texi: Likewise.
41007         * doc/posix-functions/tolower_l.texi: Likewise.
41008         * doc/posix-functions/toupper_l.texi: Likewise.
41009         * doc/posix-functions/towctrans_l.texi: Likewise.
41010         * doc/posix-functions/towlower_l.texi: Likewise.
41011         * doc/posix-functions/towupper_l.texi: Likewise.
41012         * doc/posix-functions/wcscoll_l.texi: Likewise.
41013         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41014         * doc/posix-functions/wctrans_l.texi: Likewise.
41015         * doc/posix-functions/wctype_l.texi: Likewise.
41016         * doc/glibc-functions/strptime_l.texi: Likewise.
41017         * doc/glibc-functions/strtod_l.texi: Likewise.
41018         * doc/glibc-functions/strtof_l.texi: Likewise.
41019         * doc/glibc-functions/strtol_l.texi: Likewise.
41020         * doc/glibc-functions/strtold_l.texi: Likewise.
41021         * doc/glibc-functions/strtoll_l.texi: Likewise.
41022         * doc/glibc-functions/strtoul_l.texi: Likewise.
41023         * doc/glibc-functions/strtoull_l.texi: Likewise.
41024         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41025         * doc/glibc-functions/wcstod_l.texi: Likewise.
41026         * doc/glibc-functions/wcstof_l.texi: Likewise.
41027         * doc/glibc-functions/wcstol_l.texi: Likewise.
41028         * doc/glibc-functions/wcstold_l.texi: Likewise.
41029         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41030         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41031         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41032
41033 2009-11-24  Bruno Haible  <bruno@clisp.org>
41034
41035         duplocale: Fix logic bug.
41036         * lib/duplocale.c: Don't include <langinfo.h>.
41037         (_NL_LOCALE_NAME): Remove macro.
41038         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41039         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41040
41041 2009-11-23  Jim Meyering  <meyering@redhat.com>
41042
41043         test-update-copyright: don't hard-code /usr/bin/perl
41044         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41045         perl to print the current year.  Gilles Espinasse reported that
41046         the replaced use of perl was hard-coded as /usr/bin/perl.
41047
41048 2009-11-23  Bruno Haible  <bruno@clisp.org>
41049
41050         duplocale: Add support for glibc 2.3.x.
41051         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41052
41053 2009-11-22  Bruno Haible  <bruno@clisp.org>
41054
41055         vasnprintf: Tiny optimization.
41056         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41057         MacOS X.
41058
41059 2009-11-22  Bruno Haible  <bruno@clisp.org>
41060
41061         Tests for module 'duplocale'.
41062         * modules/duplocale-tests: New file.
41063         * tests/test-duplocale.c: New file.
41064
41065         New module 'duplocale'.
41066         * m4/duplocale.m4: New file.
41067         * lib/locale.in.h (duplocale): New declaration.
41068         * lib/duplocale.c: New file.
41069         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41070         gl_LOCALE_H_DEFAULTS): New macros.
41071         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41072         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41073         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41074         REPLACE_DUPLOCALE.
41075         * modules/duplocale: New file.
41076         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41077
41078 2009-11-22  Bruno Haible  <bruno@clisp.org>
41079
41080         * modules/locale-tests (configure.ac): Test for newlocale function.
41081         * tests/test-locale.c: When the system has extended locale functions,
41082         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41083
41084         locale: Make locale_t available when possible.
41085         * lib/locale.in.h: Include <xlocale.h> when it exists.
41086         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41087         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41088         * modules/locale (Depends-on): Add extensions.
41089         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41090         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41091
41092 2009-11-22  Bruno Haible  <bruno@clisp.org>
41093
41094         Add comments.
41095         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41096         invocation.
41097         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41098         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41099         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41100
41101 2009-11-22  Bruno Haible  <bruno@clisp.org>
41102
41103         error: account for the possibility of freopen (stdout).
41104         * lib/error.c: Include <unistd.h>.
41105         (flush_stdout): New function, extracted from error and error_at_line.
41106         Determine stdout's fd dynamically.
41107         (error, error_at_line): Invoke flush_stdout.
41108         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41109         * modules/error (Depends-on): Add unistd.
41110
41111 2009-11-22  Bruno Haible  <bruno@clisp.org>
41112
41113         diffseq: Add comment.
41114         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41115
41116 2009-11-22  Jim Meyering  <meyering@redhat.com>
41117
41118         c-stack: avoid defining an unused static function
41119         * lib/c-stack.c (find_stack_direction): Do not define this function
41120         when it will not be used.
41121
41122         diffseq: avoid spurious gcc warnings
41123         * lib/diffseq.h (IF_LINT2): Define.
41124         (compareseq): Use it to initialize two members of "part".
41125         This avoids two used-uninitialized warnings.
41126
41127 2009-11-21  Jim Meyering  <meyering@redhat.com>
41128
41129         c-stack: avoid "ignoring return value of `write'" warning
41130         * lib/c-stack.c: Include "ignore-value.h".
41131         (die): Explicitly ignore each write return value.
41132         * modules/c-stack (Depends-on): Add ignore-value.
41133
41134 2009-11-21  Bruno Haible  <bruno@clisp.org>
41135
41136         diffseq: reduce scope of variable 'best'.
41137         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41138         variable, earlier used for two different purposes.
41139
41140 2009-11-21  Jim Meyering  <meyering@redhat.com>
41141
41142         diffseq: remove useless assignment to "best"
41143         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41144         assignment.  At that point "best" is already guaranteed to be zero.
41145
41146 2009-11-20  Eric Blake  <ebb9@byu.net>
41147
41148         build: mention ftp redirector in release announcements
41149         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41150         values that used to come from cfg.mk; mention FTP redirect URL.
41151         * build-aux/announce-gen: Mention the mirror list.
41152         Suggested by Karl Berry.
41153
41154         nanosleep: improve port to mingw
41155         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41156         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41157         LIB_NANOSLEEP, but only when needed.
41158         * modules/select (Link): Document LIBSOCKET.
41159         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41160         enough.
41161
41162         nanosleep: work around cygwin bug
41163         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41164         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41165         bug.
41166         (getnow): Delete, not needed.
41167         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41168         LIB_CLOCK_GETTIME.
41169         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41170         clock-time, gettime.
41171         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41172         bug.
41173         * modules/nanosleep-tests: New test.
41174         * tests/test-nanosleep.c: New file.
41175
41176         sleep: work around cygwin bug
41177         * lib/sleep.c (rpl_sleep): Work around the bug.
41178         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41179         (gl_PREREQ_SLEEP): Delete unused macro.
41180         * modules/sleep (Depends-on): Add verify.
41181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41182         * modules/unistd (Makefile.am): Substitute witness.
41183         * lib/unistd.in.h (sleep): Update prototype.
41184         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41185         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41186         * modules/sleep-tests (Depends-on): Check for alarm.
41187
41188 2009-11-20  Jim Meyering  <meyering@redhat.com>
41189
41190         maint.mk: improve sc_prohibit_magic_number_exit
41191         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41192         so it does not match uses like System.exit(1).
41193         Add comments showing how to correct all offenders.
41194
41195 2009-11-19  Eric Blake  <ebb9@byu.net>
41196
41197         xalloc-die-tests: add missing library
41198         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41199
41200         test-xvasprintf: silence compiler warnings
41201         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41202         empty string from gcc.
41203
41204 2009-11-19  Jim Meyering  <meyering@redhat.com>
41205
41206         xfreopen: new module, from coreutils
41207         * modules/xfreopen: New module.
41208         * lib/xfreopen.c: New file.
41209         * lib/xfreopen.h: New file.
41210         * MODULES.html.sh (File stream based Input/Output"): Add it.
41211
41212 2009-11-19  Eric Blake  <ebb9@byu.net>
41213
41214         manywarnings: depend on warnings
41215         * modules/manywarnings (Depends-on): Add warnings.
41216
41217         build: avoid compiler warnings
41218         * lib/select.c (rpl_select): Delete unused variable.
41219         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41220
41221 2009-11-18  Eric Blake  <ebb9@byu.net>
41222
41223         tests: avoid false negative with --with-packager
41224         * tests/test-version-etc.sh: Discard packager information.
41225         * tests/test-argp-version-etc-1.sh: Likewise.
41226         Reported by Mike Frysinger.
41227
41228         utimens: fix regression on Solaris
41229         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41230         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41231         can only change fd timestamps via futimesat.  Instead, use an
41232         additional witness macro to avoid BSD bug.
41233         Reported by Jim Meyering.
41234
41235 2009-11-17  Eric Blake  <ebb9@byu.net>
41236
41237         usleep: use it to simplify tests
41238         * modules/stat-time-tests (Depends-on): Add usleep.
41239         (configure.ac): Drop usleep check.
41240         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41241         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41242         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41243         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41244         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41245         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41246         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41247         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41248         Likewise.
41249         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41250         * tests/test-lchown.h (nap): Likewise.
41251         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41252         * tests/test-stat-time.c (nap): Likewise.
41253         * tests/test-utimens-common.h (nap): Update comments.
41254
41255         usleep: new module
41256         * modules/usleep: New file.
41257         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41258         * lib/usleep.c (usleep): Likewise.
41259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41260         * modules/unistd (Makefile.am): Substitute witnesses.
41261         * lib/unistd.in.h (usleep): Add declaration.
41262         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41263         * MODULES.html.sh (Date and time): Likewise.
41264         * modules/usleep-tests (Depends-on): New test.
41265         * tests/test-usleep.c: New file.
41266
41267         chown: work around OpenBSD bug
41268         * lib/chown.c (rpl_chown): Work around the bug.
41269         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41270         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41271         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41272         * modules/chown (Depends-on): Add stdbool.
41273         * modules/lchown (Depends-on): Likewise.
41274         * doc/posix-functions/chown.texi (chown): Document the bug.
41275         * doc/posix-functions/lchown.texi (lchown): Likewise.
41276         * tests/test-lchown.h (test_chown): Relax test.
41277
41278         mkstemp: avoid conflict with C++ keyword template
41279         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41280         * lib/mkostemp.c (mkostemp): Likewise.
41281         * lib/mkostemps.c (mkostemps): Likewise.
41282         * lib/mkstemp.c (mkstemp): Likewise.
41283         * lib/mkstemps.c (mkstemps): Likewise.
41284
41285         xalloc-die-tests: optimize
41286         * tests/test-xalloc-die.sh: Reduce number of processes.
41287
41288 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41289
41290         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41291         patch from ludo@gnu.org (Ludovic Courtès).
41292
41293 2009-11-17  Jim Meyering  <meyering@redhat.com>
41294
41295         version-etc: use proper license string
41296         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41297         * modules/version-etc-fsf: Likewise.
41298
41299 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41300
41301         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41302         printed to stdout.  Deal with EOL differences.
41303
41304 2009-11-17  Eric Blake  <ebb9@byu.net>
41305
41306         unsetenv: work around Solaris bug
41307         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41308         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41309         Reported by Jim Meyering.
41310
41311         vasnprintf: avoid compiler warnings
41312         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41313         variables.
41314         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41315
41316 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41317
41318         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41319         settings since xalloc-die is no longer the self test,
41320         xalloc-die.sh is.
41321
41322 2009-11-17  Jim Meyering  <meyering@redhat.com>
41323
41324         test-xalloc-die.sh: make the code agree with the commit log
41325         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41326         at the end, just in case you happen to have a test-xalloc-die
41327         program in some other PATH directory.
41328
41329         test-xalloc-die.sh: fix a portability bug
41330         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41331         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41332         Otherwise, argv[0] (as often seen in diagnostics) would be too
41333         system-dependent, sometimes with, and sometimes without the leading "./".
41334
41335         version-etc-fsf: relax license to LGPLv3+
41336         * modules/version-etc-fsf (License): Relax license.
41337
41338 2009-11-16  Eric Blake  <ebb9@byu.net>
41339
41340         xalloc-die-tests: avoid printing null pointer
41341         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41342         shell script.
41343         * tests/test-xalloc-die.c (program_name): Declare.
41344         * tests/test-xalloc-die.sh (tmpfiles): New file.
41345
41346         setenv, unsetenv: work around various bugs
41347         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41348         (setenv) [HAVE_SETENV]: Work around bugs.
41349         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41350         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41351         for bugs.
41352         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41353         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41355         * modules/stdlib (Makefile.am): Update substitutions.
41356         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41357         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41358         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41359         * modules/setenv-tests: New test.
41360         * modules/unsetenv-tests: Likewise.
41361         * tests/test-setenv.c: New file.
41362         * tests/test-unsetenv.c: Likewise.
41363
41364 2009-11-16  Jim Meyering  <meyering@redhat.com>
41365
41366         version-etc: relax license to LGPLv3+
41367         * modules/version-etc (License): Relax license.
41368
41369         better AC_REQUIRE expanded-before-required-warning avoidance
41370         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41371         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41372         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41373         which is no longer needed.
41374
41375 2009-11-16  Eric Blake  <ebb9@byu.net>
41376
41377         test-freading: clean up temporary file
41378         * tests/test-freading.c (main): Remove file on success, and use
41379         ASSERT more liberally.
41380         Reported by Jim Meyering.
41381
41382 2009-11-16  Jim Meyering  <meyering@redhat.com>
41383
41384         avoid new AC_REQUIRE expanded-before-required warnings
41385         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41386         merely using it.
41387         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41388         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41389
41390 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41391
41392         * tests/test-xalloc-die.c: New file.
41393         * modules/xalloc-die-tests: New file.
41394         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41395         XFAIL_TESTS so it can be appended by modules.
41396
41397 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41398
41399         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41400         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41401
41402 2009-11-14  Eric Blake  <ebb9@byu.net>
41403
41404         fnmatch: avoid compiler warning
41405         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41406         to silence compiler warning about mismatch signedness in ?:.
41407         Reported by Robert Millan.
41408
41409         intprops: add double-inclusion guard
41410         * lib/intprops.h: Allow idempotent includes.
41411         Suggested by Bruce Korb.
41412
41413         openat: detect Solaris fchownat bug
41414         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41415         penalizing glibc chownat when only lchownat is broken.
41416         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41417         trailing slash bugs.
41418         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41419         * modules/openat-tests (Files): Include more files.
41420         (Depends-on): Add mgetgroups, sleep, stat-time.
41421         (configure.ac): Add additional checks.
41422         (Makefile.am): Build new test.
41423         * tests/test-fchownat.c: New file.
41424
41425         lchown: detect Solaris and FreeBSD bug
41426         * lib/lchown.c (rpl_lchown): Work around bug.
41427         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41429         * modules/unistd (Makefile.am): Populate it.
41430         * lib/unistd.in.h (lchown): Update declaration.
41431         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41432         * modules/lchown-tests: New file.
41433         * tests/test-lchown.h (test_lchown): Likewise.
41434         * tests/test-lchown.c (main): Likewise.
41435
41436         chown: detect Solaris and FreeBSD bug
41437         * lib/chown.c (rpl_chown): Work around bug.
41438         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41439         (gl_PREREQ_CHOWN): Delete.
41440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41441         * modules/unistd (Makefile.am): Populate it.
41442         * lib/unistd.in.h (chown): Update declaration.
41443         * lib/lchown.c (chown): Update client.
41444         * modules/lchown (Depends-on): Add lstat.
41445         * doc/posix-functions/chown.texi (chown): Document the bug.
41446         * doc/posix-functions/getgroups.texi (getgroups): Document
41447         getgroups pitfall.
41448         * modules/chown-tests: New file.
41449         * tests/test-chown.h (test_chown): Likewise.
41450         * tests/test-chown.c (main): Likewise.
41451
41452 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41453
41454         gnulib-tool: correctly detect absence of m4 directories
41455         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41456
41457 2009-11-14  Jim Meyering  <meyering@redhat.com>
41458
41459         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41460         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41461
41462 2009-11-14  John W. Eaton  <jwe@gnu.org>
41463
41464         strftime.h: wrap function declaration in extern "C" block
41465         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41466
41467 2009-11-13  Eric Blake  <ebb9@byu.net>
41468
41469         getgroups: avoid compiler warning
41470         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41471
41472         getgroups: work around FreeBSD bug
41473         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41474         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41475         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41476         * tests/test-getgroups.c (main): Fix buffer overrun.
41477
41478         getgroups: avoid compilation failure
41479         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41480         * modules/getgroups (Depends-on): Add stdint.
41481
41482 2009-11-13  Jim Meyering  <meyering@redhat.com>
41483
41484         test-getgroups: avoid compilation failure
41485         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41486
41487 2009-11-13  Eric Blake  <ebb9@byu.net>
41488
41489         mgetgroups: new module, taken from coreutils
41490         * modules/mgetgroups: New file.
41491         * lib/mgetgroups.h: Likewise.
41492         * lib/mgetgroups.c (mgetgroups): Likewise.
41493         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41494         * MODULES.html.sh (Users and groups): Mention it.
41495
41496         getgroups: don't expose GETGROUPS_T to user
41497         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41498         an element at a time if GETGROUPS_T is wrong size.
41499         * lib/getugroups.h (getugroups): Change signature.
41500         * lib/unistd.in.h (getgroups): Likewise.
41501         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41502         signature needs fixing.
41503         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41504         AC_TYPE_GETGROUPS.
41505         * modules/group-member (Depends-on): Add getgroups.
41506         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41507         (group_member): Rely on getgroups replacement.
41508         * lib/getugroups.c (getugroups): Use gid_t.
41509         * tests/test-getgroups.c (main): Likewise.
41510         * NEWS: Mention the signature change.
41511         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41512         problem with signature.
41513         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41514         GETGROUPS_T is still useful for setgroups.
41515
41516         getgroups, getugroups: provide stubs for mingw
41517         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41518         * lib/getugroups.c (getugroups): Likewise.
41519         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41520         function.  Modernize replacement scheme.
41521         (gl_PREREQ_GETGROUPS): Delete.
41522         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41523         * modules/getgroups (configure.ac): Declare witness.
41524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41525         * modules/unistd (Depends-on): Substitute witness.
41526         * lib/unistd.in.h (getgroups): Declare replacement.
41527
41528         getgroups: avoid calling exit
41529         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41530         drop xalloc.
41531         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41532         dependencies.
41533         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41534         exiting, in the rare case of malloc failure.
41535
41536         getgroups: fix logic error
41537         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41538         has more than 20 groups.
41539         * modules/getgroups-tests: New test.
41540         * tests/test-getgroups.c: New file.
41541
41542 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41543
41544         * tests/test-base64.c: Improve.
41545
41546 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41547
41548         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41549         Blake <ebb9@byu.net>.
41550
41551 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41552
41553         * tests/test-xvasprintf.c: Add %s%s related checks.
41554
41555 2009-11-12  Eric Blake  <ebb9@byu.net>
41556
41557         version-etc: match standards.texi style
41558         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41559         and use <> only for URLs.
41560
41561 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41562
41563         fts: do not fail on a submount during traversal
41564         * lib/fts.c (fts_build): Read the stat info again after opening
41565         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41566         Original report at http://bugzilla.redhat.com/501848.
41567
41568 2009-11-12  Jim Meyering  <meyering@redhat.com>
41569
41570         bootstrap: sync from coreutils
41571         * build-aux/bootstrap (bootstrap_epilogue): New function.
41572         Use git_modules_config in one more place.  This make bootstrap's
41573         --gnulib-srcdir option more useful for testing.
41574
41575         bootstrap: generalize autoheader check
41576         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41577         AC_CONFIG_HEADERS.
41578
41579 2009-11-11  Eric Blake  <ebb9@byu.net>
41580
41581         mkfifoat: use new modules for Solaris and BSD bugs
41582         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41583         * lib/mkfifoat.c (mknodat): Split...
41584         * lib/mknodat.c (mknodat): ...into new file.
41585         * modules/mkfifoat (Files): Ship new file.
41586         (Depends-on): Add mkfifo, mknod.
41587         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
41588         (Depends-on): Add symlink.
41589         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
41590         redundant with test_mkfifo.h.
41591         (do_mkfifoat, do_mknodat): New helpers.
41592
41593         mknod: new module
41594         * modules/mknod: New file.
41595         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
41596         * lib/mknod.c (mknod): Likewise.
41597         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41598         defaults.
41599         * modules/sys_stat (Makefile.am): Substitute them.
41600         * lib/sys_stat.in.h (mknod): Declare replacement.
41601         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41602         Document it.
41603         * doc/posix-functions/mknod.texi (mknod): Likewise.
41604         * modules/mknod-tests: New test.
41605         * tests/test-mknod.c: Likewise.
41606
41607         mkfifo: new module
41608         * modules/mkfifo: New file.
41609         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41610         * lib/mkfifo.c (mkfifo): Likewise.
41611         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41612         defaults.
41613         * modules/sys_stat (Makefile.am): Substitute them.
41614         * lib/sys_stat.in.h (mkfifo): Declare replacement.
41615         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41616         Document it.
41617         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
41618         * modules/mkfifo-tests: New test.
41619         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
41620         from test-mkfifoat.c.
41621         * tests/test-mkfifo.c: New file.
41622
41623         readlink: detect FreeBSD bug
41624         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
41625         slash on symlink.
41626         * doc/posix-functions/readlink.texi (readlink): Document the bug.
41627         * tests/test-readlink.h (test_readlink): Enhance test.
41628
41629         symlink: detect FreeBSD bug
41630         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
41631         slash on symlink.
41632         * doc/posix-functions/symlink.texi (symlink): Document the bug.
41633         * tests/test-symlink.h (test_symlink): Enhance test.
41634
41635 2009-11-10  Eric Blake  <ebb9@byu.net>
41636
41637         link: detect FreeBSD bug
41638         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
41639         symlink.
41640         * doc/posix-functions/link.texi (link): Document the bug.
41641         * tests/test-link.h (test_link): Enhance test.
41642         * tests/test-linkat.c (main): Update caller.
41643
41644         unlink, remove: detect FreeBSD bug
41645         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
41646         slash on symlink.
41647         * doc/posix-functions/unlink.texi (unlink): Document the bug.
41648         * doc/posix-functions/remove.texi (remove): Likewise.
41649         * tests/test-unlink.h (test_unlink): Enhance test.
41650         * tests/test-remove.c (main): Likewise.
41651
41652 2009-11-09  Eric Blake  <ebb9@byu.net>
41653
41654         rename: detect FreeBSD bug
41655         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
41656         slash on symlink.
41657         * modules/renameat-tests (Depends-on): Add filenamecat.
41658         * tests/test-rename.h (test_rename): Allow one more errno.
41659         * tests/test-renameat.c (main): Likewise.
41660         * doc/posix-functions/rename.texi (rename): Document the bug.
41661
41662         open: detect FreeBSD bug
41663         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
41664         symlink.
41665         * doc/posix-functions/open.texi (open): Document the bug.
41666         * doc/posix-functions/utimes.texi (utimes): Likewise.
41667         * tests/test-open.h (test_open): Add parameters, and test symlink
41668         handling.
41669         * tests/test-open.c (main): Adjust caller.
41670         * tests/test-fcntl-safer.c (main): Likewise.
41671         * modules/open-tests (Depends-on): Add stdbool, symlink.
41672         * modules/fcntl-safer-tests (Depends-on): Likewise.
41673         * tests/test-openat.c (main): Add test-open tests.
41674
41675         stat: detect FreeBSD bug
41676         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
41677         symlink.
41678         * doc/posix-functions/stat.texi (stat): Document the bug.
41679         * tests/test-stat.h (test_stat_func): Add argument.
41680         * tests/test-stat.c (main): Adjust caller.
41681         * tests/test-fstatat.c (main): Likewise.
41682         * modules/stat-tests (Depends-on): Add stdbool, symlink.
41683         Reported by Jim Meyering.
41684
41685 2009-11-09  James Youngman  <jay@gnu.org>
41686
41687         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
41688         * lib/strftime.c: Correct placement of #include "ignore-value.h".
41689
41690 2009-11-08  Jim Meyering  <meyering@redhat.com>
41691
41692         utimens: remove invalid futimesat call
41693         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
41694         It used the file descriptor of the target file as the DIR_FD
41695         parameter and NULL as the file name.  That caused failure with
41696         errno == EFAULT on FreeBSD-8.0-rc2
41697
41698 2009-11-07  Eric Blake  <ebb9@byu.net>
41699
41700         fflush, freadseek: use fseeko, not fseek
41701         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
41702         (clear_ungetc_buffer): Avoid potential problems on large files.
41703         * lib/freadseek.c (freadseek): Likewise.
41704         * modules/freadseek (Depends-on): Add fseeko.
41705         * modules/fseek (configure.ac): Set a witness.
41706         * tests/test-fflush.c (main): Use fseeko.
41707         * tests/test-fpurge.c (fseek): Disable link warning.
41708         * tests/test-freadable.c (fseek): Likewise.
41709         * tests/test-freading.c (fseek): Likewise.
41710         * tests/test-fseeko.c (fseek): Likewise.
41711         * tests/test-ftell.c (fseek): Likewise.
41712         * tests/test-ftello.c (fseek): Likewise.
41713         * tests/test-fwritable.c (fseek): Likewise.
41714         * tests/test-fwriting.c (fseek): Likewise.
41715
41716 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41717
41718         * modules/memchr (Depends-on): Drop getpagesize dependency.
41719
41720 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41721
41722         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
41723         Reported by Ludovic Courtès.
41724         * build-aux/pmccabe2html: Improve example usage.
41725         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
41726
41727 2009-11-06  Jim Meyering  <meyering@redhat.com>
41728
41729         do-release-commit-and-tag: New module.
41730         Automate the release-commit and tag process.
41731         * build-aux/do-release-commit-and-tag: New script, from coreutils.
41732         * modules/do-release-commit-and-tag: New file.
41733         * MODULES.html.sh (Support for maintaining and releasing): Add it.
41734
41735 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41736
41737         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
41738         because test-select.c uses inet_pton.
41739
41740 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41741
41742         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
41743         GETADDRINFO_LIB.  Bump serial number.
41744         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
41745         Suggested by Eric Blake <ebb9@byu.net>.
41746
41747 2009-11-05  Eric Blake  <ebb9@byu.net>
41748
41749         strtod: detect darwin bug
41750         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
41751         Reported by Leo Davis.
41752
41753         freopen-safer: new module
41754         * modules/freopen-safer: New module.
41755         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
41756         * lib/freopen-safer.c (freopen_safer): New file.
41757         * lib/stdio-safer.h (freopen_safer): New declaration.
41758         * lib/stdio--.h (freopen): New override.
41759         * MODULES.html.sh (File stream based Input/Output): Mention it.
41760         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
41761         freopen-safer module.
41762         * doc/posix-functions/stderr.texi (stderr): Likewise.
41763         * doc/posix-functions/stdin.texi (stdin): Likewise.
41764         * doc/posix-functions/stdout.texi (stdout): Likewise.
41765         * modules/freopen-safer-tests: New test.
41766         * tests/test-reopen-safer.c: New file.
41767
41768 2009-11-05  Jim Meyering  <meyering@redhat.com>
41769
41770         maint.mk: Prohibit inclusion of "close-stream.h" without use.
41771         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41772
41773 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41774
41775         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
41776
41777 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41778
41779         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
41780
41781 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41782
41783         Fix link error.
41784         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41785         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41786
41787 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41788
41789         * tests/test-func.c: Also test value of __func__.
41790
41791 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41792
41793         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
41794         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
41795
41796 2009-11-05  Bruno Haible  <bruno@clisp.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         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
41802
41803 2009-11-05  Bruno Haible  <bruno@clisp.org>
41804
41805         Tests for module 'inet_pton'.
41806         * modules/inet_pton-tests: New file.
41807         * tests/test-inet_pton.c: New file.
41808
41809 2009-11-05  Bruno Haible  <bruno@clisp.org>
41810
41811         Tests for module 'inet_ntop'.
41812         * modules/inet_ntop-tests: New file.
41813         * tests/test-inet_ntop.c: New file.
41814
41815 2009-11-04  Eric Blake  <ebb9@byu.net>
41816
41817         stdlib-safer: wrap all mkstemp variants
41818         * modules/mkostemp (configure.ac): Set witness.
41819         * modules/mkostemps (configure.ac): Likewise.
41820         * modules/mkstemps (configure.ac): Likewise.
41821         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
41822         (mkstemps_safer): Wrap more functions.
41823         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
41824         wrapping.
41825         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
41826         (mkstemps_safer): Implement the wrappers.
41827
41828         mkstemps, mkostemps: new modules
41829         * modules/mkostemps: New module.
41830         * modules/mkstemps: Likewise.
41831         * lib/mkostemps.c (mkostemps): New file.
41832         * lib/mkstemps.c (mkstemps): Likewise.
41833         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
41834         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
41835         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
41836         * modules/stdlib (Makefile.am): Substitute them.
41837         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
41838         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
41839         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
41840         * doc/gnulib.texi (Glibc stdlib.h): Include them.
41841         * MODULES.html.sh (File system functions): Mention them.
41842
41843         tempname: resync from glibc
41844         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
41845         same values for __GT_FILE as glibc.  Abort even when assertions
41846         are disabled.
41847         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
41848         match its value otherwise.  Allow idempotent inclusion.
41849         * lib/mkdtemp.c (mkdtemp): Adjust caller.
41850         * lib/mkostemp.c (mkostemp): Likewise.
41851         * lib/mkstemp.c (mkstemp): Likewise.
41852         * lib/tmpfile.c (tmpfile): Likewise.
41853         * NEWS: Document this.
41854
41855         utimens: fix use of futimens on older Linux
41856         * lib/utimens.c (fdutimens): Use updated, rather than original,
41857         timespec to avoid bug in older Linux kernel.
41858         Reported by Simon Josefsson.
41859
41860 2009-11-04  Bruno Haible  <bruno@clisp.org>
41861
41862         Make num_processors more flexible and consistent.
41863         * lib/nproc.h (enum nproc_query): New type.
41864         (num_processors): Add a 'query' argument.
41865         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
41866         (num_processors): Add a 'query' argument. Test the value of the
41867         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
41868         mingw, count the number of CPUs available for the current process.
41869         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
41870         Check for sched_getaffinity and sched_getaffinity_np.
41871         * modules/nproc (Depends-on): Add c-ctype, extensions.
41872         * NEWS: Mention the change.
41873
41874 2009-11-03  Bruno Haible  <bruno@clisp.org>
41875
41876         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
41877
41878 2009-11-03  Jim Meyering  <meyering@redhat.com>
41879
41880         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
41881         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
41882         if it is defined.
41883
41884 2009-11-02  Eric Blake  <ebb9@byu.net>
41885
41886         mktime, timegm: share common declaration
41887         * lib/mktime-internal.h: New file.
41888         * lib/mktime.c: Use it rather than open-coding a declaration.
41889         * lib/timegm.c: Likewise.
41890         * modules/mktime (Files): Ship it.
41891         * modules/timegm (Files): Likewise.
41892         Suggested by Bruno Haible.
41893
41894         test-update-copyright: update test to match script changes
41895         * tests/test-update-copyright.sh: Avoid hard-coding perl
41896         location.  Don't update *.bak created by earlier runs.
41897
41898 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41899             Simon Josefsson  <simon@josefsson.org>
41900             Bruno Haible  <bruno@clisp.org>
41901
41902         Fix link error on Solaris 8.
41903         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
41904         also in libnsl. Define also INET_PTON_LIB.
41905         * modules/inet_pton (Link): New section.
41906
41907 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41908             Bruno Haible  <bruno@clisp.org>
41909
41910         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
41911         * modules/inet_ntop (Link): New section.
41912         Reported by Boyan Kasarov <bkasarov@gmail.com>.
41913
41914 2009-11-02  Eric Blake  <ebb9@byu.net>
41915
41916         maint: avoid compiler warnings in m4 macros
41917         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
41918         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
41919
41920 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41921
41922         * m4/pmccabe2html.m4: Remove file.
41923         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
41924         function.  Change maintainer.
41925         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
41926         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
41927         Courtès).
41928
41929 2009-10-31  Eric Blake  <ebb9@byu.net>
41930
41931         fseeko: fix m4 regression
41932         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
41933         regression from 2009-10-27.
41934         Reported by Ralf Wildenhues.
41935
41936 2009-10-31  Jim Meyering  <meyering@redhat.com>
41937
41938         inttostr: aesthetics and improved (compile-time) safety
41939         Define inttype_is_signed rather than inttype_is_unsigned,
41940         since the sole use is via "#if inttype_is_signed".
41941         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
41942         inttype_is_unsigned.
41943         * lib/offtostr.c (inttype_is_signed): Likewise.
41944         * lib/uinttostr.c (inttype_is_signed): Likewise.
41945         * lib/umaxtostr.c (inttype_is_signed): Likewise.
41946         * lib/inttostr.c (inttostr): Use verify to cross-check the
41947         inttype_is_signed value and the signedness of the actual type.
41948         * modules/inttostr (Depends-on): Add verify.
41949
41950 2009-10-30  Eric Blake  <ebb9@byu.net>
41951
41952         build: avoid compiler warnings
41953         * lib/fchmodat.c (lchmod): Mark unused variables.
41954         * lib/getopt.c (_getopt_initialize): Likewise.
41955         * lib/mktime.c (__mktime_internal): Provide prototype.
41956         * lib/inttostr.c (inttostr): Avoid compiler warning even with
41957         older gcc that do not understand #pragma GCC diagnostic.
41958         * lib/uinttostr.c (inttype_is_unsigned): Define.
41959         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
41960
41961 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
41962
41963         stat: fix compilation on AIX
41964         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
41965         only see struct stat64.
41966
41967 2009-10-30  Eric Blake  <ebb9@byu.net>
41968
41969         exclude: make more robust
41970         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
41971         rather than masking a coding bug.
41972         Suggested by Bruno Haible.
41973
41974 2009-10-30  Jim Meyering  <meyering@redhat.com>
41975
41976         perl scripts: remove #!/usr/bin/perl in favor of more portable...
41977         Rather than putting #!/usr/bin/perl on the first line,
41978         start with a variant of what's recommended by "man perlrun" that
41979         invokes the first "perl" program from your shell's search path.
41980         * build-aux/gitlog-to-changelog: Replace #!... as above.
41981         Add a "Local Variables" perl mode setting.
41982         Prompted by a patch from Ludovic Courtès.
41983         Improved by Eric Blake.
41984         * build-aux/useless-if-before-free: Likewise.
41985         * build-aux/announce-gen: Likewise.
41986         * build-aux/update-copyright: Likewise.
41987
41988 2009-10-29  Eric Blake  <ebb9@byu.net>
41989
41990         filenamecat-lgpl: adjust clients
41991         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
41992         filenamecat.
41993         * modules/renameat (Depends-on): Likewise.
41994
41995         filenamecat: split into filenamecat-lgpl
41996         * modules/filenamecat-lgpl: New module.
41997         * modules/filenamecat (Files): Move library-safe files into
41998         filenamecat-lgpl.
41999         (Depends-on): Add filenamecat-lgpl.
42000         (configure.ac): Declare witness.
42001         * lib/filenamecat.h (file_name_concat): Only declare when using
42002         GPL module.
42003         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42004         Move...
42005         * lib/filenamecat-lgpl.c: ...into new file.
42006         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42007         (gl_FILE_NAME_CONCAT): Use it.
42008         * MODULES.html.sh (File system functions): Mention new module.
42009
42010         argp: avoid memory leak
42011         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42012         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42013         base_name, since the latter malloc()s and can call exit().
42014         Leak introduced 2006-07-03.
42015
42016         dirname-lgpl: adjust clients that don't need full dirname
42017         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42018         * modules/filenamecat (Depends-on): Likewise.
42019         * modules/linkat (Depends-on): Likewise.
42020         * modules/mkancesdirs (Depends-on): Likewise.
42021         * modules/mkdir (Depends-on): Likewise.
42022         * modules/openat (Depends-on): Likewise.
42023         * modules/savewd (Depends-on): Likewise.
42024         * modules/rename (Depends-on): Likewise.
42025         (License): Relax license.
42026         * modules/mkdir-tests (Depends-on): Drop progname.
42027         (Makefile.am): Delete unneeded LDADD.
42028         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42029
42030         dirname: split into dirname-lgpl
42031         * modules/dirname-lgpl: New module.
42032         * modules/dirname (Files): Move library-safe files into
42033         dirname-lgpl.
42034         (Depends-on): Add dirname-lgpl.
42035         (configure.ac): Declare witness.
42036         * modules/double-slash-root (License): Relax license.
42037         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42038         module.
42039         * lib/dirname.c (dir_len, mdir_name): Move...
42040         * lib/dirname-lgpl.c: ...into new file.
42041         * lib/basename.c (last_component, base_len): Move...
42042         * lib/basename-lgpl.c: ...into new file.
42043         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42044         (gl_DIRNAME): Use it.
42045         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42046         Mention new module.
42047         * modules/dirname-tests (Depends-on): Add progname.
42048         * tests/test-dirname.c (program_name): Delete.
42049
42050         mkdir: make safe for libraries
42051         * modules/mkdir (Depends-on): Drop xalloc.
42052         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42053         exit.
42054
42055         tests: avoid some compiler warnings
42056         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42057         literals.
42058         * tests/test-memchr.c (main): Avoid type mismatch.
42059         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42060         * tests/test-base64.c (main): Likewise.
42061         * tests/test-getdelim.c (main): Likewise.
42062         * tests/test-gethostname.c (main): Likewise.
42063         * tests/test-getline.c (main): Likewise.
42064         * tests/test-netinet_in.c (main): Likewise.
42065         * tests/test-select.c (open_server_socket, main): Likewise.
42066         * tests/test-select-stdin.c (main): Likewise.
42067         * tests/test-sockets.c (main): Likewise.
42068         * tests/test-strsignal.c (main): Likewise.
42069         * tests/test-sys_select.c (main): Likewise.
42070         * tests/test-sys_socket.c (main): Likewise.
42071         * tests/test-u64.c (main): Likewise.
42072         * tests/test-xfprintf-posix.c (main): Likewise.
42073         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42074
42075         sockets: avoid compiler warning
42076         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42077
42078         maint: detect usage(1) and other suspicious exits
42079         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42080
42081 2009-10-29  Jim Meyering  <meyering@redhat.com>
42082
42083         timespec: long-to-int truncation could make timespec_cmp malfunction
42084         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42085         a multiple of 2^32 nanoseconds as no difference.
42086
42087 2009-10-28  Jim Meyering  <meyering@redhat.com>
42088
42089         fprintftime: wrap macro code argument in "do {...} while(0)"
42090         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42091         cpy macro must be a statement that can be followed by a semicolon.
42092         Now that the else clause contains a comment and is hence longer
42093         than one line, I require curly braces.  That in turn requires
42094         that we wrap this code block in the standard do...while(0).
42095
42096         fprintftime: remove stray semicolon from previous change
42097         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42098
42099         fprintftime: avoid a warning about ignored fwrite return value
42100         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42101         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42102         that is unsafe.
42103         * modules/fprintftime (Depends-on): Add ignore-value.
42104
42105         exclude: avoid an unwarranted warning
42106         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42107
42108 2009-10-27  Eric Blake  <ebb9@byu.net>
42109
42110         fseek: avoid compilation failure when fflush is replaced
42111         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42112         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42113         module is in use.
42114         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42115         module is not in use; since REPLACE_FSEEK worked otherwise.
42116         (GNULIB_FTELLO): Likewise for ftell.
42117         Reported by Ian Beckwith and others.
42118
42119 2009-10-27  Bruno Haible  <bruno@clisp.org>
42120
42121         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42122         Reported by Jim Meyering.
42123
42124 2009-10-27  Jim Meyering  <jim@meyering.net>
42125             Bruno Haible  <bruno@clisp.org>
42126
42127         Avoid warning despite dropping the return value of fwrite.
42128         * lib/unicodeio.c: Include ignore-value.h.
42129         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42130         * modules/unicodeio (Depends-on): Add ignore-value.
42131
42132 2009-10-26  Eric Blake  <ebb9@byu.net>
42133
42134         areadlinkat: fix fallback path
42135         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42136         pointer and zero.
42137
42138 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42139
42140         Use a better IO block size for modern systems
42141         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42142         * lib/md2.c: Likewise.
42143         * lib/md4.c: Likewise.
42144         * lib/md5.c: Likewise.
42145         * lib/sha1.c: Likewise.
42146         * lib/sha256.c: Likewise.
42147         * lib/sha512.c: Likewise.
42148
42149 2009-10-22  Eric Blake  <ebb9@byu.net>
42150
42151         tests: avoid several compiler warnings
42152         * tests/test-getcwd.c (main): Avoid buffer underflow.
42153         * tests/test-getdate.c (main): String literals are not safe with
42154         putenv, so use setenv.  Declare unused argument.
42155         * modules/getdate-tests (Depends-on): Add setenv.
42156         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42157         problems with string literals in char *.
42158         * tests/test-hash.c (main): Avoid shadowing declaration.
42159         (insert_new): Treat string literals as char const *.
42160         * tests/test-getopt.h (test_getopt): Likewise.
42161         (getopt_loop): Alter types to minimize casting elsewhere.
42162         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42163         (test_getopt_long_posix): Likewise.
42164         (do_getopt_long): Add wrapper to minimize casting.
42165         * tests/test-atexit.c (clear_temp_file): Use void.
42166         * tests/test-areadlink-with-size.c (main): Declare unused
42167         arguments.
42168         * tests/test-areadlink.c (main): Likewise.
42169         * tests/test-areadlinkat-with-size.c (main): Likewise.
42170         * tests/test-areadlinkat.c (main): Likewise.
42171         * tests/test-canonicalize-lgpl.c (main): Likewise.
42172         * tests/test-canonicalize.c (main): Likewise.
42173         * tests/test-dirent-safer.c (main): Likewise.
42174         * tests/test-dirname.c (main): Likewise.
42175         * tests/test-dup2.c (main): Likewise.
42176         * tests/test-fchdir.c (main): Likewise.
42177         * tests/test-fcntl-h.c (main): Likewise.
42178         * tests/test-fcntl-safer.c (main): Likewise.
42179         * tests/test-fdopendir.c (main): Likewise.
42180         * tests/test-fdutimensat.c (main): Likewise.
42181         * tests/test-fflush.c (main): Likewise.
42182         * tests/test-filenamecat.c (main): Likewise.
42183         * tests/test-filevercmp.c (main): Likewise.
42184         * tests/test-fopen-safer.c (main): Likewise.
42185         * tests/test-fopen.c (main): Likewise.
42186         * tests/test-fpending.c (main): Likewise.
42187         * tests/test-fpurge.c (main): Likewise.
42188         * tests/test-freading.c (main): Likewise.
42189         * tests/test-fstatat.c (main): Likewise.
42190         * tests/test-fsync.c (main): Likewise.
42191         * tests/test-futimens.c (main): Likewise.
42192         * tests/test-getndelim2.c (main): Likewise.
42193         * tests/test-gettimeofday.c (main): Likewise.
42194         * tests/test-getopt.c (main): Likewise.
42195         * tests/test-i-ring.c (main): Likewise.
42196         * tests/test-inttypes.c (main): Likewise.
42197         * tests/test-link.c (main): Likewise.
42198         * tests/test-lstat.c (main): Likewise.
42199         * tests/test-math.c (main): Likewise.
42200         * tests/test-md5.c (main): Likewise.
42201         * tests/test-memchr2.c (main): Likewise.
42202         * tests/test-memrchr.c (main): Likewise.
42203         * tests/test-mkdir.c (main): Likewise.
42204         * tests/test-mkdirat.c (main): Likewise.
42205         * tests/test-mkfifoat.c (main): Likewise.
42206         * tests/test-open.c (main): Likewise.
42207         * tests/test-openat-safer.c (main): Likewise.
42208         * tests/test-openat.c (main): Likewise.
42209         * tests/test-quotearg.c (main): Likewise.
42210         * tests/test-rawmemchr.c (main): Likewise.
42211         * tests/test-readlink.c (main): Likewise.
42212         * tests/test-remove.c (main): Likewise.
42213         * tests/test-rename.c (main): Likewise.
42214         * tests/test-renameat.c (main): Likewise.
42215         * tests/test-rmdir.c (main): Likewise.
42216         * tests/test-sha1.c (main): Likewise.
42217         * tests/test-signal.c (main): Likewise.
42218         * tests/test-sigaction.c (main): Likewise.
42219         * tests/test-stat.c (main): Likewise.
42220         * tests/test-stat-time.c (main): Likewise.
42221         * tests/test-stddef.c (main): Likewise.
42222         * tests/test-stdint.c (main): Likewise.
42223         * tests/test-stdio.c (main): Likewise.
42224         * tests/test-stdlib.c (main): Likewise.
42225         * tests/test-strchrnul.c (main): Likewise.
42226         * tests/test-strerror.c (main): Likewise.
42227         * tests/test-string.c (main): Likewise.
42228         * tests/test-strtod.c (main): Likewise.
42229         * tests/test-strverscmp.c (main): Likewise.
42230         * tests/test-symlink.c (main): Likewise.
42231         * tests/test-symlinkat.c (main): Likewise.
42232         * tests/test-sys_stat.c (main): Likewise.
42233         * tests/test-sys_time.c (main): Likewise.
42234         * tests/test-time.c (main): Likewise.
42235         * tests/test-unistd.c (main): Likewise.
42236         * tests/test-unlink.c (main): Likewise.
42237         * tests/test-unlinkat.c (main): Likewise.
42238         * tests/test-utimens.c (main): Likewise.
42239         * tests/test-utimensat.c (main): Likewise.
42240         * tests/test-version-etc.c (main): Likewise.
42241         * tests/test-wchar.c (main): Likewise.
42242         * tests/test-wctype.c (main): Likewise.
42243         * tests/test-xprintf-posix.c (main): Likewise.
42244         * tests/test-posixtm.c (main): Likewise.
42245         (STREQ): Delete unused macro.
42246         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42247         shadowed variables.
42248         * tests/test-memchr.c (main): Likewise.
42249
42250 2009-10-21  Eric Blake  <ebb9@byu.net>
42251
42252         areadlinkat: avoid failure on older glibc
42253         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42254         rather than mis-comparing 0 against FUNC_RESULT of char*.
42255
42256 2009-10-21  Bruno Haible  <bruno@clisp.org>
42257
42258         * modules/stpncpy (License): Relicense under LGPLv2+.
42259         Reported by David Lutterkort <lutter@redhat.com>.
42260
42261 2009-10-20  Eric Blake  <ebb9@byu.net>
42262
42263         utimensat: work around Solaris 9 bug
42264         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42265         has trailing slash bugs.
42266         * tests/test-lutimens.h (test_lutimens): Enhance test.
42267         * tests/test-utimens.h (test_utimens): Likewise.
42268         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42269         * doc/posix-functions/utimes.texi (utimes): Likewise.
42270         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42271         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42272         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42273         * doc/posix-functions/futimens.texi (futimens): Likewise.
42274
42275         fdutimensat: new module
42276         * modules/fdutimensat: New file.
42277         * lib/fdutimensat.c (fdutimensat): Likewise.
42278         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42279         * MODULES.html.sh (File system functions): Mention module.
42280         * modules/fdutimensat-tests: New test.
42281         * tests/test-fdutimensat.c: Likewise.
42282
42283         doc: regenerate INSTALL
42284         * doc/INSTALL: Reflect recent autoconf update.
42285         * doc/INSTALL.ISO: Likewise.
42286         * doc/INSTALL.UTF-8: Likewise.
42287
42288 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42289
42290         acl: warn if ACL support is not detected
42291         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42292
42293 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42294
42295         * lib/nproc.h: Add extern "C" block for C++.
42296
42297 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42298             Bruno Haible  <bruno@clisp.org>
42299
42300         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42301         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42302         * doc/posix-functions/isalpha.texi: Likewise.
42303         * doc/posix-functions/isblank.texi: Likewise.
42304         * doc/posix-functions/iscntrl.texi: Likewise.
42305         * doc/posix-functions/isdigit.texi: Likewise.
42306         * doc/posix-functions/isgraph.texi: Likewise.
42307         * doc/posix-functions/islower.texi: Likewise.
42308         * doc/posix-functions/isprint.texi: Likewise.
42309         * doc/posix-functions/ispunct.texi: Likewise.
42310         * doc/posix-functions/isspace.texi: Likewise.
42311         * doc/posix-functions/isupper.texi: Likewise.
42312         * doc/posix-functions/isxdigit.texi: Likewise.
42313
42314 2009-10-18  Bruno Haible  <bruno@clisp.org>
42315
42316         Tests for module 'isblank'.
42317         * modules/isblank-tests: New file.
42318         * tests/test-isblank.c: New file.
42319
42320         New module 'isblank'.
42321         * lib/isblank.c: New file.
42322         * m4/isblank.m4: New file.
42323         * modules/isblank: New file.
42324         * doc/posix-functions/isblank.texi: Mention the new module.
42325
42326 2009-10-18  Bruno Haible  <bruno@clisp.org>
42327
42328         New module 'ctype'.
42329         * lib/ctype.in.h: New file.
42330         * m4/ctype.m4: New file.
42331         * modules/ctype: New file.
42332         * doc/posix-headers/ctype.texi: Mention the new module.
42333
42334 2009-10-18  Jim Meyering  <meyering@redhat.com>
42335
42336         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42337         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42338         right after its initialization, rather than farther down.
42339         Keeping these in close proximity makes it easier to ensure
42340         that each such variable is initialized.  E.g.,
42341
42342             LIB_CLOCK_GETTIME=
42343             AC_SUBST([LIB_CLOCK_GETTIME])
42344
42345         This change also increments these serial numbers.
42346         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42347         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42348         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42349
42350 2009-10-18  Bruno Haible  <bruno@clisp.org>
42351
42352         Don't let environment variables perturb build.
42353         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42354         (gl_PREREQ_GETHRXTIME): ... not here.
42355
42356 2009-10-18  Bruno Haible  <bruno@clisp.org>
42357
42358         Avoid symlink attack in localcharset module.
42359         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42360         (O_NOFOLLOW): Define fallback.
42361         (get_charset_aliases): Don't open the file if it is a symbolic link.
42362         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42363         gl_FCNTL_H.
42364         (gl_FCNTL_H): Require it.
42365         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42366         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42367         Reported by Fergal Glynn <fglynn@veracode.com>.
42368
42369 2009-10-18  Bruno Haible  <bruno@clisp.org>
42370
42371         Implement nproc for mingw.
42372         * lib/nproc.c: Include <windows.h>
42373         (num_processors): On native Windows platforms, try GetSystemInfo.
42374
42375 2009-10-18  Bruno Haible  <bruno@clisp.org>
42376
42377         Implement nproc for IRIX.
42378         * lib/nproc.c: Include <sys/sysmp.h>.
42379         (num_processors): On IRIX systems, try sysmp.
42380         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42381
42382 2009-10-18  Bruno Haible  <bruno@clisp.org>
42383
42384         Implement nproc for HP-UX.
42385         * lib/nproc.c: Include <sys/pstat.h>
42386         (num_processors): On HP-UX systems, try pstat_getdynamic.
42387         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42388         pstat_getdynamic.
42389
42390 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42391             Bruno Haible  <bruno@clisp.org>
42392
42393         Implement nproc for NetBSD, OpenBSD.
42394         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42395         (ARRAY_SIZE): New macro.
42396         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42397         * m4/nproc.m4: New file.
42398         * modules/nproc (Files): Add m4/nproc.m4.
42399         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42400         (Makefile.am): Instead, augment lib_SOURCES.
42401
42402 2009-10-18  Bruno Haible  <bruno@clisp.org>
42403
42404         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42405         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42406         sys/param.h.
42407
42408 2009-10-16  Eric Blake  <ebb9@byu.net>
42409
42410         utimensat: new module
42411         * modules/utimensat: New file.
42412         * lib/utimensat.c (utimensat): Likewise.
42413         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42414         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42415         so we can work around Linux bugs.
42416         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42417         * modules/sys_stat (Makefile.am): Substitute them.
42418         * lib/sys_stat.in.h (utimensat): Declare it.
42419         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42420         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42421         * modules/utimensat-tests: New test.
42422         * tests/test-utimensat.c: Likewise.
42423
42424         utimens: let lutimens work on non-symlinks
42425         * lib/utimens.c (lutimens): Fall back to utimens rather than
42426         failing with ENOSYS, when file is not a symlink.
42427         (utimens): Reduce redirection.
42428         * tests/test-lutimens.h (test_lutimens): Update test to cover
42429         non-symlinks.
42430         * tests/test-utimens.h (test_utimens): Update test to cover
42431         symlinks.
42432         * tests/test-utimens.c (main): Update caller.
42433
42434         utimens: cache whether utimensat syscall works
42435         * lib/utimens.c (utimensat_works_really): New cache variable.
42436         (fdutimens, lutimens): Use it to avoid failing syscall.
42437
42438         test-stat-time, test-utimens: improve portability
42439         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42440         ext4 on alpha, and for cygwin.
42441         * tests/test-utimens-common.h: New file.
42442         (nap): Factor delays into single function.
42443         * tests/test-lutimens.h (test_lutimens): Use new header.
42444         * tests/test-futimens.h (test_futimens): Likewise.
42445         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42446         timestamps to occur from same machine, as was done previously for
42447         test_utimens.
42448         * modules/utimens-tests (Files): Ship new file.
42449         * modules/futimens-tests (Files): Likewise.
42450         Reported in part by Jim Meyering.
42451
42452         sys_stat: sort replacement declarations
42453         * lib/sys_stat.in.h: Sort declarations.
42454         * lib/futimens.c (futimens): Fix typo.
42455
42456 2009-10-15  Jim Meyering  <meyering@redhat.com>
42457
42458         don't let environment settings perturb build
42459         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42460         could cause a configure-time and/or build-time malfunction.
42461         Typically, a configure-time function-in-library test is performed
42462         via code like this:
42463
42464           LIB_VAR=
42465           AC_SUBST([LIB_VAR])
42466           prefix_saved_LIBS=$LIBS
42467             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42468                        [test "$ac_cv_search_FUNC" = "none required" ||
42469                         LIB_VAR=$ac_cv_search_FUNC])
42470           LIBS=$prefix_saved_LIBS
42471
42472         However, in each of the files affected by this change, the LIB_VAR=
42473         initialization was omitted.  Thus, when set in the environment, its
42474         value would propagate into generated Makefiles when FUNC is not found
42475         in LIB_NAME.
42476         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42477         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42478         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42479
42480 2009-10-14  Eric Blake  <ebb9@byu.net>
42481
42482         fchdir: avoid infinite recursion in mingw
42483         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42484         recursing.
42485
42486         test-stat-time: port to mingw
42487         * tests/test-stat-time.c (force_unlink): Return a value.
42488         (test_ctime) [W32]: Fix compilation error.
42489         (nap): Don't call usleep with too large an argument.  Use
42490         force_unlink.
42491         * doc/pastposix-functions/usleep.texi (usleep): Document the
42492         portability issue.
42493
42494 2009-10-13  Jim Meyering  <meyering@redhat.com>
42495
42496         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42497         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42498         * modules/pipe-filter-ii: Likewise.
42499         * modules/sys_socket-tests: Likewise.
42500         * modules/tsearch-tests: Likewise.
42501         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42502         (check): Depend on it.
42503
42504 2009-10-12  Eric Blake  <ebb9@byu.net>
42505
42506         utimens-tests: port to NFS file systems
42507         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42508         comparisons to avoid spurious failures from timestamp drift
42509         between NFS machines.
42510
42511 2009-10-12  Eric Blake  <ebb9@byu.net>
42512
42513         stat-time-tests: minor cleanups
42514         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42515         * tests/test-stat-time.c (nap): Separate assignment from call.
42516         Suggested by Paolo Bonzini and Bruno Haible.
42517
42518         sys_stat: guarantee struct timespec
42519         * lib/sys_stat.in.h (includes): Always include <time.h>
42520         * modules/sys_stat (Depends-on): Add time.
42521         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42522         mode_t permission values.
42523         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42524         get at subsecond timestamps.
42525
42526 2009-10-10  Eric Blake  <ebb9@byu.net>
42527
42528         futimens: new module
42529         * modules/futimens: New file.
42530         * lib/futimens.c (futimens): Likewise.
42531         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42532         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42533         we can work around Linux bugs.
42534         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42535         * modules/sys_stat (Makefile.am): Substitute them.
42536         * lib/sys_stat.in.h (futimens): Declare it.
42537         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42538         * doc/posix-functions/futimens.texi (futimens): Likewise.
42539         * modules/futimens-tests: New test.
42540         * tests/test-futimens.c: Likewise.
42541
42542         utimens: introduce fdutimens
42543         * lib/utimens.h (fdutimens): New prototype.
42544         * lib/utimens.c (gl_futimens): Move guts...
42545         (fdutimens): ...to new interface.
42546         * tests/test-utimens.c (do_fdutimens): Use it.
42547
42548         utimens: add UTIME_NOW and UTIME_OMIT support
42549         * lib/utimens.c (validate_timespec, update_timespec): New helper
42550         functions.
42551         (gl_futimens, lutimens): Use them.
42552         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42553         stdbool, sys_stat.
42554         (Link): Mention resulting library dependency.
42555         * modules/utimecmp (Link): Likewise.
42556         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42557         (Makefile.am): Pick up library dependency.
42558         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42559         definition.
42560         * tests/test-sys_stat.c: Test the definitions.
42561         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42562         * NEWS: Document library dependency.
42563
42564         utimecmp: support symlink timestamps
42565         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42566         hashing when possible.  Use pathconf when available.
42567         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42568         * modules/utimecmp (Depends-on): Add lstat.
42569
42570         utimens: add lutimens interface
42571         * lib/utimens.c (lutimens): New function.
42572         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42573         * lib/utimens.h (lutimens): Declare new interface.
42574         * tests/test-utimens.c (main): Enhance test.
42575         * tests/test-lutimens.h (test_lutimens): New file.
42576         * modules/utimens-tests (Files): Distribute it.
42577         (Depends-on): Add symlink.
42578         (configure.ac): Check for usleep.
42579
42580         utimens: validate futimens usage
42581         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42582         fewer syscalls on failure later on.  Avoid compiler warning on
42583         mingw.
42584         * modules/utimens (Depends-on): Add dup2.
42585
42586         utimens: add test
42587         * modules/utimens-tests: New test.
42588         * tests/test-utimens.h: New file.
42589         * tests/test-futimens.h: Likewise.
42590         * tests/test-utimens.c: Likewise.
42591
42592         doc: mention timestamp portability issues
42593         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
42594         instead.
42595         * doc/posix-functions/utime.texi (utime): Likewise.
42596         * doc/posix-functions/utimes.texi (utimes): Likewise.
42597         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
42598         instead.
42599         * doc/posix-functions/futimens.texi (futimens): Mention utimens
42600         module.
42601         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42602         Mention weakness with symlink timestamps.
42603         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
42604         to utimensat/futimens instead.
42605         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
42606
42607         test-dup2: enhance test
42608         * tests/test-dup2.c (main): Also check AT_FDCWD.
42609
42610         test-stat-time: avoid more spurious failures
42611         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
42612         xfs; and avoid race if the two timestamps cross quantization edge.
42613
42614         relocatable: prefer 'file system' over 'filesystem'
42615         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
42616         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
42617         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
42618         * doc/relocatable.texi (Enabling Relocatability): Likewise.
42619         * lib/relocatable.c (compute_curr_prefix): Likewise.
42620
42621 2009-10-10  Jim Meyering  <meyering@redhat.com>
42622
42623         stat-time-tests: check for the usleep function
42624         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
42625
42626 2009-10-10  Bruno Haible  <bruno@clisp.org>
42627
42628         * modules/xnanosleep: Put the Link section after the Include section.
42629
42630 2009-10-09  Eric Blake  <ebb9@byu.net>
42631
42632         dup2: work around FreeBSD 6.1 bug
42633         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
42634         * doc/posix-functions/dup2.texi (dup2): Document it.
42635         Reported by Nelson H. F. Beebe and Jim Meyering.
42636
42637         test-stat-time: port to buggy NFS clients
42638         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
42639         (test_ctime): Also skip test if mtime and ctime are skewed.
42640
42641         maint: prefer 'file system' over 'filesystem'
42642         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42643         * doc/posix-functions/lstat.texi (lstat): Likewise.
42644         * lib/file-has-acl.c (file_has_acl): Likewise.
42645         * lib/fwriteerror.c [TEST]: Likewise.
42646         * tests/test-areadlink.h (test_areadlink): Likewise.
42647         * tests/test-areadlinkat-with-size.c (main): Likewise.
42648         * tests/test-areadlinkat.c (main): Likewise.
42649         * tests/test-canonicalize-lgpl.c (main): Likewise.
42650         * tests/test-canonicalize.c (main): Likewise.
42651         * tests/test-fstatat.c (main): Likewise.
42652         * tests/test-linkat.c (main): Likewise.
42653         * tests/test-lstat.h (test_lstat_func): Likewise.
42654         * tests/test-mkdir.h (test_mkdir): Likewise.
42655         * tests/test-readlink.h (test_readlink): Likewise.
42656         * tests/test-remove.c (main): Likewise.
42657         * tests/test-rename.h (test_rename): Likewise.
42658         * tests/test-renameat.c (main): Likewise.
42659         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42660         * tests/test-symlink.h (test_symlink): Likewise.
42661         * tests/test-symlinkat.c (main): Likewise.
42662         * tests/test-unlink.h (test_unlink_func): Likewise.
42663         * tests/test-unlinkat.c (main): Likewise.
42664
42665         maint: make realtime library usage explicit
42666         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
42667         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
42668         * modules/settime (Link): Likewise.
42669         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
42670
42671         test-stat-time: speed up execution
42672         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
42673         warning on mingw.
42674         (nap): New helper function.
42675         (prepare_test): Use it to reduce sleep time.
42676         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
42677         execution.
42678         * modules/stat-time-tests (configure.ac): Check for usleep.
42679
42680 2009-10-09  Jim Meyering  <meyering@redhat.com>
42681
42682         selinux-h: always use getfilecon wrappers
42683         * lib/getfilecon.c: New file.
42684         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
42685         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
42686         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
42687         (fgetfilecon): Provide a stub.
42688         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
42689         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
42690         file unconditionally.
42691         When <selinux/selinux.h> is found, arrange to use wrappers.
42692         * modules/selinux-h (Files): Add getfilecon.c.
42693         (Makefile.am): Substitute include-next-related bits
42694         into the now-always-generated selinux/selinux.h file.
42695         * doc/glibc-functions/lgetfilecon.texi: New file.
42696         * doc/glibc-functions/fgetfilecon.texi: New file.
42697         * doc/glibc-functions/getfilecon.texi: New file.
42698         * doc/glibc-functions/getfilecon-desc.texi: New file.
42699         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
42700         which to pull in the new files.
42701         * MODULES.html.sh (Misc): Add selinux-h.
42702
42703 2009-10-08  Jim Meyering  <meyering@redhat.com>
42704
42705         unistd: fix comment typo
42706         * lib/unistd.in.h (euidaccess): Fix a comment typo.
42707
42708 2009-10-08  Eric Blake  <ebb9@byu.net>
42709
42710         areadlink: use SIZE_MAX consistently
42711         * modules/areadlink (Depends-on): Add stdint.
42712         * modules/areadlink-with-size (Depends-on): Likewise.
42713         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
42714         gives NULL; drop sys/types, since unistd gives size_t; and add
42715         stdint for SIZE_MAX.
42716         (SIZE_MAX): Rely on headers.
42717         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
42718         and add stdint.
42719         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
42720         (SIZE_MAX): Likewise.
42721         (INITIAL_BUF_SIZE): Turn into enum.
42722         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
42723
42724 2009-10-08  Jim Meyering  <meyering@redhat.com>
42725
42726         areadlinkat: avoid compilation failure
42727         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
42728         Fix typo in comment.
42729
42730 2009-10-07  Eric Blake  <ebb9@byu.net>
42731
42732         areadlinkat-with-size: new module
42733         * modules/areadlinkat-with-size: New module.
42734         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
42735         * lib/areadlink.h (areadlinkat): Declare it.
42736         * MODULES.html.sh (File system functions): Mention it.
42737         * modules/areadlinkat-with-size-tests: New test.
42738         * tests/test-areadlinkat-with-size.c: New file.
42739
42740         xreadlinkat: new module
42741         * modules/xreadlinkat: New module.
42742         * lib/xreadlinkat.c (xreadlinkat): New file.
42743         * lib/xreadlink.h (xreadlinkat): Declare it.
42744         * MODULES.html.sh (File system functions): Mention it.
42745
42746         areadlinkat: new module
42747         * lib/at-func.c (FUNC_FAIL): New define.
42748         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
42749         * modules/areadlinkat: New module.
42750         * lib/linkat.c (areadlinkat): Move...
42751         * lib/areadlinkat.c (areadlinkat): ...to new file.
42752         * lib/areadlink.h (areadlinkat): Declare it.
42753         * modules/linkat (Depends-on): Add areadlinkat.
42754         * MODULES.html.sh (File system functions): Mention it.
42755         * modules/areadlinkat-tests: New test.
42756         * tests/test-areadlinkat.c: New file.
42757
42758         areadlink, areadlink-with-size: add tests
42759         * modules/areadlink-tests: New test.
42760         * modules/areadlink-with-size-tests: Likewise.
42761         * tests/test-areadlink.h: New file.
42762         * tests/test-areadlink.c: Likewise.
42763         * tests/test-areadlink-with-size.c: Likewise.
42764
42765         maint: minor cleanups
42766         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
42767         _UNUSED_PARAMETER_ instead.
42768         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
42769         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
42770         * modules/linkat-tests (Files): Distribute test-link.h.
42771
42772         openat, utimens: whitespace cleanup
42773         * lib/openat.c: Prefer space throughout, rather than mix of 8
42774         spaces vs. tabs.
42775         * lib/at-func.c: Likewise.
42776         * lib/utimens.c: Likewise.
42777
42778         openat: avoid using wrong fd
42779         * lib/openat.c (openat_permissive): Reject user's fd if saving the
42780         working directory chooses same fd.
42781         * lib/at-func.c (AT_FUNC_NAME): Likewise.
42782
42783         mkdir, mkdirat: fix cygwin 1.5.x bug
42784         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
42785         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
42786         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
42787         bug.
42788         (gl_PREREQ_MKDIR): Delete unused macro.
42789         * modules/mkdir (Files): Track file rename.
42790         (configure.ac): Update macro name.
42791         * modules/openat (Depends-on): Add mkdir.
42792         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
42793
42794         mkdir, mkdirat: add tests
42795         * modules/mkdir-tests: New test.
42796         * tests/test-mkdir.h: New file.
42797         * tests/test-mkdir.c: Likewise.
42798         * tests/test-mkdirat.c: Likewise.
42799         * modules/openat-tests (Files): Add new files.
42800         (Makefile.am): Run new test.
42801
42802 2009-10-06  Eric Blake  <ebb9@byu.net>
42803
42804         doc: tweak *at function documentation
42805         * doc/posix-functions/faccessat.texi (faccessat): Mention
42806         known issue with replacement.
42807         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
42808         * doc/posix-functions/linkat.texi (linkat): Likewise.
42809         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42810         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42811         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42812         * doc/posix-functions/renameat.texi (renameat): Likewise.
42813         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42814
42815         openat: fix GNU/Hurd bug in unlinkat
42816         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
42817         broken.
42818         * doc/posix-functions/unlink.texi (unlink): Document this.
42819         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
42820
42821         fdopendir: fix GNU/Hurd bug
42822         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
42823         allowing non-directory fds.
42824         * lib/fdopendir.c (rpl_fdopendir): Work around it.
42825         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
42826         * modules/dirent (Makefile.am): Substitute it.
42827         * lib/dirent.in.h (fdopendir): Declare replacement.
42828         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
42829         * tests/test-fdopendir.c (main): Test something other than
42830         /dev/null, since on Hurd that behaves like a directory.
42831
42832         test-symlink: port to GNU/Hurd
42833         * tests/test-symlink.h (test_symlink): Relax expected errno.
42834
42835         doc: tweak more cygwin information
42836         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
42837         now compatible with glibc.
42838         * doc/posix-functions/getopt.texi (getopt): Likewise.
42839
42840         getopt-gnu: add another test
42841         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
42842         guarantee behavior relied on by m4.
42843         * tests/test-getopt.c (main): Use it.
42844         * modules/getopt-posix-tests (Depends-on): Add setenv.
42845         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
42846
42847         getopt: fix compilation on darwin
42848         * lib/getopt.in.h (includes): Leave breadcrumbs during system
42849         include.
42850         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
42851         Reported by Ludovic Courtès.
42852
42853 2009-10-06  Bruno Haible  <bruno@clisp.org>
42854
42855         * modules/size_max (Description): Discourage its use.
42856         Reported by Simon Josefsson.
42857
42858 2009-10-06  Jim Meyering  <meyering@redhat.com>
42859
42860         linkat: avoid compilation failure
42861         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
42862
42863 2009-10-05  Eric Blake  <ebb9@byu.net>
42864
42865         linkat: support Linux 2.6.17
42866         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
42867         linkat on Linux, but allow cache variable override.
42868         * lib/linkat.c (rpl_linkat): Define override.
42869         * modules/linkat (Depends-on): Add symlinkat.
42870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
42871         * modules/unistd (Makefile.am): Substitute it.
42872         * lib/unistd.in.h (linkat): Declare replacement.
42873         Reported by Pádraig Brady.
42874
42875         quotearg: port test to systems with C.UTF-8 locale
42876         * tests/test-quotearg.c (struct result_strings): Add another
42877         member, differentiating between C.ASCII and C.UTF-8 handling.
42878         (compare_strings): Add parameter.
42879         (main): Adjust all callers.
42880
42881         getopt: avoid clash with FreeBSD _getopt_internal
42882         * lib/getopt.in.h (_getopt_internal): Override the name.
42883         * lib/getopt_int.h (includes): Pick up any overrides.
42884         Reported by Reuben Thomas.
42885
42886         hash: allow C89 compilation
42887         * lib/hash.c (check_tuning): Move declaration before statement.
42888         Reported by Reuben Thomas.
42889
42890 2009-10-05  Karl Berry  <karl@gnu.org>
42891
42892         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
42893
42894 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
42895             Bruno Haible  <bruno@clisp.org>
42896
42897         * lib/uname.c (uname): Use a table-driven algorithm to compute
42898         Windows NT versions.
42899
42900 2009-10-04  Bruno Haible  <bruno@clisp.org>
42901
42902         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
42903         program_invocation_short_name.
42904         * modules/progname (configure.ac): Test for presence of
42905         program_invocation_short_name.
42906         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42907
42908 2009-10-04  Bruno Haible  <bruno@clisp.org>
42909
42910         * lib/progname.c (set_program_name): Fix comment.
42911         Reported by Jim Meyering.
42912
42913 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42914             Bruno Haible  <bruno@clisp.org>
42915
42916         * lib/uname.c: Include <string.h>.
42917         (uname): Do only one call to GetVersionEx in the common case.
42918
42919 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42920             Bruno Haible  <bruno@clisp.org>
42921
42922         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
42923         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
42924         (uname): Add support for Windows CE and various non-x86 CPU types.
42925
42926 2009-10-03  Bruno Haible  <bruno@clisp.org>
42927
42928         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
42929         invocation to tests/configure.ac.
42930         Reported by Ian Beckwith <ianb@erislabs.net>.
42931
42932 2009-10-02  Eric Blake  <ebb9@byu.net>
42933
42934         fchdir: avoid compiler warning
42935         * lib/fchdir.c (canonicalize_file_name)
42936         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
42937
42938         test-open: support mingw errno values
42939         * tests/test-open.h (test_open): Relax test.
42940         * tests/test-fopen.h (test_fopen): Likewise.
42941         * tests/test-openat-safer.c (main): Likewise.
42942
42943         open: fix opening directory on mingw
42944         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
42945
42946         test-open: on GNU/Hurd, /dev/null is a directory
42947         * tests/test-fopen.h (main): Rename...
42948         (test_fopen): ...to this.  Use a guaranteed non-directory when
42949         confirming open behavior on trailing slash.
42950         * tests/test-openat-safer.c (main): Likewise.
42951         * tests/test-open.h (main): Likewise....
42952         (test_open): ...to this.
42953         * tests/test-fopen.c (main): Adjust caller.
42954         * tests/test-fopen-safer.c (main): Likewise.
42955         * tests/test-open.c (main): Likewise.
42956         * tests/test-fcntl-safer.c (main): Likewise.
42957         Reported by Samuel Thibault.
42958
42959         rename, fchdir: don't ignore chdir failure
42960         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
42961         * lib/rename.c (rpl_rename) [W32]: Likewise.
42962         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
42963         an empty destination directory if source cannot be renamed,
42964         although there is still possibility for failure.
42965         * doc/posix-functions/rename.texi (rename): Document the race.
42966         Reported by Jim Meyering.
42967
42968         maint: cleanup whitespace in recent commits
42969         * lib/rename.c (rpl_rename): Remove tabs.
42970         * tests/test-link.h (test_link): Likewise.
42971         * lib/fchdir.c (get_name): Likewise.
42972         Reported by Jim Meyering.
42973
42974 2009-10-02  Ben Pfaff  <blp@gnu.org>
42975
42976         relocatable-prog-wrapper: Add missing dependency on
42977         double-slash-root.
42978         * modules/relocatable-prog-wrapper: Add dependency.
42979         Reported by Ian Beckwith <ianb@erislabs.net>.
42980
42981 2009-10-02  Eric Blake  <ebb9@byu.net>
42982
42983         renameat: fix Solaris bugs
42984         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
42985         needed fixing.
42986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
42987         * modules/stdio (Makefile.am): Substitute it.
42988         * lib/stdio.in.h (renameat): Declare replacement.
42989         * lib/renameat.c (rpl_renameat): Implement fix.
42990
42991         renameat: new module
42992         * modules/renameat: New file.
42993         * lib/renameat.c (renameat): Likewise.
42994         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
42995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42996         * modules/stdio (Makefile.am): Substitute them.
42997         * lib/stdio.in.h (renameat): Declare it.
42998         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42999         * doc/posix-functions/renameat.texi (renameat): Likewise.
43000         * modules/renameat-tests: New test.
43001         * tests/test-renameat.c: Likewise.
43002
43003         rename: fix mingw bugs
43004         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43005         directory overwrite bugs.
43006
43007         rename: fix another cygwin 1.5 bug
43008         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43009         checks.
43010         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43011         unnecessary cygwin workarounds.  Also work around bug with moving
43012         full directory onto an empty one.
43013         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43014
43015         rename-dest-slash: merge into rename module
43016         * modules/rename-dest-slash (Status): Mark obsolete.
43017         (Depends-on): Add rename.
43018         (Files): Let rename do it all.
43019         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43020         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43021         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43022         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43023         * lib/rename.c (rpl_rename): Update comments.
43024
43025         rename: fix cygwin 1.5.x bugs
43026         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43027         * lib/rename.c (rpl_rename): Work around them.
43028         * modules/rename (Depends-on): Add same-inode.
43029
43030         rename: fix Solaris 10 bug
43031         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43032         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43033         was the only bug.
43034
43035         rename: fix Solaris 9 bug
43036         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43037         on non-directory.  Avoid calling exit.
43038         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43039         strdup.
43040         * modules/rename-tests (Depends-on): Drop lstat.
43041         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43042         (gl_PREREQ_RENAME): Delete unused macro.
43043
43044         rename-dest-slash: fix NetBSD bug
43045         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43046         links.
43047         * modules/rename-dest-slash (Depends-on): Add same-inode.
43048
43049         rename-tests: new test, exposes several platform bugs
43050         * modules/rename-tests: New file.
43051         * tests/test-rename.h: Likewise.
43052         * tests/test-rename.c: Likewise.
43053         * doc/posix-functions/rename.texi (rename): Improve documentation,
43054         including bugs that will eventually be fixed in gnulib.
43055
43056 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43057
43058         * lib/uname.c: Include <stdlib.h>
43059         (uname): Assume version info is available.
43060
43061 2009-10-02  Jim Meyering  <meyering@redhat.com>
43062
43063         gnu-web-doc-update: correct --help output
43064         * build-aux/gnu-web-doc-update: Make --help output relevant.
43065
43066         gnu-web-doc-update: add standard options
43067         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43068
43069         gnu-web-doc-update: New module.
43070         Use this script to automatically update the on-line web documentation
43071         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43072         * modules/gnu-web-doc-update: New file, from coreutils.
43073         * build-aux/gnu-web-doc-update: New script.
43074
43075 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43076
43077         link: LoadLibrary is not needed.
43078         * lib/link.c: Use GetModuleHandle.
43079
43080 2009-10-01  Eric Blake  <ebb9@byu.net>
43081
43082         getopt: bump serial number
43083         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43084         change.
43085
43086         tests: tighten link, rmdir, and remove tests
43087         * tests/test-link.h (includes): No need to use <config.h> here.
43088         Clean up if directory hard link was created, otherwise test for
43089         trailing '.'.
43090         * tests/test-linkat.c (main): Simplify.
43091         * tests/test-remove.c (main): Enhance test for trailing '.'.
43092         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43093
43094 2009-10-01  Jim Meyering  <meyering@redhat.com>
43095
43096         maint.mk: requiring "make major" was annoying, for a "minor" release.
43097         What is intended is "stable", to contrast with alpha and beta,
43098         so require "make stable", not "make major".
43099         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43100         (get_tool_versions): Likewise.
43101         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43102
43103 2009-09-30  Ben Pfaff  <blp@gnu.org>
43104
43105         Fix broken build of replacement for Windows tmpfile().
43106         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43107         flags argument added along with the 'mkostemp' module.
43108
43109 2009-09-28  Bruno Haible  <bruno@clisp.org>
43110
43111         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43112         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43113         to 'remove_elt'.
43114         (gl_list_remove): Update.
43115         * lib/gl_list.c (gl_list_remove): Update.
43116         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43117         to 'remove_elt'.
43118         (gl_oset_remove): Update.
43119         * lib/gl_list.c (gl_oset_remove): Update.
43120         Reported by Eric Blake.
43121
43122 2009-09-28  Eric Blake  <ebb9@byu.net>
43123
43124         doc: mention yet more cygwin 1.7 status
43125         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43126         cygwin.
43127         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43128         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43129
43130         argp: fix test failure
43131         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43132         that are not upper-case.  Pass correct range to tolower.
43133
43134 2009-09-27  Jim Meyering  <meyering@redhat.com>
43135
43136         test-yesno: work around sparc-dash here-document infelicity
43137         Without this change, the literal \177 byte in a here document
43138         would make dash 0.5.5.1-3 access uninitialized memory.
43139         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43140         Instead, use a marker, "@", and filter through tr to create the desired
43141         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43142
43143 2009-09-27  Bruno Haible  <bruno@clisp.org>
43144
43145         Disable untested support for new flavours of ACLs on AIX.
43146         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43147         progress.
43148         * lib/set-mode-acl.c (qset_acl): Likewise.
43149
43150 2008-12-07  Bruno Haible  <bruno@clisp.org>
43151
43152         Add support for new flavours of ACLs on AIX. (Untested.)
43153         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43154         (file_has_acl): Add support for newer AIX.
43155         * lib/set-mode-acl.c (qset_acl): Likewise.
43156         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43157         Rainer Tammer <tammer@tammer.net>.
43158
43159 2009-09-26  Eric Blake  <ebb9@byu.net>
43160
43161         argp: fix compilation of getopt
43162         * lib/getopt.in.h (includes): Use different guard than glibc.
43163         Reported by Sergey Poznyakoff.
43164
43165         doc: mention more cygwin 1.7 status
43166         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43167         bug.
43168         * doc/posix-functions/execl.texi (execl): Likewise.
43169         * doc/posix-functions/execle.texi (execle): Likewise.
43170         * doc/posix-functions/execlp.texi (execlp): Likewise.
43171         * doc/posix-functions/execv.texi (execv): Likewise.
43172         * doc/posix-functions/execve.texi (execve): Likewise.
43173         * doc/posix-functions/execvp.texi (execvp): Likewise.
43174         * doc/glibc-functions/canonicalize_file_name.texi
43175         (canonicalize_file_name): Cygwin 1.7 now provides this.
43176         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43177         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43178         on AT_SYMLINK_NOFOLLOW.
43179
43180 2009-09-24  Eric Blake  <ebb9@byu.net>
43181
43182         test-linkat: make test more robust
43183         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43184
43185         getopt: fix inclusion guards for cygwin
43186         * modules/getopt-posix (Depends-on): Add include-next.
43187         (Makefile.am): Substitute more items in replacement header.
43188         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43189         <getopt.h>.
43190         * lib/getopt.in.h (includes): Use split inclusion guard, and
43191         prefer <getopt.h> over include <unistd.h> when one is present.
43192         (option): Also override name of 'struct option'.
43193
43194         same-inode: revert prior change; it is not yet ready
43195         * NEWS: Undo mention of this change.
43196         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43197         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43198         * lib/cycle-check.c (cycle_check): Likewise.
43199         * lib/same.c (same_name): Likewise.
43200         * lib/at-func2.c (at_func2): Likewise.
43201
43202 2009-09-23  Eric Blake  <ebb9@byu.net>
43203
43204         linkat: new module
43205         * modules/linkat: New file.
43206         * lib/at-func2.c (at_func2): Likewise.
43207         * lib/linkat.c (linkat): Likewise.
43208         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43209         * lib/openat-priv.h (at_func2): Add declaration.
43210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43211         * modules/unistd (Makefile.am): Substitute them.
43212         * lib/unistd.in.h (linkat): Declare it.
43213         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43214         * doc/posix-functions/linkat.texi (linkat): Likewise.
43215         * doc/posix-functions/link.texi (link): Tweak wording.
43216         * tests/test-link.c (main): Move guts...
43217         * tests/test-link.h (test_link): ...into new file.
43218         * modules/linkat-tests: New test.
43219         * tests/test-linkat.c: Likewise.
43220         * modules/link-tests (Files): Ship new file.
43221         (Depends-on): Add stdbool.
43222
43223         dirname: add library-safe mdir_name
43224         * lib/dirname.h (mdir_name): New prototype.
43225         * lib/dirname.c (dir_name): Move guts...
43226         (mdir_name): ...to new function that avoids xalloc_die.
43227
43228         fchdir: another mingw fix
43229         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43230         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43231         on mingw (where it has not yet been ported), and make it optional
43232         elsewhere.
43233         (_gl_register_fd): Use it.
43234
43235         same-inode: make SAME_INODE tri-state, to port to mingw
43236         * NEWS: Mention this change.
43237         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43238         st_ino always being 0.
43239         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43240         * lib/cycle-check.c (cycle_check): Likewise.
43241         * lib/same.c (same_name): Likewise.
43242
43243         lstat: avoid mingw compilation error
43244         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43245         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43246         lstat ourselves.
43247         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43248         was adequate.
43249         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43250         the checks for lstat.
43251         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43252
43253         link: fix test failure on Solaris 9
43254         * lib/link.c (rpl_link): Don't assume link will catch bogus
43255         trailing slash on source.
43256
43257         test-symlinkat: enhance test
43258         * tests/test-readlink.c (main): Move guts...
43259         * tests/test-readlink.h (test_readlink): ...into new file.
43260         * tests/test-symlink.c (main): Move guts...
43261         * tests/test-symlink.h (test_symlink): ...into new file.
43262         * tests/test-symlinkat.c (main): Use new files for further
43263         coverage.
43264         (do_symlink, do_readlink): New helper functions.
43265         * modules/symlink-tests (Files): Ship new file.
43266         (Depends-on): Add stdbool.
43267         * modules/readlink-tests (Files): Ship new file.
43268         (Depends-on): Add stdbool.
43269         * modules/symlinkat-tests (Files): Use new files.
43270
43271 2009-09-23  Eric Blake  <ebb9@byu.net>
43272
43273         readlink: document portability issue with symlink length
43274         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43275         systems have bogus st_size on symlinks, and mention the
43276         areadlink-with-size module.
43277         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43278         * doc/posix-functions/readlink.texi (readlink): Mention the
43279         areadlink module, and ERANGE failure.
43280         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43281         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43282
43283         readlink: fix Solaris 9 bug with trailing slash
43284         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43285         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43286         * doc/posix-functions/readlink.texi (readlink): Document this.
43287         * modules/readlink-tests: New test.
43288         * tests/test-readlink.c: Likewise.
43289
43290         readlink: fix cygwin 1.5.x bug with return type
43291         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43292         * lib/unistd.in.h (readlink): Use ssize_t.
43293         * lib/readlink.c (readlink): Likewise.
43294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43295         * modules/unistd (Makefile.am): Substitute it.
43296         * lib/unistd.in.h (readlink): Declare replacement.
43297         * doc/posix-functions/readlink.texi (readlink): Document this.
43298
43299         symlink: use throughout gnulib
43300         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43301         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43302         symlink is not used.
43303         * modules/symlinkat (Depends-on): Add symlink.
43304         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43305         * modules/canonicalize-tests (Depends-on): Likewise.
43306         * modules/lstat-tests (Depends-on): Likewise.
43307         * modules/openat-tests (Depends-on): Likewise.
43308         * modules/remove-tests (Depends-on): Likewise.
43309         * modules/rmdir-tests (Depends-on): Likewise.
43310         * modules/unlink-tests (Depends-on): Likewise.
43311         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43312         * tests/test-canonicalize.c (symlink): Likewise.
43313         * tests/test-fstatat.c (symlink): Likewise.
43314         * tests/test-lstat.c (symlink): Likewise.
43315         * tests/test-remove.c (symlink): Likewise.
43316         * tests/test-rmdir.c (symlink): Likewise.
43317         * tests/test-unlink.c (symlink): Likewise.
43318         * tests/test-unlinkat.c (symlink): Likewise.
43319
43320         symlink: new module, for Solaris 9 bug
43321         * modules/symlink: New file.
43322         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43323         * lib/symlink.c: Likewise.
43324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43325         * modules/unistd (Makefile.am): Substitute them.
43326         * lib/unistd.in.h (symlink): Declare replacement.
43327         * MODULES.html.sh (File system functions): Mention it.
43328         * doc/posix-functions/symlink.texi (symlink): Likewise.
43329         * modules/symlink-tests: New test.
43330         * tests/test-symlink.c: Likewise.
43331
43332 2009-09-23  Bruno Haible  <bruno@clisp.org>
43333
43334         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43335         when needed.
43336         Test case: gnulib-tool --import --with-tests atexit inttypes.
43337         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43338
43339 2009-09-23  Bruno Haible  <bruno@clisp.org>
43340
43341         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43342         subcommand, not in a subshell.
43343
43344 2009-09-22  Eric Blake  <ebb9@byu.net>
43345
43346         unistd: sort replacement declarations
43347         * lib/unistd.in.h: Sort declarations.
43348
43349         open, openat: minor optimization
43350         * lib/open.c (open): If open succeeded, len is non-zero.
43351         * lib/openat.c (rpl_openat): Likewise.
43352
43353         link-follow: ensure correct result
43354         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43355         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43356         distinguish between possible failures.
43357
43358 2009-09-21  Eric Blake  <ebb9@byu.net>
43359
43360         fts: avoid compiler warning
43361         * lib/fts.c (dirent_inode_sort_may_be_useful)
43362         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43363
43364 2009-09-19  Bruno Haible  <bruno@clisp.org>
43365
43366         * lib/progreloc.c (canonicalize_file_name): New declaration.
43367
43368 2009-09-19  Eric Blake  <ebb9@byu.net>
43369
43370         link: fix quoting
43371         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43372
43373         openat: fix openat bugs on Solaris 9
43374         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43375         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43376         * modules/openat (Depends-on): Add open.
43377         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43378         * modules/fcntl-h (Makefile.am): Substitute it.
43379         * lib/fcntl.in.h (openat): Declare replacement.
43380         * doc/posix-functions/openat.texi (openat): Document this.
43381
43382         openat: move fstatat and unlinkat into correct files
43383         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43384         compiled.
43385         * lib/openat.c (fstatat, unlinkat): Move...
43386         * lib/fstatat.c (fstatat): ...into correct files.
43387         * lib/unlinkat.c (unlinkat): Likewise.
43388
43389         openat: fix unlinkat bugs on Solaris 9
43390         * lib/unlinkat.c (unlinkat): New file.
43391         * modules/openat (Depends-on): Add unlink.
43392         (Files): Distribute it.
43393         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43394         trailing slash behavior is broken.
43395         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43396         * modules/unistd (Makefile.am): Substitute it.
43397         * lib/unistd.in.h (unlinkat): Declare replacement.
43398         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43399
43400         openat: fix fstatat bugs on Solaris 9
43401         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43402         stat.
43403         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43404
43405         test-unlinkat: enhance test, to expose Solaris 9 bug
43406         * tests/test-unlink.c (main): Factor guts...
43407         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43408         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43409         * tests/test-rmdir.c (main): Adjust caller.
43410         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43411         (unlinker): New helper function.
43412         (rmdirat): Enhance check.
43413         * modules/rmdir-tests (Depends-on): Add stdbool.
43414         * modules/unlink-tests (Depends-on): Likewise.
43415         (Files): Add test-unlink.h.
43416         * modules/openat-tests (Files): Likewise.
43417         (Depends-on): Add unlinkdir.
43418
43419         test-fstatat: new test, to expose Solaris 9 bugs
43420         * tests/test-stat.c (main): Factor guts...
43421         * tests/test-stat.h (test_stat_func): ...into new file.
43422         * tests/test-lstat.c (main): Factor guts...
43423         * tests/test-lstat.h (test_lstat_func): ...into new file.
43424         * tests/test-fstatat.c: New file.
43425         * modules/stat-tests (Files): Add test-stat.h.
43426         * modules/lstat-tests (Files): Add test-lstat.h.
43427         (Depends-on): Add stdbool.
43428         * modules/openat-tests (Depends-on): Add pathmax.
43429         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43430         (Makefile.am): Run new test.
43431
43432         remove: new module, for mingw and Solaris 9 bugs
43433         * modules/remove: New file.
43434         * lib/remove.c: Likewise.
43435         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43437         * modules/stdio (Makefile.am): Use them.
43438         * lib/stdio.in.h (remove): Declare replacement.
43439         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43440         * doc/posix-functions/remove.texi (remove): Likewise.
43441         * modules/remove-tests: New test.
43442         * tests/test-remove.c: Likewise.
43443
43444         unlink: new module, for Solaris 9 bug
43445         * modules/unlink: New file.
43446         * lib/unlink.c: Likewise.
43447         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43449         * modules/unistd (Makefile.am): Use them.
43450         * lib/unistd.in.h (stat): Declare replacement.
43451         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43452         * doc/posix-functions/unlink.texi (unlink): Likewise.
43453         * modules/unlink-tests: New test.
43454         * tests/test-unlink.c: Likewise.
43455
43456         lstat: fix Solaris 9 bug
43457         * lib/lstat.c (lstat): Also check for trailing slash on
43458         non-symlink, non-directories.  Use stat module to simplify logic.
43459         * doc/posix-functions/lstat.texi (lstat): Document it.
43460         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43461         (configure.ac): Check for symlink.
43462         * tests/test-lstat.c (main): Add more tests.
43463
43464         stat: add as dependency to other modules
43465         * modules/chown (Depends-on): Add stat.
43466         * modules/euidaccess (Depends-on): Likewise.
43467         * modules/fchdir (Depends-on): Likewise.
43468         * modules/isdir (Depends-on): Likewise.
43469         * modules/link (Depends-on): Likewise.
43470         * modules/lstat (Depends-on): Likewise.
43471         * modules/mkdir-p (Depends-on): Likewise.
43472         * modules/modechange (Depends-on): Likewise.
43473         * modules/open (Depends-on): Likewise.
43474         * modules/readlink (Depends-on): Likewise.
43475         * modules/same (Depends-on): Likewise.
43476
43477         stat: fix Solaris 9 bug
43478         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43479         slash.
43480         * lib/stat.c (rpl_stat): Work around it.
43481         * doc/posix-functions/stat.texi (stat): Update documentation.
43482
43483         stat: new module, for mingw bug
43484         * modules/stat: New file.
43485         * lib/stat.c: Likewise.
43486         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43487         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43488         * modules/sys_stat (Makefile.am): Use them.
43489         * lib/sys_stat.in.h (stat): Declare replacement.
43490         * lib/openat.c (fstatat): Deal with lstat and stat being function
43491         macros.
43492         * modules/openat (Depends-on): Add inline.
43493         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43494         * doc/posix-functions/stat.texi (stat): Likewise.
43495         * modules/stat-tests: New test.
43496         * tests/test-stat.c: Likewise.
43497
43498 2009-09-19  Jim Meyering  <meyering@redhat.com>
43499
43500         syntax-check: detect unnecessary inclusion of canonicalize.h
43501         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43502
43503 2009-09-19  Eric Blake  <ebb9@byu.net>
43504
43505         canonicalize-lgpl: adjust clients to use correct header
43506         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43507         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43508         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43509         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43510         * lib/progreloc.c (includes): Likewise.
43511
43512 2009-09-19  Jim Meyering  <meyering@redhat.com>
43513
43514         test-posixtm.c: correct a comment
43515         * tests/test-posixtm.c: Correct first-line comment.
43516         Spotted by Eric Blake.
43517
43518 2009-09-16  Jim Meyering  <meyering@redhat.com>
43519
43520         posixtm-tests: make T const-correct; add a test case
43521         * tests/test-posixtm.c (T): Declare const.
43522         Add a test for -(2^31+1).
43523         Remove useless can-succeed-only-in-2002 test.
43524
43525         posixtm-tests: adjust the sole failing test
43526         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43527         expected output matches what mktime now produces.  Cross-checked via
43528         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43529
43530         posixtm: move #ifdef'd tests into a new module
43531         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43532         * tests/test-posixtm.c: ... this new file.
43533         * modules/posixtm-tests: New module.
43534
43535 2009-09-19  Eric Blake  <ebb9@byu.net>
43536
43537         openat: simplify use of at-func.c
43538         * lib/at-func.c (includes): Include prerequisites here, to
43539         simplify requirements on client files.
43540         * lib/openat-priv.h: Add double-inclusion guard.
43541         * lib/faccessat.c (includes): Simplify.
43542         * lib/fchmodat.c (includes): Likewise.
43543         * lib/fchownat.c (includes): Likewise.
43544         * lib/mkdirat.c (includes): Likewise.
43545         * lib/mkfifoat.c (includes): Likewise.
43546         * lib/symlinkat.c (includes): Likewise.
43547
43548         openat: allow return of fd 0
43549         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43550         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43551         unistd-safer.
43552         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43553         <fcntl.h>; this module does not leak fds.
43554         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43555         must be allowed to return 0, leaving openat_safer to add the
43556         safety.
43557         (openat_permissive): Avoid writing to just-opened fd 2 if
43558         restoring the current directory fails.
43559         * lib/openat-die.c (openat_restore_fail): Add comment.
43560         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43561         (save_cwd): Guarantee safe fd, but without use of open_safer.
43562         * tests/test-openat.c: New test.
43563         * modules/openat-tests (Files, Makefile.am): Distribute and build
43564         new file.
43565
43566         relocatable-prog-wrapper: fix build
43567         * modules/relocatable-prog-wrapper (Files): Update name of
43568         canonicalize m4 file, broken on 2009-09-17.
43569         Reported by emad hajjar <aleppos@hotmail.com>.
43570
43571 2009-09-19  Bruno Haible  <bruno@clisp.org>
43572
43573         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43574         * lib/safe-alloc.c: Likewise.
43575         Reported by Ian Beckwith <ianb@erislabs.net>.
43576
43577 2009-09-18  Bruno Haible  <bruno@clisp.org>
43578
43579         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43580         Reported by <erobles@sensacd.com.mx>.
43581
43582 2009-09-17  Eric Blake  <ebb9@byu.net>
43583
43584         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
43585         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
43586         slashes when checking if last component is missing.
43587         * tests/test-canonicalize.c (main): Test this.
43588
43589         canonicalize, canonicalize-lgpl: honor // if distinct from /
43590         * modules/canonicalize (Files): Add double-slash-root.m4.
43591         * modules/canonicalize-lgpl (Files): Likewise.
43592         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43593         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
43594         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
43595         fallback definition.
43596         (canonicalize_filename_mode): Use it to protect //.
43597         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
43598         (__realpath): Likewise.
43599         * tests/test-canonicalize.c (main): Test this.
43600         * tests/test-canonicalize-lgpl.c (main): Likewise.
43601         * modules/canonicalize-tests (Depends-on): Add same-inode.
43602         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43603
43604         canonicalize-lgpl: fix glibc bug with trailing slash
43605         * m4/canonicalize-lgpl.m4: Move contents...
43606         * m4/canonicalize.m4: ...here.
43607         (gl_CANONICALIZE_LGPL): Factor realpath check...
43608         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
43609         glibc 2.3.5 bug, fixed 2005-04-27.
43610         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
43611         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
43612         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
43613         * modules/canonicalize-lgpl (Files): Manage file rename.
43614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43615         * modules/stdlib (Makefile.am): Substitute witness.
43616         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
43617         is needed.
43618         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
43619         replacement is required.
43620         * lib/canonicalize.c (canonicalize_file_name): Likewise.
43621         * doc/glibc-functions/canonicalize_file_name.texi
43622         (canonicalize_file_name): Document this.
43623         * doc/posix-functions/realpath.texi (realpath): Likewise.
43624
43625         canonicalize-lgpl: reject non-directory with trailing slash
43626         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
43627         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
43628         catches failures in glibc 2.3.5.
43629         * tests/test-canonicalize.c (main): Likewise.
43630
43631         canonicalize-lgpl: use native realpath if it works
43632         * lib/canonicalize-lgpl.c (realpath): Guard with
43633         FUNC_REALPATH_WORKS.
43634         * lib/stdlib.in.h (realpath): Make declaration optional based on
43635         HAVE_REALPATH.
43636         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
43637         native realpath works.
43638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43639         * modules/stdlib (Makefile.am): Substitute witness.
43640
43641         canonicalize, canonicalize-lgpl: use <stdlib.h>
43642         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
43643         (Include): Mention <stdlib.h>.
43644         (configure.ac): Mention functions we provide.
43645         * modules/canonicalize (configure.ac): Likewise.
43646         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
43647         realpath if canonicalize_file_name is missing.
43648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
43649         * modules/stdlib (Makefile.am): Substitute witnesses.
43650         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
43651         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
43652         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
43653         * NEWS: Document this.
43654         * doc/glibc-functions/canonicalize_file_name.texi
43655         (canonicalize_file_name): Likewise.
43656         * doc/posix-functions/realpath.texi (realpath): Likewise.
43657         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
43658
43659         test-canonicalize: consolidate into single C program
43660         * tests/test-canonicalize.sh: Delete; move setup into...
43661         * tests/test-canonicalize.c (main): ...the program, making it
43662         easier to run in debugger.  Add some tests.
43663         * modules/canonicalize-tests (Files): Remove unused file.
43664         (Depends-on): Add progname.
43665         (configure.ac, Makefile.am): Simplify.
43666
43667         test-canonicalize-lgpl: consolidate into single C program
43668         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
43669         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
43670         easier to run in debugger.  Add some tests.
43671         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
43672         (configure.ac, Makefile.am): Simplify.
43673
43674         canonicalize: avoid resolvepath
43675         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
43676         unnecessary checks.
43677         * lib/canonicalize.c (includes): Simplify.
43678         (canonicalize_file_name): Drop resolvepath implementation.
43679         * modules/canonicalize (Depends-on): Drop filenamecat.
43680
43681         canonicalize: don't lose errno
43682         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
43683         over calls to free.
43684
43685         canonicalize: simplify errno handling
43686         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
43687         assignment.
43688
43689         canonicalize, canonicalize-lgpl: update module dependencies
43690         * modules/canonicalize (Depends-on): Add extensions, lstat,
43691         pathmax, stdlib.
43692         (Files): Drop pathmax.h.
43693         (configure.ac): Adjust macro name.
43694         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
43695         lstat, stdlib, sys_stat.
43696         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
43697         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
43698         extensions.
43699         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
43700         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
43701         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
43702         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
43703         declaration, if available.
43704         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
43705         we can rely on the readlink module.
43706         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
43707         (includes): Use <unistd.h> unconditionally.
43708
43709 2009-09-17  Eric Blake  <ebb9@byu.net>
43710
43711         maint: make Include sections of modules consistent
43712         * modules/alloca: Use only header name; no need to list #include.
43713         * modules/alloca-opt: Likewise.
43714         * modules/arpa_inet: Likewise.
43715         * modules/canon-host: Likewise.
43716         * modules/configmake: Likewise.
43717         * modules/dirent: Likewise.
43718         * modules/eealloc: Likewise.
43719         * modules/environ: Likewise.
43720         * modules/fchdir: Likewise.
43721         * modules/fcntl: Likewise.
43722         * modules/fcntl-h: Likewise.
43723         * modules/gethrxtime: Likewise.
43724         * modules/gettime: Likewise.
43725         * modules/ignore-value: Likewise.
43726         * modules/inet_ntop: Likewise.
43727         * modules/inet_pton: Likewise.
43728         * modules/inttypes: Likewise.
43729         * modules/isnand-nolibm: Likewise.
43730         * modules/isnanf-nolibm: Likewise.
43731         * modules/mbchar: Likewise.
43732         * modules/mbfile: Likewise.
43733         * modules/mbiter: Likewise.
43734         * modules/mbuiter: Likewise.
43735         * modules/netdb: Likewise.
43736         * modules/netinet_in: Likewise.
43737         * modules/nproc: Likewise.
43738         * modules/pagealign_alloc: Likewise.
43739         * modules/poll: Likewise.
43740         * modules/printf-frexp: Likewise.
43741         * modules/pthread: Likewise.
43742         * modules/putenv: Likewise.
43743         * modules/random_r: Likewise.
43744         * modules/relocatable-prog: Likewise.
43745         * modules/search: Likewise.
43746         * modules/select: Likewise.
43747         * modules/selinux-h: Likewise.
43748         * modules/settime: Likewise.
43749         * modules/signal: Likewise.
43750         * modules/size_max: Likewise.
43751         * modules/socklen: Likewise.
43752         * modules/ssize_t: Likewise.
43753         * modules/stdarg: Likewise.
43754         * modules/stdbool: Likewise.
43755         * modules/stddef: Likewise.
43756         * modules/stdint: Likewise.
43757         * modules/stdio: Likewise.
43758         * modules/stdlib: Likewise.
43759         * modules/string: Likewise.
43760         * modules/strings: Likewise.
43761         * modules/sys_file: Likewise.
43762         * modules/sys_ioctl: Likewise.
43763         * modules/sys_select: Likewise.
43764         * modules/sys_socket: Likewise.
43765         * modules/sys_stat: Likewise.
43766         * modules/sys_time: Likewise.
43767         * modules/sys_times: Likewise.
43768         * modules/sys_utsname: Likewise.
43769         * modules/sys_wait: Likewise.
43770         * modules/sysexits: Likewise.
43771         * modules/time: Likewise.
43772         * modules/times: Likewise.
43773         * modules/tmpfile: Likewise.
43774         * modules/trim: Likewise.
43775         * modules/unistd: Likewise.
43776         * modules/wchar: Likewise.
43777         * modules/wctype: Likewise.
43778
43779 2009-09-17  Bruno Haible  <bruno@clisp.org>
43780
43781         Make getdate.y compile on QNX and NetBSD 5 / i386.
43782         * m4/getdate.m4 (gl_GETDATE): Conditionally define
43783         TIME_T_FITS_IN_LONG_INT.
43784         * lib/getdate.y (long_time_t): New type.
43785         (relative_time): Change type of 'seconds' field to long_time_t.
43786         (get_date): Update types of local variables. Check against overflow
43787         during conversion from long_time_t to time_t.
43788         Reported by Matt Kraai <kraai@ftbfs.org>
43789         and Hasso Tepper <hasso@netbsd.org>.
43790
43791 2009-09-17  Bruno Haible  <bruno@clisp.org>
43792
43793         * modules/COPYING: Update copyright years.
43794         * modules/README: Likeiwse.
43795         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
43796         Reported by Ian Beckwith <ianb@erislabs.net>.
43797
43798 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43799
43800         * users.txt: Update references for gnuit package.
43801
43802 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43803
43804         * m4/getdelim.m4: Fix typo in copyright line.
43805
43806 2009-09-17  Bruno Haible  <bruno@clisp.org>
43807
43808         * lib/atoll.c: Use the standard header with GPL copyright.
43809         * lib/argz.in.h: Likewise.
43810         * lib/glob.c: Likewise.
43811         * lib/glob-libc.h: Likewise.
43812         * lib/random_r.c: Likewise.
43813         * lib/siglist.h: Likewise.
43814         * lib/strsignal.c: Likewise.
43815         Reported by Ian Beckwith <ianb@erislabs.net>.
43816
43817 2009-09-17  Eric Blake  <ebb9@byu.net>
43818
43819         rmdir: ensure correct dependency order
43820         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
43821
43822 2009-09-17  Bruno Haible  <bruno@clisp.org>
43823
43824         Disable assertion that fails on NetBSD 5 / i386.
43825         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
43826         Reported by Sam Steingold <sds@gnu.org>
43827         and Hasso Tepper <hasso@netbsd.org>.
43828
43829 2009-09-16  Eric Blake  <ebb9@byu.net>
43830
43831         unlinkdir: port to mingw
43832         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
43833         on which no one can unlink a directory.
43834
43835         stdlib: sort witness names
43836         * modules/stdlib (Makefile.am): Sort replacements.
43837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43838         * lib/stdlib.in.h: Likewise.
43839
43840         parse-duration-tests: avoid link failure
43841         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
43842         LIBINTL.
43843         Reported by Tom G. Christensen.
43844
43845         openat-tests: ensure unlinkat behaves like rmdir
43846         * tests/test-rmdir.c (main): Factor guts...
43847         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
43848         * modules/rmdir-tests (Files): Ship new file.
43849         * modules/openat-tests: New test.
43850         * tests/test-unlinkat.c: Likewise.
43851
43852         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
43853         * modules/rmdir-errno (Status, Notice): Now obsolete.
43854
43855         rmdir: work around cygwin 1.5.x and mingw bugs
43856         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
43857         * lib/rmdir.c (rmdir): Work around it.
43858         * modules/rmdir (Status, Notice): No longer obsolete.
43859         (Files): Add dos.m4.
43860         (Depends-on): Add unistd.
43861         (configure.ac): Set witnesses.
43862         (License): Relax to LGPLv2+.
43863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
43864         * modules/unistd (Makefile.am): Substitute witnesses.
43865         * lib/unistd.in.h (rmdir): Declare replacement.
43866         * doc/posix-functions/rmdir.texi (rmdir): Document this.
43867         * modules/rmdir-tests: New tests.
43868         * tests/test-rmdir.c: Likewise.
43869
43870 2009-09-15  Eric Blake  <ebb9@byu.net>
43871
43872         fchdir: improve use of replacement functions
43873         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
43874         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
43875         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
43876         REPLACE_CLOSEDIR.
43877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
43878         * modules/sys_stat (Makefile.am): Substitute correct witness.
43879         * modules/dirent (Makefile.am): Likewise.
43880         * modules/unistd (Makefile.am): Likewise.
43881         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
43882         * lib/unistd.in.h (dup): Likewise.
43883         * lib/sys_stat.in.h (fstat): Likewise.
43884
43885         maint: ignore gnulib-tool temp files
43886         * .gitignore: Ignore files created during gnulib-tool --test.
43887
43888 2009-09-13  Jim Meyering  <meyering@redhat.com>
43889
43890         posixtm: don't reject a time that specify "60" as the number of seconds
43891         * lib/posixtm.c (posixtime): The code to reject invalid dates
43892         would also reject a time specified with the .60 suffix.
43893         But POSIX allows that, in order to accommodate leap seconds.
43894         So don't reject it.
43895         (main): Adjust tests accordingly.
43896         * modules/posixtm (Depends-on): Add stpcpy.
43897
43898 2009-09-11  Jim Meyering  <meyering@redhat.com>
43899
43900         announce-gen: include [$release_type] in emitted Subject:
43901         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
43902         e.g., [stable] in the emitted Subject: line.
43903
43904 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43905
43906         Remove obsolete macros from several modules.
43907         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
43908         obsolete Autoconf macros with their modern counterparts.
43909         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
43910         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
43911         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
43912         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43913         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
43914         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43915         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43916         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43917         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
43918         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
43919         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43920         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43921         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
43922         * m4/sockets.m4 (gl_SOCKETS): Likewise.
43923         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
43924         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
43925         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43926         * m4/time_r.m4 (gl_TIME_R): Likewise.
43927         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
43928         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
43929         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43930
43931         Fix copyright header in build-aux scripts.
43932         * build-aux/git-version-gen: Fix copyright header to match GPLv3
43933         recommendation.
43934         * build-aux/ncftpput-ftp: Likewise.
43935         * build-aux/update-copyright: Likewise.
43936
43937 2009-09-09  Eric Blake  <ebb9@byu.net>
43938
43939         test-link: allow Linux choice of errno
43940         * tests/test-link.c (main): Relax test for alternate error.
43941
43942         strndup: fix improper m4 caching
43943         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
43944         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
43945         (gl_PREREQ_STRNDUP): Delete.
43946         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
43947         * modules/string (Makefile.am): Substitute it.
43948         * lib/string.in.h (strndup): Modernize prototype.
43949
43950         getcwd: port to mingw
43951         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
43952         different from the POSIX assumptions made throughout the getcwd
43953         module; fortunately, the mingw getcwd does not need replacement.
43954         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
43955         * modules/getcwd-tests: New test.
43956         * tests/test-getcwd.c: Likewise.
43957
43958         link: fix platform bugs
43959         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
43960         * lib/link.c (link): Work around them.  Fix related mingw bug.
43961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
43962         * modules/unistd (Makefile.am): Substitute it.
43963         * lib/unistd.in.h (link): Declare replacement.
43964         * doc/posix-functions/link.texi (link): Document this.
43965         * modules/link (Depends-on): Add strdup-posix, sys_stat.
43966
43967         test-link: consolidate into single C program, test more cases
43968         * tests/test-link.sh: Delete.
43969         * tests/test-link.c: Test more error conditions.  Exposes bugs on
43970         at least Cygwin and Solaris.
43971         * modules/link-tests (Files): Remove unused file.
43972         (Depends-on): Add errno, sys_stat.
43973         (Makefile.am): Simplify.
43974
43975 2009-09-08  Bruno Haible  <bruno@clisp.org>
43976
43977         Work around towlower, towupper bug on mingw.
43978         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
43979         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
43980         * doc/posix-functions/towlower.texi: Mention the mingw bug.
43981         * doc/posix-functions/towupper.texi: Likewise.
43982         Reported by Eric Blake.
43983
43984 2009-09-08  Jim Meyering  <meyering@redhat.com>
43985
43986         build: don't try to run autoheader if we don't use it
43987         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
43988         is not used in configure.ac.
43989
43990 2009-09-08  Eric Blake  <ebb9@byu.net>
43991
43992         euidaccess: fix compilation error
43993         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
43994
43995         rawmemchr: relax license
43996         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
43997         okay.
43998         Reported by Jim Meyering.
43999
44000         mkfifoat: new module
44001         * modules/mkfifoat: New file.
44002         * lib/mkfifoat.c: Likewise.
44003         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44004         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44005         * modules/sys_stat (Makefile.am): Use them.
44006         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44007         * MODULES.html.sh (File system functions): Mention module.
44008         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44009         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44010         * modules/mkfifoat-tests: New test.
44011         * tests/test-mkfifoat.c: Likewise.
44012
44013         strchrnul: relax license
44014         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44015         okay.
44016         Reported by Jim Meyering.
44017
44018 2009-09-08  Eric Blake  <ebb9@byu.net>
44019
44020         fstatat: fix compilation on Solaris
44021         * lib/fstatat.c (includes): Add fcntl.h.
44022         Reported by Pádraig Brady.
44023
44024 2009-09-07  Eric Blake  <ebb9@byu.net>
44025
44026         rename: modernize replacement
44027         * modules/rename (Depends-on): Add stdio.
44028         (configure.ac): Declare witness.
44029         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44030         stdio take care of replacement.
44031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44032         * modules/stdio (Makefile.am): Substitute them.
44033         * lib/stdio.in.h (rename): Declare replacement.
44034         * lib/rename.c (includes): Allow cross-compilation to non-windows
44035         machines.
44036         * doc/posix-functions/rename.texi (rename): Improve
44037         documentation.
44038
44039         stdio: sort witness names
44040         * modules/stdio (Makefile.am): Sort replacements.
44041         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44042         * lib/stdio.in.h: Likewise.
44043
44044         getcwd: minor cleanups
44045         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44046         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44047
44048         openat: provide more convenience names
44049         * modules/faccessat (configure.ac): Add C witness.
44050         * lib/unistd.in.h (readlinkat): Fix typo.
44051         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44052         convenience wrappers.
44053         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44054         wrappers in syntax checks.
44055
44056 2009-09-06  Eric Blake  <ebb9@byu.net>
44057
44058         doc: fix comments in recent patches
44059         * lib/faccessat.c: Mention correct function.
44060         * lib/fchmodat.c: Likewise.
44061         * lib/fchownat.c: Likewise.
44062         * lib/symlinkat.c: Likewise.
44063         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44064         constants.
44065
44066         faccessat, symlinkat: continue cleanup of previous patch
44067         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44068         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44069         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44071         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44072         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44073         set.
44074
44075 2009-09-06  Bruno Haible  <bruno@clisp.org>
44076
44077         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44078         (fstatat): Declare if GNULIB_FSTATAT is set.
44079         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44080         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44081         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44082         * modules/fcntl-h (Files): Remove m4/openat.m4.
44083         * modules/sys_stat (Files): Remove m4/openat.m4.
44084         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44085         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44086         * modules/unistd (Files): Remove m4/openat.m4.
44087         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44088         GNULIB_OPENAT.
44089         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44090         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44091         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44092         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44093         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44094         gl_OPENAT_DEFAULTS.
44095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44096         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44097         Don't require gl_OPENAT_DEFAULTS.
44098         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44099         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44100         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44101         (gl_OPENAT_DEFAULTS): Remove macro.
44102
44103 2009-09-06  Bruno Haible  <bruno@clisp.org>
44104
44105         * modules/openat (configure.ac): Remove unneeded witness.
44106
44107 2009-09-06  Bruno Haible  <bruno@clisp.org>
44108
44109         Set errno to ENOSYS when a function is entirely unsupported.
44110         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44111         EOPNOTSUPP.
44112         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44113         * modules/chown (Depends-on): Remove errno.
44114
44115 2009-09-06  Bruno Haible  <bruno@clisp.org>
44116
44117         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44118
44119 2009-09-06  Bruno Haible  <bruno@clisp.org>
44120
44121         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44122
44123 2009-09-06  Ben Pfaff  <blp@gnu.org>
44124             Bruno Haible  <bruno@clisp.org>
44125
44126         Work around a glibc bug in strtok_r.
44127         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44128         Undefine if UNDEFINE_STRTOK_R is set.
44129         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44130         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44131         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44132         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44133         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44134         UNDEFINE_STRTOK_R.
44135         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44136
44137 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44138
44139         exclude: minor fix
44140         * lib/exclude.c: Include wctype.h
44141
44142 2009-09-06  Akim Demaille  <demaille@gostai.com>
44143
44144         bootstrap: improve error message
44145         * build-aux/bootstrap (find_tool): Upon failure, report the list
44146         of candidates.
44147         Honor the initial value of the envvar.
44148
44149 2009-09-05  Eric Blake  <ebb9@byu.net>
44150
44151         symlinkat: new module
44152         * modules/symlinkat: New file.
44153         * lib/symlinkat.c: Likewise.
44154         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44156         * modules/unistd (Makefile.am): Use them.
44157         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44158         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44159         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44160         * MODULES.html.sh (File system functions): Mention module.
44161         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44162         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44163         * modules/symlinkat-tests: New test.
44164         * tests/test-symlinkat.c: Likewise.
44165
44166         test-openat-safer: add more checks
44167         * tests/test-openat-safer.c (main): Check more code paths.
44168
44169 2009-09-05  Jim Meyering  <meyering@redhat.com>
44170
44171         syntax-check: detect unnecessary inclusion of openat.h
44172         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44173
44174 2009-09-05  Bruno Haible  <bruno@clisp.org>
44175
44176         Support towlower, towupper.
44177         * doc/posix-functions/towlower.texi: Mention module wctype.
44178         * doc/posix-functions/towupper.texi: Likewise.
44179         * lib/wctype.in.h (towlower, towupper): New functions.
44180         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44181         (ASSERT): New macro.
44182         (e): New variable.
44183         (main): Test also towlower, towupper. Test WEOF argument.
44184         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44185
44186 2009-09-05  Bruno Haible  <bruno@clisp.org>
44187
44188         Fix conversion behaviour when the input is invalid.
44189         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44190         mark occurring in first pass of indirect conversion.
44191         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44192         input.
44193         Found by clang's static analyzer.
44194
44195 2009-09-05  Bruno Haible  <bruno@clisp.org>
44196
44197         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44198         where direct conversion is possible.
44199
44200 2009-09-04  Eric Blake  <ebb9@byu.net>
44201
44202         openat: fail with ENOENT on empty name
44203         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44204         buffer.
44205
44206         link-follow: fix logic bug in prior patch
44207         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44208         reversed sense of yes and no in prior patch.  Avoid confusing
44209         compilation failure with desired semantics.
44210
44211         link-follow: accommodate mingw and cross-compilation
44212         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44213         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44214         cross-compilation results to -1, to make linkat easier to
44215         implement when cross-compiling.  Trivially support mingw.
44216         * modules/link-follow (configure.ac): Call new name.
44217         * NEWS: Mention this.
44218
44219 2009-09-03  Eric Blake  <ebb9@byu.net>
44220
44221         faccessat: compile replacement
44222         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44223         needed.
44224
44225         fts: fix compilation error
44226         * lib/fts.c (includes): Re-add "openat.h", for
44227         openat_needs_fchdir.
44228
44229         faccessat: new module
44230         * modules/faccessat: New file.
44231         * lib/faccessat.c: Likewise.
44232         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44234         * modules/unistd (Makefile.am): Use it.
44235         * lib/unistd.in.h (faccessat): Declare it.
44236         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44237         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44238         * MODULES.html.sh (File system functions): Mention it.
44239         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44240         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44241
44242         euidaccess: prefer POSIX over non-standard implementation
44243         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44244         * lib/euidaccess.c (euidaccess): Use it if available.
44245
44246         openat: make template easier to use
44247         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44248         AT_FUNC_F2 to be undefined.
44249         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44250         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44251         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44252         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44253         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44254         Likewise.
44255         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44256         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44257         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44258         Likewise.
44259
44260         openat: declare in POSIX headers
44261         * NEWS: Mention this.
44262         * modules/openat (configure.ac): Declare witnesses.
44263         (Depends-on): Add fcntl-h, sys_stat, unistd.
44264         (Include): Mention correct headers.
44265         * modules/fcntl-h (Depends-on): Add link-warning.
44266         (Files): Add openat.m4.
44267         (Makefile.am): Substitute witnesses.
44268         * modules/sys_stat (Files, Makefile.am): Likewise.
44269         * modules/unistd (Files, Makefile.am): Likewise.
44270         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44271         (gl_OPENAT_DEFAULTS): New macro.
44272         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44274         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44275         (SYS_STAT_H): Remove unused variable.
44276         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44277         * lib/fcntl--.h (includes): Remove unneeded header.
44278         * lib/openat-safer.c (includes): Likewise.
44279         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44280         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44281         appropriate headers.
44282         (__OPENAT_PREFIX): Delete.
44283         * lib/fcntl.in.h (openat): Provide declaration.
44284         (AT_FDCWD): Fix Solaris bug.
44285         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44286         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44287         * lib/fchmodat.c (includes):  Adjust to find declaration.
44288         * lib/fchownat.c (includes): Likewise.
44289         * lib/mkdirat.c (includes): Likewise.
44290         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44291         still visible.
44292
44293 2009-09-02  Eric Blake  <ebb9@byu.net>
44294
44295         errno: use consistently
44296         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44297         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44298         * lib/canonicalize.c (ELOOP): Likewise.
44299         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44300         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44301         * lib/lchown.c (EOPNOTSUPP): Likewise.
44302         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44303         * lib/savewd.c (ESTALE): Likewise.
44304         * lib/settime.c (ENOSYS): Likewise.
44305         * lib/utimens.c (ENOSYS): Likewise.
44306         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44307         * lib/chdir-safer.c (ELOOP): Likewise.
44308         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44309         * modules/c-stack (Depends-on): Add errno.
44310         * modules/canonicalize (Depends-on): Likewise.
44311         * modules/chdir-safer (Depends-on): Likewise.
44312         * modules/fdopendir (Depends-on): Likewise.
44313         * modules/inet_ntop (Depends-on): Likewise.
44314         * modules/inet_pton (Depends-on): Likewise.
44315         * modules/lchown (Depends-on): Likewise.
44316         * modules/openat (Depends-on): Likewise.
44317         * modules/savewd (Depends-on): Likewise.
44318         * modules/settime (Depends-on): Likewise.
44319         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44320
44321         fts: avoid leaking fds
44322         * modules/fts (Depends-on): Add cloexec.
44323         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44324         flag.
44325
44326         fts: make directory fds more robust
44327         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44328         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44329
44330         backupfile, chdir-long, fts, savedir: make safer
44331         * lib/backupfile.c (includes): Use "dirent--.h", since
44332         numbered_backup can write to stderr during readdir.
44333         * lib/savedir.c (includes): Likewise.
44334         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44335         emulation can write to stderr on failure.
44336         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44337         * lib/getcwd.c: Document why opendir_safer is unused.
44338         * lib/glob.c: Likewise.
44339         * lib/scandir.c: Likewise.
44340         * lib/openat-proc.c: Likewise, for open_safer.
44341         * modules/backupfile (Depends-on): Add dirent-safer.
44342         * modules/savedir (Depends-on): Likewise.
44343         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44344         * modules/chdir-long (Depends-on): Add openat-safer.
44345
44346         openat-safer: new module
44347         * modules/openat-safer: New file.
44348         * lib/openat-safer.c: Likewise.
44349         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44350         * lib/fcntl-safer.h (openat_safer): Declare.
44351         * lib/fcntl--.h (openat): Override.
44352         * MODULES.html.sh (File descriptor based I/O): Mention it.
44353         * lib/openat.h: Add double-inclusion guards.
44354         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44355         "fcntl--.h", so we can implement openat.
44356         * modules/openat-safer-tests: New test.
44357         * tests/test-openat-safer.c: New file.
44358
44359         dirent-safer: new module
44360         * modules/dirent-safer: New file.
44361         * lib/dirent--.h: Likewise.
44362         * lib/dirent-safer.h: Likewise.
44363         * lib/opendir-safer.c: Likewise.
44364         * m4/dirent-safer.m4: Likewise.
44365         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44366         * modules/dirent-safer-tests: New test.
44367         * tests/test-dirent-safer.c: New file.
44368         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44369
44370         fdopendir: optimize on mingw
44371         * lib/unistd.in.h (_gl_directory_name): New prototype.
44372         * lib/fchdir.c (_gl_directory_name): Implement it.
44373         (fchdir): Use it to simplify implementation.
44374         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44375         fchdir, when available, to avoid calling [f]chdir().
44376
44377         fdopendir: split into its own module
44378         * lib/openat.c (fdopendir): Move...
44379         * lib/fdopendir.c: ...into new file.
44380         * modules/fdopendir: New module.
44381         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44382         * modules/openat (Depends-on): Add fdopendir.
44383         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44384         fdopendir here.
44385         * modules/savedir (Depends-on): Only need fdopendir, not full
44386         openat.
44387         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44388         * lib/openat.h (fdopendir): Drop prototype.
44389         * lib/dirent.in.h (fdopendir): Provide prototype.
44390         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44391         * modules/dirent (Makefile.am): Substitute them.
44392         * MODULES.html.sh (File system functions): Mention it.
44393         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44394         * modules/fdopendir-tests: New file.
44395         * tests/test-fdopendir.c: Likewise.
44396
44397         fchdir: use more consistent macro convention
44398         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44399         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44400         REPLACE_FCHDIR, rather than relying on config.h macros.
44401         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44402         inside a single make-time REPLACE_FCHDIR block, rather than using
44403         the config.h FCHDIR_REPLACEMENT.
44404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44405         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44406         Manage fstat replacement.
44407         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44408         REPLACE_FCHDIR.
44409         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44410         (Makefile.am): Substitute REPLACE_FCHDIR.
44411         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44412         FCHDIR_REPLACEMENT.
44413         * lib/dup-safer.c (dup_safer): Likewise.
44414         * lib/dup2.c (rpl_dup2): Likewise.
44415         * lib/dup3.c (rpl_dup3): Likewise.
44416         * lib/open.c (rpl_open): Likewise.
44417
44418         fchdir: simplify error handling, and support dup3
44419         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44420         stdbool, malloc-posix, realloc-posix.
44421         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44422         (ensure_dirs_slot): Return false on allocation failure.
44423         (rpl_dup2): Delete.
44424         (_gl_register_dup): New function.
44425         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44426         (_gl_register_fd): Close fd on allocation failure.
44427         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44428         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44429         prototype.
44430         (rpl_dup2_fchdir): Delete prototype.
44431         * lib/open.c (open): Update caller.
44432         * lib/dup2.c (dup2): Track fchdir metadata.
44433         * lib/dup3.c (dup3): Likewise.
44434         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44435         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44436
44437 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44438
44439         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44440         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44441         don't pass arguments to AC_OUTPUT.
44442
44443 2009-09-02  Bruno Haible  <bruno@clisp.org>
44444
44445         * modules/mkdtemp (License): Relicense under LGPLv2+.
44446         Reported by Paolo Bonzini.
44447
44448 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44449
44450         Replace uses of obsolete autoconf macros in Jim's modules.
44451         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44452         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44453         can evoke a warning from autoconf when run with -Wobsolete
44454         enabled.  They were declared obsolete for good reasons (see
44455         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44456         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44457         should not continue using the deprecated macros.
44458         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44459         obsolete Autoconf macros with modern counterparts.
44460         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44461         * m4/dos.m4 (gl_AC_DOS): Likewise.
44462         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44463         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44464         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44465         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44466         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44467         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44468         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44469         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44470         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44471         Likewise.
44472         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44473         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44474         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44475         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44476         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44477         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44478
44479 2009-09-01  Eric Blake  <ebb9@byu.net>
44480
44481         fchdir: fix off-by-one bug in previous patch
44482         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44483         (_gl_unregister_fd): Delete useless if.
44484
44485 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44486
44487         maint.mk: sort the list of syntax-check rules
44488         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44489         easier to get a sense of progress when the rules are run sequentially
44490         and take a long time.
44491
44492 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44493
44494         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44495         * modules/netinet_in: Likewise.
44496         * modules/sys_file: Likewise.
44497         * modules/sys_ioctl: Likewise.
44498         * modules/sys_select: Likewise.
44499         * modules/sys_socket: Likewise.
44500         * modules/sys_stat: Likewise.
44501         * modules/sys_time: Likewise.
44502         * modules/sys_times: Likewise.
44503         * modules/sys_utsname: Likewise.
44504         * modules/sys_wait: Likewise.
44505
44506 2009-09-01  Jim Meyering  <meyering@redhat.com>
44507
44508         fts: help ensure that return values are not ignored
44509         * lib/fts_.h (__GNUC_PREREQ): Define.
44510         (__attribute_warn_unused_result__): Define.
44511         (fts_children, fts_close, fts_open, fts_read): Declare with
44512         __attribute_warn_unused_result__.
44513
44514         fts: fts_close now fails also when closing a dir file descriptor fails
44515         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44516         and propagate to caller, along with errno.
44517
44518         announce-gen: correct formatting in --help output
44519         * build-aux/announce-gen (usage): Move the one-line description in
44520         --help output "up", to where it belongs, just after Usage:.
44521
44522 2009-08-31  Eric Blake  <ebb9@byu.net>
44523
44524         fchdir: port to mingw
44525         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44526         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44527         opened, then use a substitute.
44528         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44529         replacement.
44530         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44531         (_gl_register_fd): No need to check stat if open already filters
44532         all directories.
44533         (fchdir): Fix error condition to match POSIX.
44534         * modules/fchdir (Depends-on): Add sys_stat.
44535         * doc/posix-functions/open.texi (open): Document the limitation.
44536         * modules/fchdir-tests: New file.
44537         * tests/test-fchdir.c: Likewise.
44538
44539         canonicalize: allow cross-testing from cygwin to mingw
44540         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44541         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44542         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44543         Likewise.
44544         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44545         target does not support symlinks.
44546         * tests/test-canonicalize-lgpl.sh: Likewise.
44547
44548         chown: avoid compilation warning on mingw
44549         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44550         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44551         mingw.
44552         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44553         * modules/chown (Depends-on): Add errno.
44554
44555 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44556
44557         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44558         command.
44559
44560 2009-08-31  Jim Meyering  <meyering@redhat.com>
44561
44562         canonicalize: remove useless initialization
44563         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44564         initialization of local, "end".
44565
44566 2009-08-30  Bruno Haible  <bruno@clisp.org>
44567
44568         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44569         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44570         ENOSYS.
44571
44572 2009-08-30  Bruno Haible  <bruno@clisp.org>
44573
44574         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44575         /usr/xpg4/bin/tr when it exists.
44576         * tests/test-pipe-filter-gi1.sh: Likewise.
44577
44578 2009-08-30  Bruno Haible  <bruno@clisp.org>
44579
44580         Work around deficient /usr/bin/id program on Solaris.
44581         * tests/test-file-has-acl.sh (ID): New variable.
44582         * tests/test-set-mode-acl.sh (ID): Likewise.
44583         * tests/test-copy-acl.sh (ID): Likewise.
44584         * tests/test-copy-file.sh (ID): Likewise.
44585
44586 2009-08-30  Bruno Haible  <bruno@clisp.org>
44587
44588         New module 'xstriconveh'.
44589         * lib/xstriconveh.h: New file.
44590         * lib/xstriconveh.c: New file.
44591         * modules/xstriconveh: New file.
44592
44593 2009-08-30  Bruno Haible  <bruno@clisp.org>
44594
44595         Make it easier to use mem_cd_iconveh.
44596         * lib/striconveh.h (iconveh_t): New type.
44597         (iconveh_open, iconveh_close): New declarations.
44598         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44599         with a single 'const iconveh_t *' argument.
44600         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
44601         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44602         with a single 'const iconveh_t *' argument.
44603         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
44604         * tests/test-striconveh.c (main): Update.
44605         * NEWS: Mention the change.
44606
44607 2009-08-30  Bruno Haible  <bruno@clisp.org>
44608
44609         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
44610         problem.
44611
44612 2009-08-30  Bruno Haible  <bruno@clisp.org>
44613
44614         Work around iconv_open problem on Solaris.
44615         * lib/iconv_open-solaris.gperf: New file.
44616         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
44617         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
44618         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
44619         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
44620         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
44621         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
44622
44623 2009-08-29  Jim Meyering  <meyering@redhat.com>
44624
44625         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
44626         * top/maint.mk (cvs-check): Remove target; it was just an alias
44627         to the better-named vc-diff-check.
44628         (maintainer-distcheck): Remove rule.  It was used only from
44629         the (alpha/beta/major) target, and all of its commands but one
44630         were coreutils-specific.
44631         (vc-dist): Remove rule.
44632         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
44633         Run vc-diff-check, not vc-dist.
44634         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
44635
44636 2009-08-27  Bruno Haible  <bruno@clisp.org>
44637
44638         * tests/test-bitrotate.c (main): Remove test that uses a shift count
44639         of 0.
44640
44641 2009-08-27  Bruno Haible  <bruno@clisp.org>
44642
44643         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
44644         compilers.
44645         * doc/func.texi: Document the SunPRO C bug.
44646
44647 2009-08-27  Bruno Haible  <bruno@clisp.org>
44648
44649         Fix link error on Solaris.
44650         * tests/test-parse-duration.c (xstrdup): Remove function.
44651
44652 2009-08-26  Pádraig Brady  <P@draigbrady.com>
44653
44654         ignore-value: handle pointer types, too
44655         * lib/ignore-value.h (__attribute__): Remove definition.
44656         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
44657         of a more concise and more-often effective "(void) i" statement.
44658         (ignore_ptr): New function to suppress warnings from functions that
44659         return pointers, and to make it explicit that one function doesn't
44660         handle all cases.
44661
44662 2009-08-25  Bruno Haible  <bruno@clisp.org>
44663
44664         dup2: work around a Linux bug.
44665         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
44666         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
44667         * doc/posix-functions/dup2.texi: Mention the Linux bug.
44668         Reported by Simon Josefsson.
44669
44670 2009-08-25  Jim Meyering  <meyering@redhat.com>
44671
44672         libguestfs uses gnulib
44673         * users.txt: Add libguestfs.
44674
44675 2009-08-24  Eric Blake  <ebb9@byu.net>
44676
44677         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
44678         * lib/pipe2.c (includes): Add binary-io.h.
44679         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
44680
44681 2009-08-24  Bruno Haible  <bruno@clisp.org>
44682
44683         Tolerate declared but missing accept4 syscall.
44684         * lib/accept4.c (accept4): Invoke original accept4 function first, if
44685         available.
44686         * lib/sys_socket.in.h (accept4): If the function is already present,
44687         override it.
44688         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
44689         * modules/accept4 (Makefile.am): Compile accept4.c always.
44690         Reported by Paolo Bonzini and Eric Blake.
44691
44692 2009-08-23  Bruno Haible  <bruno@clisp.org>
44693
44694         New module 'accept4'.
44695         * lib/sys_socket.in.h (accept4): New declaration.
44696         * lib/accept4.c: New file.
44697         * m4/accept4.m4: New file.
44698         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44699         GNULIB_ACCEPT4, HAVE_ACCEPT4.
44700         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
44701         HAVE_ACCEPT4.
44702         * modules/accept4: New file.
44703         * doc/glibc-functions/accept4.texi: Mention the new module.
44704
44705 2009-08-24  Jim Meyering  <meyering@redhat.com>
44706
44707         progname: also set global program_invocation_name, when possible
44708         Before this change, a libtool-enabled program that calls glibc's
44709         error function would report the program name as
44710         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
44711         * modules/progname (configure.ac): Check for a declaration of
44712         program_invocation_name.
44713         * lib/progname.c:  Include <errno.h>.
44714         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
44715         Set program_invocation_name.
44716
44717 2009-08-23  Bruno Haible  <bruno@clisp.org>
44718
44719         * lib/dup3.c: Include <string.h>.
44720
44721 2009-08-23  Bruno Haible  <bruno@clisp.org>
44722
44723         * lib/dup3.c (dup3): Test only once whether the system actually exists.
44724         * lib/pipe2.c (pipe2): Likewise.
44725         Suggested by Eric Blake.
44726
44727 2009-08-23  Bruno Haible  <bruno@clisp.org>
44728
44729         Tolerate declared but missing dup3 syscall.
44730         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
44731         * lib/unistd.in.h (dup3): If the function is already present,
44732         override it.
44733         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
44734         * modules/dup3 (Makefile.am): Compile dup3.c always.
44735         Reported by Paolo Bonzini.
44736
44737 2009-08-23  Bruno Haible  <bruno@clisp.org>
44738
44739         Tolerate declared but missing pipe2 syscall.
44740         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
44741         available.
44742         * lib/unistd.in.h (pipe2): If the function is already present,
44743         override it.
44744         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
44745         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
44746         Reported by Paolo Bonzini.
44747
44748 2009-08-23  Bruno Haible  <bruno@clisp.org>
44749
44750         * lib/pipe2.c (pipe2): Move #ifs inside function.
44751
44752 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44753
44754         quotearg: document limitations of quote_these_too
44755         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
44756         those limitations are created.
44757         * lib/quotearg.h (set_char_quoting): Document that digits and
44758         letters that are special after backslash are not permitted.
44759         (quotearg_char): Cross-reference set_char_quoting documentation.
44760
44761 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
44762
44763         quotearg: implement custom_quoting_style
44764         * lib/quotearg.c: (struct quoting_options): Add left_quote and
44765         right_quote fields.
44766         (set_custom_quoting): New public function.
44767         (quotearg_buffer_restyled): Add left_quote and right_quote
44768         arguments, handle them very much like locale quoting, and update
44769         all uses.
44770         (quotearg_n_custom): New public function.
44771         (quotearg_n_custom_mem): New public function.
44772         (quotearg_custom): New public function.
44773         (quotearg_custom_mem): New public function.
44774         * lib/quotearg.h: Prototype and document new public functions.
44775         (enum quoting_style): For escape_quoting_style and
44776         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
44777         ignored even though they're otherwise like c_quoting_style.
44778         Add custom_quoting_style member and document with comparison to
44779         clocale_quoting_style.
44780         * tests/test-quotearg.c (custom_quotes): New array.
44781         (custom_results): New array.
44782         (main): Extend to test custom quoting.
44783
44784 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44785
44786         quotearg: fix right quote escaping when it's in quote_these_too
44787         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
44788         quote, be sure to prepend only one backslash.
44789         * tests/test-quotearg.c (use_quote_double_quotes): New function.
44790         (main): Test it.
44791
44792 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44793
44794         quotearg-tests: test escaping of embedded locale quotes
44795         * tests/test-quotearg.c (struct result_strings): Add member for
44796         new input.
44797         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
44798         (inputs): Add new input.
44799         (results_g): Add expected results.
44800         (flag_results): Likewise.
44801         (locale_results): Likewise.
44802         (compare_strings): Check those.
44803
44804 2009-08-23  Bruno Haible  <bruno@clisp.org>
44805
44806         Tests for module 'dup3'.
44807         * modules/dup3-tests: New file.
44808         * tests/test-dup3.c: New file.
44809
44810         New module 'dup3'.
44811         * lib/unistd.in.h (dup3): New declaration.
44812         * lib/dup3.c: New file.
44813         * m4/dup3.m4: New file.
44814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
44815         HAVE_DUP3.
44816         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
44817         * modules/dup3: New file.
44818         * doc/glibc-functions/dup3.texi: Mention the new module.
44819
44820 2009-08-23  Bruno Haible  <bruno@clisp.org>
44821
44822         Tweak the dup2 test.
44823         * tests/test-dup2.c (main): Create the test file empty. Verify that an
44824         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
44825         the test file is still empty. Fix argument order of lseek.
44826
44827 2009-08-23  Bruno Haible  <bruno@clisp.org>
44828
44829         Avoid test link errors when the modules getopt-gnu, gettext are used.
44830         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
44831         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44832
44833 2009-08-23  Bruno Haible  <bruno@clisp.org>
44834
44835         Fix getdtablesize() on mingw.
44836         * lib/getdtablesize.c (getdtablesize): Implement differently.
44837         * lib/unistd.in.h (getdtablesize): Improve comment.
44838
44839 2009-08-23  Bruno Haible  <bruno@clisp.org>
44840
44841         New module 'mkostemp'.
44842         Based on Ulrich Drepper's 2007-08-10 change in glibc.
44843         * lib/stdlib.in.h (mksotemp): New declaration.
44844         * lib/mkostemp.c: New file, from glibc with modifications.
44845         * lib/tempname.h (GT_FILE): Remove outdated comment.
44846         (gen_tempname): Add flags argument.
44847         * lib/tempname.c (__GT_BIGFILE): Remove macro.
44848         (__GT_FILE): Map to 1.
44849         (small_open, large_open): Remove macros.
44850         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
44851         * lib/mkstemp.c (mkstemp): Update.
44852         * lib/mkdtemp.c (mkdtemp): Likewise.
44853         * m4/mkostemp.m4: New file.
44854         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
44855         HAVE_MKOSTEMP.
44856         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
44857         HAVE_MKOSTEMP.
44858         * modules/mkostemp: New file, based on modules/mkstemp.
44859         * doc/glibc-functions/mkostemp.texi: Mention the new module.
44860         * NEWS: Mention the change.
44861
44862 2009-08-23  Bruno Haible  <bruno@clisp.org>
44863
44864         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
44865         Reported by Eric Blake.
44866
44867 2009-08-23  Bruno Haible  <bruno@clisp.org>
44868
44869         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
44870         Reported by Eric Blake.
44871
44872 2009-08-23  Bruno Haible  <bruno@clisp.org>
44873
44874         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
44875         * modules/pipe2 (Depends-on): Likewise.
44876
44877 2009-08-23  Eric Blake  <ebb9@byu.net>
44878
44879         fcntl-h: add O_TTY_INIT support
44880         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
44881         * tests/test-fcntl-h.c (o): Test it.
44882         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44883
44884         fcntl-h: rename from fcntl, in preparation for fcntl(2)
44885         * modules/fcntl: Move <fcntl.h> header replacement...
44886         * modules/fcntl-h: ...to new name, so as not to collide with
44887         like-named function.
44888         * tests/test-fcntl.c: Rename...
44889         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
44890         * modules/fcntl-tests: Rename...
44891         * modules/fcntl-h-tests: ...to this.  Update test file name.
44892         * modules/chdir-long (Depends-on): Update clients.
44893         * modules/chdir-safer (Depends-on): Likewise.
44894         * modules/fcntl-safer (Depends-on): Likewise.
44895         * modules/fts (Depends-on): Likewise.
44896         * modules/mkancesdirs (Depends-on): Likewise.
44897         * modules/mkdir-p (Depends-on): Likewise.
44898         * modules/open (Depends-on): Likewise.
44899         * modules/savewd (Depends-on): Likewise.
44900         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
44901         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44902
44903 2009-08-22  Bruno Haible  <bruno@clisp.org>
44904
44905         * modules/binary-io (License): Relicense under LGPL.
44906         * modules/pipe2 (License): Likewise.
44907
44908 2009-08-22  Bruno Haible  <bruno@clisp.org>
44909
44910         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
44911         return value.
44912         * lib/pipe-filter-gi.c (filter_init): Likewise.
44913         Reported by Eric Blake.
44914
44915 2009-08-22  Bruno Haible  <bruno@clisp.org>
44916
44917         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
44918         * modules/pipe (Depends-on): Add pipe2.
44919
44920 2009-08-22  Bruno Haible  <bruno@clisp.org>
44921
44922         Tests for module 'pipe2'.
44923         * modules/pipe2-tests: New file.
44924         * tests/test-pipe2.c: New file.
44925
44926         New module 'pipe2'.
44927         * lib/unistd.in.h (pipe2): New declaration.
44928         * lib/pipe2.c: New file.
44929         * m4/pipe2.m4: New file.
44930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
44931         HAVE_PIPE2.
44932         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
44933         * modules/pipe2: New file.
44934         * doc/glibc-functions/pipe2.texi: Mention the new module.
44935
44936 2009-08-22  Bruno Haible  <bruno@clisp.org>
44937
44938         Reference some new glibc functions.
44939         * doc/glibc-functions/accept4.texi: New file.
44940         * doc/glibc-functions/dup3.texi: New file.
44941         * doc/glibc-functions/mkostemp.texi: New file.
44942         * doc/glibc-functions/pipe2.texi: New file.
44943         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
44944         (Glibc sys/socket.h): Refer to accept4.
44945         (Glibc unistd.h): Refer to dup3, pipe2.
44946         Reported by Eric Blake.
44947
44948 2009-08-22  Jim Meyering  <meyering@redhat.com>
44949             Bruno Haible  <bruno@clisp.org>
44950
44951         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
44952         This makes it so packages using automake-1.11's silent-rules option
44953         can print e.g., a single "GEN    configmake.h" line, rather than
44954         the 30+ statements that perform the job.  If you want to see the
44955         actual commands, you can still run "make V=1".
44956         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
44957         so that make output is abbreviated when those variables are defined
44958         appropriately.
44959         * modules/argz: Likewise.
44960         * modules/arpa_inet: Likewise.
44961         * modules/byteswap: Likewise.
44962         * modules/configmake: Likewise.
44963         * modules/dirent: Likewise.
44964         * modules/errno: Likewise.
44965         * modules/fcntl: Likewise.
44966         * modules/float: Likewise.
44967         * modules/fnmatch: Likewise.
44968         * modules/getopt-posix: Likewise.
44969         * modules/glob: Likewise.
44970         * modules/iconv_open: Likewise.
44971         * modules/inttypes: Likewise.
44972         * modules/localcharset: Likewise.
44973         * modules/locale: Likewise.
44974         * modules/math: Likewise.
44975         * modules/netdb: Likewise.
44976         * modules/netinet_in: Likewise.
44977         * modules/poll: Likewise.
44978         * modules/posix_spawnp-tests: Likewise.
44979         * modules/sched: Likewise.
44980         * modules/search: Likewise.
44981         * modules/selinux-h: Likewise.
44982         * modules/signal: Likewise.
44983         * modules/spawn: Likewise.
44984         * modules/stdarg: Likewise.
44985         * modules/stdbool: Likewise.
44986         * modules/stddef: Likewise.
44987         * modules/stdint: Likewise.
44988         * modules/stdio: Likewise.
44989         * modules/stdlib: Likewise.
44990         * modules/string: Likewise.
44991         * modules/strings: Likewise.
44992         * modules/sys_file: Likewise.
44993         * modules/sys_ioctl: Likewise.
44994         * modules/sys_select: Likewise.
44995         * modules/sys_socket: Likewise.
44996         * modules/sys_stat: Likewise.
44997         * modules/sys_time: Likewise.
44998         * modules/sys_times: Likewise.
44999         * modules/sys_utsname: Likewise.
45000         * modules/sys_wait: Likewise.
45001         * modules/sysexits: Likewise.
45002         * modules/time: Likewise.
45003         * modules/unistd: Likewise.
45004         * modules/wchar: Likewise.
45005         * modules/wctype: Likewise.
45006
45007 2009-08-22  Jim Meyering  <meyering@redhat.com>
45008
45009         announce-gen: detect write failure
45010         * build-aux/announce-gen: Add Coda at end.
45011         Remove equivalent-but-more-verbose block at top.
45012
45013 2009-08-19  Akim Demaille  <demaille@gostai.com>
45014
45015         bootstrap: --help to stdout.
45016         * bootstrap (usage): Don't send --help to stderr.
45017         Use a here doc instead of a long string.
45018
45019 2009-08-21  Eric Blake  <ebb9@byu.net>
45020
45021         test-popen-safer: split from test-popen
45022         * tests/test-popen.c (main): Move...
45023         * tests/test-popen.h: ...into new file.
45024         * tests/test-popen-safer2.c: New file.
45025         * modules/popen-tests (Files): Add test-popen.h.
45026         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45027         Suggested by Bruno Haible.
45028
45029         test-fcntl-safer: split from test-open
45030         * tests/test-open.c (main): Move...
45031         * tests/test-open.h: ...into new file.
45032         * tests/test-fcntl-safer.c: New file.
45033         * modules/open-tests (Files): Add test-open.h.
45034         * modules/fcntl-safer-tests: New file.
45035         Suggested by Bruno Haible.
45036
45037         test-fopen-safer: split from test-fopen
45038         * tests/test-fopen.c (main): Move...
45039         * tests/test-fopen.h: ...into new file.
45040         * tests/test-fopen-safer.c: New file.
45041         * modules/fopen-tests (Files): Add test-fopen.h.
45042         * modules/fopen-safer-tests: New file.
45043         Suggested by Bruno Haible.
45044
45045 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45046
45047         popen-safer: test O_CLOEXEC at run-time.
45048         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45049
45050 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45051
45052         fcntl: move more flags to the header
45053         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45054         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45055         * lib/fcntl.in.h: Do both things here.
45056
45057 2009-08-21  Jim Meyering  <meyering@redhat.com>
45058
45059         consistently remove $@-t before redirecting to it
45060         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45061         * modules/alloca-opt: Likewise.
45062         * modules/byteswap: Likewise.
45063         * modules/fnmatch: Likewise.
45064         * modules/getopt-posix: Likewise.
45065         * modules/glob: Likewise.
45066         * modules/poll: Likewise.
45067         * modules/posix_spawnp-tests: Likewise.
45068         * modules/sys_socket: Likewise.
45069         * modules/sysexits: Likewise.
45070
45071 2009-08-21  Eric Blake  <ebb9@byu.net>
45072
45073         popen: simplify access to original popen
45074         * lib/popen.c (rpl_popen): No need to worry about popen being a
45075         macro.
45076         Reported by Bruno Haible.
45077
45078 2009-08-20  Eric Blake  <ebb9@byu.net>
45079
45080         build: avoid some compiler warnings
45081         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45082         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45083         type.
45084         (new_exclude_segment, excluded_file_pattern_p)
45085         (excluded_file_name_p): Reduce scope.
45086         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45087         old-style declaration.
45088
45089 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45090
45091         * tests/test-exclude1.sh: Handle Windows EOL.
45092         * tests/test-exclude2.sh: Likewise.
45093         * tests/test-exclude3.sh: Likewise.
45094         * tests/test-exclude4.sh: Likewise.
45095         * tests/test-exclude5.sh: Likewise.
45096         * tests/test-exclude6.sh: Likewise.
45097         * tests/test-exclude7.sh: Likewise.
45098
45099 2009-08-19  Akim Demaille  <demaille@gostai.com>
45100
45101         bootstrap: find sha1sum when named gsha1sum.
45102         * bootstrap (find_tool): New.
45103         ($SHA1SUM): New.
45104         Use it.
45105
45106 2009-08-20  Jim Meyering  <meyering@redhat.com>
45107
45108         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45109         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45110         expression that converts "." in a file name to "\." in the resulting
45111         regexp.  Start with a dummy statement, so that prior shell variable
45112         definitions are expanded portably.  Reported by Simon Josefsson.
45113
45114 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45115
45116         Fix polling for writeability of a screen buffer.
45117         * lib/poll.c: Distinguish input and screen buffers for the
45118         Win32 implementation.
45119         * lib/select.c: Likewise.
45120
45121 2009-08-19  Eric Blake  <ebb9@byu.net>
45122
45123         popen-safer: prevent popen from clobbering std descriptors
45124         * modules/popen-safer: New file.
45125         * lib/popen-safer.c: Likewise.
45126         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45127         * lib/stdio--.h (popen): Provide override.
45128         * lib/stdio-safer.h (popen_safer): Provide declaration.
45129         * tests/test-popen.c (includes): Partially test this.
45130         * modules/popen-safer-tests: New file, for more tests.
45131         * tests/test-popen-safer.c: Likewise.
45132         * MODULES.html.sh (file stream based Input/Output): Mention it.
45133
45134         tests: test some of the *-safer modules
45135         * modules/fopen-safer (Depends-on): Add fopen.
45136         * modules/fcntl-safer (Depends-on): Add fcntl.
45137         * modules/stdlib-safer (Depends-on): Add stdlib.
45138         (configure.ac): Set indicator.
45139         * modules/unistd-safer (configure.ac): Likewise.
45140         * modules/tmpfile-safer (configure.ac): Likewise.
45141         (Depends-on): Add tmpfile.
45142         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45143         active.
45144         * tests/test-fopen.c (includes): Test safer versions when they are
45145         in use.
45146         * tests/test-open.c (includes): Likewise.
45147
45148         popen: fix cygwin 1.5 bug when stdin closed
45149         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45150         * modules/popen: New file.
45151         * modules/popen-tests: Likewise.
45152         * tests/test-popen.c: Likewise.
45153         * m4/popen.m4: Likewise.
45154         * lib/popen.c: Likewise.
45155         * lib/stdio.in.h (popen): New declaration.
45156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45157         * modules/stdio (Makefile.am): Likewise.
45158         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45159
45160 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45161
45162         maint.mk: give full control over update-copyright exclusions
45163         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45164         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45165         (update-copyright): Don't force inclusion of top-level
45166         ChangeLog.  Don't force exclusion of all COPYING files, but make
45167         them the default exclusion instead.
45168
45169 2009-08-16  Bruno Haible  <bruno@clisp.org>
45170
45171         Fix test failures on Solaris 10.
45172         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45173         tests when Solaris iconv() is used.
45174         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45175         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45176         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45177         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45178         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45179
45180 2009-08-16  Bruno Haible  <bruno@clisp.org>
45181
45182         Fix test failures on Solaris 10.
45183         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45184         'tr' program and pass it as first argument.
45185         * tests/test-pipe-filter-gi1.sh: Likewise.
45186         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45187         program as first argument.
45188         * tests/test-pipe-filter-gi1.c (main): Likewise.
45189
45190 2009-08-16  Eric Blake  <ebb9@byu.net>
45191
45192         fpurge: fix previous commits
45193         * modules/fpurge (Makefile.am): Make replacement conditional,
45194         partially reverting 2007-04-29 change; missed in previous
45195         attempt.
45196         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45197         is missing.
45198
45199 2009-08-16  Bruno Haible  <bruno@clisp.org>
45200
45201         Clarify fpurge's effect on the file position.
45202         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45203         * tests/test-fpurge.c (main): Make a second pass for checking the file
45204         position.
45205
45206 2009-08-16  Bruno Haible  <bruno@clisp.org>
45207
45208         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45209         declaration of fpurge is missing.
45210         * tests/test-fpurge.c (main): Check that the file has not more contents
45211         than expected. Close the file before removing it.
45212
45213 2009-08-15  Eric Blake  <ebb9@byu.net>
45214
45215         fpurge: don't wrap working cygwin implementation
45216         * lib/fpurge.c (fpurge): Fix comment typo.
45217         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45218         1.7 to avoid replacement.
45219         * tests/test-fpurge.c (main): Enhance test.
45220
45221 2009-08-15  Eric Blake  <ebb9@byu.net>
45222         and Jim Meyering  <meyering@redhat.com>
45223
45224         test-update-copyright: skip if perl is insufficient
45225         * tests/test-update-copyright.sh: Failure to run maintainer tool
45226         should not cause testsuite failure on cygwin 1.5.
45227
45228 2009-08-14  Eric Blake  <ebb9@byu.net>
45229
45230         doc: mention more functions added in cygwin 1.7.0
45231         * doc/posix-headers/limits.texi (limits.h): Update for recent
45232         cygwin additions.
45233         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45234         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45235         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45236         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45237         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45238
45239 2009-08-14  Eric Blake  <ebb9@byu.net>
45240
45241         maint.mk: simplify update-copyright rule
45242         * top/maint.mk (update-copyright-local): Delete, and document how
45243         to do it in cfg.mk instead.
45244         (update-copyright-exclude-regexp): Delete, and document how to do
45245         it in .x-update-copyright instead.
45246         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45247         exclude ChangeLog.
45248
45249 2009-08-14  Bruno Haible  <bruno@clisp.org>
45250
45251         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45252
45253 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45254
45255         maint.mk: support update-copyright-env
45256         * top/maint.mk (update-copyright-env): Define place-holder.
45257         (update-copyright): Expand $(update-copyright-env) before
45258         invoking update-copyright.
45259
45260 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45261
45262         update-copyright: implement forced reformatting
45263         * build-aux/update-copyright: Implement and document
45264         UPDATE_COPYRIGHT_FORCE.
45265         * tests/test-update-copyright.sh: Test it.
45266
45267 2009-08-14  Eric Blake  <ebb9@byu.net>
45268         and Bruno Haible  <bruno@clisp.org>
45269
45270         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45271         * tests/test-locale.c: Revert previous patch related to NULL.
45272         * tests/test-stdio.c: Likewise.
45273         * tests/test-stdlib.c: Likewise.
45274         * tests/test-string.c: Likewise.
45275         * tests/test-unistd.c: Likewise.
45276         * modules/time-tests (Depends-on): Add verify.
45277         * modules/wchar-tests (Depends-on): Likewise.
45278         * tests/test-time.c: Test for NULL compliance.
45279         * tests/test-wchar.c: Likewise.
45280         * modules/locale (Depends-on): Add stddef.
45281         * modules/stdio (Depends-on): Likewise.
45282         * modules/stdlib (Depends-on): Likewise.
45283         * modules/string (Depends-on): Likewise.
45284         * modules/time (Depends-on): Likewise.
45285         * modules/unistd (Depends-on): Likewise.
45286         * modules/wchar (Depends-on): Likewise.
45287         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45288         * lib/stdlib.in.h (includes): Likewise.
45289         * lib/string.in.h (includes): Likewise.
45290         * lib/time.in.h (includes): Likewise.
45291         * lib/unistd.in.h (includes): Likewise.
45292         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45293         replaced.
45294         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45295         * m4/stddef_h.m4: New file.
45296         * modules/stddef: Likewise.
45297         * lib/stddef.in.h: Likewise.
45298         * modules/stddef-tests: Likewise.
45299         * tests/test-stddef.c: Likewise.
45300         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45301         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45302         * doc/posix-headers/locale.texi (locale.h): Likewise.
45303         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45304         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45305         * doc/posix-headers/string.texi (string.h): Likewise.
45306         * doc/posix-headers/time.texi (time.h): Likewise.
45307         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45308         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45309
45310 2009-08-14  Eric Blake  <ebb9@byu.net>
45311
45312         doc: improve git diff of texinfo files
45313         * .gitattributes: Add rule for *.texi files, with hint on how to
45314         use it.
45315         Copied from m4, and based on a report by Bruno Haible.
45316
45317 2009-08-14  Bruno Haible  <bruno@clisp.org>
45318
45319         Disable multithread support by default on Cygwin 1.5.x for real.
45320         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45321
45322 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45323
45324         update-copyright: much ado about intervals
45325         * build-aux/update-copyright: Implement and document
45326         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45327         of copyright year intervals.
45328         Also, document UPDATE_COPYRIGHT_YEAR.
45329         * tests/test-update-copyright.sh: Test it.
45330
45331         update-copyright: convert 2-digit to 4-digit years
45332         * build-aux/update-copyright: Implement and document.
45333         * tests/test-update-copyright.sh: Update.
45334
45335 2009-08-14  Jim Meyering  <meyering@redhat.com>
45336
45337         test-exclude: avoid coreutils "make check" failure
45338         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45339         just as in test-argmatch.c.
45340
45341 2009-08-13  Eric Blake  <ebb9@byu.net>
45342
45343         test-dup2: fix bad assumption
45344         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45345         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45346
45347         test-version-etc: fix CRLF portability issue
45348         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45349         recognize \r.
45350         * tests/test-argp-version-etc-1.sh: Likewise.
45351
45352         getopt: update client modules
45353         * modules/argp (Depends-on): Use getopt-gnu.
45354         * modules/git-merge-changelog (Depends-on): Likewise.
45355         * modules/long-options (Depends-on): Likewise.
45356         * modules/xstrtol (Depends-on): Likewise.
45357
45358 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45359
45360         * tests/test-version-etc.sh: Don't fail on different
45361         project/version.  Don't fail on CRLF differences.  Rewrite to use
45362         multiple -e instead of multiple sed forks, suggested by Eric Blake
45363         <ebb9@byu.net>.
45364         * tests/test-argp-version-etc-1.sh: Likewise.
45365
45366 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45367
45368         * tests/test-version-etc.sh: Don't fail on different
45369         project/version.
45370
45371 2009-08-12  Bruno Haible  <bruno@clisp.org>
45372
45373         Tests for modules 'getopt-posix', 'getopt-gnu'.
45374         * modules/getopt-posix-tests: New file.
45375         * tests/test-getopt.c: New file.
45376         * tests/test-getopt.h: New file.
45377         * tests/test-getopt_long.h: New file.
45378
45379         New modules 'getopt-posix', 'getopt-gnu'.
45380         * modules/getopt-gnu: New file, renamed from modules/getopt.
45381         * modules/getopt-posix: New file.
45382         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45383         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45384         (gl_GETOPT): Remove macro.
45385         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45386         Disable the test against BSD systems that declare optreset. Test
45387         against mingw bug. Test against lack of support of optional arguments
45388         on many platforms.
45389         * doc/glibc-headers/getopt.texi: Update module name and list of
45390         relevant platforms.
45391         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45392         'getopt-gnu' and more portability problems.
45393         * NEWS: Mention the changes.
45394
45395 2009-08-12  Bruno Haible  <bruno@clisp.org>
45396
45397         Ensure that optarg etc. get declared by <unistd.h>.
45398         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45399         AC_USE_SYSTEM_EXTENSIONS.
45400         * modules/getopt (Depends-on): Add 'extensions'.
45401
45402 2009-08-12  Bruno Haible  <bruno@clisp.org>
45403
45404         Avoid test link errors.
45405         * modules/pipe-filter-ii-tests (Makefile.am): Define
45406         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45407         * modules/pipe-filter-gi-tests (Makefile.am): Define
45408         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45410
45411 2009-08-12  Bruno Haible  <bruno@clisp.org>
45412
45413         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45414         gl_GETOPT_SUBSTITUTE before.
45415         (gl_GETOPT): Use it.
45416         * m4/argp.m4 (gl_ARGP): Update.
45417         Reported by Sergey Poznyakoff.
45418
45419         * m4/getopt.m4: Reorder macros.
45420         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45421         (gl_GETOPT_SUBSTITUTE): Remove macro.
45422
45423 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45424
45425         Minor improvement in gitlog-to-changelog
45426
45427         * build-aux/gitlog-to-changelog: New option `--format' makes
45428         output format string configurable.
45429
45430 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45431
45432         Optimize exclude: use hash tables for non-wildcard patterns.
45433
45434         * lib/exclude.c: Include hash.h and mbuiter.h
45435         (struct exclude_pattern, exclude_segment): New data types.
45436         (struct exclude): Rewrite.
45437         (fnmatch_pattern_has_wildcards): New function.
45438         (new_exclude_segment, free_exclude_segment): New functions.
45439         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45440         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45441         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45442         * modules/exclude: Depend on hash and mbuiter.
45443
45444         * modules/exclude-tests: New file.
45445         * tests/test-exclude.c: New file.
45446         * tests/test-exclude1.sh: New file.
45447         * tests/test-exclude2.sh: New file.
45448         * tests/test-exclude3.sh: New file.
45449         * tests/test-exclude4.sh: New file.
45450         * tests/test-exclude5.sh: New file.
45451         * tests/test-exclude6.sh: New file.
45452         * tests/test-exclude7.sh: New file.
45453
45454 2009-08-12  Bruno Haible  <bruno@clisp.org>
45455
45456         Ensure that getopt() gets declared by <unistd.h>.
45457         * lib/unistd.in.h: Conditionally include getopt.h.
45458         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45459         Set GNULIB_UNISTD_H_GETOPT.
45460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45461         GNULIB_UNISTD_H_GETOPT.
45462         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45463
45464 2009-08-12  Bruno Haible  <bruno@clisp.org>
45465
45466         Clarify logic.
45467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45468         gl_replace_getopt instead of GETOPT_H.
45469
45470 2009-08-12  Bruno Haible  <bruno@clisp.org>
45471
45472         * m4/getopt.m4: Add comments.
45473
45474 2009-08-12  Bruno Haible  <bruno@clisp.org>
45475
45476         Disable multithread support by default on Cygwin 1.5.x.
45477         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45478         set gl_use_threads=no if not specified otherwise.
45479
45480 2009-08-11  Bruno Haible  <bruno@clisp.org>
45481
45482         Avoid compilation error on NetBSD 5.0.
45483         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45484         * tests/test-stdio.c: Likewise.
45485         * tests/test-stdlib.c: Likewise.
45486         * tests/test-string.c: Likewise.
45487         * tests/test-unistd.c: Likewise.
45488         Reported by Greg Troxel <gdt@ir.bbn.com>
45489         at <https://savannah.gnu.org/support/?106973>.
45490
45491 2009-08-11  Bruno Haible  <bruno@clisp.org>
45492
45493         * modules/dup2-tests (Depends-on): Remove close.
45494
45495         Undo 2009-07-19 commit.
45496         * modules/acl-tests (Depends-on): Remove close.
45497         * modules/binary-io-tests (Depends-on): Likewise.
45498         * modules/closein-tests (Depends-on): Likewise.
45499         * modules/flock-tests (Depends-on): Likewise.
45500         * modules/fsync-tests (Depends-on): Likewise.
45501         * modules/lseek-tests (Depends-on): Likewise.
45502         * modules/pipe-tests (Depends-on): Likewise.
45503         * modules/posix_spawn-tests (Depends-on): Likewise.
45504         * modules/posix_spawnp-tests (Depends-on): Likewise.
45505         * modules/stat-time-tests (Depends-on): Likewise.
45506         * modules/yesno-tests (Depends-on): Likewise.
45507
45508 2009-08-10  Bruno Haible  <bruno@clisp.org>
45509
45510         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45511
45512 2009-08-10  Bruno Haible  <bruno@clisp.org>
45513
45514         Fix a gcc warning.
45515         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45516
45517 2009-08-10  Bruno Haible  <bruno@clisp.org>
45518
45519         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45520         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45521         not only the first time.
45522         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45523         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45524         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45525         is 1, not only the the first time.
45526
45527 2009-08-10  Bruno Haible  <bruno@clisp.org>
45528
45529         Make it possible to use module 'gethostname' without module 'close'.
45530         * lib/unistd.in.h (close): Evoke a link error only if
45531         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45533         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45534         * modules/unistd (Makefile.am): Substitute
45535         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45536         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45537         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45538         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45539         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45540         * modules/sys_ioctl (Makefile.am): Substitute
45541         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45542         * modules/socket (configure.ac): On native Windows, set
45543         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45544         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45545         Reported by Sam Steingold <sds@gnu.org>.
45546
45547 2009-08-10  Bruno Haible  <bruno@clisp.org>
45548
45549         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45550         * modules/ioctl (configure.ac): Likewise.
45551
45552 2009-08-10  Bruno Haible  <bruno@clisp.org>
45553
45554         Avoid collision between gnulib wrapper and libintl wrapper.
45555         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45556         already defined in intl/printf.c.
45557         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45558         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45559
45560 2009-08-09  Bruno Haible  <bruno@clisp.org>
45561
45562         Make <sys/select.h> really self-contained, also on Solaris 10.
45563         * lib/sys_select.in.h: Include <string.h>.
45564         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45565         Solaris 10 problem.
45566         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45567         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45568         Reported by Jim Meyering.
45569
45570 2009-08-09  Bruno Haible  <bruno@clisp.org>
45571
45572         Avoid warnings from 'aclocal' that are due to a use of macro name
45573         AM_XGETTEXT_OPTION that is not defined in automake.
45574         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45575         automake.
45576         * modules/error (configure.ac): Likewise.
45577         * modules/propername (configure.ac): Likewise.
45578         * modules/vasprintf (configure.ac): Likewise.
45579         * modules/verror (configure.ac): Likewise.
45580         * modules/xprintf (configure.ac): Likewise.
45581         * modules/xvasprintf (configure.ac): Likewise.
45582
45583 2009-08-08  Bruno Haible  <bruno@clisp.org>
45584
45585         Avoid compilation error in C++ mode.
45586         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
45587         Reported by Sam Steingold <sds@gnu.org>.
45588
45589 2009-08-08  Bruno Haible  <bruno@clisp.org>
45590
45591         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
45592         for the various Unix platforms.
45593         * doc/posix-headers/limits.texi: Update platforms list regarding
45594         HOST_NAME_MAX.
45595         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45596
45597 2009-08-07  Jim Meyering  <meyering@redhat.com>
45598
45599         selinux-at: fix typo in a comment
45600         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
45601         Spotted by Paolo Bonzini.
45602
45603         selinux-at: remove redundant m4 code, add documentation
45604         * modules/selinux-at (configure.ac): Remove redundant code.
45605         LIB_SELINUX is already set via the dependent module, selinux-h.
45606         (Include): Add quotes around selinux-at.h.
45607         * lib/selinux-at.h: Add documentation.
45608         Reported by Bruno Haible in
45609         http://marc.info/?l=gnulib-bug&m=124958988300749
45610
45611 2009-08-07  Bruno Haible  <bruno@clisp.org>
45612
45613         Avoid link error on MacOS X 10.3 and 10.4.
45614         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
45615         on non-ELF systems.
45616         * lib/argp-pv.c (argp_program_version): Likewise.
45617         Reported by Simon Josefsson.
45618
45619 2009-08-07  Simon Josefsson  <simon@josefsson.org>
45620
45621         * tests/test-version-etc.sh: Use $EXEEXT.
45622
45623 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
45624
45625         update-copyright: update documentation to point to maint.mk
45626         * build-aux/update-copyright: Here.
45627
45628 2009-08-06  Jim Meyering  <meyering@redhat.com>
45629
45630         maint.mk: support update-copyright-local
45631         * top/maint.mk (update-copyright-local): Define place-holder.
45632         (update-copyright): Depend on $(update-copyright-local).
45633
45634 2009-08-06  Jim Meyering  <meyering@redhat.com>
45635
45636         selinux-at: new module
45637         Initially written for coreutils, this module will soon be
45638         used by findutils, too.
45639         * MODULES.html.sh [Misc]: Add selinux-at.
45640         * lib/selinux-at.h: New file, from coreutils.
45641         * lib/selinux-at.c: Likewise.
45642         * modules/selinux-at: Likewise.
45643         (License): Change from LGPL to GPL, since it depends
45644         on the GPL'd openat module.
45645
45646         doc: update README
45647         * README: Remove references to cogito.
45648         Remove cvs-repo-updating instructions from 2007.
45649         Don't imply that CVS is better if you have limited disk space.
45650
45651 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45652
45653         update-copyright: support C-style comments
45654         * build-aux/update-copyright: Implement and document.
45655         * tests/test-update-copyright.sh: Test.
45656
45657 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45658
45659         update-copyright: support omitted "(C)"
45660         * build-aux/update-copyright: Implement and document.  Also,
45661         allow variable whitespace before "(C)".
45662         * tests/test-update-copyright.sh: Test.
45663
45664 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45665
45666         update-copyright: don't trip on non-FSF copyright statements
45667         * build-aux/update-copyright: Fix so that the first correctly
45668         formatted FSF copyright statement is recognized no matter what
45669         appears before it.  Update documentation.
45670         * tests/test-update-copyright.sh: Test that.
45671
45672 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45673
45674         update-copyright: clean up code a little
45675         * build-aux/update-copyright: Append "_re" to the name of any
45676         variable holding a regular expression.
45677         Replace "old" and "new" with "stmt" in variable names.
45678         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
45679         handled correctly.
45680         Format code more consistently.
45681
45682 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45683
45684         update-copyright-tests: improve portability
45685         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
45686         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
45687
45688 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45689
45690         update-copyright: support @copyright{} and &copy;
45691         * build-aux/update-copyright: Implement and document.
45692         * tests/test-update-copyright.sh: Test.
45693
45694 2009-08-04  Jim Meyering  <meyering@redhat.com>
45695
45696         update-copyright-tests: correctly test EOL=\r\n handling
45697         * tests/test-update-copyright.sh: Put \r at the end of some lines
45698         for the dos-eol tests.  Based on a patch by Joel E. Denny.
45699
45700         maint.mk: make update-copyright exclusion list more configurable
45701         * top/maint.mk (update-copyright): Default to excluding COPYING,
45702         but allow an override, in case someone does want to update that file.
45703
45704         maint.mk: don't update copyright date in COPYING
45705         * top/maint.mk (update-copyright): Exclude COPYING.
45706
45707         maint.mk: add a copyright-updating rule
45708         * top/maint.mk (update-copyright): New rule.
45709         Derived from coreutils/Makefile.am.
45710
45711         update-copyright: rename some variables
45712         * build-aux/update-copyright: Rename a few variables for clarity.
45713         Tweak syntax.  List Joel E. Denny as coauthor.
45714
45715 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45716
45717         update-copyright: fix bug for 2-digit last year and add tests
45718         * build-aux/update-copyright: Fix bug.
45719         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
45720         specified.
45721         * modules/update-copyright-tests: New
45722         * tests/test-update-copyright.sh: New.
45723
45724 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45725
45726         update-copyright: handle leading tabs in line prefix
45727         * build-aux/update-copyright: Count leading tabs as 8 spaces
45728         when computing margin.  This helps with the formatting of
45729         ChangeLogs, for example.
45730         Fix documentation a little.
45731
45732 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45733
45734         update-copyright: support EOL=\r\n
45735         * build-aux/update-copyright: Implement that.
45736
45737 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45738
45739         update-copyright: automatically format copyright statements
45740         * build-aux/update-copyright: Implement that.
45741         Also, be a little more predictable and safer by always failing
45742         when the full copyright format is not perfectly recognized as an
45743         unbroken whole.  Discussed at
45744         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
45745         Rewrite documentation.
45746
45747 2009-08-03  Bruno Haible  <bruno@clisp.org>
45748
45749         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
45750
45751 2009-08-02  Bruno Haible  <bruno@clisp.org>
45752
45753         Tests for module 'uname'.
45754         * modules/uname-tests: New file.
45755         * tests/test-uname.c: New file.
45756
45757         New module 'uname'.
45758         * lib/uname.c: New file.
45759         * m4/uname.m4: New file.
45760         * modules/uname: New file.
45761         * doc/posix-functions/uname.texi: Mention the new module.
45762
45763 2009-08-02  Bruno Haible  <bruno@clisp.org>
45764
45765         Tests for module 'sys_utsname'.
45766         * modules/sys_utsname-tests: New file.
45767         * tests/test-sys_utsname.c: New file.
45768
45769         New module 'sys_utsname'.
45770         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
45771         * m4/sys_utsname_h.m4: New file.
45772         * modules/sys_utsname: New file.
45773         * doc/posix-headers/sys_utsname.texi: Mention the new module.
45774
45775 2009-08-02  Bruno Haible  <bruno@clisp.org>
45776
45777         Implicitly initialize the sockets library.
45778         * lib/gethostname.c: Include sockets.h.
45779         (rpl_gethostname): Invoke gl_sockets_startup.
45780         * lib/socket.c: Include sockets.h.
45781         (rpl_socket): Invoke gl_sockets_startup.
45782         * modules/gethostname (Depends-on): Add sockets.
45783         * modules/socket (Depends-on): Likewise.
45784         * tests/test-poll.c: Don't include sockets.h.
45785         (main): Don't invoke gl_sockets_startup.
45786         * tests/test-select.c: Don't include sockets.h.
45787         (main): Don't invoke gl_sockets_startup.
45788
45789 2009-08-02  Bruno Haible  <bruno@clisp.org>
45790
45791         Allow multiple calls to gl_sockets_startup.
45792         * lib/sockets.c (initialized_sockets_version): New variable.
45793         (gl_sockets_startup): Do nothing if already called for this or a higher
45794         version.
45795         (gl_sockets_cleanup): Reset initialized_sockets_version.
45796
45797 2009-08-03  Simon Josefsson  <simon@josefsson.org>
45798
45799         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
45800         different project/version.
45801
45802 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
45803             Bruno Haible  <bruno@clisp.org>
45804
45805         Tests for module 'pipe-filter-gi'.
45806         * modules/pipe-filter-gi-tests: New file.
45807         * tests/test-pipe-filter-gi1.sh: New file.
45808         * tests/test-pipe-filter-gi1.c: New file.
45809         * tests/test-pipe-filter-gi2.sh: New file.
45810         * tests/test-pipe-filter-gi2-main.c: New file.
45811         * tests/test-pipe-filter-gi2-child.c: New file.
45812
45813         New module 'pipe-filter-gi'.
45814         * lib/pipe-filter-gi.c: New file.
45815         * modules/pipe-filter-gi: New file.
45816
45817 2009-08-02  Bruno Haible  <bruno@clisp.org>
45818             Paolo Bonzini  <bonzini@gnu.org>
45819
45820         Tests for module 'pipe-filter-ii'.
45821         * modules/pipe-filter-ii-tests: New file.
45822         * tests/test-pipe-filter-ii1.sh: New file.
45823         * tests/test-pipe-filter-ii1.c: New file.
45824         * tests/test-pipe-filter-ii2.sh: New file.
45825         * tests/test-pipe-filter-ii2-main.c: New file.
45826         * tests/test-pipe-filter-ii2-child.c: New file.
45827
45828         New module 'pipe-filter-ii'.
45829         * lib/pipe-filter.h: New file.
45830         * lib/pipe-filter-ii.c: New file.
45831         * lib/pipe-filter-aux.h: New file.
45832         * modules/pipe-filter-ii: New file.
45833
45834 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45835
45836         * lib/gc-libgcrypt.c: Change copyright to FSF.
45837         * lib/gc-gnulib.c: Likewise.
45838
45839 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
45840
45841         * lib/gethostname.c: Include limits.h.
45842
45843 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45844             Bruno Haible  <bruno@clisp.org>
45845
45846         Ensure HOST_NAME_MAX as part of the gethostname module.
45847         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
45848         define also HOST_NAME_MAX.
45849         * tests/test-gethostname.c: Include <limits.h>.
45850         (main): Check also HOST_NAME_MAX.
45851         * doc/posix-headers/limits.texi: Document the mingw problem.
45852
45853 2009-08-02  Bruno Haible  <bruno@clisp.org>
45854
45855         * lib/gethostname.c (gethostname): Fix handling of large len argument.
45856         Add comments.
45857
45858 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45859
45860         * lib/gethostname.c: Add Windows wrapper.
45861         * m4/gethostname.m4: Look for gethostname in -lws2_32.
45862         * modules/gethostname: Depend on sys_socket & errno, for also
45863         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
45864         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
45865
45866 2009-07-31  Jim Meyering  <meyering@redhat.com>
45867
45868         getloadavg: fix symbol name in comment
45869         * lib/getloadavg.c: Correct a typo I introduced when adding
45870         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
45871         Matt Kraai spotted the problem.
45872
45873 2009-07-29  Matt Kraai  <mkraai@beckman.com>
45874
45875         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
45876         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
45877         code also if ! defined N_NAME_POINTER.
45878         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
45879         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
45880         but the n_name member is a 12-byte array.
45881
45882 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
45883
45884         update-copyright: generalize comment handling
45885         * build-aux/update-copyright: Handle copyright statements
45886         within more comment styles.
45887         Document usage.
45888         Report any file with an external copyright holder or parse failure.
45889
45890 2009-07-29  Jim Meyering  <meyering@redhat.com>
45891
45892         mktime: correct setting of REPLACE_MKTIME
45893         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
45894
45895         update-copyright: new module
45896         * modules/update-copyright: New file.
45897         * build-aux/update-copyright: New file.
45898         * MODULES.html.sh (maint+release support): Add update-copyright.
45899
45900 2009-07-27  Bruno Haible  <bruno@clisp.org>
45901
45902         Fix compilation error when <ctime> is used and mktime is replaced.
45903         * lib/time.in.h (mktime): New declaration.
45904         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
45905         REPLACE_MKTIME instead of defining mktime in config.h.
45906         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
45907         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
45908         Reported by Ross McFarland <rwmcfa1@neces.com>.
45909
45910 2009-07-27  Bruno Haible  <bruno@clisp.org>
45911
45912         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
45913         Reported by Matt Kraai <mkraai@beckman.com>.
45914
45915 2009-07-25  Jim Meyering  <meyering@redhat.com>
45916
45917         maint.mk: avoid warnings about missing files
45918         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
45919         diagnostic when .prev-version does not exist.
45920         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
45921         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
45922         nonexistent cfg.mk.
45923         Suggestions from Simon Josefsson.
45924
45925 2009-07-25  Bruno Haible  <bruno@clisp.org>
45926
45927         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
45928         defined as macros. Needed on QNX 6.4.1.
45929         Reported by Matt Kraai <mkraai@beckman.com>.
45930
45931 2009-07-23  Jim Meyering  <meyering@redhat.com>
45932
45933         maint.mk: invoke "make dist" with a working value of XZ_OPT
45934         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
45935
45936 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
45937
45938         Make fseeko.c compile on QNX.
45939         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
45940
45941 2009-07-22  Peter Simons  <simons@cryp.to>
45942
45943         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
45944         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
45945         * lib/md4.h: Likewise.
45946         * lib/md5.h: Likewise.
45947         * lib/sha1.h: Likewise.
45948         * lib/sha256.h: Likewise.
45949         * lib/sha512.h: Likewise.
45950
45951         tests-sha1: don't assign literal string to 'char *' variable
45952         * tests/test-sha1.c (main): Declare locals with "const" to match
45953         attributes of the right hand side.
45954
45955 2009-07-21  Eric Blake  <ebb9@byu.net>
45956
45957         dup2: fix more mingw problems
45958         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
45959         fd to itself.
45960         * doc/posix-functions/dup2.texi (dup2): Document the bug.
45961         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
45962         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
45963         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
45964         care of mingw bugs.
45965
45966 2009-07-21  Jim Meyering  <meyering@redhat.com>
45967
45968         vc-list-files: avoid failure when /bin/sh is dash
45969         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
45970         On some Debian based systems, /bin/sh is a symlink to dash, and running
45971         this command would omit the "/" following each 'tests' prefix:
45972           dash -x build-aux/vc-list-files -C . tests
45973         That is because bash and dash work differently:
45974           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
45975           bash ok
45976           dash odd
45977
45978 2009-07-21  Eric Blake  <ebb9@byu.net>
45979
45980         dup2-tests: test previous patch
45981         * modules/dup2-tests: New file.
45982         * tests/test-dup2.c: Likewise.
45983         * tests/test-open.c (main): Avoid unspecified behavior.
45984         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
45985         test.
45986
45987         dup2: work around mingw and cygwin 1.5 bug
45988         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
45989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45990         * modules/unistd (Makefile.am): Substitute it.
45991         * lib/unistd.in.h (dup2): Declare the replacement.
45992         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
45993         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
45994         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
45995         * modules/execute (Depends-on): Add dup2.
45996         * modules/fseterr (Depends-on): Likewise.
45997         * modules/pipe (Depends-on): Likewise.
45998         * modules/posix_spawn-internal (Depends-on): Likewise.
45999
46000 2009-07-21  Bruno Haible  <bruno@clisp.org>
46001
46002         * modules/.gitattributes: New file.
46003
46004 2009-07-20  Bruno Haible  <bruno@clisp.org>
46005
46006         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46007         (main): Use it.
46008
46009 2009-07-20  Eric Blake  <ebb9@byu.net>
46010
46011         test-pipe: make a bit more robust.
46012         * tests/test-pipe.c (myerr): Allow error messages regardless of
46013         what we do to stderr.
46014         (test_pipe): Rearrange to avoid deadlock.
46015         (child_main): Try a larger read, to ensure we avoided deadlock.
46016         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46017         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46018         if misused.
46019
46020 2009-07-19  Jim Meyering  <meyering@redhat.com>
46021
46022         fts: avoid false-positive cycle-detection
46023         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46024         for each new command line argument.
46025
46026 2009-07-19  Bruno Haible  <bruno@clisp.org>
46027
46028         Fix build error on mingw with the modules sys_select and unistd.
46029         * modules/acl-tests (Depends-on): Add close.
46030         * modules/binary-io-tests (Depends-on): Likewise.
46031         * modules/closein-tests (Depends-on): Likewise.
46032         * modules/flock-tests (Depends-on): Likewise.
46033         * modules/fsync-tests (Depends-on): Likewise.
46034         * modules/lseek-tests (Depends-on): Likewise.
46035         * modules/pipe-tests (Depends-on): Likewise.
46036         * modules/posix_spawn-tests (Depends-on): Likewise.
46037         * modules/posix_spawnp-tests (Depends-on): Likewise.
46038         * modules/stat-time-tests (Depends-on): Likewise.
46039         * modules/yesno-tests (Depends-on): Likewise.
46040
46041 2009-07-19  Bruno Haible  <bruno@clisp.org>
46042
46043         Unify conditionals.
46044         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46045         macros, not at the compiler macros.
46046         * lib/pipe.c: Likewise.
46047         * lib/execute.c: Likewise.
46048         * lib/spawni.c: Likewise.
46049
46050 2009-07-19  Bruno Haible  <bruno@clisp.org>
46051
46052         Fix handling of closed stdin/stdout/stderr on mingw.
46053         * lib/w32spawn.h: Include unistd.h.
46054         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46055         file descriptor with O_NOINHERIT flag.
46056         (fd_safer_noinherit): New function, based on fd-safer.c.
46057         (dup_safer_noinherit): New function, based on dup-safer.c.
46058         (undup_safer_noinherit): New function.
46059         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46060         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46061         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46062         instead of fd_safer.
46063         * tests/test-pipe.c: Include <windows.h>.
46064         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46065         result.
46066
46067         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46068         from main.
46069         (test_pipe): Pass an extra argument for disambiguation.
46070         (main): Invoke parent_main or child_main.
46071
46072         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46073         consistently.
46074
46075 2009-07-18  Eric Blake  <ebb9@byu.net>
46076
46077         test-pipe: fix mingw build
46078         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46079
46080 2009-07-18  Bruno Haible  <bruno@clisp.org>
46081
46082         * modules/pipe-tests (Makefile.am): Fix typo.
46083
46084 2009-07-18  Eric Blake  <ebb9@byu.net>
46085
46086         error: fix mingw build
46087         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46088         Reported by Bruno Haible.
46089
46090         error: avoid undefined use of stdout
46091         * lib/error.c (error, error_at_line): Check that fd 1 is open
46092         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46093         is handling faults and the close_stdout module wants to report the
46094         detection of closed stdout as an error.
46095
46096 2009-07-17  Eric Blake  <ebb9@byu.net>
46097
46098         pipe: be robust in face of closed fds
46099         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46100         should cause child to misbehave.
46101         * modules/pipe-tests: New module.
46102         * tests/test-pipe.c: New file.
46103         * tests/test-pipe.sh: New file.
46104         Reported by Akim Demaille.
46105
46106 2009-07-14  Bruno Haible  <bruno@clisp.org>
46107
46108         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46109         Reported by anonymous kc.
46110
46111 2009-07-07  Jim Meyering  <meyering@redhat.com>
46112
46113         maint.mk: don't look for translatable strings in *.m4 or *.mk
46114         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46115         when searching for translatable strings.
46116
46117 2009-07-05  Jim Meyering  <meyering@redhat.com>
46118
46119         remove superfluous parentheses in STREQ definition
46120         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46121         * lib/getugroups.c (STREQ): Likewise.
46122         * lib/fnmatch.c (STREQ): Likewise.
46123         Spotted by Bruno Haible.
46124
46125 2009-07-04  Jim Meyering  <meyering@redhat.com>
46126
46127         argv-iter: new module
46128         * MODULES.html.sh: Add argv-iter.
46129         * lib/argv-iter.c, lib/argv-iter.h: New files.
46130         * modules/argv-iter: New file.
46131         * modules/argv-iter-tests: New file.
46132         * tests/test-argv-iter.c: Test it.
46133
46134 2009-07-04  Bruno Haible  <bruno@clisp.org>
46135
46136         Fix assertion.
46137         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46138         contains more exact copies of a given entry than file2, leave the extra
46139         copies unpaired rather than aborting.
46140         Reported by Eric Blake.
46141
46142 2009-07-02  Bruno Haible  <bruno@clisp.org>
46143
46144         Speedup git-merge-changelog for git cherry-pick.
46145         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46146         (entries_mapping_get): New function, extracted from compute_mapping.
46147         (entries_mapping_reverse_get): New function.
46148         (compute_mapping): Add a 'full' argument. Return the result in a
46149         'struct entries_mapping'.
46150         (main): Update. Access the mappings through entries_mapping_get.
46151         Reported by Eric Blake.
46152
46153 2009-07-02  Bruno Haible  <bruno@clisp.org>
46154
46155         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46156         best_i.
46157
46158 2009-07-02  Bruno Haible  <bruno@clisp.org>
46159
46160         Speed up approximate search for matching ChangeLog entries.
46161         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46162         argument. Call fstrcmp_bounded instead of fstrcmp.
46163         (compute_mapping, try_split_merged_entry, main): Update callers.
46164
46165 2009-07-02  Bruno Haible  <bruno@clisp.org>
46166
46167         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46168
46169 2009-06-30  Bruno Haible  <bruno@clisp.org>
46170
46171         Reduce the number of uc_is_cased calls.
46172         * lib/unicase.h (casing_suffix_context_t): Add
46173         'first_char_except_ignorable' field.
46174         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46175         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46176         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46177         Update initializer.
46178         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46179         case-ignorable characters.
46180         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46181         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46182         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46183         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46184         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46185
46186 2009-06-30  Bruno Haible  <bruno@clisp.org>
46187
46188         Tests for module 'unicase/ignorable'.
46189         * modules/unicase/ignorable-tests: New file.
46190         * tests/unicase/test-ignorable.c: New file, generated by
46191         gen-uni-tables.
46192
46193         Tests for module 'unicase/cased'.
46194         * modules/unicase/cased-tests: New file.
46195         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46196         * tests/unicase/test-predicate-part1.h: New file, derived from
46197         tests/unictype/test-predicate-part1.h.
46198         * tests/unicase/test-predicate-part2.h: New file, same as
46199         tests/unictype/test-predicate-part2.h.
46200
46201         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46202         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46203         (output_casing_properties): New function.
46204         (main): Call it.
46205         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46206         * lib/unicase/cased.c: Include unictype/bitmap.h.
46207         (uc_is_cased): Define through a bitmap lookup.
46208         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46209         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46210         (uc_is_case_ignorable): Define through a bitmap lookup.
46211         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46212         lib/unictype/bitmap.h.
46213         (Depends-on): Add inline. Clean up.
46214         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46215         lib/unictype/bitmap.h.
46216         (Depends-on): Add inline. Clean up.
46217         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46218         recognition.
46219         * tests/unicase/test-u16-tolower.c (main): Likewise.
46220         * tests/unicase/test-u32-tolower.c (main): Likewise.
46221
46222 2009-06-30  Bruno Haible  <bruno@clisp.org>
46223
46224         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46225         * lib/unicase/u16-casemap.c: Likewise.
46226         * lib/unicase/u32-casemap.c: Likewise.
46227
46228 2009-06-29  Bruno Haible  <bruno@clisp.org>
46229
46230         Define u32_casefold as a wrapper around u32_ct_casefold.
46231         * lib/unicase/u32-casefold.c: Update.
46232         * modules/unicase/u32-casefold (Depends-on): Add
46233         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46234         unicase/empty-suffix-context. Clean up.
46235
46236         Define u16_casefold as a wrapper around u16_ct_casefold.
46237         * lib/unicase/u16-casefold.c: Update.
46238         * modules/unicase/u16-casefold (Depends-on): Add
46239         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46240         unicase/empty-suffix-context. Clean up.
46241
46242         Define u8_casefold as a wrapper around u8_ct_casefold.
46243         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46244         * lib/unicase/u8-casefold.c: Update.
46245         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46246         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46247
46248         Define u32_totitle as a wrapper around u32_ct_totitle.
46249         * lib/unicase/u32-totitle.c: Update.
46250         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46251         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46252
46253         Define u16_totitle as a wrapper around u16_ct_totitle.
46254         * lib/unicase/u16-totitle.c: Update.
46255         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46256         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46257
46258         Define u8_totitle as a wrapper around u8_ct_totitle.
46259         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46260         functions.
46261         (FUNC): Delegate to U_CT_TOTITLE.
46262         * lib/unicase/u8-totitle.c: Update.
46263         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46264         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46265
46266         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46267         invocation.
46268         * modules/unicase/u32-tolower (Depends-on): Add
46269         unicase/empty-prefix-context, unicase/empty-suffix-context.
46270
46271         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46272         invocation.
46273         * modules/unicase/u16-tolower (Depends-on): Add
46274         unicase/empty-prefix-context, unicase/empty-suffix-context.
46275
46276         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46277         * modules/unicase/u8-tolower (Depends-on): Add
46278         unicase/empty-prefix-context, unicase/empty-suffix-context.
46279
46280         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46281         invocation.
46282         * modules/unicase/u32-toupper (Depends-on): Add
46283         unicase/empty-prefix-context, unicase/empty-suffix-context.
46284
46285         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46286         invocation.
46287         * modules/unicase/u16-toupper (Depends-on): Add
46288         unicase/empty-prefix-context, unicase/empty-suffix-context.
46289
46290         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46291         * modules/unicase/u8-toupper (Depends-on): Add
46292         unicase/empty-prefix-context, unicase/empty-suffix-context.
46293
46294         New module 'unicase/u32-ct-casefold'.
46295         * lib/unicase/u32-ct-casefold.c: New file.
46296         * modules/unicase/u32-ct-casefold: New file.
46297
46298         New module 'unicase/u16-ct-casefold'.
46299         * lib/unicase/u16-ct-casefold.c: New file.
46300         * modules/unicase/u16-ct-casefold: New file.
46301
46302         New module 'unicase/u8-ct-casefold'.
46303         * lib/unicase/u8-ct-casefold.c: New file.
46304         * lib/unicase/u-ct-casefold.h: New file, derived from
46305         lib/unicase/u-casefold.h.
46306         * modules/unicase/u8-ct-casefold: New file.
46307
46308         New module 'unicase/u32-ct-totitle'.
46309         * lib/unicase/u32-ct-totitle.c: New file.
46310         * modules/unicase/u32-ct-totitle: New file.
46311
46312         New module 'unicase/u16-ct-totitle'.
46313         * lib/unicase/u16-ct-totitle.c: New file.
46314         * modules/unicase/u16-ct-totitle: New file.
46315
46316         New module 'unicase/u8-ct-totitle'.
46317         * lib/unicase/u8-ct-totitle.c: New file.
46318         * lib/unicase/u-ct-totitle.h: New file, derived from
46319         lib/unicase/u-totitle.h.
46320         * modules/unicase/u8-ct-totitle: New file.
46321
46322         New module 'unicase/u32-ct-tolower'.
46323         * lib/unicase/u32-ct-tolower.c: New file.
46324         * modules/unicase/u32-ct-tolower: New file.
46325
46326         New module 'unicase/u16-ct-tolower'.
46327         * lib/unicase/u16-ct-tolower.c: New file.
46328         * modules/unicase/u16-ct-tolower: New file.
46329
46330         New module 'unicase/u8-ct-tolower'.
46331         * lib/unicase/u8-ct-tolower.c: New file.
46332         * modules/unicase/u8-ct-tolower: New file.
46333
46334         New module 'unicase/u32-ct-toupper'.
46335         * lib/unicase/u32-ct-toupper.c: New file.
46336         * modules/unicase/u32-ct-toupper: New file.
46337
46338         New module 'unicase/u16-ct-toupper'.
46339         * lib/unicase/u16-ct-toupper.c: New file.
46340         * modules/unicase/u16-ct-toupper: New file.
46341
46342         New module 'unicase/u8-ct-toupper'.
46343         * lib/unicase/u8-ct-toupper.c: New file.
46344         * modules/unicase/u8-ct-toupper: New file.
46345
46346         Add context arguments to u*_casemap functions.
46347         * lib/unicase/unicasemap.h: Include unicase.h.
46348         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46349         suffix_context arguments.
46350         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46351         functions.
46352         (FUNC): Add prefix_context and suffix_context arguments. Use
46353         uc_is_cased and uc_is_case_ignorable.
46354         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46355         * lib/unicase/u16-casemap.c: Likewise.
46356         * lib/unicase/u32-casemap.c: Likewise.
46357         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46358         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46359         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46360         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46361         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46362         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46363
46364         New module 'unicase/u32-suffix-context'.
46365         * lib/unicase/u32-suffix-context.c: New file.
46366         * modules/unicase/u32-suffix-context: New file.
46367
46368         New module 'unicase/u16-suffix-context'.
46369         * lib/unicase/u16-suffix-context.c: New file.
46370         * modules/unicase/u16-suffix-context: New file.
46371
46372         New module 'unicase/u8-suffix-context'.
46373         * lib/unicase/u8-suffix-context.c: New file.
46374         * lib/unicase/u-suffix-context.h: New file.
46375         * modules/unicase/u8-suffix-context: New file.
46376
46377         New module 'unicase/empty-suffix-context'.
46378         * lib/unicase/empty-suffix-context.c: New file.
46379         * modules/unicase/empty-suffix-context: New file.
46380
46381         New module 'unicase/u32-prefix-context'.
46382         * lib/unicase/u32-prefix-context.c: New file.
46383         * modules/unicase/u32-prefix-context: New file.
46384
46385         New module 'unicase/u16-prefix-context'.
46386         * lib/unicase/u16-prefix-context.c: New file.
46387         * modules/unicase/u16-prefix-context: New file.
46388
46389         New module 'unicase/u8-prefix-context'.
46390         * lib/unicase/u8-prefix-context.c: New file.
46391         * lib/unicase/u-prefix-context.h: New file.
46392         * lib/unicase/context.h: New file.
46393         * modules/unicase/u8-prefix-context: New file.
46394
46395         New module 'unicase/empty-prefix-context'.
46396         * lib/unicase/empty-prefix-context.c: New file.
46397         * modules/unicase/empty-prefix-context: New file.
46398
46399         New module 'unicase/ignorable'.
46400         * lib/unicase/ignorable.c: New file.
46401         * modules/unicase/ignorable: New file.
46402
46403         New module 'unicase/cased'.
46404         * lib/unicase/caseprop.h: New file.
46405         * lib/unicase/cased.c: New file.
46406         * modules/unicase/cased: New file.
46407
46408         New functions for case mapping of substrings.
46409         * lib/unicase.h (casing_prefix_context_t): New type.
46410         (unicase_empty_prefix_context): New variable.
46411         (u8_casing_prefix_context, u16_casing_prefix_context,
46412         u32_casing_prefix_context, u8_casing_prefixes_context,
46413         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46414         declarations.
46415         (casing_suffix_context_t): New type.
46416         (unicase_empty_suffix_context): New variable.
46417         (u8_casing_suffix_context, u16_casing_suffix_context,
46418         u32_casing_suffix_context, u8_casing_suffixes_context,
46419         u16_casing_suffixes_context, u32_casing_suffixes_context,
46420         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46421         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46422         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46423         declarations.
46424
46425 2009-06-28  Jim Meyering  <meyering@redhat.com>
46426
46427         boostrap: indent only with spaces
46428         * build-aux/bootstrap: Indent only with spaces, never TABs.
46429
46430         bootstrap: split long lines
46431         * build-aux/bootstrap: Keep line length < 80.
46432
46433         bootstrap: sync from coreutils
46434         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46435         just as autoreconf does.  Verify a list of prerequisite
46436         package-name,version-number pairs if defined in bootstrap.conf.
46437         Refer to README-prereq, if prerequisites are not satisfied.
46438
46439 2009-06-27  Eric Blake  <ebb9@byu.net>
46440
46441         tests: add test for bogus NULL definition
46442         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46443         * tests/test-stdlib.c: Likewise.
46444         * tests/test-string.c: Likewise.
46445         * tests/test-locale.c: Likewise.
46446         * tests/test-unistd.c: Likewise.
46447         * modules/stdio-tests (Depends-on): Add verify.
46448         * modules/stdlib-tests (Depends-on): Likewise.
46449         * modules/string-tests (Depends-on): Likewise.
46450         * modules/locale-tests (Depends-on): Likewise.
46451         * modules/unistd-tests (Depends-on): Likewise.
46452
46453 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46454
46455         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46456         self-explaining comment.
46457         * m4/selinux-selinux-h: Update serial.
46458         (gl_LIBSELINUX): New macro, adding a warning for missing development
46459         packages to code extracted from...
46460         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46461         Add warning for missing development packages here, too.
46462
46463 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46464
46465         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46466
46467 2009-06-25  Eric Blake  <ebb9@byu.net>
46468
46469         version-etc: fix regression
46470         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46471         gcc.
46472         (version_etc): Use it, to catch bugs with trailing NULL.
46473         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46474         (version_etc_va): Fix logic bug.
46475         * modules/version-etc-tests: Add test.
46476         * tests/test-version-etc.c: New file.
46477         * tests/test-version-etc.sh: Likewise.
46478
46479 2009-06-25  Sam Steingold  <sds@gnu.org>
46480
46481         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46482         mbtowc declaration.
46483
46484 2009-06-25  Eric Blake  <ebb9@byu.net>
46485
46486         fpurge: migrate into <stdio.h>
46487         * lib/fpurge.h: Delete...
46488         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46489         * lib/fpurge.c (fpurge): Change declaring header.
46490         * modules/fpurge (Files): Drop deleted file.
46491         (Depends-on): Add stdio.
46492         (configure.ac): Set witness.
46493         * modules/stdio (Makefile.am): Support fpurge macros.
46494         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46495         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46496         * lib/fflush.c: Update client.
46497         * tests/test-fpurge.c: Likewise.
46498         * NEWS: Mention the change.
46499
46500 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46501
46502         * lib/argp-version-etc.c (program_authors): Add const
46503         qualifier.
46504         * lib/version-etc.c: Fix typos in the comments.
46505         * modules/argp-version-etc: Depends on version-etc.
46506
46507 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46508
46509         argp-version-etc: new module.
46510
46511         * lib/argp-version-etc.c: New file.
46512         * lib/argp-version-etc.h: New file.
46513         * modules/argp-version-etc: New file.
46514         * modules/argp-version-etc-tests: New file.
46515         * tests/test-argp-version-etc.c: New test.
46516         * tests/test-argp-version-etc-1.sh: New test.
46517
46518 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46519
46520         Provide additional interfaces and documentation for version-etc
46521         module.
46522
46523         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46524         interfaces.
46525         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46526         prototypes.
46527
46528 2009-06-24  Bruno Haible  <bruno@clisp.org>
46529
46530         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46531         HAVE_LIB${NAME} macro.
46532         Reported by Sam Steingold <sds@gnu.org>.
46533
46534 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46535
46536         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46537         needed.
46538
46539 2009-06-21  Bruno Haible  <bruno@clisp.org>
46540
46541         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46542         work.
46543         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46544         together with LIB${NAME}, LTLIB${NAME}.
46545         Reported by Sam Steingold <sds@gnu.org>.
46546
46547 2009-06-20  Jim Meyering  <meyering@redhat.com>
46548
46549         tests: make sc_require_test_exit_idiom more generic
46550         * top/maint.mk (Exit_witness_file): New overridable variable.
46551         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46552         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46553
46554 2009-06-19  Jim Meyering  <meyering@redhat.com>
46555
46556         hash: reverse order of src/dst parameters in an internal interface
46557         * lib/hash.c (transfer_entries): Reverse order of parameters to
46558         put DST before SRC.  Adjust callers.
46559
46560         tests: test-hash: avoid wholesale duplication
46561         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46562         Instead, use a loop and add a single conditional.
46563
46564         tests: test-hash: allow seed selection via a command line argument
46565         * tests/test-hash.c (get_seed): New function.
46566         (main): Use it.
46567
46568 2009-06-19  Eric Blake  <ebb9@byu.net>
46569
46570         hash: avoid memory leak on allocation failure
46571         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46572         failure.  Factor repeated algorithm...
46573         (transfer_entries): ...into new helper routine.
46574         (hash_delete): React to hash_rehash return value.
46575
46576         hash: reduce memory pressure in hash_rehash no-op case
46577         * lib/hash.c (next_prime): Avoid overflow.
46578         (hash_initialize): Factor bucket size computation...
46579         (compute_bucket_size): ...into new helper function.
46580         (hash_rehash): Use new function and open coding to reduce memory
46581         pressure, and avoid a memory leak in USE_OBSTACK code.
46582         Reported by Jim Meyering.
46583
46584 2009-06-18  Eric Blake  <ebb9@byu.net>
46585
46586         hash: make rotation more obvious
46587         * modules/hash (Depends-on): Add bitrotate and stdint.
46588         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
46589         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
46590         (SIZE_MAX): Rely on headers for definition.
46591         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
46592         (raw_hasher): Use rotr_sz.
46593         Suggested by Jim Meyering.
46594
46595         hash: fix memory leak in last patch
46596         * lib/hash.c (hash_rehash): Avoid memory leak.
46597
46598         hash: avoid no-op rehashing
46599         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
46600
46601         hash: provide default callback functions
46602         * lib/hash.c (raw_hasher, raw_comparator): New functions.
46603         (hash_initialize): Use them as defaults.
46604         * tests/test-hash.c (main): Test this.
46605
46606         hash: minor optimization
46607         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
46608         when possible.
46609         (hash_initialize): Document this promise.
46610         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
46611         * tests/test-hash.c (hash_compare_strings): Test this.
46612
46613 2009-06-18  Bruno Haible  <bruno@clisp.org>
46614
46615         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
46616         going to be replaced anyway.
46617
46618 2009-06-18  Bruno Haible  <bruno@clisp.org>
46619
46620         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
46621         in one place.
46622         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
46623         be replaced anyway.
46624
46625 2009-06-18  Eric Blake  <ebb9@byu.net>
46626
46627         hash: check for resize before insertion
46628         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
46629         threshold before insertion, so that a pathological hash_rehash
46630         that fills every bucket can still trigger another rehash.
46631
46632 2009-06-18  Jim Meyering  <meyering@redhat.com>
46633
46634         hash-tests: add a loop around the small tests
46635         * tests/test-hash.c (main): Repeat small tests with selected
46636         small initial table sizes.
46637
46638 2009-06-17  Eric Blake  <ebb9@byu.net>
46639
46640         hash: minor cleanups
46641         * lib/hash.h (hash_entry): Make opaque, by moving...
46642         * lib/hash.c (hash_entry): ...here.
46643         (hash_insert): Clarify restrictions on what can be inserted.
46644         (hash_get_next): Clarify when it is safe to remove an element
46645         during traversal.
46646         (check_tuning): Skip verification when tuning is known safe.
46647         (hash_initialize): Clarify restrictions on tuning.
46648
46649 2009-06-17  Jim Meyering  <jim@meyering.net>
46650         and Eric Blake  <ebb9@byu.net>
46651
46652         hash-tests: new module
46653         * modules/hash-tests: New file.
46654         * tests/test-hash.c: New file.
46655
46656 2009-06-17  Eric Blake  <ebb9@byu.net>
46657
46658         strstr-simple: document new module
46659         * MODULES.html.sh: Document new module.
46660
46661         strstr, strcasestr: replace on platforms with broken memchr
46662         * modules/strstr: Split into...
46663         * modules/strstr-simple: ...new module that does not care about
46664         performance, but does care about glibc bug.
46665         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
46666         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
46667         if platform memchr is broken, per Debian bug 521737.
46668         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
46669         memchr.
46670         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
46671         * doc/posix-functions/strstr.texi (strstr): Document the fix.
46672         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46673         * modules/mountlist (Depends-on): Add strstr-simple.
46674         * modules/gen-uni-tables (Depends-on): Likewise.
46675         * modules/argz (Depends-on): Add strstr.
46676
46677 2009-06-17  Bruno Haible  <bruno@clisp.org>
46678
46679         * modules/posix_spawn-internal (Depends-on): Add errno.
46680
46681 2009-06-17  Bruno Haible  <bruno@clisp.org>
46682
46683         Define missing ESTALE on Interix 3.5.
46684         * lib/errno.in.h (ESTALE): Assign a value if missing.
46685         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
46686         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
46687         missing.
46688         * doc/posix-headers/errno.texi: Mention the Interix bug.
46689         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
46690
46691 2009-06-15  Eric Blake  <ebb9@byu.net>
46692
46693         memchr, memchr2: add valgrind exception
46694         * lib/memchr.valgrind: New file.
46695         * lib/memchr2.valgrind: New file.
46696         * modules/memchr (Files): Distribute valgrind file.
46697         * modules/memchr2 (Files): Likewise.
46698
46699         docs: memchr is no longer obsolete
46700         * MODULES.html.sh: Move memchr from obsolete to string.h section.
46701         * lib/string.in.h (memchr): Simplify logic.
46702
46703 2009-06-14  Jim Meyering  <meyering@redhat.com>
46704
46705         link-follow: fix the "checking..." message to not mention trailing slash
46706         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
46707         never considered trailing slashes.
46708
46709 2009-06-14  Bruno Haible  <bruno@clisp.org>
46710
46711         * m4/memchr.m4: Mention also the bug on IA-64.
46712         * doc/posix-functions/memchr.texi: Likewise.
46713
46714 2009-06-12  Eric Blake  <ebb9@byu.net>
46715
46716         memchr: detect broken x86_64 and alpha implementations
46717         * modules/memchr-tests (Depends-on): Move mmap detection...
46718         * modules/memchr (Depends-on): ...here.
46719         (configure.ac): Set indicator.
46720         * lib/string.in.h (memchr): Declare replacement.
46721         * modules/string (Makefile.am): Trigger replacement.
46722         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46723         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
46724         bugs.
46725         * doc/posix-functions/memchr.texi (memchr): Document the bug.
46726         * modules/getpagesize (License): Relax license.
46727
46728 2009-06-11  Bruno Haible  <bruno@clisp.org>
46729
46730         * lib/idpriv.h: Add more references.
46731
46732 2009-06-08  Bruno Haible  <bruno@clisp.org>
46733
46734         Tests for module 'idpriv-droptemp'.
46735         * modules/idpriv-droptemp-tests: New file.
46736         * tests/test-idpriv-droptemp.sh: New file.
46737         * tests/test-idpriv-droptemp.su.sh: New file.
46738         * tests/test-idpriv-droptemp.c: New file.
46739
46740         New module 'idpriv-droptemp'.
46741         * lib/idpriv-droptemp.c: New file.
46742         * modules/idpriv-droptemp: New file.
46743
46744 2009-06-08  Bruno Haible  <bruno@clisp.org>
46745
46746         Tests for module 'idpriv-drop'.
46747         * modules/idpriv-drop-tests: New file.
46748         * tests/test-idpriv-drop.sh: New file.
46749         * tests/test-idpriv-drop.su.sh: New file.
46750         * tests/test-idpriv-drop.c: New file.
46751
46752         New module 'idpriv-drop'.
46753         * lib/idpriv.h: New file.
46754         * lib-idpriv-drop.c: New file.
46755         * m4/idpriv.m4: New file.
46756         * modules/idpriv-drop: New file.
46757
46758 2009-06-08  Bruno Haible  <bruno@clisp.org>
46759
46760         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
46761         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46762         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46763         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46764         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46765         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46766         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46767
46768 2009-06-08  Eric Blake  <ebb9@byu.net>
46769
46770         test-strstr: use memory fence, when possible
46771         * tests/test-strstr.c (main): Use memory fence, in order to be
46772         more likely to trigger Debian bug 521737.
46773         * modules/strstr-tests (Files): Pull in additional files.
46774
46775         memchr: no longer obsolete, for wider field testing
46776         * modules/memchr (Status, Notice): Delete, this module is no
46777         longer obsolete.
46778         * modules/vasnprintf (Depends-on): Add memchr.
46779
46780 2009-06-07  Jim Meyering  <meyering@redhat.com>
46781
46782         hash: declare some functions with the warn_unused_result attribute
46783         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
46784
46785 2009-06-07  Bruno Haible  <bruno@clisp.org>
46786
46787         * tests/test-alignof.c: Don't test int64_t if it does not exist.
46788         Reported by Eric Blake.
46789
46790 2009-06-06  Eric Blake  <ebb9@byu.net>
46791
46792         test-alignof: fix typo with long double
46793         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
46794         compiler error.
46795
46796 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
46797
46798         Escape non-texinfo { and }s.
46799         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
46800         markup error.
46801
46802 2009-06-04  Jim Meyering  <meyering@redhat.com>
46803
46804         gitlog-to-changelog: don't infloop on an empty commit log
46805         * build-aux/gitlog-to-changelog: Warn about an empty log message.
46806         Reported by Boris Petersen <transacid@centerim.org>.
46807
46808 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
46809
46810         version-etc: extend for packagers
46811         Add three new configure options, intended for packagers:
46812           --with-packager="packager name"
46813           --with-packager-version="packager-specific version"
46814           --with-packager-bug-reports="packager bug reporting"
46815         An example with coreutils:
46816           $ ./configure \
46817             --with-packager=Gentoo \
46818             --with-packager-bug-report=http://bugs.gentoo.org/ \
46819             --with-packager-version="patchset 1.6"
46820           $ ./src/ls --version | head -n2
46821           ls (GNU coreutils) 7.1-dirty
46822           Packaged by Gentoo (patchset 1.6)
46823         Note that the bug reporting info via --help doesn't show up because
46824         coreutils uses its own custom emit_bug_reporting_address() implementation
46825         in src/system.h.  If it didn't, it'd look like:
46826           $ ./src/ls --help | tail -n4
46827           Report bugs to <bug-coreutils@gnu.org>.
46828           Report Gentoo bugs to <http://bugs.gentoo.org/>.
46829           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
46830           General help using GNU software: <http://www.gnu.org/gethelp/>.
46831         * lib/version-etc.c: Print new information, if provided.
46832         * m4/version-etc.m4: New file.
46833         * modules/version-etc (Files): Add m4/version-etc.m4.
46834         (configure.ac): Add gl_VERSION_ETC.
46835
46836 2009-05-31  Bruno Haible  <bruno@clisp.org>
46837
46838         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
46839         and 'int64_t'.
46840         * modules/alignof-tests (Dependencies): Add stdint.
46841         Reported by Eric Blake.
46842
46843 2009-05-31  Bruno Haible  <bruno@clisp.org>
46844
46845         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
46846         restriction due to compiler bugs.
46847         Reported by Eric Blake.
46848
46849 2009-05-31  Simon Josefsson  <simon@josefsson.org>
46850             Bruno Haible  <bruno@clisp.org>
46851
46852         Fix test-alignof failure.
46853         * lib/alignof.h (alignof_slot): New macro.
46854         (alignof_type): New macro, with the same semantics as the previous
46855         'alignof'.
46856         (alignof): Alias to alignof_slot.
46857         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
46858         check that the results are usable as constant expressions.
46859
46860 2009-05-31  Bruno Haible  <bruno@clisp.org>
46861
46862         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
46863         * tests/test-memchr.c (main): Check that memchr does not read past the
46864         first occurrence of the byte.
46865         * tests/test-strstr.c (main): Update comment.
46866         Suggested by Eric Blake.
46867
46868 2009-05-30  Bruno Haible  <bruno@clisp.org>
46869
46870         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
46871         detail how to use dumpbin.
46872         Reported by David Byron <dbyron@dbyron.com>.
46873
46874 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46875
46876         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
46877
46878 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46879
46880         * m4/manywarnings.m4: Add GCC 4.4 warnings.
46881
46882 2009-05-28  Bruno Haible  <bruno@clisp.org>
46883
46884         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
46885         build-aux/ files.
46886
46887 2009-05-28  Simon Josefsson  <simon@josefsson.org>
46888
46889         * gnulib-tool (func_import): Transform license on build-aux/ files too.
46890
46891 2009-05-27  Simon Josefsson  <simon@josefsson.org>
46892
46893         * gnulib-tool (sed_transform_main_lib_file)
46894         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
46895         regexps.
46896
46897 2009-05-26  Simon Josefsson  <simon@josefsson.org>
46898
46899         * tests/test-strstr.c: Add another self-test.
46900         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
46901         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
46902
46903 2009-05-23  Bruno Haible  <bruno@clisp.org>
46904
46905         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
46906         change.
46907
46908 2009-05-21  Bruno Haible  <bruno@clisp.org>
46909
46910         Simplify use of mode_t varargs.
46911         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
46912         uses 'mode_t' or 'int'.
46913         * lib/openat.c (openat): Likewise.
46914         * lib/open-safer.c (open_safer): Likewise.
46915         * m4/mode_t.m4: New file.
46916         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
46917         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
46918         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
46919         * modules/open (Files): Add m4/mode_t.m4.
46920         * modules/openat (Files): Likewise.
46921         * modules/fcntl-safer (Files): Likewise.
46922         Suggested by Eric Blake.
46923
46924 2009-05-21  Pádraig Brady  <P@draigbrady.com>
46925
46926         * doc/glibc-functions/fallocate.texi: New file.
46927         * doc/gnulib.texi: Include it.
46928
46929 2009-05-21  Eric Blake  <ebb9@byu.net>
46930             Bruno Haible  <bruno@clisp.org>
46931
46932         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
46933         invocations.
46934         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46935
46936 2009-05-21  Eric Blake  <ebb9@byu.net>
46937             Bruno Haible  <bruno@clisp.org>
46938
46939         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
46940         include_next. Fix of 2008-11-20 commit.
46941         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
46942         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
46943         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
46944         NEXT_MATH_H.
46945         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
46946         instead of NEXT_MATH_H.
46947
46948 2009-05-21  Bruno Haible  <bruno@clisp.org>
46949
46950         Avoid redefinition warnings for SIZE_MAX.
46951         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
46952         Reported by Simon Josefsson.
46953
46954 2009-05-21  Bruno Haible  <bruno@clisp.org>
46955
46956         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
46957         AC_CACHE_VAL.
46958
46959 2009-05-20  Bruno Haible  <bruno@clisp.org>
46960
46961         Make zeroptr.h work on mingw.
46962         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
46963         mprotect.
46964         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
46965         * modules/memchr2-tests (configure.ac): Likewise.
46966         * modules/memcmp-tests (configure.ac): Likewise.
46967         * modules/memmem-tests (configure.ac): Likewise.
46968         * modules/memrchr-tests (configure.ac): Likewise.
46969         Reported by Simon Josefsson.
46970
46971 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46972
46973         * tests/test-glob.c: Include string.h for strcmp prototype.
46974
46975 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46976
46977         * modules/getdelim (Depends-on): Add explicit stdint, although it
46978         was implicitly already pulled in via realloc-posix.
46979         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
46980
46981 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46982
46983         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
46984         G. Christensen" <tgc@jupiterrise.com>.
46985         * m4/sys_socket_h.m4: Check for sa_family_t.
46986         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
46987         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
46988         * tests/test-sys_socket.c: Check that sa_family_t works.
46989
46990 2009-05-18  Eric Blake  <ebb9@byu.net>
46991
46992         maint.mk: allow gnulib_dir in VPATH build
46993         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
46994
46995 2009-05-15  Jim Meyering  <meyering@redhat.com>
46996
46997         maint.mk: Give gnulib_dir a default definition.
46998         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
46999         Thus, most packages no longer need to specify this variable in cfg.mk
47000
47001 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47002
47003         rename.m4: fix typos that would make non-mingw cross-configure fail
47004         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47005
47006 2009-05-13  Eric Blake  <ebb9@byu.net>
47007
47008         mmap-anon: avoid out-of-order autoconf expansion
47009         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47010         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47011         * modules/memchr-tests (Depends-on): Add extensions.
47012         * modules/memchr2-tests (Depends-on): Add extensions.
47013         * modules/memcmp-tests (Depends-on): Add extensions.
47014         * modules/memmem-tests (Depends-on): Add extensions.
47015         * modules/memrchr-tests (Depends-on): Add extensions.
47016
47017 2009-05-13  Bruno Haible  <bruno@clisp.org>
47018
47019         Make some tests ISO C 99 compliant.
47020         * tests/zerosize-ptr.h: New file.
47021         * tests/test-memchr.c: Include zerosize-ptr.h.
47022         (main): Use a zero-size object pointer instead of NULL.
47023         * tests/test-memchr2.c: Include zerosize-ptr.h.
47024         (main): Use a zero-size object pointer instead of NULL.
47025         * tests/test-memcmp.c: Include zerosize-ptr.h.
47026         (main): Use a zero-size object pointer instead of NULL.
47027         * tests/test-memmem.c: Include zerosize-ptr.h.
47028         (main): Use a zero-size object pointer instead of NULL.
47029         * tests/test-memrchr.c: Include zerosize-ptr.h.
47030         (main): Use a zero-size object pointer instead of NULL.
47031         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47032         m4/mmap-anon.m4.
47033         (Depends-on): Add getpagesize.
47034         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47035         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47036         m4/mmap-anon.m4.
47037         (Depends-on): Add getpagesize.
47038         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47039         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47040         m4/mmap-anon.m4.
47041         (Depends-on): Add getpagesize.
47042         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47043         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47044         m4/mmap-anon.m4.
47045         (Depends-on): Add getpagesize.
47046         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47047         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47048         m4/mmap-anon.m4.
47049         (Depends-on): Add getpagesize.
47050         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47051
47052 2009-05-12  Bruno Haible  <bruno@clisp.org>
47053
47054         Tests for module 'alignof'.
47055         * modules/alignof-tests: New file.
47056         * tests/test-alignof.c: New file.
47057
47058 2009-05-12  Bruno Haible  <bruno@clisp.org>
47059
47060         Fix alignof macro.
47061         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47062         vendor compilers that are always correct.
47063
47064 2009-05-12  Bruno Haible  <bruno@clisp.org>
47065
47066         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47067         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47068         not whether its fully works.
47069
47070 2009-05-12  Bruno Haible  <bruno@clisp.org>
47071
47072         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47073
47074 2009-05-12  Jim Meyering  <meyering@redhat.com>
47075
47076         * top/maint.mk: Adjust backslash alignment.
47077
47078 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47079
47080         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47081
47082 2009-05-11  Eric Blake  <ebb9@byu.net>
47083
47084         argp: avoid undefined behavior
47085         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47086         macros.
47087
47088 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47089
47090         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47091         user.name to prevent git commit from complaining.
47092
47093 2009-05-10  Bruno Haible  <bruno@clisp.org>
47094
47095         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47096         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47097         it rewrites every file name only once.
47098         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47099
47100 2009-05-08  Bruno Haible  <bruno@clisp.org>
47101
47102         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47103         instead of 'max'.
47104
47105 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47106
47107         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47108         sockaddr_storage test.
47109
47110 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47111
47112         * modules/sys_socket (Makefile.am): Substitute
47113         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47114         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47115         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47116         * tests/test-sys_socket.c: Check sockaddr_storage.
47117
47118 2009-05-08  Bruno Haible  <bruno@clisp.org>
47119
47120         New module 'alignof'.
47121         * lib/alignof.h: New file.
47122         * modules/alignof: New file.
47123
47124 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47125             Bruno Haible  <bruno@clisp.org>
47126
47127         Fix test-file-has-acl on FreeBSD.
47128         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47129         mask is implicitly added.
47130         * tests/test-file-has-acl.c: Include <signal.h>.
47131         (main): Terminate the test after 5 seconds.
47132         * modules/acl-tests (configure.ac): Check for alarm function.
47133
47134 2009-05-04  Bruno Haible  <bruno@clisp.org>
47135
47136         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47137         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47138         * modules/errno (configure.ac): Drop AC_REQUIRE.
47139         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47140         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47141
47142 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47143
47144         * modules/glob-tests: New module.
47145         * tests/test-glob.c: Add.
47146
47147 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47148
47149         * modules/fnmatch-tests: New module.
47150         * tests/test-fnmatch.c: Add.
47151
47152 2009-05-04  Eric Blake  <ebb9@byu.net>
47153
47154         maint: make the new no-submodule-changes rule VPATH-safe
47155         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47156
47157 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47158             Bruno Haible  <bruno@clisp.org>
47159
47160         acl: Fix infinite loop on FreeBSD.
47161         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47162         of return value from acl_get_entry.
47163         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47164         Likewise.
47165
47166 2009-05-03  Bruno Haible  <bruno@clisp.org>
47167
47168         * lib/acl-internal.h (acl_entries): Clarify return value.
47169         * lib/acl_entries.c (acl_entries): Likewise.
47170
47171 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47172
47173         Bug fix in acl module.
47174         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47175
47176 2009-05-03  Bruno Haible  <bruno@clisp.org>
47177
47178         Create gperf-generated file in the source dir, not in the build dir.
47179         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47180         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47181         * modules/unicase/locale-language (unicase/locale-languages.h):
47182         Likewise.
47183         * modules/unicase/special-casing (unicase/special-casing-table.h):
47184         Likewise.
47185         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47186         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47187         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47188         Reported by Ralf Wildenhues.
47189
47190 2009-05-03  Bruno Haible  <bruno@clisp.org>
47191
47192         * modules/fnmatch (Description, configure.ac): Taken from
47193         fnmatch-posix.
47194         * modules/fnmatch-posix: Turn into a symbolic reference to the
47195         'fnmatch' module, and deprecate.
47196         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47197
47198 2009-05-03  Bruno Haible  <bruno@clisp.org>
47199
47200         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47201         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47202         Reported by Ralf Wildenhues.
47203
47204 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47205
47206         * m4/fnmatch.m4: Fix fnmatch re-define.
47207
47208 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47209
47210         priv-set: new module and tests; adapt write-any-file
47211         * lib/priv-set.c: New file.
47212         * lib/priv-set.h: New file.
47213         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47214         * lib/write-any-file.c: Simplify by using priv-set module.
47215         * m4/priv-set.m4: New file.
47216         * modules/priv-set: New file.
47217         * modules/unlinkdir: Add dependency on priv-set module.
47218         * modules/write-any-file: Likewise.
47219
47220         Tests for module 'priv-set'.
47221         * modules/priv-set-tests: New file.
47222         * tests/test-priv-set.c: New file.
47223
47224 2009-05-03  Jim Meyering  <meyering@redhat.com>
47225             Bruno Haible  <bruno@clisp.org>
47226
47227         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47228         use the converted UTF-8 variant of the name instead.
47229
47230 2009-05-03  Jim Meyering  <meyering@redhat.com>
47231
47232         tests: tighten some getdate tests
47233         * tests/test-getdate.c (main): Tighten tests: require equality,
47234         not just greater than.  Set TZ envvar to UTC0.
47235
47236 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47237
47238         getdate: correctly interpret "next monday" when run on a Monday
47239         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47240         that e.g., "next tues" (when run on a tuesday) results in a date
47241         that is one week in the future, and not today's date.
47242         I.e., add a week when the wday is the same as the current one.
47243         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47244         and earlier by Martin Bernreuther and Jan Minář.
47245         * tests/test-getdate.c (main): Check that "next DAY" is always in
47246         the future and that "last DAY" is always in the past.
47247
47248 2009-05-02  Jim Meyering  <meyering@redhat.com>
47249
47250         build: ensure that a release build fails when a submodule is unclean
47251         * top/maint.mk (no-submodule-changes): New rule.
47252         (alpha beta major): Depend on it.
47253
47254 2009-05-02  Bruno Haible  <bruno@clisp.org>
47255
47256         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47257         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47258         shell variable gl_fnmatch_required to detect which variant is
47259         requested.
47260         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47261         gl_FUNC_FNMATCH_POSIX.
47262         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47263         exclude fnmatch-posix.
47264
47265 2009-05-02  Bruno Haible  <bruno@clisp.org>
47266
47267         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47268         * modules/mbsrtowcs (License): Change to LGPLv2+.
47269         * modules/strnlen1 (License): Likewise.
47270         Reported by Simon Josefsson.
47271
47272 2009-05-02  Bruno Haible  <bruno@clisp.org>
47273
47274         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47275         "cross".
47276         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47277         gnulib-tool was called with option --source-base=lib.
47278
47279 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47280
47281         Use automake *-local hooks without commands, for extensibility.
47282         * modules/localcharset (Makefile.am): Rename install-exec-local
47283         rule to install-exec-localcharset, and make it a prerequisite of
47284         install-exec-local.  Likewise, rename the uninstall-local rule to
47285         uninstall-localcharset, and make it a prerequisite of the former.
47286
47287 2009-05-01  Bruno Haible  <bruno@clisp.org>
47288
47289         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47290         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47291         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47292         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47293         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47294         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47295         m4/locale-zh.m4, m4/codeset.m4.
47296
47297         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47298         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47299         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47300         m4/locale-zh.m4.
47301
47302         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47303         REPLACE_WCRTOMB if mbstate_t must be replaced.
47304         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47305         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47306
47307 2009-05-01  Bruno Haible  <bruno@clisp.org>
47308
47309         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47310         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47311         dngettext, dcngettext, textdomain, bindtextdomain,
47312         bind_textdomain_codeset): Undefine before redefining.
47313
47314 2009-04-30  Bruno Haible  <bruno@clisp.org>
47315
47316         Fix bug introduced on 2009-04-25.
47317         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47318         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47319         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47320         is defined.
47321         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47322         is defined.
47323         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47324         is defined.
47325         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47326
47327 2009-04-28  Bruno Haible  <bruno@clisp.org>
47328
47329         Comment tweaks.
47330         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47331         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47332         * lib/unicase.h (u*_casexfrm): Likewise.
47333         Reported by Paolo Bonzini.
47334
47335 2009-04-28  Bruno Haible  <bruno@clisp.org>
47336
47337         Fix a compilation error.
47338         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47339         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47340         Reported by Jim Meyering.
47341
47342 2009-04-27  Bruno Haible  <bruno@clisp.org>
47343
47344         New module 'libunistring'.
47345         * modules/libunistring: New file.
47346         * m4/libunistring.m4: New file.
47347         * MODULES.html.sh (Unicode string functions): Add it.
47348
47349 2009-04-27  Eric Blake  <ebb9@byu.net>
47350
47351         maint.mk: allow package-specific header to provide <config.h>
47352         * top/maint.mk (sc_require_config_h): New variable.
47353         (sc_require_config_h, sc_require_config_h_first): Use it.
47354
47355 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47356
47357         * top/maint.mk (sc_avoid_if_before_free): Except
47358         useless-if-before-free script.
47359
47360 2009-04-27  Eric Blake  <ebb9@byu.net>
47361
47362         maintainer-makefile: depend on all required helper scripts
47363         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47364         useless-if-before-free.
47365         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47366         version, rather than assuming gnulib checkout is available.
47367         Reported by Simen Josefsson.
47368
47369 2009-04-26  Bruno Haible  <bruno@clisp.org>
47370
47371         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47372         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47373         "../" or "..".
47374
47375 2009-04-26  Bruno Haible  <bruno@clisp.org>
47376
47377         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47378         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47379         AC_LIB_HAVE_LINKFLAGS.
47380
47381 2009-04-26  Bruno Haible  <bruno@clisp.org>
47382
47383         Simplify calling convention of u*_conv_from_encoding.
47384         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47385         u32_conv_from_encoding): Expect a resultbuf argument and return the
47386         result directly as a pointer.
47387         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47388         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47389         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47390         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47391         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47392         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47393         Update.
47394         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47395         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47396         * lib/vasnprintf.c (VASNPRINTF): Update.
47397         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47398         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47399         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47400         * NEWS: Mention the change.
47401
47402 2009-04-26  Bruno Haible  <bruno@clisp.org>
47403
47404         Simplify calling convention of u*_conv_to_encoding.
47405         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47406         u32_conv_to_encoding): Expect a resultbuf argument and return the
47407         result directly as a pointer.
47408         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47409         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47410         freeing scaled_offsets if mem_iconveha failed.
47411         * lib/unicase/u-casexfrm.h (FUNC): Update.
47412         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47413         * lib/vasnprintf.c (VASNPRINTF): Update.
47414         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47415         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47416         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47417         * NEWS: Mention the change.
47418
47419 2009-04-26  Bruno Haible  <bruno@clisp.org>
47420
47421         Avoid test failures on AIX and OSF/1.
47422         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47423         malloc(0).
47424         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47425         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47426         Likewise.
47427         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47428         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47429         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47430         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47431         * doc/posix-functions/malloc.texi: Document the portability problem
47432         related to malloc(0).
47433
47434 2009-04-26  Bruno Haible  <bruno@clisp.org>
47435
47436         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47437         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47438         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47439
47440 2009-04-25  Bruno Haible  <bruno@clisp.org>
47441
47442         Avoid link error when creating a namespace clean library.
47443         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47444         as macro with arguments if already defined as an alias.
47445         * lib/signbitf.c (gl_signbitf): Don't undefine.
47446         * lib/signbitd.c (gl_signbitd): Don't undefine.
47447         * lib/signbitl.c (gl_signbitl): Don't undefine.
47448
47449 2009-04-25  Jim Meyering  <meyering@redhat.com>
47450
47451         vc-list-files: fix another quoting bug
47452         * build-aux/vc-list-files: Avoid sed backslash expansion
47453         of pathological directory names.
47454
47455 2009-04-25  Eric Blake  <ebb9@byu.net>
47456
47457         vc-list-files: fix shell quoting error
47458         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47459         timestamp.
47460
47461 2009-04-25  Jim Meyering  <meyering@redhat.com>
47462
47463         vc-list-files: restore lost functionality with subdir argument
47464         * build-aux/vc-list-files: When given a non-"." sub-directory
47465         argument, substitute the $dir/ prefix back onto each resulting name.
47466         Otherwise, coreutils' root_tests check would fail.
47467
47468 2009-04-24  Eric Blake  <ebb9@byu.net>
47469
47470         vc-list-files: ignore git symlinks
47471         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47472         than ls-files, to ignore git symlinks.
47473
47474         maint.mk: import improvements from m4
47475         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47476         (move_if_change): Delete unused macro.
47477         (news-date-check, vc-diff-check): Support VPATH builds.
47478         (announcement): Likewise.  Split --bootstrap-tools list...
47479         (boostrap-tools): ...into separate list, which can be overridden
47480         in cfg.mk.
47481         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47482         requiring dependency on useless-if-before-free module.
47483         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47484         Support VPATH builds.
47485
47486 2009-04-24  Jim Meyering  <meyering@redhat.com>
47487
47488         maint.mk: remove coreutils-specific rules and variables
47489         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47490         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47491         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47492
47493         maint.mk: remove obsolete rule
47494         * top/maint.mk (rel-check): Remove rule.
47495         (WGET, WGETFLAGS): Remove now-unused variables.
47496
47497 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47498
47499         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47500         consistency.
47501
47502         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47503         '$(PATH_SEPARATOR)' instead of ':'.
47504
47505 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47506
47507         * lib/getopt1.c (main): Use 'const' for static array.
47508
47509 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47510
47511         * top/maint.mk: Sync with coreutils.
47512         * NEWS: Explain incompatibilities.
47513
47514 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47515             Bruno Haible  <bruno@clisp.org>
47516
47517         Fix cross-compilation results.
47518         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47519         statement, as third argument of AC_TRY_RUN.
47520         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47521         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47522         Likewise.
47523         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47524         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47525         Likewise.
47526         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47527         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47528         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47529
47530 2009-04-20  Bruno Haible  <bruno@clisp.org>
47531
47532         Avoid test failure on mingw.
47533         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47534
47535 2009-04-20  Bruno Haible  <bruno@clisp.org>
47536
47537         Avoid compilation error on mingw.
47538         * modules/localename-tests (Depends-on): Add locale.
47539
47540 2009-04-19  Bruno Haible  <bruno@clisp.org>
47541
47542         Support for building a shared library on Windows platforms.
47543         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47544         (main): Test the presence of UNINORM_NFC here.
47545         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47546         (main): Test the presence of UNINORM_NFD here.
47547         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47548         (main): Test the presence of UNINORM_NFKC here.
47549         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47550         (main): Test the presence of UNINORM_NFKD here.
47551
47552 2009-04-19  Bruno Haible  <bruno@clisp.org>
47553
47554         Avoid a compiler warning.
47555         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47556         Change type of variable 'sequence'.
47557
47558 2009-04-19  Bruno Haible  <bruno@clisp.org>
47559
47560         * modules/configmake (Makefile.am): When the contents of configmake.h
47561         does not change, arrange to preserve its modification time.
47562
47563 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47564
47565         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47566         gettext domain.
47567
47568 2009-04-16  Jim Meyering  <meyering@redhat.com>
47569
47570         useless-if-before-free: improve conversion code
47571         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47572         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47573
47574 2009-04-14  Bruno Haible  <bruno@clisp.org>
47575
47576         * modules/fcntl (Depends-on): Add extensions.
47577         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47578
47579 2009-04-12  Ben Pfaff  <blp@gnu.org>
47580
47581         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47582         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47583
47584 2009-03-20  Ben Pfaff  <blp@gnu.org>
47585
47586         Make rename replace existing destinations on Windows.
47587         * m4/rename.m4: Add test for Mingw.
47588         * lib/rename.c: Add rename replacement that uses MoveFileEx with
47589         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
47590         * doc/posix-functions/rename.texi: Document.
47591
47592 2009-04-10  Bruno Haible  <bruno@clisp.org>
47593
47594         New include file "iconveh.h".
47595         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
47596         * lib/striconveh.h: Include it.
47597         (enum iconv_ilseq_handler): Remove definition.
47598         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
47599         striconveh.h.
47600         * lib/striconveha.c: Include striconveh.h.
47601         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
47602         * modules/striconveh (Files): Add lib/iconveh.h.
47603         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
47604         lib/striconveh.h.
47605
47606 2009-04-10  Bruno Haible  <bruno@clisp.org>
47607
47608         * lib/uniconv.h: Update comment.
47609
47610 2009-04-10  Bruno Haible  <bruno@clisp.org>
47611
47612         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
47613         always.
47614         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47615         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47616         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47617         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
47618         "unistring-notinline.h", so that the function gets defined always.
47619         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47620         * lib/unistr/u8-uctomb.c: Likewise.
47621         * lib/unistr/u16-mbtouc.c: Likewise.
47622         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47623         * lib/unistr/u16-uctomb.c: Likewise.
47624         * lib/unistr/u32-mbtouc.c: Likewise.
47625         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47626         * lib/unistr/u32-uctomb.c: Likewise.
47627
47628 2009-04-10  Bruno Haible  <bruno@clisp.org>
47629
47630         Mark 'utime' obsolete.
47631         * modules/utime (Status, Notice): New sections.
47632         Suggested by Jim Meyering.
47633
47634         Fix cross-compile guess for utime test.
47635         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
47636         autoconf.
47637         * doc/posix-functions/utime.texi: Give more precisions.
47638         Reported by Jan <ipif@ymail.com>.
47639
47640 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
47641
47642         filevercmp: correct today's change
47643         * lib/filevercmp.c: Also handle coreutils' test inputs.
47644         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
47645
47646         Fix regression in 'filevercmp' module. Thanks Sven Joachim
47647         for reporting it.
47648         * lib/filevercmp.c: Special handle for "", "." and "..".
47649         * tests/test-filevercmp.c: Enlarge the set suite.
47650
47651 2009-04-07  Jim Meyering  <meyering@redhat.com>
47652
47653         useless-if-before-free: show how to remove braced useless free, too
47654         * build-aux/useless-if-before-free: still only in a comment, though.
47655
47656 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
47657
47658         maint.mk: import changes to syntax-check macros from coreutils
47659         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
47660         Use them in the relevant macros.
47661
47662 2009-04-06  Bruno Haible  <bruno@clisp.org>
47663
47664         Fix unportable use of bit-fields.
47665         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
47666         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
47667         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
47668
47669 2009-04-06  Bruno Haible  <bruno@clisp.org>
47670
47671         Avoid test failures on AIX and OSF/1.
47672         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
47673         that malloc(0) = NULL.
47674         * tests/unicase/test-u8-tolower.c (check): Likewise.
47675         * tests/unicase/test-u8-totitle.c (check): Likewise.
47676         * tests/unicase/test-u8-toupper.c (check): Likewise.
47677         * tests/unicase/test-u16-casefold.c (check): Likewise.
47678         * tests/unicase/test-u16-tolower.c (check): Likewise.
47679         * tests/unicase/test-u16-totitle.c (check): Likewise.
47680         * tests/unicase/test-u16-toupper.c (check): Likewise.
47681         * tests/unicase/test-u32-casefold.c (check): Likewise.
47682         * tests/unicase/test-u32-tolower.c (check): Likewise.
47683         * tests/unicase/test-u32-totitle.c (check): Likewise.
47684         * tests/unicase/test-u32-toupper.c (check): Likewise.
47685         * tests/uninorm/test-u8-nfc.c (check): Likewise.
47686         * tests/uninorm/test-u8-nfd.c (check): Likewise.
47687         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
47688         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
47689         * tests/uninorm/test-u16-nfc.c (check): Likewise.
47690         * tests/uninorm/test-u16-nfd.c (check): Likewise.
47691         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
47692         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
47693         * tests/uninorm/test-u32-nfc.c (check): Likewise.
47694         * tests/uninorm/test-u32-nfd.c (check): Likewise.
47695         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
47696         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
47697
47698 2009-04-05  Bruno Haible  <bruno@clisp.org>
47699
47700         Work around an autoconf limitation.
47701         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
47702         comment line if it would be longer than 3 KB.
47703
47704 2009-04-05  Bruno Haible  <bruno@clisp.org>
47705
47706         Avoid test failure with libiconv-1.13.
47707         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
47708         of the expected test results.
47709
47710 2009-04-05  Bruno Haible  <bruno@clisp.org>
47711
47712         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
47713         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
47714         that it should be installed.
47715
47716 2009-04-05  Bruno Haible  <bruno@clisp.org>
47717
47718         * gnulib-tool: New option --copy-file.
47719         (func_usage): Document it.
47720         (func_dest_tmpfilename): Moved out of func_import.
47721         (func_add_file, func_update_file): New functions, extracted from
47722         func_import.
47723         (func_import): Update.
47724
47725 2009-04-05  Karl Berry  <karl@gnu.org>
47726
47727         * README: prominently mention gnulib-tool.
47728         Rearrange sections so getting the code is near the top.
47729
47730 2009-04-05  Bruno Haible  <bruno@clisp.org>
47731
47732         * lib/unicase.h: Mention u*_cmp2.
47733         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47734         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
47735         * lib/unicase/ulc-casecmp.c: Likewise.
47736         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
47737         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
47738         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
47739         unistr/u8-cmp.
47740         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
47741         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
47742         unistr/u16-cmp.
47743         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
47744         unistr/u32-cmp.
47745
47746         * lib/uninorm.h: Mention u*_cmp2.
47747         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47748         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
47749         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
47750         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
47751         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
47752         unistr/u8-cmp.
47753         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
47754         unistr/u16-cmp.
47755         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
47756         unistr/u32-cmp.
47757
47758         New module 'unistr/u32-cmp2'.
47759         * lib/unistr/u32-cmp2.c: New file.
47760         * modules/unistr/u32-cmp2: New file.
47761
47762         New module 'unistr/u16-cmp2'.
47763         * lib/unistr/u16-cmp2.c: New file.
47764         * modules/unistr/u16-cmp2: New file.
47765
47766         New module 'unistr/u8-cmp2'.
47767         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
47768         * lib/unistr/u8-cmp2.c: New file.
47769         * lib/unistr/u-cmp2.h: New file.
47770         * modules/unistr/u8-cmp2: New file.
47771
47772 2009-04-05  Bruno Haible  <bruno@clisp.org>
47773
47774         * lib/unictype.h (uc_property_is_valid): New macro.
47775         * tests/unictype/test-pr_byname.c (main): Use it.
47776
47777         * lib/unistr.h: Doc fixes.
47778         * lib/uniconv.h: Doc fixes.
47779         * lib/unictype.h: Doc fixes.
47780
47781 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
47782
47783         Port coreutils 7.2 to Solaris 8.
47784
47785         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
47786         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
47787         for Solaris 8.  This is a bit of a hack, as it means it's the
47788         caller's responsibility to add -lnsl if needed, but most likely it
47789         won't be needed since only getaddrinfo uses this and getaddrinfo
47790         isn't needed on Solaris 8.
47791
47792         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
47793         problem to Solaris 8 encountered with coreutils 7.2, which
47794         resulted in a message "fnmatch.c:292: warning: passing argument 4
47795         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
47796         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
47797
47798 2009-04-03  Simon Josefsson  <simon@josefsson.org>
47799
47800         * m4/ld-version-script.m4: Add FIXME comment.
47801
47802 2009-04-02  Simon Josefsson  <simon@josefsson.org>
47803
47804         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
47805         SOVERSION variable.
47806
47807 2009-04-02  Bruno Haible  <bruno@clisp.org>
47808
47809         * Makefile (info, html, dvi, pdf): Combine the rules.
47810         Suggested by Jim Meyering.
47811
47812 2009-04-01  Bruno Haible  <bruno@clisp.org>
47813
47814         * Makefile (info, html, dvi, pdf): New targets.
47815         Reported by Reuben Thomas <rrt@sc3d.org>.
47816
47817 2009-04-01  Bruno Haible  <bruno@clisp.org>
47818
47819         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
47820         can be put into PATH.
47821         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
47822
47823 2009-04-01  Bruno Haible  <bruno@clisp.org>
47824
47825         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
47826
47827 2009-04-01  Bruno Haible  <bruno@clisp.org>
47828
47829         Rename module 'visibility'.
47830         * modules/lib-symbol-visibility: Renamed from modules/visibility.
47831         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
47832         * doc/gnulib.texi: Update.
47833         * MODULES.html.sh (Misc): Update.
47834         * NEWS: Mention the change.
47835
47836 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47837
47838         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
47839         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
47840         Eric Blake <ebb9@byu.net> for review.
47841         * MODULES.html.sh: Add lib-msvc-compat.
47842         * doc/gnulib.texi: Link to new section.
47843         * m4/ld-output-def.m4: New file.
47844         * doc/ld-output-def.texi: New file.
47845
47846 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47847
47848         Rename ld-version-script to lib-symbol-versions.  Suggested by
47849         Bruno Haible <bruno@clisp.org>.
47850         * modules/ld-version-script: Renamed to lib-symbol-versions.
47851         * doc/ld-version-script.texi: Fix module name.
47852         * MODULES.html.sh: Add lib-symbol-versions.
47853
47854 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47855
47856         * modules/u64-tests: New file.
47857         * tests/test-u64.c: New file.
47858
47859 2009-03-04  Simon Josefsson  <simon@josefsson.org>
47860
47861         * MODULES.html.sh: Mention u64.
47862         * modules/u64: New module.
47863         * modules/crypto/sha512: Depend on u64 module instead of providing
47864         u64.h.
47865
47866 2009-03-27  Eric Blake  <ebb9@byu.net>
47867
47868         test-strerror: make debugging EAI_SYSTEM easier
47869         * modules/getaddrinfo-tests (Depends-on): Add strerror.
47870         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
47871         failure was EAI_SYSTEM.
47872
47873 2009-03-25  Bruno Haible  <bruno@clisp.org>
47874
47875         Fix a problem with --enable-relocatable on Solaris 7.
47876         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
47877         since 2008-02-24.
47878
47879 2009-03-25  Eric Blake  <ebb9@byu.net>
47880
47881         test-sockets: avoid gcc warning
47882         * tests/test-sockets.c (main): Silence compiler warning.
47883
47884 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47885
47886         New modules nproc, pthread, contributed by Glen Lenker.
47887
47888         * MODULES.html.sh: Add pthread, nproc.
47889         * lib/nproc.c: New file.
47890         * lib/nproc.h: New file.
47891         * lib/pthread.in.h: New file.
47892         * m4/pthread.m4: New file.
47893         * modules/nproc: New file.
47894         * modules/pthread: New file.
47895
47896 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47897
47898         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
47899         New variable.
47900
47901 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
47902
47903         filevercmp: handle simple~ and numbered.~3~ backup suffixes
47904         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
47905         * tests/test-filevercmp.c: Add tests for backup suffixes.
47906
47907 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47908
47909         * modules/stdlib (Depends-on): Add stdint, needed when defining
47910         struct random_data on, for example, HP-UX 10.20.  Reported by
47911         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47912
47913 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47914
47915         * lib/readline.c (readline): Call fflush on stdout after printing
47916         prompt.
47917
47918 2009-03-20  Bruno Haible  <bruno@clisp.org>
47919
47920         Remove dependency from 'close' module to -lws2_32 on native Windows.
47921         * lib/close-hook.h: New file.
47922         * lib/close-hook.c: New file.
47923         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
47924         w32sock.h.
47925         (_gl_close_fd_maybe_socket): Remove function.
47926         (rpl_close): Invoke execute_all_close_hooks instead of
47927         _gl_close_fd_maybe_socket.
47928         * lib/sockets.c: Include close-hook.h, w32sock.h.
47929         (close_fd_maybe_socket): New function, essentially from lib/close.c.
47930         (close_sockets_hook): New variable.
47931         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
47932         (gl_sockets_cleanup): Unregister it.
47933         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
47934         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
47935         * modules/close-hook: New file.
47936         * modules/close (Files): Remove lib/w32sock.h.
47937         (Depends-on): Add close-hook.
47938         (Link): Remove section.
47939         * modules/sockets (Files): Add lib/w32sock.h.
47940         (Depends-on): Add close-hook.
47941         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
47942         invocation.
47943         * NEWS: Mention that LIB_CLOSE is gone.
47944
47945 2009-03-23  Eric Blake  <ebb9@byu.net>
47946
47947         signal-tests: test previous patch
47948         * tests/test-signal.c: New file.
47949         * modules/signal-tests: Likewise.
47950
47951         signal.h: always support 'volatile sig_atomic_t'
47952         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
47953         (gl_SIGNAL_H_DEFAULTS): Add a default.
47954         * modules/signal (Makefile.am): Substitute if needed.
47955         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
47956         users can blindly add volatile.
47957         * doc/posix-headers/signal.texi (signal.h): Document it.
47958         Reported by Matthew Woehlke.
47959
47960 2009-03-23  Jim Meyering  <meyering@redhat.com>
47961
47962         pathmax: PATH_MAX: use pathconf only when available
47963         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
47964         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
47965         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
47966         This avoids a link failure in a PSP cross-compilation environment
47967         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
47968
47969         * lib/vasnprintf.c (divide): Fix typo in comment.
47970
47971 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47972
47973         * gnulib-tool (func_filter_filelist): Fix comment.
47974
47975 2009-03-20  Bruno Haible  <bruno@clisp.org>
47976
47977         Make sockets.h self-contained.
47978         * lib/sockets.c: Include sockets.h first.
47979         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
47980
47981 2009-03-19  Eric Blake  <ebb9@byu.net>
47982
47983         doc: mention more functions added in cygwin 1.7.0
47984         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
47985         addition.
47986         * doc/posix-functions/log2f.texi: Likewise.
47987
47988 2009-03-19  Jim Meyering  <meyering@redhat.com>
47989
47990         fsusage: avoid syntax error due to statement-before-declaration
47991         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
47992         after all declarations.  Reported by Matthew Woehlke in
47993         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
47994
47995 2009-03-18  Eric Blake  <ebb9@byu.net>
47996
47997         build-aux/compile: sync from automake
47998         * build-aux/compile: New file, from automake.
47999         * config/srclist.txt: Mention build-aux/compile.
48000
48001 2009-03-17  Bruno Haible  <bruno@clisp.org>
48002
48003         * lib/git-merge-changelog.c: Fix typo in comment.
48004         Reported by Reuben Thomas <rrt@sc3d.org>.
48005
48006 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48007
48008         * m4/regex.m4: update and improve help for
48009         --without-included-regex.
48010
48011 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48012
48013         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48014         failure on missing include files.
48015
48016 2009-03-17  Eric Blake  <ebb9@byu.net>
48017
48018         doc: mention more functions added in cygwin 1.7.0
48019         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48020         addition.
48021         * doc/posix-functions/fwscanf.texi: Likewise.
48022         * doc/posix-functions/swprintf.texi: Likewise.
48023         * doc/posix-functions/swscanf.texi: Likewise.
48024         * doc/posix-functions/vfwprintf.texi: Likewise.
48025         * doc/posix-functions/vfwscanf.texi: Likewise.
48026         * doc/posix-functions/vswprintf.texi: Likewise.
48027         * doc/posix-functions/vswscanf.texi: Likewise.
48028         * doc/posix-functions/vwprintf.texi: Likewise.
48029         * doc/posix-functions/vwscanf.texi: Likewise.
48030         * doc/posix-functions/wcscasecmp.texi: Likewise.
48031         * doc/posix-functions/wcsdup.texi: Likewise.
48032         * doc/posix-functions/wcsftime.texi: Likewise.
48033         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48034         * doc/posix-functions/wprintf.texi: Likewise.
48035         * doc/posix-functions/wscanf.texi: Likewise.
48036         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48037
48038 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48039
48040         maint.mk: really add $(AM_MAKEFLAGS)
48041         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48042         was inadvertently omitted in the last commit.
48043         Spotted by Bruno Haible.
48044
48045         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48046         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48047         $(AM_MAKEFLAGS)' rather than plain `make'.
48048
48049         gnulib-tool: execute $MAKE not make
48050         * gnulib-tool: Default $MAKE to 'make'.
48051         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48052         than make.  Initialize $MAKE in the do-autobuild script.
48053
48054         gnulib-tool: use $MAKE not make in generated files
48055         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48056         make, in generated files.  Initialize $MAKE in the do-autobuild
48057         script.
48058
48059         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48060
48061         GNUmakefile: disable parallelism only for multiple, recursive targets
48062         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48063         additions in the Makefile.
48064         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48065         by Automake.
48066         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48067         are listed on the command line and at least one of them is
48068         listed in $(ALL_RECURSIVE_TARGETS).
48069
48070 2009-03-14  Bruno Haible  <bruno@clisp.org>
48071
48072         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48073         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48074         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48075         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48076         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48077         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48078         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48079         unistr/u8-uctomb.
48080         * modules/unistr/u8-strchr (Depends-on): Likewise.
48081         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48082         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48083         unistr/u16-uctomb.
48084         * modules/unistr/u16-strchr (Depends-on): Likewise.
48085         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48086
48087 2009-03-12  Bruno Haible  <bruno@clisp.org>
48088
48089         Work around select() bug on Interix 3.5.
48090         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48091         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48092         * m4/select.m4: New file.
48093         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48094         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48095         * modules/select (Files): Add m4/select.m4.
48096         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48097         * modules/nanosleep (Depends-on): Add select.
48098         * modules/poll (Depends-on): Likewise.
48099         * doc/posix-functions/select.texi: Mention the Interix bug.
48100         Reported by Markus Duft <mduft@gentoo.org>.
48101
48102         * lib/select.c: Renamed from lib/winsock-select.c.
48103         * modules/select (Files): Add lib/select.c, remove
48104         lib/winsock-select.c.
48105         (configure.ac): Update.
48106
48107 2009-03-12  Jim Meyering  <meyering@redhat.com>
48108
48109         avoid gcc warnings about unused macro definitions
48110         * lib/readtokens.c (STREQ): Remove unused definition.
48111         * lib/xmalloc.c (SIZE_MAX): Likewise.
48112         * lib/openat-die.c (N_): Likewise.
48113         * lib/mountlist.c (SIZE_MAX): Remove definition.
48114         Instead, include <stdint.h>.
48115         * lib/readutmp.c: Likewise.
48116         * modules/readutmp (Depends-on): Add stdint.
48117         * modules/mountlist (Depends-on): Add stdint.
48118         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48119
48120 2009-03-10  Bruno Haible  <bruno@clisp.org>
48121
48122         Tests for module 'mbmemcasecoll'.
48123         * modules/mbmemcasecoll-tests: New file.
48124         * tests/test-mbmemcasecoll1.sh: New file.
48125         * tests/test-mbmemcasecoll2.sh: New file.
48126         * tests/test-mbmemcasecoll3.sh: New file.
48127         * tests/test-mbmemcasecoll.c: New file.
48128
48129         New module 'mbmemcasecoll'.
48130         * lib/mbmemcasecoll.h: New file.
48131         * lib/mbmemcasecoll.c: New file.
48132         * modules/mbmemcasecoll: New file.
48133
48134         * tests/test-mbmemcasecmp.h: New file, extracted from
48135         tests/test-mbmemcasecmp.c.
48136         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48137         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48138         (main): Update.
48139         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48140
48141 2009-03-09  Bruno Haible  <bruno@clisp.org>
48142
48143         Tests for module 'mbmemcasecmp'.
48144         * modules/mbmemcasecmp-tests: New file.
48145         * tests/test-mbmemcasecmp1.sh: New file.
48146         * tests/test-mbmemcasecmp2.sh: New file.
48147         * tests/test-mbmemcasecmp3.sh: New file.
48148         * tests/test-mbmemcasecmp.c: New file.
48149
48150         New module 'mbmemcasecmp'.
48151         * lib/mbmemcasecmp.h: New file.
48152         * lib/mbmemcasecmp.c: New file.
48153         * modules/mbmemcasecmp: New file.
48154
48155 2009-03-09  Bruno Haible  <bruno@clisp.org>
48156
48157         Tests for module 'unicase/ulc-casecoll'.
48158         * modules/unicase/ulc-casecoll-tests: New file.
48159         * tests/unicase/test-ulc-casecoll1.sh: New file.
48160         * tests/unicase/test-ulc-casecoll2.sh: New file.
48161         * tests/unicase/test-ulc-casecoll.c: New file.
48162
48163         New module 'unicase/ulc-casecoll'.
48164         * lib/unicase.h (ulc_casecoll): New declaration.
48165         * lib/unicase/ulc-casecoll.c: New file.
48166         * modules/unicase/ulc-casecoll: New file.
48167
48168         New module 'unicase/ulc-casexfrm'.
48169         * lib/unicase.h (ulc_casexfrm): New declaration.
48170         * lib/unicase/ulc-casexfrm.c: New file.
48171         * modules/unicase/ulc-casexfrm: New file.
48172
48173 2009-03-09  Bruno Haible  <bruno@clisp.org>
48174
48175         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48176         invocations.
48177
48178         * m4/mbscasecmp.m4: Remove file.
48179         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48180         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48181
48182         * m4/mbscasestr.m4: Remove file.
48183         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48184         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48185
48186         * m4/mbschr.m4: Remove file.
48187         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48188         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48189
48190         * m4/mbscspn.m4: Remove file.
48191         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48192         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48193
48194         * m4/mbslen.m4: Remove file.
48195         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48196         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48197
48198         * m4/mbsncasecmp.m4: Remove file.
48199         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48200         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48201
48202         * m4/mbsnlen.m4: Remove file.
48203         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48204         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48205
48206         * m4/mbspbrk.m4: Remove file.
48207         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48208         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48209
48210         * m4/mbspcasecmp.m4: Remove file.
48211         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48212         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48213
48214         * m4/mbsrchr.m4: Remove file.
48215         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48216         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48217
48218         * m4/mbssep.m4: Remove file.
48219         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48220         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48221
48222         * m4/mbsspn.m4: Remove file.
48223         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48224         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48225
48226         * m4/mbsstr.m4: Remove file.
48227         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48228         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48229
48230         * m4/mbstok_r.m4: Remove file.
48231         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48232         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48233
48234         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48235
48236         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48237         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48238
48239         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48240
48241 2009-03-08  Bruno Haible  <bruno@clisp.org>
48242
48243         Tests for module 'unicase/ulc-casecmp'.
48244         * modules/unicase/ulc-casecmp-tests: New file.
48245         * tests/unicase/test-ulc-casecmp1.sh: New file.
48246         * tests/unicase/test-ulc-casecmp2.sh: New file.
48247         * tests/unicase/test-ulc-casecmp.c: New file.
48248
48249         New module 'unicase/ulc-casecmp'.
48250         * lib/unicase.h (ulc_casecmp): New declaration.
48251         * lib/unicase/ulc-casecmp.c: New file.
48252         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48253         'const SRC_UNIT *'.
48254         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48255         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48256         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48257         * modules/unicase/ulc-casecmp: New file.
48258
48259         Tests for module 'unicase/u32-is-cased'.
48260         * modules/unicase/u32-is-cased-tests: New file.
48261         * tests/unicase/test-u32-is-cased.c: New file.
48262
48263         Tests for module 'unicase/u16-is-cased'.
48264         * modules/unicase/u16-is-cased-tests: New file.
48265         * tests/unicase/test-u16-is-cased.c: New file.
48266
48267         Tests for module 'unicase/u8-is-cased'.
48268         * modules/unicase/u8-is-cased-tests: New file.
48269         * tests/unicase/test-u8-is-cased.c: New file.
48270         * tests/unicase/test-is-cased.h: New file.
48271
48272         New module 'unicase/u32-is-cased'.
48273         * lib/unicase/u32-is-cased.c: New file.
48274         * modules/unicase/u32-is-cased: New file.
48275
48276         New module 'unicase/u16-is-cased'.
48277         * lib/unicase/u16-is-cased.c: New file.
48278         * modules/unicase/u16-is-cased: New file.
48279
48280         New module 'unicase/u8-is-cased'.
48281         * lib/unicase/u8-is-cased.c: New file.
48282         * lib/unicase/u-is-cased.h: New file.
48283         * modules/unicase/u8-is-cased: New file.
48284
48285         Tests for module 'unicase/u32-is-casefolded'.
48286         * modules/unicase/u32-is-casefolded-tests: New file.
48287         * tests/unicase/test-u32-is-casefolded.c: New file.
48288
48289         Tests for module 'unicase/u16-is-casefolded'.
48290         * modules/unicase/u16-is-casefolded-tests: New file.
48291         * tests/unicase/test-u16-is-casefolded.c: New file.
48292
48293         Tests for module 'unicase/u8-is-casefolded'.
48294         * modules/unicase/u8-is-casefolded-tests: New file.
48295         * tests/unicase/test-u8-is-casefolded.c: New file.
48296         * tests/unicase/test-is-casefolded.h: New file.
48297
48298         New module 'unicase/u32-is-casefolded'.
48299         * lib/unicase/u32-is-casefolded.c: New file.
48300         * modules/unicase/u32-is-casefolded: New file.
48301
48302         New module 'unicase/u16-is-casefolded'.
48303         * lib/unicase/u16-is-casefolded.c: New file.
48304         * modules/unicase/u16-is-casefolded: New file.
48305
48306         New module 'unicase/u8-is-casefolded'.
48307         * lib/unicase/u8-is-casefolded.c: New file.
48308         * modules/unicase/u8-is-casefolded: New file.
48309
48310         Tests for module 'unicase/u32-is-titlecase'.
48311         * modules/unicase/u32-is-titlecase-tests: New file.
48312         * tests/unicase/test-u32-is-titlecase.c: New file.
48313
48314         Tests for module 'unicase/u16-is-titlecase'.
48315         * modules/unicase/u16-is-titlecase-tests: New file.
48316         * tests/unicase/test-u16-is-titlecase.c: New file.
48317
48318         Tests for module 'unicase/u8-is-titlecase'.
48319         * modules/unicase/u8-is-titlecase-tests: New file.
48320         * tests/unicase/test-u8-is-titlecase.c: New file.
48321         * tests/unicase/test-is-titlecase.h: New file.
48322
48323         New module 'unicase/u32-is-titlecase'.
48324         * lib/unicase/u32-is-titlecase.c: New file.
48325         * modules/unicase/u32-is-titlecase: New file.
48326
48327         New module 'unicase/u16-is-titlecase'.
48328         * lib/unicase/u16-is-titlecase.c: New file.
48329         * modules/unicase/u16-is-titlecase: New file.
48330
48331         New module 'unicase/u8-is-titlecase'.
48332         * lib/unicase/u8-is-titlecase.c: New file.
48333         * modules/unicase/u8-is-titlecase: New file.
48334
48335         Tests for module 'unicase/u32-is-lowercase'.
48336         * modules/unicase/u32-is-lowercase-tests: New file.
48337         * tests/unicase/test-u32-is-lowercase.c: New file.
48338
48339         Tests for module 'unicase/u16-is-lowercase'.
48340         * modules/unicase/u16-is-lowercase-tests: New file.
48341         * tests/unicase/test-u16-is-lowercase.c: New file.
48342
48343         Tests for module 'unicase/u8-is-lowercase'.
48344         * modules/unicase/u8-is-lowercase-tests: New file.
48345         * tests/unicase/test-u8-is-lowercase.c: New file.
48346         * tests/unicase/test-is-lowercase.h: New file.
48347
48348         New module 'unicase/u32-is-lowercase'.
48349         * lib/unicase/u32-is-lowercase.c: New file.
48350         * modules/unicase/u32-is-lowercase: New file.
48351
48352         New module 'unicase/u16-is-lowercase'.
48353         * lib/unicase/u16-is-lowercase.c: New file.
48354         * modules/unicase/u16-is-lowercase: New file.
48355
48356         New module 'unicase/u8-is-lowercase'.
48357         * lib/unicase/u8-is-lowercase.c: New file.
48358         * modules/unicase/u8-is-lowercase: New file.
48359
48360         Tests for module 'unicase/u32-is-uppercase'.
48361         * modules/unicase/u32-is-uppercase-tests: New file.
48362         * tests/unicase/test-u32-is-uppercase.c: New file.
48363
48364         Tests for module 'unicase/u16-is-uppercase'.
48365         * modules/unicase/u16-is-uppercase-tests: New file.
48366         * tests/unicase/test-u16-is-uppercase.c: New file.
48367
48368         Tests for module 'unicase/u8-is-uppercase'.
48369         * modules/unicase/u8-is-uppercase-tests: New file.
48370         * tests/unicase/test-u8-is-uppercase.c: New file.
48371         * tests/unicase/test-is-uppercase.h: New file.
48372
48373         New module 'unicase/u32-is-uppercase'.
48374         * lib/unicase/u32-is-uppercase.c: New file.
48375         * modules/unicase/u32-is-uppercase: New file.
48376
48377         New module 'unicase/u16-is-uppercase'.
48378         * lib/unicase/u16-is-uppercase.c: New file.
48379         * modules/unicase/u16-is-uppercase: New file.
48380
48381         New module 'unicase/u8-is-uppercase'.
48382         * lib/unicase/u8-is-uppercase.c: New file.
48383         * modules/unicase/u8-is-uppercase: New file.
48384
48385         New module 'unicase/u32-is-invariant'.
48386         * lib/unicase/u32-is-invariant.c: New file.
48387         * modules/unicase/u32-is-invariant: New file.
48388
48389         New module 'unicase/u16-is-invariant'.
48390         * lib/unicase/u16-is-invariant.c: New file.
48391         * modules/unicase/u16-is-invariant: New file.
48392
48393         New module 'unicase/u8-is-invariant'.
48394         * lib/unicase/u8-is-invariant.c: New file.
48395         * lib/unicase/invariant.h: New file.
48396         * lib/unicase/u-is-invariant.h: New file.
48397         * modules/unicase/u8-is-invariant: New file.
48398
48399         Tests for module 'unicase/u32-casecoll'.
48400         * modules/unicase/u32-casecoll-tests: New file.
48401         * tests/unicase/test-u32-casecoll.c: New file.
48402
48403         Tests for module 'unicase/u16-casecoll'.
48404         * modules/unicase/u16-casecoll-tests: New file.
48405         * tests/unicase/test-u16-casecoll.c: New file.
48406
48407         Tests for module 'unicase/u8-casecoll'.
48408         * modules/unicase/u8-casecoll-tests: New file.
48409         * tests/unicase/test-u8-casecoll.c: New file.
48410
48411         New module 'unicase/u32-casecoll'.
48412         * lib/unicase/u32-casecoll.c: New file.
48413         * modules/unicase/u32-casecoll: New file.
48414
48415         New module 'unicase/u16-casecoll'.
48416         * lib/unicase/u16-casecoll.c: New file.
48417         * modules/unicase/u16-casecoll: New file.
48418
48419         New module 'unicase/u8-casecoll'.
48420         * lib/unicase/u8-casecoll.c: New file.
48421         * lib/unicase/u-casecoll.h: New file.
48422         * modules/unicase/u8-casecoll: New file.
48423
48424         New module 'unicase/u32-casexfrm'.
48425         * lib/unicase/u32-casexfrm.c: New file.
48426         * modules/unicase/u32-casexfrm: New file.
48427
48428         New module 'unicase/u16-casexfrm'.
48429         * lib/unicase/u16-casexfrm.c: New file.
48430         * modules/unicase/u16-casexfrm: New file.
48431
48432         New module 'unicase/u8-casexfrm'.
48433         * lib/unicase/u8-casexfrm.c: New file.
48434         * lib/unicase/u-casexfrm.h: New file.
48435         * modules/unicase/u8-casexfrm: New file.
48436
48437         Tests for module 'unicase/u32-casecmp'.
48438         * modules/unicase/u32-casecmp-tests: New file.
48439         * tests/unicase/test-u32-casecmp.c: New file.
48440
48441         Tests for module 'unicase/u16-casecmp'.
48442         * modules/unicase/u16-casecmp-tests: New file.
48443         * tests/unicase/test-u16-casecmp.c: New file.
48444
48445         Tests for module 'unicase/u8-casecmp'.
48446         * modules/unicase/u8-casecmp-tests: New file.
48447         * tests/unicase/test-u8-casecmp.c: New file.
48448         * tests/unicase/test-casecmp.h: New file.
48449
48450         New module 'unicase/u32-casecmp'.
48451         * lib/unicase/u32-casecmp.c: New file.
48452         * modules/unicase/u32-casecmp: New file.
48453
48454         New module 'unicase/u16-casecmp'.
48455         * lib/unicase/u16-casecmp.c: New file.
48456         * modules/unicase/u16-casecmp: New file.
48457
48458         New module 'unicase/u8-casecmp'.
48459         * lib/unicase/u8-casecmp.c: New file.
48460         * lib/unicase/u-casecmp.h: New file.
48461         * modules/unicase/u8-casecmp: New file.
48462
48463         Tests for module 'unicase/u32-casefold'.
48464         * modules/unicase/u32-casefold-tests: New file.
48465         * tests/unicase/test-u32-casefold.c: New file.
48466
48467         Tests for module 'unicase/u16-casefold'.
48468         * modules/unicase/u16-casefold-tests: New file.
48469         * tests/unicase/test-u16-casefold.c: New file.
48470
48471         Tests for module 'unicase/u8-casefold'.
48472         * modules/unicase/u8-casefold-tests: New file.
48473         * tests/unicase/test-u8-casefold.c: New file.
48474
48475         New module 'unicase/u32-casefold'.
48476         * lib/unicase/u32-casefold.c: New file.
48477         * modules/unicase/u32-casefold: New file.
48478
48479         New module 'unicase/u16-casefold'.
48480         * lib/unicase/u16-casefold.c: New file.
48481         * modules/unicase/u16-casefold: New file.
48482
48483         New module 'unicase/u8-casefold'.
48484         * lib/unicase/u8-casefold.c: New file.
48485         * lib/unicase/u-casefold.h: New file.
48486         * modules/unicase/u8-casefold: New file.
48487
48488         New module 'unicase/tocasefold'.
48489         * lib/unicase/casefold.h: New file.
48490         * lib/unicase/tocasefold.c: New file.
48491         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48492         * modules/unicase/tocasefold: New file.
48493
48494         Tests for module 'unicase/u32-totitle'.
48495         * modules/unicase/u32-totitle-tests: New file.
48496         * tests/unicase/test-u32-totitle.c: New file.
48497
48498         Tests for module 'unicase/u16-totitle'.
48499         * modules/unicase/u16-totitle-tests: New file.
48500         * tests/unicase/test-u16-totitle.c: New file.
48501
48502         Tests for module 'unicase/u8-totitle'.
48503         * modules/unicase/u8-totitle-tests: New file.
48504         * tests/unicase/test-u8-totitle.c: New file.
48505
48506         New module 'unicase/u32-totitle'.
48507         * lib/unicase/u32-totitle.c: New file.
48508         * modules/unicase/u32-totitle: New file.
48509
48510         New module 'unicase/u16-totitle'.
48511         * lib/unicase/u16-totitle.c: New file.
48512         * modules/unicase/u16-totitle: New file.
48513
48514         New module 'unicase/u8-totitle'.
48515         * lib/unicase/u8-totitle.c: New file.
48516         * lib/unicase/u-totitle.h: New file.
48517         * modules/unicase/u8-totitle: New file.
48518
48519         Tests for module 'unicase/u32-tolower'.
48520         * modules/unicase/u32-tolower-tests: New file.
48521         * tests/unicase/test-u32-tolower.c: New file.
48522
48523         Tests for module 'unicase/u16-tolower'.
48524         * modules/unicase/u16-tolower-tests: New file.
48525         * tests/unicase/test-u16-tolower.c: New file.
48526
48527         Tests for module 'unicase/u8-tolower'.
48528         * modules/unicase/u8-tolower-tests: New file.
48529         * tests/unicase/test-u8-tolower.c: New file.
48530
48531         New module 'unicase/u32-tolower'.
48532         * lib/unicase/u32-tolower.c: New file.
48533         * modules/unicase/u32-tolower: New file.
48534
48535         New module 'unicase/u16-tolower'.
48536         * lib/unicase/u16-tolower.c: New file.
48537         * modules/unicase/u16-tolower: New file.
48538
48539         New module 'unicase/u8-tolower'.
48540         * lib/unicase/u8-tolower.c: New file.
48541         * modules/unicase/u8-tolower: New file.
48542
48543         Tests for module 'unicase/u32-toupper'.
48544         * modules/unicase/u32-toupper-tests: New file.
48545         * tests/unicase/test-u32-toupper.c: New file.
48546
48547         Tests for module 'unicase/u16-toupper'.
48548         * modules/unicase/u16-toupper-tests: New file.
48549         * tests/unicase/test-u16-toupper.c: New file.
48550
48551         Tests for module 'unicase/u8-toupper'.
48552         * modules/unicase/u8-toupper-tests: New file.
48553         * tests/unicase/test-u8-toupper.c: New file.
48554
48555         New module 'unicase/u32-toupper'.
48556         * lib/unicase/u32-toupper.c: New file.
48557         * modules/unicase/u32-toupper: New file.
48558
48559         New module 'unicase/u16-toupper'.
48560         * lib/unicase/u16-toupper.c: New file.
48561         * modules/unicase/u16-toupper: New file.
48562
48563         New module 'unicase/u8-toupper'.
48564         * lib/unicase/u8-toupper.c: New file.
48565         * modules/unicase/u8-toupper: New file.
48566
48567         New module 'unicase/u32-casemap'.
48568         * lib/unicase/u32-casemap.c: New file.
48569         * modules/unicase/u32-casemap: New file.
48570
48571         New module 'unicase/u16-casemap'.
48572         * lib/unicase/u16-casemap.c: New file.
48573         * modules/unicase/u16-casemap: New file.
48574
48575         New module 'unicase/u8-casemap'.
48576         * lib/unicase/unicasemap.h: New file.
48577         * lib/unicase/u8-casemap.c: New file.
48578         * lib/unicase/u-casemap.h: New file.
48579         * modules/unicase/u8-casemap: New file.
48580
48581         New module 'unicase/special-casing'.
48582         * lib/unicase/special-casing.h: New file.
48583         * lib/unicase/special-casing.c: New file.
48584         * lib/unicase/special-casing-table.gperf: New file, generated by
48585         gen-uni-tables.c.
48586         * modules/unicase/special-casing: New file.
48587
48588         Tests for module 'unicase/locale-language'.
48589         * modules/unicase/locale-language-tests: New file.
48590         * tests/unicase/test-locale-language.sh: New file.
48591         * tests/unicase/test-locale-language.c: New file.
48592
48593         New module 'unicase/locale-language'.
48594         * lib/unicase/locale-language.c: New file.
48595         * lib/unicase/locale-languages.gperf: New file.
48596         * modules/unicase/locale-language: New file.
48597
48598         Generate more tables for case conversion and case folding.
48599         * lib/gen-uni-tables.c (SCC_*): New enum items.
48600         (struct special_casing_rule): New type.
48601         (casing_rules, num_casing_rules, allocated_casing_rules): New
48602         variables.
48603         (add_casing_rule, fill_casing_rules): New functions.
48604         (struct casefold_rule): New type.
48605         (casefolding_rules, num_casefolding_rules,
48606         allocated_casefolding_rules): New variables.
48607         (fill_casefolding_rules): New function.
48608         (unicode_casefold): New variable.
48609         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
48610         sort_casing_rules, output_casing_rules): New functions.
48611         (main): Accept to more arguments: SpecialCasing.txt and
48612         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
48613         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
48614         Output mapping for casefolding.
48615
48616         * lib/unicase.h: Include stdbool.h, uninorm.h.
48617         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
48618         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
48619         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
48620         arguments.
48621         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
48622         resultp arguments.
48623         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
48624         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
48625         resultp arguments.
48626         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
48627         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
48628         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
48629         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
48630         declarations.
48631         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
48632
48633 2009-03-08  Bruno Haible  <bruno@clisp.org>
48634
48635         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48636         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
48637         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
48638         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48639
48640 2009-03-07  Bruno Haible  <bruno@clisp.org>
48641
48642         Adjust u*_normcmp, u*_normcoll API.
48643         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48644         u16_normcoll, u32_normcoll): Change failure conventions.
48645         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
48646         errno and return -1.
48647         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48648
48649 2009-03-07  Bruno Haible  <bruno@clisp.org>
48650
48651         Tests for module 'uninorm/u32-normcoll'.
48652         * modules/uninorm/u32-normcoll-tests: New file.
48653         * tests/uninorm/test-u32-normcoll.c: New file.
48654
48655         Tests for module 'uninorm/u16-normcoll'.
48656         * modules/uninorm/u16-normcoll-tests: New file.
48657         * tests/uninorm/test-u16-normcoll.c: New file.
48658
48659         Tests for module 'uninorm/u8-normcoll'.
48660         * modules/uninorm/u8-normcoll-tests: New file.
48661         * tests/uninorm/test-u8-normcoll.c: New file.
48662
48663 2009-03-07  Bruno Haible  <bruno@clisp.org>
48664
48665         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
48666         tests/uninorm/test-u32-normcmp.c.
48667         * tests/uninorm/test-u32-normcmp.c: Include it.
48668         (test_nonascii): New function, extracted from main. Add some more
48669         tests.
48670         (main): Invoke test_ascii and test_nonascii.
48671         * modules/uninorm/u32-normcmp-tests (Files): Add
48672         tests/uninorm/test-u32-normcmp.h.
48673         (Depends-on): Remove uninorm/u32-normcmp.
48674
48675         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
48676         tests/uninorm/test-u16-normcmp.c.
48677         * tests/uninorm/test-u16-normcmp.c: Include it.
48678         (test_nonascii): New function, extracted from main. Add some more
48679         tests.
48680         (main): Invoke test_ascii and test_nonascii.
48681         * modules/uninorm/u16-normcmp-tests (Files): Add
48682         tests/uninorm/test-u16-normcmp.h.
48683         (Depends-on): Remove uninorm/u16-normcmp.
48684
48685         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
48686         tests/uninorm/test-u8-normcmp.c.
48687         * tests/uninorm/test-u8-normcmp.c: Include it.
48688         (test_nonascii): New function, extracted from main. Add some more
48689         tests.
48690         (main): Invoke test_ascii and test_nonascii.
48691         * modules/uninorm/u8-normcmp-tests (Files): Add
48692         tests/uninorm/test-u8-normcmp.h.
48693         (Depends-on): Remove uninorm/u8-normcmp.
48694
48695 2009-03-07  Bruno Haible  <bruno@clisp.org>
48696
48697         New module 'uninorm/u32-normcoll'.
48698         * lib/uninorm/u32-normcoll.c: New file.
48699         * modules/uninorm/u32-normcoll: New file.
48700
48701         New module 'uninorm/u16-normcoll'.
48702         * lib/uninorm/u16-normcoll.c: New file.
48703         * modules/uninorm/u16-normcoll: New file.
48704
48705         New module 'uninorm/u8-normcoll'.
48706         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
48707         declarations.
48708         * lib/uninorm/u8-normcoll.c: New file.
48709         * lib/uninorm/u-normcoll.h: New file.
48710         * modules/uninorm/u8-normcoll: New file.
48711
48712         New module 'uninorm/u32-normxfrm'.
48713         * lib/uninorm/u32-normxfrm.c: New file.
48714         * modules/uninorm/u32-normxfrm: New file.
48715
48716         New module 'uninorm/u16-normxfrm'.
48717         * lib/uninorm/u16-normxfrm.c: New file.
48718         * modules/uninorm/u16-normxfrm: New file.
48719
48720         New module 'uninorm/u8-normxfrm'.
48721         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
48722         declarations.
48723         * lib/uninorm/u8-normxfrm.c: New file.
48724         * lib/uninorm/u-normxfrm.h: New file.
48725         * modules/uninorm/u8-normxfrm: New file.
48726
48727 2009-03-07  Bruno Haible  <bruno@clisp.org>
48728
48729         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
48730         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
48731         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
48732
48733 2009-03-07  Bruno Haible  <bruno@clisp.org>
48734
48735         New module 'memxfrm'.
48736         * lib/memxfrm.h: New file.
48737         * lib/memxfrm.c: New file.
48738         * modules/memxfrm: New file.
48739
48740 2009-03-07  Bruno Haible  <bruno@clisp.org>
48741
48742         New module 'memcmp2'.
48743         * lib/memcmp2.h: New file.
48744         * lib/memcmp2.c: New file.
48745         * modules/memcmp2: New file.
48746
48747 2009-03-07  Bruno Haible  <bruno@clisp.org>
48748
48749         Tests for module 'uninorm/decomposing-form'.
48750         * modules/uninorm/decomposing-form-tests: New file.
48751         * tests/uninorm/test-decomposing-form.c: New file.
48752
48753         New module 'uninorm/decomposing-form'.
48754         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
48755         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
48756         Add 'decomposing_variant' field.
48757         * lib/uninorm/decomposing-form.c: New file.
48758         * lib/uninorm/nfc.c (uninorm_nfc): Update.
48759         * lib/uninorm/nfd.c (uninorm_nfd): Update.
48760         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
48761         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
48762         * modules/uninorm/decomposing-form: New file.
48763         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
48764         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
48765
48766 2009-03-07  Bruno Haible  <bruno@clisp.org>
48767
48768         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
48769         strings.
48770
48771 2009-03-06  Bruno Haible  <bruno@clisp.org>
48772
48773         Tests for module 'uninorm/u32-normcmp'.
48774         * tests/uninorm/test-u32-normcmp.c: New file.
48775         * modules/uninorm/u32-normcmp-tests: New file.
48776
48777         Tests for module 'uninorm/u16-normcmp'.
48778         * tests/uninorm/test-u16-normcmp.c: New file.
48779         * modules/uninorm/u16-normcmp-tests: New file.
48780
48781         Tests for module 'uninorm/u8-normcmp'.
48782         * tests/uninorm/test-u8-normcmp.c: New file.
48783         * modules/uninorm/u8-normcmp-tests: New file.
48784
48785         New module 'uninorm/u32-normcmp'.
48786         * lib/uninorm/u32-normcmp.c: New file.
48787         * modules/uninorm/u32-normcmp: New file.
48788
48789         New module 'uninorm/u16-normcmp'.
48790         * lib/uninorm/u16-normcmp.c: New file.
48791         * modules/uninorm/u16-normcmp: New file.
48792
48793         New module 'uninorm/u8-normcmp'.
48794         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
48795         declarations.
48796         * lib/uninorm/u8-normcmp.c: New file.
48797         * lib/uninorm/u-normcmp.h: New file.
48798         * modules/uninorm/u8-normcmp: New file.
48799
48800 2009-03-06  Bruno Haible  <bruno@clisp.org>
48801
48802         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
48803         Reported by Eric Blake.
48804
48805 2009-03-06  Eric Blake  <ebb9@byu.net>
48806             Bruno Haible  <bruno@clisp.org>
48807
48808         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
48809         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
48810         condition.
48811         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48812         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
48813         condition.
48814         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48815
48816 2009-03-06  Eric Blake  <ebb9@byu.net>
48817
48818         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
48819         to avoid compiler warnings.
48820         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
48821
48822 2009-03-05  Bruno Haible  <bruno@clisp.org>
48823
48824         * tests/test-ftell.c (main): Disable test beyond end of file on
48825         FreeMiNT.
48826         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48827
48828 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
48829
48830         * lib/filevercmp.c: Move hidden files up in ordering.
48831         * tests/test-filevercmp.c: Add tests for hidden files.
48832
48833 2009-03-04  Bruno Haible  <bruno@clisp.org>
48834
48835         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
48836         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
48837         AM_CFLAGS.
48838         Reported by Simon Josefsson.
48839
48840 2009-03-03  Bruno Haible  <bruno@clisp.org>
48841
48842         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
48843         Reported by Simon Josefsson.
48844
48845         * doc/ld-version-script.texi: Update node reference.
48846
48847 2009-03-03  Bruno Haible  <bruno@clisp.org>
48848
48849         * modules/visibility (License): Change to 'unlimited'.
48850         Suggested by Simon Josefsson.
48851
48852 2009-03-03  Jim Meyering  <meyering@redhat.com>
48853
48854         unlinkdir: cannot_unlink_dir may modify process state
48855         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
48856         it's neither thread-safe nor appropriate for use in a library.
48857
48858 2009-03-03  Eric Blake  <ebb9@byu.net>
48859
48860         test-closein: silence test under Darwin
48861         * tests/test-closein.sh: Ignore stderr from cat, since we don't
48862         care if it dies from EPIPE or EBADF.
48863
48864 2009-03-03  Bruno Haible  <bruno@clisp.org>
48865
48866         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
48867         earlier.
48868         * doc/visibility.texi: Fix @node and @section.
48869
48870 2009-03-03  Simon Josefsson  <simon@josefsson.org>
48871
48872         * doc/gnulib.texi: Link to sections for ld version script and
48873         visibility.
48874         * doc/visibility.texi: Add @node and @section.
48875         * modules/ld-version-script: New module.
48876         * m4/ld-version-script.m4: New file.
48877         * doc/ld-version-script.texi: New file.
48878
48879 2009-03-02  David Lutterkort  <lutter@redhat.com>
48880
48881         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
48882         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48883
48884 2009-03-02  Bruno Haible  <bruno@clisp.org>
48885
48886         * doc/visibility.texi: Mention libtool's -export-symbols option.
48887
48888 2009-03-02  Jim Meyering  <meyering@redhat.com>
48889
48890         announce-gen: new option: --no-print-checksums
48891         * build-aux/announce-gen (usage): Describe it.
48892         (print_checksums): Print a newline here, not in the [*] footnote.
48893         (main): Honor it.
48894
48895 2009-03-01  Bruno Haible  <bruno@clisp.org>
48896
48897         Use socklen_t in the native Windows replacements prototypes.
48898         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
48899         instead of 'int'.
48900         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48901         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48902         * modules/getsockopt (Depends-on): Add socklen.
48903         * modules/setsockopt (Depends-on): Add socklen.
48904
48905 2009-03-01  Bruno Haible  <bruno@clisp.org>
48906
48907         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
48908         least 4.2.
48909
48910 2009-03-01  Eric Blake  <ebb9@byu.net>
48911             Bruno Haible  <bruno@clisp.org>
48912
48913         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
48914         error messages.
48915         * lib/wait-process.c (wait_subprocess): Omit error message about
48916         deadly signal sent to the child of termsigp != NULL.
48917
48918 2009-03-01  Eric Blake  <ebb9@byu.net>
48919
48920         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
48921
48922 2009-03-01  Bruno Haible  <bruno@clisp.org>
48923
48924         Avoid a gcc warning.
48925         * tests/test-sched.c (b): Make global.
48926         Reported by Eric Blake.
48927
48928 2009-01-19  Martin Lambers  <marlam@marlam.de>
48929
48930         Provide POSIX semantics for socket timeout options on W32.
48931         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
48932         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
48933         * modules/setsockopt: Depend on sys_time module for struct timeval.
48934         * modules/getsockopt: Depend on sys_time module for struct timeval.
48935
48936 2009-03-01  Simon Josefsson  <simon@josefsson.org>
48937
48938         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
48939         __USE_GNU, for consistency with netdb.in.h.
48940         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48941
48942 2009-03-01  Bruno Haible  <bruno@clisp.org>
48943
48944         More support for FreeMiNT.
48945         * lib/fseeko.c (rpl_fseeko): Complete last commit.
48946         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48947
48948 2009-03-01  Bruno Haible  <bruno@clisp.org>
48949
48950         More support for FreeMiNT.
48951         * lib/fpurge.c (fpurge): Correct last commit.
48952         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48953
48954 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48955
48956         Fix unportable awk script in vc-list-files.
48957         * build-aux/vc-list-files: In the replacement awk script, use
48958         substr with a second argument of 1, not zero.
48959         Report by Simon Josefsson.
48960
48961 2009-02-28  Bruno Haible  <bruno@clisp.org>
48962
48963         More support for FreeMiNT.
48964         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
48965         to FreeMiNT today.
48966         * lib/fwriting.c (fwriting): Likewise.
48967         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
48968
48969 2009-02-28  Bruno Haible  <bruno@clisp.org>
48970
48971         * tests/test-freadseek.c (main): Disable test beyond end of file on
48972         FreeMiNT.
48973         * tests/test-ftello.c (main): Likewise.
48974         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48975
48976 2009-02-28  Bruno Haible  <bruno@clisp.org>
48977
48978         Add tentative support for FreeMiNT.
48979         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
48980         * lib/fpurge.c (fpurge): Likewise.
48981         * lib/freadable.c (freadable): Likewise.
48982         * lib/freading.c (freading): Likewise.
48983         * lib/freadptr.c (freadptr): Likewise.
48984         * lib/freadseek.c (freadptrinc): Likewise.
48985         * lib/fseeko.c (rpl_fseeko): Likewise.
48986         * lib/fseterr.c (fseterr): Likewise.
48987         * lib/fwritable.c (fwritable): Likewise.
48988         * lib/fwriting.c (fwriting): Likewise.
48989         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
48990         Hourihane.
48991         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48992
48993 2009-02-28  Bruno Haible  <bruno@clisp.org>
48994
48995         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
48996         SIGCHLD.
48997         Reported by Jim Meyering.
48998
48999 2009-02-28  Bruno Haible  <bruno@clisp.org>
49000
49001         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49002         Mention the results of these tests on various platforms.
49003         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49004         order.
49005         * doc/posix-functions/printf.texi: Likewise.
49006         * doc/posix-functions/snprintf.texi: Likewise.
49007         * doc/posix-functions/sprintf.texi: Likewise.
49008         * doc/posix-functions/vfprintf.texi: Likewise.
49009         * doc/posix-functions/vprintf.texi: Likewise.
49010         * doc/posix-functions/vsnprintf.texi: Likewise.
49011         * doc/posix-functions/vsprintf.texi: Likewise.
49012         * doc/glibc-functions/obstack_printf.texi: Likewise.
49013         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49014
49015 2009-02-28  Bruno Haible  <bruno@clisp.org>
49016
49017         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49018         Reported by Loïc Minier <lool@dooz.org>.
49019
49020 2009-02-27  Bruno Haible  <bruno@clisp.org>
49021
49022         * gnulib-tool (func_import): Make the sed expression used to create the
49023         sed script for updating the .gitignore file POSIX compliant.
49024         Reported by Eric Blake.
49025
49026 2009-02-27  Bruno Haible  <bruno@clisp.org>
49027
49028         * gnulib-tool (sed): Don't alias as "sed --posix".
49029         Reported by Eric Blake.
49030
49031 2009-02-27  Bruno Haible  <bruno@clisp.org>
49032
49033         Avoid test link errors.
49034         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49035         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49036         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49037         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49038         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49039
49040 2009-02-27  Bruno Haible  <bruno@clisp.org>
49041
49042         Avoid spurious "(cached)" in configure output.
49043         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49044         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49045         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49046         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49047         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49048         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49049         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49050         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49051         Reported by Eric Blake.
49052
49053 2009-02-27  Eric Blake  <ebb9@byu.net>
49054
49055         printf: fix regression in previous patch
49056         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49057
49058 2009-02-27  Bruno Haible  <bruno@clisp.org>
49059
49060         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49061         value.
49062         * lib/stdint.in.h: Likewise.
49063         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49064
49065 2009-02-27  Eric Blake  <ebb9@byu.net>
49066
49067         doc: mention more functions added in cygwin 1.7.0
49068         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49069         addition.
49070         * doc/posix-functions/open_wmemstream.texi: Likewise.
49071         * doc/posix-functions/wcsnlen.texi: Likewise.
49072         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49073         * doc/posix-functions/wcstod.texi: Likewise.
49074         * doc/posix-functions/wcstof.texi: Likewise.
49075         * doc/posix-functions/wcstoimax.texi: Likewise.
49076         * doc/posix-functions/wcstok.texi: Likewise.
49077         * doc/posix-functions/wcstoumax.texi: Likewise.
49078
49079         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49080         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49081         * doc/posix-functions/fprintf.texi: Update.
49082         * doc/posix-functions/printf.texi: Update.
49083         * doc/posix-functions/snprintf.texi: Update.
49084         * doc/posix-functions/sprintf.texi: Update.
49085         * doc/posix-functions/vfprintf.texi: Update.
49086         * doc/posix-functions/vprintf.texi: Update.
49087         * doc/posix-functions/vsnprintf.texi: Update.
49088         * doc/posix-functions/vsprintf.texi: Update.
49089         * doc/glibc-functions/obstack_printf.texi: Update.
49090         * doc/glibc-functions/obstack_vprintf.texi: Update.
49091
49092 2009-02-26  Eric Blake  <ebb9@byu.net>
49093
49094         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49095         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49096         compilation bug by using runtime conversion.
49097         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49098         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49099         * modules/ceill-tests (Files): Use nan.h.
49100         * modules/floorl-tests (Files): Likewise.
49101         * modules/frexpl-tests (Files): Likewise.
49102         * modules/isnanl-tests (Files): Likewise.
49103         * modules/ldexpl-tests (Files): Likewise.
49104         * modules/roundl-tests (Files): Likewise.
49105         * modules/truncl-tests (Files): Likewise.
49106         * tests/test-ceill.c (main): Use a working NaN.
49107         * tests/test-floorl.c (main): Likewise.
49108         * tests/test-frexpl.c (main): Likewise.
49109         * tests/test-isnan.c (test_long_double): Likewise.
49110         * tests/test-isnanl.h (main): Likewise.
49111         * tests/test-ldexpl.h (main): Likewise.
49112         * tests/test-roundl.h (main): Likewise.
49113         * tests/test-truncl.h (main): Likewise.
49114         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49115
49116 2009-02-26  Eric Blake  <ebb9@byu.net>
49117             Bruno Haible  <bruno@clisp.org>
49118
49119         Work around a *printf bug with %ls on Solaris.
49120         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49121         precision is specified, sprintf stops converting the wide string
49122         argument when the number of bytes that have been produced by this
49123         conversion equals or exceeds the precision.
49124         * doc/posix-functions/fprintf.texi: Update.
49125         * doc/posix-functions/printf.texi: Update.
49126         * doc/posix-functions/snprintf.texi: Update.
49127         * doc/posix-functions/sprintf.texi: Update.
49128         * doc/posix-functions/vfprintf.texi: Update.
49129         * doc/posix-functions/vprintf.texi: Update.
49130         * doc/posix-functions/vsnprintf.texi: Update.
49131         * doc/posix-functions/vsprintf.texi: Update.
49132         * doc/glibc-functions/obstack_printf.texi: Update.
49133         * doc/glibc-functions/obstack_vprintf.texi: Update.
49134
49135 2009-02-26  Eric Blake  <ebb9@byu.net>
49136
49137         stdlib: favor compiler check of random.h
49138         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49139         to avoid an ObjC random.h installed by Swarm.
49140
49141 2009-02-26  Bruno Haible  <bruno@clisp.org>
49142
49143         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49144         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49145         Reported by Gary V. Vaughan <gary@gnu.org>.
49146
49147 2009-02-26  Bruno Haible  <bruno@clisp.org>
49148
49149         Fix *printf behaviour regarding the %ls directive.
49150         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49151         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49152         NEED_PRINTF_DIRECTIVE_LS.
49153         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49154         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49155         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49156         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49157         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49158         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49159         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49160         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49161         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49162         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49163         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49164         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49165         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49166         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49167         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49168         * doc/posix-functions/fprintf.texi: Update.
49169         * doc/posix-functions/printf.texi: Update.
49170         * doc/posix-functions/snprintf.texi: Update.
49171         * doc/posix-functions/sprintf.texi: Update.
49172         * doc/posix-functions/vfprintf.texi: Update.
49173         * doc/posix-functions/vprintf.texi: Update.
49174         * doc/posix-functions/vsnprintf.texi: Update.
49175         * doc/posix-functions/vsprintf.texi: Update.
49176         * doc/glibc-functions/obstack_printf.texi: Update.
49177         * doc/glibc-functions/obstack_vprintf.texi: Update.
49178         Reported by Eric Blake.
49179
49180 2009-02-25  Bruno Haible  <bruno@clisp.org>
49181
49182         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49183         with known value.
49184         Reported by Gary V. Vaughan <gary@gnu.org>.
49185
49186 2009-02-25  Bruno Haible  <bruno@clisp.org>
49187
49188         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49189         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49190         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49191         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49192         Reported by Gary V. Vaughan <gary@gnu.org>.
49193
49194 2009-02-25  Bruno Haible  <bruno@clisp.org>
49195
49196         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49197         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49198         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49199         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49200         Reported by Gary V. Vaughan <gary@gnu.org>.
49201
49202 2009-02-25  Eric Blake  <ebb9@byu.net>
49203
49204         tests: skip fseek/ftell tests if ungetc is broken
49205         * m4/ungetc.m4: New file.
49206         * modules/fseek-tests: Split test, so ungetc dependency is
49207         separate from rest of test.
49208         * modules/fseeko-tests: Likewise.
49209         * modules/ftell-tests: Likewise.
49210         * modules/ftello-tests: Likewise.
49211         * tests/test-fseek.c (main): Isolate ungetc dependency.
49212         * tests/test-fseeko.c (main): Likewise.
49213         * tests/test-ftell.c (main): Likewise.
49214         * tests/test-ftello.c (main): Likewise.
49215         * tests/test-fseek2.sh: New file.
49216         * tests/test-fseeko2.sh: Likewise.
49217         * tests/test-ftell2.sh: Likewise.
49218         * tests/test-ftello2.sh: Likewise.
49219
49220 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49221
49222         test-getaddrinfo: fix usage of skip return code 77
49223         * tests/test-gettaddrinfo.c: Return skip code 77 only
49224         for first occurrence of skip (4x77 is not 77)
49225
49226 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49227
49228         strtod: avoid C99 decl-after-statement
49229         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49230
49231 2009-02-24  Eric Blake  <ebb9@byu.net>
49232
49233         strtod: detect HP-UX 11.31 bug
49234         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49235         Reported by Gary V. Vaughan.
49236
49237 2009-02-23  Bruno Haible  <bruno@clisp.org>
49238
49239         Fix invalid read past end of memory block.
49240         * lib/vasnprintf.c (DCHAR_SET): Define.
49241         (local_wcslen): Define only when needed.
49242         (local_strnlen, local_wcsnlen): New functions.
49243         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49244         directives that involve a conversion ourselves.
49245         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49246         wcsnlen, mbrtowc, wcrtomb.
49247         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49248         * tests/test-vasprintf-posix.c (test_function): Likewise.
49249         * tests/test-snprintf-posix.h (test_function): Likewise.
49250         * tests/test-sprintf-posix.h (test_function): Likewise.
49251         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49252
49253 2009-02-22  Bruno Haible  <bruno@clisp.org>
49254
49255         Implement new clarified decomposition of Hangul syllables.
49256         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49257         of type LTV, return only a pairwise decomposition.
49258         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49259         Likewise.
49260         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49261         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49262         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49263
49264 2009-02-22  Bruno Haible  <bruno@clisp.org>
49265
49266         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49267         zero-length results and shrink excess allocated memory.
49268         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49269         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49270         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49271         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49272         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49273         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49274         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49275         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49276         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49277         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49278         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49279         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49280
49281 2009-02-21  Bruno Haible  <bruno@clisp.org>
49282
49283         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49284         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49285         spaces after a period. Put a space between a macro name and its
49286         argument list. Trivial rewordings.
49287         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49288         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49289         (main): Return 0 explicitly.
49290
49291 2009-02-21  Bruno Haible  <bruno@clisp.org>
49292
49293         Tests for module 'uninorm/filter'.
49294         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49295         * modules/uninorm/filter-tests: New file.
49296
49297         New module 'uninorm/filter'.
49298         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49299         uninorm_filter_flush, uninorm_filter_free): New declarations.
49300         * lib/uninorm/uninorm-filter.c: New file.
49301         * modules/uninorm/filter: New file.
49302
49303 2009-02-21  Bruno Haible  <bruno@clisp.org>
49304
49305         Tests for module 'uninorm/nfkc'.
49306         * tests/uninorm/test-nfkc.c: New file.
49307         * tests/uninorm/test-u8-nfkc.c: New file.
49308         * tests/uninorm/test-u16-nfkc.c: New file.
49309         * tests/uninorm/test-u32-nfkc.c: New file.
49310         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49311         * tests/uninorm/test-u32-nfkc-big.c: New file.
49312         * modules/uninorm/nfkc-tests: New file.
49313
49314         New module 'uninorm/nfkc'.
49315         * lib/uninorm/nfkc.c: New file.
49316         * modules/uninorm/nfkc: New file.
49317
49318         Tests for module 'uninorm/nfkd'.
49319         * tests/uninorm/test-nfkd.c: New file.
49320         * tests/uninorm/test-u8-nfkd.c: New file.
49321         * tests/uninorm/test-u16-nfkd.c: New file.
49322         * tests/uninorm/test-u32-nfkd.c: New file.
49323         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49324         * tests/uninorm/test-u32-nfkd-big.c: New file.
49325         * modules/uninorm/nfkd-tests: New file.
49326
49327         New module 'uninorm/nfkd'.
49328         * lib/uninorm/nfkd.c: New file.
49329         * modules/uninorm/nfkd: New file.
49330
49331         Tests for module 'uninorm/nfc'.
49332         * tests/uninorm/test-nfc.c: New file.
49333         * tests/uninorm/test-u8-nfc.c: New file.
49334         * tests/uninorm/test-u16-nfc.c: New file.
49335         * tests/uninorm/test-u32-nfc.c: New file.
49336         * tests/uninorm/test-u32-nfc-big.sh: New file.
49337         * tests/uninorm/test-u32-nfc-big.c: New file.
49338         * modules/uninorm/nfc-tests: New file.
49339
49340         New module 'uninorm/nfc'.
49341         * lib/uninorm/nfc.c: New file.
49342         * modules/uninorm/nfc: New file.
49343
49344         Tests for module 'uninorm/nfd'.
49345         * tests/uninorm/test-nfd.c: New file.
49346         * tests/uninorm/test-u8-nfd.c: New file.
49347         * tests/uninorm/test-u16-nfd.c: New file.
49348         * tests/uninorm/test-u32-nfd.c: New file.
49349         * tests/uninorm/test-u32-nfd-big.sh: New file.
49350         * tests/uninorm/test-u32-nfd-big.c: New file.
49351         * tests/uninorm/test-u32-normalize-big.h: New file.
49352         * tests/uninorm/test-u32-normalize-big.c: New file.
49353         * tests/uninorm/NormalizationTest.txt: New file, created from
49354         Unicode 5.1.0 NormalizationTest.txt.
49355         * modules/uninorm/nfd-tests: New file.
49356
49357         New module 'uninorm/nfd'.
49358         * lib/uninorm/nfd.c: New file.
49359         * modules/uninorm/nfd: New file.
49360
49361         New module 'uninorm/u32-normalize'.
49362         * lib/uninorm/u32-normalize.c: New file.
49363         * modules/uninorm/u32-normalize: New file.
49364
49365         New module 'uninorm/u16-normalize'.
49366         * lib/uninorm/u16-normalize.c: New file.
49367         * modules/uninorm/u16-normalize: New file.
49368
49369         New module 'uninorm/u8-normalize'.
49370         * lib/uninorm/u8-normalize.c: New file.
49371         * lib/uninorm/normalize-internal.h: New file.
49372         * lib/uninorm/u-normalize-internal.h: New file.
49373         * modules/uninorm/u8-normalize: New file.
49374
49375         New module 'uninorm/decompose-internal'.
49376         * lib/uninorm/decompose-internal.c: New file.
49377         * modules/uninorm/decompose-internal: New file.
49378
49379         Tests for module 'uninorm/composition'.
49380         * tests/uninorm/test-composition.c: New file.
49381         * modules/uninorm/composition-tests: New file.
49382
49383         New module 'uninorm/composition'.
49384         * lib/uninorm/composition.c: New file.
49385         * lib/uninorm/composition-table.gperf: New file, generated by
49386         gen-uni-tables.
49387         * modules/uninorm/composition: New file.
49388
49389         Tests for module 'uninorm/compat-decomposition'.
49390         * tests/uninorm/test-compat-decomposition.c: New file.
49391         * modules/uninorm/compat-decomposition-tests: New file.
49392
49393         New module 'uninorm/compat-decomposition'.
49394         * lib/uninorm/decompose-internal.h: New file.
49395         * lib/uninorm/compat-decomposition.c: New file.
49396         * modules/uninorm/compat-decomposition: New file.
49397
49398         Tests for module 'uninorm/canonical-decomposition'.
49399         * tests/uninorm/test-canonical-decomposition.c: New file.
49400         * modules/uninorm/canonical-decomposition-tests: New file.
49401
49402         New module 'uninorm/canonical-decomposition'.
49403         * lib/uninorm/canonical-decomposition.c: New file.
49404         * modules/uninorm/canonical-decomposition: New file.
49405
49406         Tests for module 'uninorm/decomposition'.
49407         * tests/uninorm/test-decomposition.c: New file.
49408         * modules/uninorm/decomposition-tests: New file.
49409
49410         New module 'uninorm/decomposition'.
49411         * lib/uninorm/decomposition.c: New file.
49412         * modules/uninorm/decomposition: New file.
49413
49414         New module 'uninorm/decomposition-table'.
49415         * lib/uninorm/decomposition-table.h: New file.
49416         * lib/uninorm/decomposition-table.c: New file.
49417         * lib/uninorm/decomposition-table1.h: New file, generated by
49418         gen-uni-tables.
49419         * lib/uninorm/decomposition-table2.h: New file, generated by
49420         gen-uni-tables.
49421         * modules/uninorm/decomposition-table: New file.
49422
49423         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49424         (UC_DECOMP_*): New enumeration items.
49425         (get_decomposition): New function.
49426         (struct decomp_table): New type.
49427         (output_decomposition, output_decomposition_tables): New functions.
49428         (unicode_composition_exclusions): New variable.
49429         (fill_composition_exclusions, debug_output_composition_tables): New
49430         functions.
49431         (main): Accept one more argument. Invoke fill_composition_exclusions.
49432         Output decomposition and composition tables.
49433
49434         New module 'uninorm/base'.
49435         * lib/uninorm.h: New file.
49436         * lib/unictype.h: Update comment.
49437         * modules/uninorm/base: New file.
49438
49439 2009-02-21  David Lutterkort  <lutter@redhat.com>
49440
49441         Tests for module 'safe-alloc'.
49442         * tests/test-safe-alloc.c: New file.
49443         * modules/safe-alloc-tests: New file.
49444
49445         New module 'safe-alloc'.
49446         * lib/safe-alloc.h: New file.
49447         * lib/safe-alloc.c: New file.
49448         * m4/safe-alloc.m4: New file.
49449         * modules/safe-alloc: New file.
49450         * doc/safe-alloc.texi: New file.
49451         * doc/gnulib.texi: Include it.
49452         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49453         safe-alloc.
49454
49455 2009-02-18  Bruno Haible  <bruno@clisp.org>
49456
49457         Fix link error on non-glibc systems.
49458         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49459         variable.
49460         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49461
49462 2009-02-18  Jim Meyering  <meyering@redhat.com>
49463
49464         fts: avoid used-uninitialized error due to recent change
49465         * lib/fts.c (fts_read): Guard uses of the new member,
49466         parent->fts_n_dirs_remaining, since it's not relevant for
49467         the parent of a directory specified on the command-line.
49468
49469 2009-02-17  James Youngman  <jay@gnu.org>
49470             Bruno Haible  <bruno@clisp.org>
49471
49472         * m4/include_next.m4: Reformulate comment.
49473
49474 2009-02-16  Jim Meyering  <meyering@redhat.com>
49475
49476         fts: add #if guards so that the fts_lgpl module still builds
49477         * lib/fts.c: Guard just-added hash-table-using parts with
49478         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49479         Reported by Simon Josefsson.
49480
49481 2009-02-15  Bruno Haible  <bruno@clisp.org>
49482
49483         * modules/array-mergesort-tests: New file.
49484         * tests/test-array-mergesort.c: New file.
49485
49486         New module 'array-mergesort'.
49487         * modules/array-mergesort: New file.
49488         * lib/array-mergesort.h: New file.
49489
49490 2009-02-15  Bruno Haible  <bruno@clisp.org>
49491
49492         Fix 2009-02-07 commit.
49493         * lib/gen-uni-tables.c (output_predicate, output_category,
49494         output_combclass, output_bidi_category, output_decimal_digit,
49495         output_digit, output_numeric, output_mirror, output_scripts,
49496         output_ident_category, output_simple_mapping): Fix format directives.
49497         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49498
49499 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49500
49501         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49502         fixes are available from IBM.
49503
49504 2009-02-13  Jim Meyering  <meyering@redhat.com>
49505
49506         fts: arrange not to stat non-directories in more cases
49507         This makes GNU find (when it doesn't need to stat each file)
49508         *much* more efficient at traversing reiserfs file systems.
49509         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49510         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49511         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49512         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49513         (leaf_optimization_applies): New function.
49514         (LCO_hash, LCO_compare): New helper functions.
49515         (link_count_optimize_ok): New function.
49516         (fts_stat): Initialize new member (if dir).
49517         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49518         we've just stat'ed a directory.  Skip the stat call when possible.
49519         ---
49520         Note this AFS-related exchange:
49521         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49522         and note find's pioctl call in find/fstype.c.
49523         But that is necessary only if you want to enable the
49524         optimization for AFS, and for now, I don't.
49525
49526         fts: move a function definition "up" (no semantic change)
49527         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49528         "up" to precede upcoming use of a related function.
49529
49530 2009-02-11  Jim Meyering  <meyering@redhat.com>
49531
49532         fts: correct internal computation of nlinks (optimization-related)
49533         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49534         whether the current entry is a directory, so don't test it.
49535
49536 2009-02-10  Bruno Haible  <bruno@clisp.org>
49537
49538         Tests for module 'uniwbrk/ulc-wordbreaks'.
49539         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49540         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49541         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49542
49543         Tests for module 'uniwbrk/u32-wordbreaks'.
49544         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49545         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49546
49547         Tests for module 'uniwbrk/u16-wordbreaks'.
49548         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49549         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49550
49551         Tests for module 'uniwbrk/u8-wordbreaks'.
49552         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49553         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49554
49555 2009-02-10  Bruno Haible  <bruno@clisp.org>
49556
49557         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49558         property.
49559         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49560         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49561         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49562
49563 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49564
49565         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49566         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49567
49568 2009-02-10  Bruno Haible  <bruno@clisp.org>
49569
49570         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49571         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49572         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49573         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49574         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49575         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49576
49577 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49578
49579         * lib/sockets.h (gl_fd_to_handle): New function.
49580
49581         * tests/test-sockets.c: Call gl_fd_to_handle.
49582
49583 2009-02-09  Bruno Haible  <bruno@clisp.org>
49584
49585         * doc/havelib.texi: Document the conventions on bi-arch systems.
49586
49587 2009-02-08  Bruno Haible  <bruno@clisp.org>
49588
49589         Document the AC_LIB_LINKFLAGS macro.
49590         * doc/havelib.texi: New file, mostly written on 2005-05-24.
49591         * doc/gnulib.texi: Include it.
49592
49593 2009-02-08  Bruno Haible  <bruno@clisp.org>
49594
49595         Fix wrong order of sections, compared to TOC.
49596         * doc/gnulib.texi: Include relocatable-maint.texi after the
49597         "Regular expressions" node, not before.
49598
49599 2009-02-08  Bruno Haible  <bruno@clisp.org>
49600
49601         Tests for module 'unicase/totitle'.
49602         * modules/unicase/totitle-tests: New file.
49603
49604         Tests for module 'unicase/tolower'.
49605         * modules/unicase/tolower-tests: New file.
49606
49607         Tests for module 'unicase/toupper'.
49608         * modules/unicase/toupper-tests: New file.
49609         * tests/unicase/test-mapping-part1.h: New file.
49610         * tests/unicase/test-mapping-part2.h: New file.
49611
49612         New module 'unicase/totitle'.
49613         * modules/unicase/totitle: New file.
49614         * lib/unicase/totitle.c: New file.
49615
49616         New module 'unicase/tolower'.
49617         * modules/unicase/tolower: New file.
49618         * lib/unicase/tolower.c: New file.
49619
49620         New module 'unicase/toupper'.
49621         * modules/unicase/toupper: New file.
49622         * lib/unicase/toupper.c: New file.
49623         * lib/unicase/simple-mapping.h: New file.
49624
49625         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
49626         (mapping_table): New structure.
49627         (output_simple_mapping): New function.
49628         (main): Invoke output_simple_mapping_test and output_simple_mapping.
49629         * modules/gen-uni-tables (Description): Update.
49630         * lib/unicase/toupper.h: New file, automatically generated by
49631         gen-uni-tables.
49632         * lib/unicase/tolower.h: New file, automatically generated by
49633         gen-uni-tables.
49634         * lib/unicase/totitle.h: New file, automatically generated by
49635         gen-uni-tables.
49636         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
49637         gen-uni-tables.
49638         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
49639         gen-uni-tables.
49640         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
49641         gen-uni-tables.
49642
49643         New module 'unicase/base'.
49644         * modules/unicase/base: New file.
49645         * lib/unicase.h: New file.
49646
49647 2009-02-08  Bruno Haible  <bruno@clisp.org>
49648
49649         New module 'uniwbrk/ulc-wordbreaks'.
49650         * modules/uniwbrk/ulc-wordbreaks: New file.
49651         * lib/uniwbrk/ulc-wordbreaks.c: New file.
49652
49653         New module 'uniwbrk/u32-wordbreaks'.
49654         * modules/uniwbrk/u32-wordbreaks: New file.
49655         * lib/uniwbrk/u32-wordbreaks.c: New file.
49656
49657         New module 'uniwbrk/u16-wordbreaks'.
49658         * modules/uniwbrk/u16-wordbreaks: New file.
49659         * lib/uniwbrk/u16-wordbreaks.c: New file.
49660
49661         New module 'uniwbrk/u8-wordbreaks'.
49662         * modules/uniwbrk/u8-wordbreaks: New file.
49663         * lib/uniwbrk/u8-wordbreaks.c: New file.
49664         * lib/uniwbrk/u-wordbreaks.h: New file.
49665
49666         New module 'uniwbrk/table'.
49667         * modules/uniwbrk/table: New file.
49668         * lib/uniwbrk/wbrktable.h: New file.
49669         * lib/uniwbrk/wbrktable.c: New file.
49670
49671         New module 'uniwbrk/wordbreak-property'.
49672         * modules/uniwbrk/wordbreak-property: New file.
49673         * lib/uniwbrk/wordbreak-property.c: New file.
49674
49675         * lib/gen-uni-tables.c (WBP_*): New enum items.
49676         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
49677         (unicode_org_wbp): New variable.
49678         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
49679         New functions.
49680         (wbp_table): New structure.
49681         (output_wbp, output_wbrk_tables): New functions.
49682         (main): Accept additional argument. Invoke fill_org_wbp,
49683         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
49684         output_wbrk_tables.
49685         * modules/gen-uni-tables (Description): Update.
49686         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
49687         gen-uni-tables.
49688
49689         New module 'uniwbrk/base'.
49690         * modules/uniwbrk/base: New file.
49691         * lib/uniwbrk.h: New file.
49692
49693 2009-02-08  Bruno Haible  <bruno@clisp.org>
49694
49695         Update to Unicode 5.1.0.
49696         * lib/gen-uni-tables.c (is_property_alphabetic): Include
49697         U+2185..U+2188.
49698         (is_property_default_ignorable_code_point): Don't include characters
49699         of category Cc or Cs and not-a-characters.
49700         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
49701         U+0D79, U+109E, U+109F, U+A60C.
49702         * lib/unictype/bidi_of.h: Regenerated.
49703         * lib/unictype/blocks.h: Regenerated.
49704         * lib/unictype/categ_C.h: Regenerated.
49705         * lib/unictype/categ_Cf.h: Regenerated.
49706         * lib/unictype/categ_Cn.h: Regenerated.
49707         * lib/unictype/categ_L.h: Regenerated.
49708         * lib/unictype/categ_Ll.h: Regenerated.
49709         * lib/unictype/categ_Lm.h: Regenerated.
49710         * lib/unictype/categ_Lo.h: Regenerated.
49711         * lib/unictype/categ_Lu.h: Regenerated.
49712         * lib/unictype/categ_M.h: Regenerated.
49713         * lib/unictype/categ_Mc.h: Regenerated.
49714         * lib/unictype/categ_Me.h: Regenerated.
49715         * lib/unictype/categ_Mn.h: Regenerated.
49716         * lib/unictype/categ_N.h: Regenerated.
49717         * lib/unictype/categ_Nd.h: Regenerated.
49718         * lib/unictype/categ_Nl.h: Regenerated.
49719         * lib/unictype/categ_No.h: Regenerated.
49720         * lib/unictype/categ_P.h: Regenerated.
49721         * lib/unictype/categ_Pd.h: Regenerated.
49722         * lib/unictype/categ_Pe.h: Regenerated.
49723         * lib/unictype/categ_Pf.h: Regenerated.
49724         * lib/unictype/categ_Pi.h: Regenerated.
49725         * lib/unictype/categ_Po.h: Regenerated.
49726         * lib/unictype/categ_Ps.h: Regenerated.
49727         * lib/unictype/categ_S.h: Regenerated.
49728         * lib/unictype/categ_Sk.h: Regenerated.
49729         * lib/unictype/categ_Sm.h: Regenerated.
49730         * lib/unictype/categ_So.h: Regenerated.
49731         * lib/unictype/categ_of.h: Regenerated.
49732         * lib/unictype/combining.h: Regenerated.
49733         * lib/unictype/ctype_alnum.h: Regenerated.
49734         * lib/unictype/ctype_alpha.h: Regenerated.
49735         * lib/unictype/ctype_graph.h: Regenerated.
49736         * lib/unictype/ctype_lower.h: Regenerated.
49737         * lib/unictype/ctype_print.h: Regenerated.
49738         * lib/unictype/ctype_punct.h: Regenerated.
49739         * lib/unictype/ctype_upper.h: Regenerated.
49740         * lib/unictype/decdigit.h: Regenerated.
49741         * lib/unictype/digit.h: Regenerated.
49742         * lib/unictype/mirror.h: Regenerated.
49743         * lib/unictype/numeric.h: Regenerated.
49744         * lib/unictype/pr_alphabetic.h: Regenerated.
49745         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
49746         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
49747         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
49748         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
49749         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
49750         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
49751         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
49752         * lib/unictype/pr_combining.h: Regenerated.
49753         * lib/unictype/pr_dash.h: Regenerated.
49754         * lib/unictype/pr_decimal_digit.h: Regenerated.
49755         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
49756         * lib/unictype/pr_deprecated.h: Regenerated.
49757         * lib/unictype/pr_diacritic.h: Regenerated.
49758         * lib/unictype/pr_extender.h: Regenerated.
49759         * lib/unictype/pr_format_control.h: Regenerated.
49760         * lib/unictype/pr_grapheme_base.h: Regenerated.
49761         * lib/unictype/pr_grapheme_extend.h: Regenerated.
49762         * lib/unictype/pr_grapheme_link.h: Regenerated.
49763         * lib/unictype/pr_id_continue.h: Regenerated.
49764         * lib/unictype/pr_id_start.h: Regenerated.
49765         * lib/unictype/pr_ideographic.h: Regenerated.
49766         * lib/unictype/pr_ignorable_control.h: Regenerated.
49767         * lib/unictype/pr_lowercase.h: Regenerated.
49768         * lib/unictype/pr_math.h: Regenerated.
49769         * lib/unictype/pr_numeric.h: Regenerated.
49770         * lib/unictype/pr_other_alphabetic.h: Regenerated.
49771         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
49772         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
49773         * lib/unictype/pr_other_id_continue.h: Regenerated.
49774         * lib/unictype/pr_other_lowercase.h: Regenerated.
49775         * lib/unictype/pr_other_math.h: Regenerated.
49776         * lib/unictype/pr_punctuation.h: Regenerated.
49777         * lib/unictype/pr_sentence_terminal.h: Regenerated.
49778         * lib/unictype/pr_soft_dotted.h: Regenerated.
49779         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
49780         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
49781         * lib/unictype/pr_unified_ideograph.h: Regenerated.
49782         * lib/unictype/pr_uppercase.h: Regenerated.
49783         * lib/unictype/pr_xid_continue.h: Regenerated.
49784         * lib/unictype/pr_xid_start.h: Regenerated.
49785         * lib/unictype/pr_zero_width.h: Regenerated.
49786         * lib/unictype/scripts.h: Regenerated.
49787         * lib/unictype/scripts_byname.gperf: Regenerated.
49788         * lib/unictype/sy_java_ident.h: Regenerated.
49789         * lib/unilbrk/lbrkprop1.h: Regenerated.
49790         * lib/unilbrk/lbrkprop2.h: Regenerated.
49791         * tests/unictype/test-categ_C.c: Regenerated.
49792         * tests/unictype/test-categ_Cf.c: Regenerated.
49793         * tests/unictype/test-categ_Cn.c: Regenerated.
49794         * tests/unictype/test-categ_L.c: Regenerated.
49795         * tests/unictype/test-categ_Ll.c: Regenerated.
49796         * tests/unictype/test-categ_Lm.c: Regenerated.
49797         * tests/unictype/test-categ_Lo.c: Regenerated.
49798         * tests/unictype/test-categ_Lu.c: Regenerated.
49799         * tests/unictype/test-categ_M.c: Regenerated.
49800         * tests/unictype/test-categ_Mc.c: Regenerated.
49801         * tests/unictype/test-categ_Me.c: Regenerated.
49802         * tests/unictype/test-categ_Mn.c: Regenerated.
49803         * tests/unictype/test-categ_N.c: Regenerated.
49804         * tests/unictype/test-categ_Nd.c: Regenerated.
49805         * tests/unictype/test-categ_Nl.c: Regenerated.
49806         * tests/unictype/test-categ_No.c: Regenerated.
49807         * tests/unictype/test-categ_P.c: Regenerated.
49808         * tests/unictype/test-categ_Pd.c: Regenerated.
49809         * tests/unictype/test-categ_Pe.c: Regenerated.
49810         * tests/unictype/test-categ_Pf.c: Regenerated.
49811         * tests/unictype/test-categ_Pi.c: Regenerated.
49812         * tests/unictype/test-categ_Po.c: Regenerated.
49813         * tests/unictype/test-categ_Ps.c: Regenerated.
49814         * tests/unictype/test-categ_S.c: Regenerated.
49815         * tests/unictype/test-categ_Sk.c: Regenerated.
49816         * tests/unictype/test-categ_Sm.c: Regenerated.
49817         * tests/unictype/test-categ_So.c: Regenerated.
49818         * tests/unictype/test-ctype_alnum.c: Regenerated.
49819         * tests/unictype/test-ctype_alpha.c: Regenerated.
49820         * tests/unictype/test-ctype_graph.c: Regenerated.
49821         * tests/unictype/test-ctype_lower.c: Regenerated.
49822         * tests/unictype/test-ctype_print.c: Regenerated.
49823         * tests/unictype/test-ctype_punct.c: Regenerated.
49824         * tests/unictype/test-ctype_upper.c: Regenerated.
49825         * tests/unictype/test-decdigit.h: Regenerated.
49826         * tests/unictype/test-digit.h: Regenerated.
49827         * tests/unictype/test-numeric.h: Regenerated.
49828         * tests/unictype/test-pr_alphabetic.c: Regenerated.
49829         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
49830         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
49831         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
49832         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
49833         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
49834         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
49835         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
49836         * tests/unictype/test-pr_combining.c: Regenerated.
49837         * tests/unictype/test-pr_dash.c: Regenerated.
49838         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
49839         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
49840         * tests/unictype/test-pr_deprecated.c: Regenerated.
49841         * tests/unictype/test-pr_diacritic.c: Regenerated.
49842         * tests/unictype/test-pr_extender.c: Regenerated.
49843         * tests/unictype/test-pr_format_control.c: Regenerated.
49844         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
49845         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
49846         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
49847         * tests/unictype/test-pr_id_continue.c: Regenerated.
49848         * tests/unictype/test-pr_id_start.c: Regenerated.
49849         * tests/unictype/test-pr_ideographic.c: Regenerated.
49850         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
49851         * tests/unictype/test-pr_lowercase.c: Regenerated.
49852         * tests/unictype/test-pr_math.c: Regenerated.
49853         * tests/unictype/test-pr_numeric.c: Regenerated.
49854         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
49855         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
49856         Regenerated.
49857         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
49858         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
49859         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
49860         * tests/unictype/test-pr_other_math.c: Regenerated.
49861         * tests/unictype/test-pr_punctuation.c: Regenerated.
49862         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
49863         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
49864         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
49865         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
49866         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
49867         * tests/unictype/test-pr_uppercase.c: Regenerated.
49868         * tests/unictype/test-pr_xid_continue.c: Regenerated.
49869         * tests/unictype/test-pr_xid_start.c: Regenerated.
49870         * tests/unictype/test-pr_zero_width.c: Regenerated.
49871
49872         Update to Unicode 5.1.0.
49873         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
49874         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
49875         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
49876         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
49877         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
49878         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
49879         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
49880         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
49881         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
49882         (nonspacing_table_ind): Update.
49883         * tests/uniwidth/test-uc_width2.sh: Update expected result.
49884
49885         Update to Unicode 5.1.0.
49886         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
49887         code transform.
49888         * lib/uniname/uniname.c (unicode_character_name,
49889         unicode_name_character): Add the range 0x1Fxxx to the code transform.
49890         * lib/uniname/uninames.h: Regenerated.
49891         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
49892
49893 2009-02-07  Bruno Haible  <bruno@clisp.org>
49894
49895         Merge gen-ctype and gen-lbrk into a single program.
49896         * lib/gen-uni-tables.c: New file, incorporating
49897         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
49898         Add directory prefixes to the names of the generated files.
49899         * lib/unictype/gen-ctype.c: Remove file.
49900         * lib/unilbrk/gen-lbrk.c: Remove file.
49901         * modules/gen-uni-tables: New file.
49902         * modules/unictype/gen-ctype: Remove file.
49903         * modules/unilbrk/gen-lbrk: Remove file.
49904
49905 2009-02-07  Bruno Haible  <bruno@clisp.org>
49906
49907         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
49908
49909         New module 'unistr/u32-strcoll'.
49910         * modules/unistr/u32-strcoll: New file.
49911         * lib/unistr/u32-strcoll.c: New file.
49912
49913         New module 'unistr/u16-strcoll'.
49914         * modules/unistr/u16-strcoll: New file.
49915         * lib/unistr/u16-strcoll.c: New file.
49916
49917         New module 'unistr/u8-strcoll'.
49918         * modules/unistr/u8-strcoll: New file.
49919         * lib/unistr/u8-strcoll.c: New file.
49920         * lib/unistr/u-strcoll.h: New file.
49921
49922 2009-02-07  Bruno Haible  <bruno@clisp.org>
49923
49924         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
49925         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49926         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49927         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
49928         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
49929         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
49930
49931 2009-02-07  Bruno Haible  <bruno@clisp.org>
49932
49933         Make 64-bit clean.
49934         * lib/unictype/gen-ctype.c (output_predicate, output_category,
49935         output_combclass, output_bidi_category, output_decimal_digit,
49936         output_digit, output_numeric, output_mirror, output_scripts,
49937         output_ident_category): Use proper width specifier in format strings.
49938
49939 2009-02-07  Bruno Haible  <bruno@clisp.org>
49940
49941         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
49942         failure behaviour.
49943
49944 2009-02-07  Jim Meyering  <meyering@redhat.com>
49945
49946         regex: avoid compilation failure with upcoming gcc-4.4
49947         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
49948         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
49949         "... error: integer overflow in preprocessor expression".
49950
49951 2009-02-05  Ben Pfaff  <blp@gnu.org>
49952
49953         Fix link errors on Windows when close module is used.
49954         * modules/close: Add $(LIB_CLOSE) to Link section.
49955         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
49956         $(LIB_CLOSE) on Windows.
49957
49958 2009-02-05  Jim Meyering  <meyering@redhat.com>
49959
49960         still avoid unused-parameter warnings, but do it cleanly
49961         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
49962         (get_fs_usage): Cast to void instead.
49963         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
49964         (dev_from_mount_options, read_file_system_list): Cast to void.
49965         Prompted by Bruno Haible.
49966
49967 2009-02-04  Jim Meyering  <meyering@redhat.com>
49968
49969         fsusage.c: correct copyright year
49970         * lib/fsusage.c: Reflect year in which the change is pushed into
49971
49972         avoid misc. warnings
49973         * lib/fsusage.c (UNUSED_PARAM): Define.
49974         (get_fs_usage): Mark parameter "disk" as unused.
49975         * lib/getugroups.c (getgrent): Use "void" in prototype.
49976         * lib/mountlist.c: Mark unused parameters.
49977         (read_file_system_list): Declare a local with "const".
49978         * lib/nanosleep.c (getnow): Declare static.
49979         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
49980
49981         dirfd: set errno upon failure
49982         * lib/dirfd.c: Include <errno.h>.
49983         Set errno to ENOTSUP when returning -1.
49984         * modules/dirfd (Depends-on): Add errno.
49985         Suggested by John Kodis <kodis@comcast.net>.
49986
49987 2009-02-01  Bruno Haible  <bruno@clisp.org>
49988
49989         Don't assume sizeof (long) >= sizeof (void *).
49990         * lib/memcmp.c: Include stdint.h.
49991         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
49992         srcp2 to 'const byte *'.
49993         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
49994         types to uintptr_t.
49995         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
49996         * modules/memcmp (Depends-on): Add stdint.
49997         Reported by Ozkan Sezer <sezeroz@gmail.com>.
49998
49999 2009-01-30  Eric Blake  <ebb9@byu.net>
50000
50001         fix more require-before-expand issues
50002         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50003         expand, AC_PROG_AWK.
50004         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50005
50006 2009-01-28  Eric Blake  <ebb9@byu.net>
50007
50008         version-etc: use consistent URL formatting
50009         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50010         Improve formatting.  Use fputs for string without %.
50011
50012 2009-01-28  Jim Meyering  <meyering@redhat.com>
50013
50014         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50015         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50016         "underquoted definition of NAME" from autoconf-2.59.
50017
50018 2009-01-28  Bruno Haible  <bruno@clisp.org>
50019
50020         * doc/gnulib.texi: Add "Obsolete modules" to index.
50021
50022 2009-01-28  Jim Meyering  <meyering@redhat.com>
50023
50024         useless-if-before-free: recognize more variants
50025         * build-aux/useless-if-before-free: Also recognize e.g.,
50026         if (NULL != p) free (p);
50027
50028 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50029
50030         test-getaddrinfo: skip (don't fail) this test when there's no network
50031         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50032         on the presumption that it means you lack network access.
50033
50034 2009-01-26  Jim Meyering  <meyering@redhat.com>
50035
50036         fflush: avoid warnings on modern systems
50037         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50038         pos and result, into scopes where they're used.
50039
50040 2009-01-26  Eric Blake  <ebb9@byu.net>
50041
50042         Silence warning reintroduced by recent extensions patch.
50043         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50044         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50045         autoconf.
50046
50047         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50048         * m4/00gnulib.m4: New file.
50049         * gnulib-tool (func_get_filelist): Always use it.
50050         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50051         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50052
50053 2009-01-25  Bruno Haible  <bruno@clisp.org>
50054
50055         Make test-quotearg work on MacOS X and AIX.
50056         * tests/test-quotearg.sh: New file.
50057         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50058         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50059         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50060         include <libintl.h>.
50061         (fake_locale): Remove variable.
50062         (gettext, dgettext, dcgettext): Remove functions.
50063         (main): Instead of setting a fake locale, set a real locale. Call
50064         textdomain and bindtextdomain.
50065         * modules/quotearg-tests (Files): Add the new files.
50066         (Depends-on): Add gettext, setenv, unsetenv.
50067         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50068         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50069         Augment TESTS_ENVIRONMENT.
50070
50071 2009-01-25  Bruno Haible  <bruno@clisp.org>
50072
50073         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50074         fr_FR.ISO8859-1 locale on MacOS X.
50075         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50076         ja_JP.eucJP locale on MacOS X.
50077         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50078         zh_CN.GB18030 locale on MacOS X.
50079
50080 2009-01-25  Bruno Haible  <bruno@clisp.org>
50081
50082         Avoid link errors on MacOS X 10.3.
50083         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50084         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50085
50086 2009-01-25  Bruno Haible  <bruno@clisp.org>
50087
50088         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50089         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50090         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50091         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50092         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50093         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50094         posix_spawnattr_init, posix_spawnattr_setsigmask,
50095         posix_spawnattr_setflags, posix_spawnattr_destroy.
50096
50097         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50098         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50099         * modules/execute (Files): Remove m4/posix_spawn.m4.
50100         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50101         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50102         posix_spawnattr_init, posix_spawnattr_setsigmask,
50103         posix_spawnattr_setflags, posix_spawnattr_destroy.
50104
50105 2009-01-25  Bruno Haible  <bruno@clisp.org>
50106
50107         * lib/glthread/threadlib.c: Include <stdlib.h>.
50108
50109 2009-01-25  Bruno Haible  <bruno@clisp.org>
50110
50111         * lib/glthread/threadlib.c (dummy): New declaration.
50112
50113 2009-01-25  Bruno Haible  <bruno@clisp.org>
50114
50115         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50116         multibyte characters also for the GB18030 encoding. Don't crash when
50117         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50118
50119 2009-01-25  Bruno Haible  <bruno@clisp.org>
50120
50121         Avoid redefining 'struct random_data' on OSF/1 5.1.
50122         * lib/stdlib.in.h: Include <random.h> if it exists.
50123         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50124         HAVE_RANDOM_H. Include <random.h> when testing whether
50125         'struct random_data' exists.
50126         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50127
50128 2009-01-25  Bruno Haible  <bruno@clisp.org>
50129
50130         Don't install charset.alias on MacOS X >= 10.3.
50131         * lib/localcharset.c (DARWIN7): New macro.
50132         (get_charset_aliases): Hardcode the result for Darwin7.
50133         * modules/localcharset (install-exec-local): Don't install
50134         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50135
50136 2009-01-25  Bruno Haible  <bruno@clisp.org>
50137
50138         Don't install charset.alias on mingw and Cygwin.
50139         * modules/localcharset (install-exec-local): Don't install
50140         charset.alias on mingw and Cygwin, if the file does not yet exist.
50141         The result for these platforms is hardcoded in localcharset.c.
50142
50143 2009-01-25  Bruno Haible  <bruno@clisp.org>
50144
50145         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50146         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50147         before requiring AC_USE_SYSTEM_EXTENSIONS.
50148
50149 2009-01-25  Jim Meyering  <meyering@redhat.com>
50150
50151         c-strtod: avoid warnings
50152         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50153         "assignment discards qualifiers from pointer target type" warnings.
50154
50155 2009-01-24  Bruno Haible  <bruno@clisp.org>
50156
50157         Add support for non-UTF-8 locales on MacOS X.
50158         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50159         canonical encodings. For Darwin 7 and newer, don't map traditional
50160         encodings to UTF-8.
50161         Reported by Vincent Lefevre <vincent@vinc17.org>
50162         at <http://savannah.gnu.org/bugs/?25235>.
50163
50164 2009-01-24  Bruno Haible  <bruno@clisp.org>
50165
50166         * doc/gnulib.texi (Obsolete modules): New section.
50167         Reported by Mike Frysinger <vapier@gentoo.org>.
50168
50169 2009-01-24  Bruno Haible  <bruno@clisp.org>
50170
50171         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50172         (%.dvi): New rule.
50173
50174 2009-01-24  Bruno Haible  <bruno@clisp.org>
50175
50176         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50177         Reported by Eric Blake.
50178
50179 2009-01-24  Bruno Haible  <bruno@clisp.org>
50180
50181         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50182         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50183         Reported by Gary V. Vaughan <gary@gnu.org>.
50184
50185 2009-01-24  Bruno Haible  <bruno@clisp.org>
50186
50187         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50188
50189 2009-01-23  Bruno Haible  <bruno@clisp.org>
50190
50191         Make c-strtod, c-strtold usable in libraries.
50192         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50193         (C_STRTOD): Call strdup instead of xstrdup.
50194         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50195         * modules/c-strtold (Depends-on): Likewise.
50196         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50197         * NEWS: Mention the change.
50198         Reported by Michael Gold <mgold@ncf.ca>.
50199
50200 2009-01-23  Jim Meyering  <meyering@redhat.com>
50201
50202         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50203         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50204         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50205
50206 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50207
50208         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50209         GNU CoreUtils.
50210         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50211         * modules/version-etc (Description): Update.
50212
50213 2009-01-22  Bruno Haible  <bruno@clisp.org>
50214
50215         Cache the C locale object.
50216         * lib/c-strtod.c (c_locale_cache): New variable.
50217         (c_locale): New function.
50218         (C_STRTOD): Use it, and don't call freelocale.
50219         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50220         Suggested by Paolo Bonzini.
50221
50222 2009-01-21  Bruno Haible  <bruno@clisp.org>
50223
50224         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50225         conditions other than overflow.
50226
50227 2009-01-21  Bruno Haible  <bruno@clisp.org>
50228
50229         * lib/c-strtod.c: Include errno.h.
50230         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50231         value from STRTOD_L and STRTOD.
50232
50233 2009-01-21  Bruno Haible  <bruno@clisp.org>
50234         and Jim Meyering  <meyering@redhat.com>
50235
50236         nanosleep: skip configure test (fail it) for apple universal builds
50237         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50238         universal builds, assume that nanosleep does not work.
50239         * modules/nanosleep (Depends-on): Add multiarch.
50240
50241         mktime: skip configure test (fail it) for apple universal builds
50242         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50243         universal builds, assume that mktime does not work.
50244         * modules/mktime (Depends-on): Add multiarch.
50245
50246 2009-01-21  Eric Blake  <ebb9@byu.net>
50247
50248         multiarch: avoid expand-before-require warning
50249         * modules/multiarch (configure.ac): Require, rather than expand,
50250         gl_MULTIARCH.
50251         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50252         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50253         enforce that all clients require it.  Partial reversion of
50254         2008-12-29 patch.
50255
50256         error: avoid expand-before-require warning
50257         * modules/errno (configure.ac): Require, rather than expand,
50258         gl_HEADER_ERRNO_H.
50259         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50260         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50261         enforce that all clients require it.
50262
50263         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50264         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50265         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50266         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50267
50268 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50269
50270         Revert:
50271         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50272
50273         regex: do not depend on obsolete modules.
50274         * modules/regex: Remove memcmp and memmove.
50275
50276 2009-01-20  Bruno Haible  <bruno@clisp.org>
50277
50278         Make the 'link' module link on Windows NT 4.
50279         * lib/link.c (_WIN32_WINNT): Don't define.
50280         (CreateHardLinkFuncType): New type.
50281         (CreateHardLinkFunc, initialized): New variables.
50282         (initialize): New function.
50283         (link): Invoke CreateHardLink indirectly through the function pointer.
50284
50285 2009-01-20  Bruno Haible  <bruno@clisp.org>
50286
50287         Fix compilation failure on mingw.
50288         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50289
50290 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50291
50292         * doc/c-strtod.texi: Mention a couple of restrictions.
50293
50294 2009-01-20  Jim Meyering  <meyering@redhat.com>
50295
50296         gettimeofday: move more declarations out of functions
50297         * lib/gettimeofday.c: Move extern declarations of tzset and
50298         gmtime out of containing functions.  Prompted by Bruno Haible.
50299
50300 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50301
50302         regex: do not depend on obsolete modules.
50303         * modules/regex: Remove memcmp and memmove.
50304
50305 2009-01-19  Bruno Haible  <bruno@clisp.org>
50306
50307         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50308         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50309         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50310         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50311         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50312
50313 2009-01-19  Bruno Haible  <bruno@clisp.org>
50314
50315         * tests/test-link.c: Include <errno.h>.
50316         (main): Exit with code 77 when a hard link cannot be created due to
50317         the file system.
50318         * tests/test-link.sh: Skip test when a hard link cannot be created due
50319         to the file system.
50320         Suggested by Eric Blake.
50321
50322 2009-01-19  Martin Lambers  <marlam@marlam.de>
50323
50324         * modules/link-tests: New file.
50325         * tests/test-link.sh: New file.
50326         * tests/test-link.c: New file.
50327
50328 2009-01-19  Eric Blake  <ebb9@byu.net>
50329
50330         doc: mention another function added in cygwin 1.7.0
50331         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50332         Another new function in cygwin 1.7.
50333
50334 2009-01-19  Bruno Haible  <bruno@clisp.org>
50335
50336         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50337         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50338         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50339         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50340         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50341         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50342         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50343         * m4/md4.m4 (gl_MD4): Likewise.
50344         * m4/md5.m4 (gl_MD5): Likewise.
50345         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50346         * m4/sha1.m4 (gl_SHA1): Likewise.
50347         * m4/sha256.m4 (gl_SHA256): Likewise.
50348         * m4/sha512.m4 (gl_SHA512): Likewise.
50349
50350 2009-01-19  Bruno Haible  <bruno@clisp.org>
50351
50352         * modules/uniname/uniname-tests (Depends-on): Add progname.
50353         * tests/uniname/test-uninames.c: Include progname.h.
50354         (main): Call set_program_name.
50355
50356         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50357         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50358         (main): Call set_program_name.
50359
50360         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50361         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50362         (main): Call set_program_name.
50363
50364         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50365         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50366         (main): Call set_program_name.
50367
50368         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50369         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50370         (main): Call set_program_name.
50371
50372         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50373         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50374         (main): Call set_program_name.
50375
50376         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50377         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50378         (main): Call set_program_name.
50379
50380         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50381         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50382         (main): Call set_program_name.
50383
50384         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50385         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50386         (main): Call set_program_name.
50387
50388 2009-01-19  Eric Blake  <ebb9@byu.net>
50389
50390         test-unistd: test previous patch
50391         * tests/test-unistd.c: Test *_FILENO macros.
50392
50393         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50394         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50395         Guarantee a definition.
50396         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50397         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50398         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50399         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50400         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50401         Likewise.
50402         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50403         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50404         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50405         Likewise.
50406         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50407         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50408         (STDERR_FILENO): Likewise.
50409         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50410         (STDERR_FILENO): Likewise.
50411         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50412         (STDERR_FILENO): Likewise.
50413         Reported by Elbert Pol.
50414
50415 2009-01-19  Eric Blake  <ebb9@byu.net>
50416
50417         doc: mention more functions added in cygwin 1.7.0
50418         * doc/posix-functions/abort.texi (abort): Update wording related
50419         to cygwin.
50420         * doc/posix-functions/daylight.texi (daylight): Likewise.
50421         * doc/posix-functions/optarg.texi (optarg): Likewise.
50422         * doc/posix-functions/optarg.texi (opterr): Likewise.
50423         * doc/posix-functions/optarg.texi (optind): Likewise.
50424         * doc/posix-functions/optarg.texi (optopt): Likewise.
50425         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50426         worked in 1.5.x, and was withdrawn in 1.7.
50427         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50428         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50429         cygwin versions.
50430         * doc/posix-functions/perror.texi (perror): Likewise.
50431         * doc/posix-functions/printf.texi (printf): Likewise.
50432         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50433         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50434         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50435         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50436         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50437         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50438         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50439         Likewise.
50440         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50441         Likewise.
50442         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50443         this function.
50444         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50445         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50446         Likewise.
50447         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50448         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50449         * doc/posix-functions/confstr.texi (confstr): Likewise.
50450         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50451         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50452         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50453         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50454         * doc/posix-functions/fputws.texi (fputws): Likewise.
50455         * doc/posix-functions/fwide.texi (fwide): Likewise.
50456         * doc/posix-functions/getwc.texi (getwc): Likewise.
50457         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50458         * doc/posix-functions/putwc.texi (putwc): Likewise.
50459         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50460         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50461         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50462         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50463         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50464         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50465         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50466         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50467         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50468         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50469         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50470
50471 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50472
50473         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50474         * lib/ioctl.c: Include <sys/ioctl.h>.
50475
50476 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50477
50478         * modules/getdate-tests (Depends-on): Add progname.
50479         * tests/test-getdate.c: Use progname module, to avoid link errors
50480         on non-glibc systems.
50481
50482 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50483
50484         * modules/filenamecat-tests (Depends-on): Add progname.
50485         * modules/fstrcmp-tests (Depends-on): Likewise.
50486
50487         * tests/test-filenamecat.c: Use progname module, to avoid link
50488         errors on non-glibc systems.
50489         * tests/test-fstrcmp.c: Likewise.
50490
50491 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50492
50493         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50494         * lib/gettimeofday.c: Move extern declaration out of function.
50495
50496 2009-01-18  Bruno Haible  <bruno@clisp.org>
50497
50498         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50499         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50500         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50501
50502 2009-01-18  Bruno Haible  <bruno@clisp.org>
50503
50504         * lib/strftime.c (MEMPCPY): Remove unused macro.
50505         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50506
50507 2009-01-18  Martin Lambers  <marlam@marlam.de>
50508
50509         New module 'link'.
50510         * lib/unistd.in.h (link): New declaration.
50511         * lib/link.c: New file.
50512         * m4/link.m4: New file.
50513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50514         HAVE_LINK.
50515         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50516         * modules/link: New file.
50517         * doc/posix-functions/link.texi: Mention the new module.
50518
50519 2009-01-18  Bruno Haible  <bruno@clisp.org>
50520
50521         * tests/test-avltree_list.c (main): Call set_program_name.
50522         * tests/test-avltree_oset.c (main): Likewise.
50523         * tests/test-obstack-printf.c: Include progname.h.
50524         (main): Call set_program_name.
50525         * tests/test-quotearg.c: Include progname.h.
50526         (main): Call set_program_name.
50527         * tests/test-xmemdup0.c: Include progname.h.
50528         (main): Call set_program_name.
50529
50530 2009-01-18  Bruno Haible  <bruno@clisp.org>
50531
50532         New module 'alphasort'.
50533         * lib/dirent.in.h (alphasort): New declaration.
50534         * lib/alphasort.c: New file, from glibc with modifications.
50535         * m4/alphasort.m4: New file.
50536         * modules/alphasort: New file.
50537         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50538         HAVE_ALPHASORT.
50539         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50540         HAVE_ALPHASORT.
50541         * doc/posix-functions/alphasort.texi: Mention the new module and the
50542         portability problems.
50543
50544 2009-01-18  Bruno Haible  <bruno@clisp.org>
50545
50546         New module 'scandir'.
50547         * lib/dirent.in.h (scandir): New declaration.
50548         * lib/scandir.c: New file, from glibc with modifications.
50549         * m4/scandir.m4: New file.
50550         * modules/scandir: New file.
50551         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50552         HAVE_SCANDIR.
50553         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50554         HAVE_SCANDIR.
50555         * doc/posix-functions/scandir.texi: Mention the new module and the
50556         portability problems.
50557
50558 2009-01-17  Bruno Haible  <bruno@clisp.org>
50559
50560         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50561         Update documentation.
50562         (func_remove_suffix): Escape all dots in the suffix. Update
50563         documentation.
50564         (func_filter_filelist): Update documentation.
50565         Reported by Ralf Wildenhues.
50566
50567 2009-01-17  Bruno Haible  <bruno@clisp.org>
50568
50569         * modules/dprintf-posix-tests: New file.
50570         * tests/test-dprintf-posix.sh: New file.
50571         * tests/test-dprintf-posix.c: New file.
50572
50573         New modules 'dprintf', 'dprintf-posix'.
50574         * lib/stdio.in.h (dprintf): New declaration.
50575         * lib/dprintf.c: New file.
50576         * m4/dprintf.m4: New file.
50577         * m4/dprintf-posix.m4: New file.
50578         * modules/dprintf: New file.
50579         * modules/dprintf-posix: New file.
50580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50581         HAVE_DPRINTF, REPLACE_DPRINTF.
50582         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50583         HAVE_DPRINTF, REPLACE_DPRINTF.
50584         * doc/posix-functions/dprintf.texi: Mention the new modules.
50585
50586 2009-01-17  Bruno Haible  <bruno@clisp.org>
50587
50588         * modules/vdprintf-posix-tests: New file.
50589         * tests/test-vdprintf-posix.sh: New file.
50590         * tests/test-vdprintf-posix.c: New file.
50591
50592         New modules 'vdprintf', 'vdprintf-posix'.
50593         * lib/stdio.in.h (vdprintf): New declaration.
50594         * lib/vdprintf.c: New file.
50595         * m4/vdprintf.m4: New file.
50596         * m4/vdprintf-posix.m4: New file.
50597         * modules/vdprintf: New file.
50598         * modules/vdprintf-posix: New file.
50599         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
50600         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50601         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
50602         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50603         * doc/posix-functions/vdprintf.texi: Mention the new modules.
50604
50605 2009-01-17  Bruno Haible  <bruno@clisp.org>
50606
50607         Fix replacement of fopen on mingw.
50608         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
50609         mingw.
50610
50611 2009-01-17  Bruno Haible  <bruno@clisp.org>
50612
50613         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
50614         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
50615
50616 2009-01-17  Bruno Haible  <bruno@clisp.org>
50617
50618         Avoid test-fflush2.sh failure on mingw.
50619         * tests/test-fflush2.c: Include binary-io.h.
50620         (main): Put standard input into binary mode.
50621         * modules/fflush-tests (Depends-on): Add binary-io.
50622
50623 2009-01-17  Bruno Haible  <bruno@clisp.org>
50624
50625         * lib/wchar.in.h: In another particular situation, include only the
50626         system's <wchar.h> file.
50627         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
50628         Reported by Albert Chin-A-Young <china@thewrittenword.com>
50629         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
50630
50631 2009-01-17  Bruno Haible  <bruno@clisp.org>
50632
50633         Support for stripping executables in --enable-relocatable.
50634         * build-aux/install-reloc: Expect one more argument, or an environment
50635         variable RELOC_STRIP_PROG. If set, strip the destination program and
50636         its wrapper.
50637         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
50638         RELOC_STRIP_PROG.
50639         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
50640         to set RELOCATABLE_STRIP.
50641         * NEWS: Mention the new Makefile requirement.
50642
50643 2009-01-17  Bruno Haible  <bruno@clisp.org>
50644
50645         * build-aux/install-reloc: Remove debugging information left over by
50646         C compiler on MacOS X.
50647
50648 2009-01-17  Bruno Haible  <bruno@clisp.org>
50649
50650         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
50651         * lib/progreloc.c (find_executable): Fix type of pointer passed to
50652         _NSGetExecutablePath.
50653
50654 2009-01-16  Jim Meyering  <meyering@redhat.com>
50655
50656         strerror: avoid warnings about discarding "const"
50657         * lib/strerror.c (rpl_strerror): Instead of returning a const
50658         string from each and every "case", use a variable, and add a single
50659         cast after the switch.
50660
50661 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
50662
50663         * lib/arpa_inet.in.h: Add extern "C" block for C++.
50664
50665 2009-01-16  Bruno Haible  <bruno@clisp.org>
50666
50667         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
50668         array initializer syntax that also works in C++ mode.
50669         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50670
50671 2009-01-16  Jim Meyering  <meyering@redhat.com>
50672
50673         poll: suppress a warning
50674         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
50675         to ignore "...unsigned expression < 0 is always false" warnings.
50676
50677 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
50678
50679         poll: remove declarations of unused variables
50680         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
50681         sockbuf and optlen.
50682
50683 2009-01-15  Bruno Haible  <bruno@clisp.org>
50684
50685         Make fflush-after-ungetc POSIX compliant on BSD systems.
50686         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
50687         (clear_ungetc_buffer): Implement also for other systems.
50688         (rpl_fflush): On glibc systems, invoke
50689         clear_ungetc_buffer_preserving_position. Otherwise, invoke
50690         clear_ungetc_buffer after fetching the stream's position, not before.
50691
50692 2009-01-15  Bruno Haible  <bruno@clisp.org>
50693
50694         Make fflush-after-ungetc POSIX compliant on glibc systems.
50695         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
50696         after ungetc.
50697         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
50698         (rpl_fflush): On glibc systems, simply call the system's fflush
50699         function after clearing the ungetc buffer.
50700         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
50701         Instead, lseek only to the end of file, then use the system's fseeko
50702         for the rest. On glibc systems, reset the EOF indicator bit.
50703
50704 2009-01-15  Jim Meyering  <meyering@redhat.com>
50705
50706         openmp.m4: revert quote-adding change, for portability to older autoconf
50707         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
50708         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
50709         Simon Josefsson noticed the problem when using autoconf-2.61.
50710
50711 2009-01-15  Bruno Haible  <bruno@clisp.org>
50712
50713         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
50714         * tests/test-fflush2.c (ASSERT): Always fail.
50715         (main): Add two tests for fflush() after ungetc(), taking into account
50716         the Austin Group's clarification.
50717         Suggested by Eric Blake.
50718
50719 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
50720
50721         mktime.m4: remove K&R-style function prototypes
50722         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
50723         for the Sun C++ compiler.
50724
50725 2009-01-14  Bruno Haible  <bruno@clisp.org>
50726
50727         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
50728         while including <wchar.h>.
50729         * lib/wchar.in.h: In two particular situations on HP-UX, include only
50730         the system's <wchar.h> file.
50731         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50732
50733 2009-01-14  Bruno Haible  <bruno@clisp.org>
50734
50735         * m4/csharp.m4: Don't mention gettext on the serial number line.
50736         * m4/csharpexec.m4: Likewise.
50737         * m4/eaccess.m4: Likewise.
50738         * m4/javaexec.m4: Likewise.
50739         * m4/sig_atomic_t.m4: Likewise.
50740         * m4/tmpdir.m4: Likewise.
50741         * m4/intldir.m4: Bump gettext version.
50742         * m4/lib-ld.m4: Likewise.
50743
50744 2009-01-14  Bruno Haible  <bruno@clisp.org>
50745
50746         * lib/progname.c (set_program_name): Add more comments.
50747         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
50748
50749 2009-01-14  Simon Josefsson  <simon@josefsson.org>
50750
50751         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
50752         were sys/stat.h does not define it.
50753
50754 2009-01-14  Jim Meyering  <meyering@redhat.com>
50755
50756         many *.m4 files: improve m4 quoting
50757         99% of this change was performed by running the following commands:
50758         git ls-files | grep '\.m4$' | xargs perl -pi \
50759           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
50760           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50761           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50762           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
50763         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
50764         The remainder were to add Copyright dates, increment serial numbers,
50765         undo some changes in comments, exclude m4/intl.m4, and add quotes
50766         around the "1" in ",1" where the unusual spacing prohibited the
50767         above regexps from doing the job.  For more details, see
50768         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
50769         * m4/acl.m4: Modified.
50770         * m4/afs.m4: Likewise.
50771         * m4/alloca.m4: Likewise.
50772         * m4/argp.m4: Likewise.
50773         * m4/argz.m4: Likewise.
50774         * m4/atexit.m4: Likewise.
50775         * m4/bison-i18n.m4: Likewise.
50776         * m4/bison.m4: Likewise.
50777         * m4/byteswap.m4: Likewise.
50778         * m4/c-stack.m4: Likewise.
50779         * m4/c-strtod.m4: Likewise.
50780         * m4/calloc.m4: Likewise.
50781         * m4/canonicalize-lgpl.m4: Likewise.
50782         * m4/chown.m4: Likewise.
50783         * m4/clock_time.m4: Likewise.
50784         * m4/codeset.m4: Likewise.
50785         * m4/copy-file.m4: Likewise.
50786         * m4/csharp.m4: Likewise.
50787         * m4/csharpcomp.m4: Likewise.
50788         * m4/csharpexec.m4: Likewise.
50789         * m4/d-ino.m4: Likewise.
50790         * m4/d-type.m4: Likewise.
50791         * m4/dirfd.m4: Likewise.
50792         * m4/double-slash-root.m4: Likewise.
50793         * m4/eaccess.m4: Likewise.
50794         * m4/eealloc.m4: Likewise.
50795         * m4/environ.m4: Likewise.
50796         * m4/errno_h.m4: Likewise.
50797         * m4/euidaccess.m4: Likewise.
50798         * m4/execute.m4: Likewise.
50799         * m4/fatal-signal.m4: Likewise.
50800         * m4/fchdir.m4: Likewise.
50801         * m4/fcntl_h.m4: Likewise.
50802         * m4/fileblocks.m4: Likewise.
50803         * m4/filenamecat.m4: Likewise.
50804         * m4/findprog.m4: Likewise.
50805         * m4/flexmember.m4: Likewise.
50806         * m4/fnmatch.m4: Likewise.
50807         * m4/fopen.m4: Likewise.
50808         * m4/fpending.m4: Likewise.
50809         * m4/fprintf-posix.m4: Likewise.
50810         * m4/free.m4: Likewise.
50811         * m4/frexp.m4: Likewise.
50812         * m4/frexpl.m4: Likewise.
50813         * m4/fsusage.m4: Likewise.
50814         * m4/ftruncate.m4: Likewise.
50815         * m4/gc-camellia.m4: Likewise.
50816         * m4/gc-random.m4: Likewise.
50817         * m4/gc.m4: Likewise.
50818         * m4/getaddrinfo.m4: Likewise.
50819         * m4/getcwd-abort-bug.m4: Likewise.
50820         * m4/getcwd-path-max.m4: Likewise.
50821         * m4/getdate.m4: Likewise.
50822         * m4/getdomainname.m4: Likewise.
50823         * m4/getgroups.m4: Likewise.
50824         * m4/gethostname.m4: Likewise.
50825         * m4/gethrxtime.m4: Likewise.
50826         * m4/getline.m4: Likewise.
50827         * m4/getloadavg.m4: Likewise.
50828         * m4/getndelim2.m4: Likewise.
50829         * m4/getpass.m4: Likewise.
50830         * m4/gettext.m4: Likewise.
50831         * m4/gettime.m4: Likewise.
50832         * m4/gettimeofday.m4: Likewise.
50833         * m4/gnulib-common.m4: Likewise.
50834         * m4/group-member.m4: Likewise.
50835         * m4/host-os.m4: Likewise.
50836         * m4/iconv.m4: Likewise.
50837         * m4/iconv_open.m4: Likewise.
50838         * m4/inet_ntop.m4: Likewise.
50839         * m4/inet_pton.m4: Likewise.
50840         * m4/inline.m4: Likewise.
50841         * m4/intldir.m4: Likewise.
50842         * m4/intlmacosx.m4: Likewise.
50843         * m4/intmax.m4: Likewise.
50844         * m4/intmax_t.m4: Likewise.
50845         * m4/inttypes.m4: Likewise.
50846         * m4/inttypes_h.m4: Likewise.
50847         * m4/inttypes-pri.m4: Likewise.
50848         * m4/isapipe.m4: Likewise.
50849         * m4/isnand.m4: Likewise.
50850         * m4/isnanf.m4: Likewise.
50851         * m4/isnanl.m4: Likewise.
50852         * m4/javacomp.m4: Likewise.
50853         * m4/javaexec.m4: Likewise.
50854         * m4/jm-winsz1.m4: Likewise.
50855         * m4/jm-winsz2.m4: Likewise.
50856         * m4/lchown.m4: Likewise.
50857         * m4/lcmessage.m4: Likewise.
50858         * m4/ldexpl.m4: Likewise.
50859         * m4/lib-ld.m4: Likewise.
50860         * m4/lib-link.m4: Likewise.
50861         * m4/libsigsegv.m4: Likewise.
50862         * m4/link-follow.m4: Likewise.
50863         * m4/localcharset.m4: Likewise.
50864         * m4/locale-fr.m4: Likewise.
50865         * m4/locale-ja.m4: Likewise.
50866         * m4/locale-tr.m4: Likewise.
50867         * m4/locale-zh.m4: Likewise.
50868         * m4/lock.m4: Likewise.
50869         * m4/longlong.m4: Likewise.
50870         * m4/ls-mntd-fs.m4: Likewise.
50871         * m4/lstat.m4: Likewise.
50872         * m4/malloc.m4: Likewise.
50873         * m4/mathl.m4: Likewise.
50874         * m4/mbrtowc.m4: Likewise.
50875         * m4/mbstate_t.m4: Likewise.
50876         * m4/mbswidth.m4: Likewise.
50877         * m4/memchr.m4: Likewise.
50878         * m4/memcmp.m4: Likewise.
50879         * m4/memcpy.m4: Likewise.
50880         * m4/memmem.m4: Likewise.
50881         * m4/memmove.m4: Likewise.
50882         * m4/mempcpy.m4: Likewise.
50883         * m4/memrchr.m4: Likewise.
50884         * m4/memset.m4: Likewise.
50885         * m4/minmax.m4: Likewise.
50886         * m4/mkdir-slash.m4: Likewise.
50887         * m4/mkdtemp.m4: Likewise.
50888         * m4/mktime.m4: Likewise.
50889         * m4/mmap-anon.m4: Likewise.
50890         * m4/mountlist.m4: Likewise.
50891         * m4/nanosleep.m4: Likewise.
50892         * m4/nls.m4: Likewise.
50893         * m4/nocrash.m4: Likewise.
50894         * m4/open.m4: Likewise.
50895         * m4/openat.m4: Likewise.
50896         * m4/openmp.m4: Likewise.
50897         * m4/pathmax.m4: Likewise.
50898         * m4/perl.m4: Likewise.
50899         * m4/physmem.m4: Likewise.
50900         * m4/pipe.m4: Likewise.
50901         * m4/po.m4: Likewise.
50902         * m4/poll.m4: Likewise.
50903         * m4/posixtm.m4: Likewise.
50904         * m4/posixver.m4: Likewise.
50905         * m4/printf-frexp.m4: Likewise.
50906         * m4/printf-frexpl.m4: Likewise.
50907         * m4/printf-posix.m4: Likewise.
50908         * m4/printf-posix-rpl.m4: Likewise.
50909         * m4/printf.m4: Likewise.
50910         * m4/progtest.m4: Likewise.
50911         * m4/putenv.m4: Likewise.
50912         * m4/readline.m4: Likewise.
50913         * m4/readlink.m4: Likewise.
50914         * m4/readutmp.m4: Likewise.
50915         * m4/realloc.m4: Likewise.
50916         * m4/regex.m4: Likewise.
50917         * m4/relocatable.m4: Likewise.
50918         * m4/relocatable-lib.m4: Likewise.
50919         * m4/rename-dest-slash.m4: Likewise.
50920         * m4/rename.m4: Likewise.
50921         * m4/rmdir-errno.m4: Likewise.
50922         * m4/rmdir.m4: Likewise.
50923         * m4/roundf.m4: Likewise.
50924         * m4/roundl.m4: Likewise.
50925         * m4/rpmatch.m4: Likewise.
50926         * m4/save-cwd.m4: Likewise.
50927         * m4/selinux-selinux-h.m4: Likewise.
50928         * m4/setenv.m4: Likewise.
50929         * m4/settime.m4: Likewise.
50930         * m4/sig2str.m4: Likewise.
50931         * m4/sig_atomic_t.m4: Likewise.
50932         * m4/signalblocking.m4: Likewise.
50933         * m4/signbit.m4: Likewise.
50934         * m4/sigpipe.m4: Likewise.
50935         * m4/sockets.m4: Likewise.
50936         * m4/sockpfaf.m4: Likewise.
50937         * m4/st_dm_mode.m4: Likewise.
50938         * m4/stat-time.m4: Likewise.
50939         * m4/stdbool.m4: Likewise.
50940         * m4/stdint.m4: Likewise.
50941         * m4/stdint_h.m4: Likewise.
50942         * m4/stpcpy.m4: Likewise.
50943         * m4/stpncpy.m4: Likewise.
50944         * m4/strcase.m4: Likewise.
50945         * m4/strchrnul.m4: Likewise.
50946         * m4/strcspn.m4: Likewise.
50947         * m4/strdup.m4: Likewise.
50948         * m4/strftime.m4: Likewise.
50949         * m4/strndup.m4: Likewise.
50950         * m4/strnlen.m4: Likewise.
50951         * m4/strpbrk.m4: Likewise.
50952         * m4/strptime.m4: Likewise.
50953         * m4/strsep.m4: Likewise.
50954         * m4/strtod.m4: Likewise.
50955         * m4/strtoimax.m4: Likewise.
50956         * m4/strtok_r.m4: Likewise.
50957         * m4/strtol.m4: Likewise.
50958         * m4/strtoll.m4: Likewise.
50959         * m4/strtoul.m4: Likewise.
50960         * m4/strtoull.m4: Likewise.
50961         * m4/strtoumax.m4: Likewise.
50962         * m4/strverscmp.m4: Likewise.
50963         * m4/threadlib.m4: Likewise.
50964         * m4/timegm.m4: Likewise.
50965         * m4/tm_gmtoff.m4: Likewise.
50966         * m4/tmpdir.m4: Likewise.
50967         * m4/tmpfile.m4: Likewise.
50968         * m4/tzset.m4: Likewise.
50969         * m4/uintmax_t.m4: Likewise.
50970         * m4/unlinkdir.m4: Likewise.
50971         * m4/unlocked-io.m4: Likewise.
50972         * m4/uptime.m4: Likewise.
50973         * m4/userspec.m4: Likewise.
50974         * m4/utimbuf.m4: Likewise.
50975         * m4/utime.m4: Likewise.
50976         * m4/utimes-null.m4: Likewise.
50977         * m4/utimes.m4: Likewise.
50978         * m4/vararrays.m4: Likewise.
50979         * m4/vasnprintf.m4: Likewise.
50980         * m4/vfprintf-posix.m4: Likewise.
50981         * m4/vprintf-posix.m4: Likewise.
50982         * m4/wait-process.m4: Likewise.
50983         * m4/wchar_t.m4: Likewise.
50984         * m4/wint_t.m4: Likewise.
50985         * m4/write-any-file.m4: Likewise.
50986         * m4/yield.m4: Likewise.
50987
50988 2009-01-13  Bruno Haible  <bruno@clisp.org>
50989
50990         Avoid test-copy-file.sh failures when ACL support insufficient.
50991         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
50992         TESTS_ENVIRONMENT.
50993         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
50994         Reported by Jim Meyering.
50995
50996 2009-01-13  Bruno Haible  <bruno@clisp.org>
50997
50998         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
50999         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51000         * modules/unistdio/u8-printf-parse (Files): Likewise.
51001         * modules/unistdio/u32-printf-parse (Files): Likewise.
51002         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51003
51004 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51005
51006         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51007         and m4/inttypes_h.m4 too.
51008
51009 2009-01-12  Eric Blake  <ebb9@byu.net>
51010
51011         tests: IRIX 6.2 cc can't compile -0.0 into .data
51012         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51013         rather than at compile-time.
51014         * tests/test-floorl.c (minus_zero): Likewise.
51015         * tests/test-frexpl.c (minus_zero): Likewise.
51016         * tests/test-isnan.c (minus_zerol): Likewise.
51017         * tests/test-isnanl.h (minus_zero): Likewise.
51018         * tests/test-ldexpl.c (minus_zero): Likewise.
51019         * tests/test-roundl.c (minus_zero): Likewise.
51020         * tests/test-signbit.c (minus_zerol): Likewise.
51021         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51022         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51023         * tests/test-truncl.c (minus_zero): Likewise.
51024         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51025         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51026         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51027
51028 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51029
51030         regex: fix glibc bug 9697
51031         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51032         handling.
51033
51034 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51035
51036         regex: fix glibc bug 697
51037         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51038         being NULL also if there are no backreferences.
51039
51040 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51041
51042         regex: merge glibc changes
51043         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51044         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51045         re_string_skip_chars, re_string_reconstruct): Likewise.
51046         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51047
51048 2009-01-07  Jim Meyering  <meyering@redhat.com>
51049
51050         poll: filter through cppi
51051         * lib/poll.c: Indent cpp directives to reflect nesting.
51052
51053 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51054
51055         poll: don't return uninitialized
51056         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51057
51058 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51059
51060         avoid compile failure on AIX 6.1
51061         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51062         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51063
51064 2009-01-04  Jim Meyering  <meyering@redhat.com>
51065
51066         remove duplicate inclusion of <stdio.h>
51067         * tests/test-fprintf-posix.c: Likewise.
51068         * tests/test-printf-posix.c: Likewise.
51069         * tests/test-snprintf-posix.c: Likewise.
51070         * tests/test-sprintf-posix.c: Likewise.
51071         * tests/test-vasprintf-posix.c: Likewise.
51072         * tests/test-vfprintf-posix.c: Likewise.
51073         * tests/test-vprintf-posix.c: Likewise.
51074         * tests/test-vsnprintf-posix.c: Likewise.
51075         * tests/test-vsprintf-posix.c: Likewise.
51076
51077 2009-01-03  Jim Meyering  <meyering@redhat.com>
51078
51079         gnulib-tool: fix sed-based filtering
51080         * gnulib-tool (func_filter_filelist): Remove extra backslash
51081         in sed_fff_filter definition.
51082
51083 2009-01-02  Jim Meyering  <meyering@redhat.com>
51084
51085         strftime: avoid compilation failure on Solaris 2.6
51086         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51087         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51088         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51089         be available.  Reported by Tom G. Christensen.  Details in
51090         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51091
51092 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51093             Bruno Haible  <bruno@clisp.org>
51094
51095         Speed up gnulib-tool by doing more string processing through shell
51096         built-ins.
51097         * gnulib-tool (fast_func_append): New variable.
51098         (func_remove_prefix, func_remove_suffix): New functions.
51099         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51100         (func_filter_filelist): New function.
51101         (func_get_dependencies): Use func_remove_suffix instead of sed.
51102         (func_get_automake_snippet): Use func_filter_filelist instead of a
51103         subshell and sed invocation.
51104
51105 2009-01-01  Bruno Haible  <bruno@clisp.org>
51106
51107         Fix a security bug.
51108         * gnulib-tool (func_import, import, update): Don't allow the characters
51109         '"', '$', '`', '\' in macro arguments that become part of commands that
51110         are evaluated.
51111
51112 2009-01-01  Bruno Haible  <bruno@clisp.org>
51113
51114         * gnulib-tool (func_reset_sigpipe): Add more comments.
51115
51116 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51117
51118         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51119         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51120         already know the answer.
51121
51122 2009-01-01  Jim Meyering  <meyering@redhat.com>
51123
51124         * lib/version-etc.c (version_etc_va): Update copyright year.
51125
51126 2008-12-30  Bruno Haible  <bruno@clisp.org>
51127
51128         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51129         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51130         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51131
51132 2008-12-29  Eric Blake  <ebb9@byu.net>
51133
51134         multiarch: avoid autoconf AC_REQUIRE bug
51135         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51136         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51137         2.63 and older.
51138         Reported by Bruno Haible, and analyzed in
51139         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51140
51141 2008-12-29  Bruno Haible  <bruno@clisp.org>
51142
51143         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51144         files in subdirectories correctly.
51145         Reported by Ralf Wildenhues.
51146
51147 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51148
51149         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51150         rather than 'join FILE -', for Solaris join.
51151
51152 2008-12-29  Bruno Haible  <bruno@clisp.org>
51153
51154         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51155         quoting.
51156         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51157         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51158         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51159         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51160         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51161         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51162         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51163         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51164         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51165         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51166         * m4/nls.m4 (AM_NLS): Likewise.
51167         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51168         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51169         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51170         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51171         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51172         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51173         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51174         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51175         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51176         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51177         * m4/xsize.m4 (gl_XSIZE): Likewise.
51178         Suggested by Jim Meyering.
51179
51180 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51181
51182         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51183         * lib/parse-duration.c: use a switch instead of cascading if's.
51184
51185 2008-12-29  Eric Blake  <ebb9@byu.net>
51186
51187         wchar.h: supply WEOF on Irix 5.3
51188         * lib/wchar.in.h (wint_t): Also supply WEOF.
51189         * lib/wctype.in.h (wint_t): Likewise.
51190         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51191         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51192         Reported by Tom G. Christensen.
51193
51194 2008-12-26  Bruno Haible  <bruno@clisp.org>
51195
51196         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51197         i486, i586, i686.
51198
51199 2008-12-26  Bruno Haible  <bruno@clisp.org>
51200
51201         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51202
51203 2008-12-26  Bruno Haible  <bruno@clisp.org>
51204
51205         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51206         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51207         not __STDC_CONSTANT_MACROS.
51208         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51209
51210 2008-12-25  Bruno Haible  <bruno@clisp.org>
51211
51212         Add support for universal builds to vasnprintf.
51213         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51214         universal builds, guess no.
51215         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51216         * modules/vasprintf-posix (Depends-on): Likewise.
51217         * modules/fprintf-posix (Depends-on): Likewise.
51218         * modules/vfprintf-posix (Depends-on): Likewise.
51219         * modules/snprintf-posix (Depends-on): Likewise.
51220         * modules/vsnprintf-posix (Depends-on): Likewise.
51221         * modules/sprintf-posix (Depends-on): Likewise.
51222         * modules/vsprintf-posix (Depends-on): Likewise.
51223         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51224         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51225         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51226         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51227         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51228         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51229         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51230
51231         Add support for universal builds to <inttypes.h>.
51232         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51233         _SCNu64_PREFIX): In Apple
51234         universal builds, define directly, using _LP64.
51235         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51236         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51237         * modules/inttypes (Depends-on): Add multiarch.
51238         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51239
51240         Add support for universal builds to <stdint.h>.
51241         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51242         universal builds, define directly, using _LP64.
51243         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51244         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51245         and size_t.
51246         * modules/stdint (Depends-on): Add multiarch.
51247         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51248
51249         New module 'multiarch'.
51250         * modules/multiarch: New file.
51251         * m4/multiarch.m4: New file.
51252
51253 2008-12-25  Bruno Haible  <bruno@clisp.org>
51254
51255         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51256
51257 2008-12-25  Bruno Haible  <bruno@clisp.org>
51258
51259         * modules/btowc (License): Relicense under LGPLv2+.
51260         * modules/mbsinit (License): Likewise.
51261         * modules/mbrtowc (License): Likewise.
51262         * modules/wcrtomb (License): Likewise.
51263         * modules/streq (License): Likewise.
51264         Reported by David Lutterkort <lutter@redhat.com>.
51265
51266 2008-12-23  Bruno Haible  <bruno@clisp.org>
51267
51268         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51269
51270 2008-12-23  Bruno Haible  <bruno@clisp.org>
51271
51272         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51273         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51274         GETADDRINFO_LIB, not in LIBS.
51275         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51276         * modules/canon-host (Link): Likewise.
51277         * NEWS: Mention the change.
51278         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51279         GETADDRINFO_LIB.
51280
51281 2008-12-22  Bruno Haible  <bruno@clisp.org>
51282
51283         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51284         * doc/posix-functions/iswalpha_l.texi: Likewise.
51285         * doc/posix-functions/iswblank_l.texi: Likewise.
51286         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51287         * doc/posix-functions/iswctype_l.texi: Likewise.
51288         * doc/posix-functions/iswdigit_l.texi: Likewise.
51289         * doc/posix-functions/iswgraph_l.texi: Likewise.
51290         * doc/posix-functions/iswlower_l.texi: Likewise.
51291         * doc/posix-functions/iswprint_l.texi: Likewise.
51292         * doc/posix-functions/iswpunct_l.texi: Likewise.
51293         * doc/posix-functions/iswspace_l.texi: Likewise.
51294         * doc/posix-functions/iswupper_l.texi: Likewise.
51295         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51296         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51297         * doc/posix-functions/open_wmemstream.texi: Likewise.
51298         * doc/posix-functions/swscanf.texi: Likewise.
51299         * doc/posix-functions/towctrans_l.texi: Likewise.
51300         * doc/posix-functions/towlower.texi: Likewise.
51301         * doc/posix-functions/towlower_l.texi: Likewise.
51302         * doc/posix-functions/towupper.texi: Likewise.
51303         * doc/posix-functions/towupper_l.texi: Likewise.
51304         * doc/posix-functions/vfwprintf.texi: Likewise.
51305         * doc/posix-functions/vfwscanf.texi: Likewise.
51306         * doc/posix-functions/vswscanf.texi: Likewise.
51307         * doc/posix-functions/vwprintf.texi: Likewise.
51308         * doc/posix-functions/vwscanf.texi: Likewise.
51309         * doc/posix-functions/wcpcpy.texi: Likewise.
51310         * doc/posix-functions/wcpncpy.texi: Likewise.
51311         * doc/posix-functions/wcscasecmp.texi: Likewise.
51312         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51313         * doc/posix-functions/wcscoll_l.texi: Likewise.
51314         * doc/posix-functions/wcsdup.texi: Likewise.
51315         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51316         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51317         * doc/posix-functions/wcsnlen.texi: Likewise.
51318         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51319         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51320         * doc/posix-functions/wctrans_l.texi: Likewise.
51321         * doc/posix-functions/wctype_l.texi: Likewise.
51322         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51323         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51324         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51325         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51326         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51327         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51328         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51329         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51330         * doc/glibc-functions/wcschrnul.texi: Likewise.
51331         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51332         * doc/glibc-functions/wcstod_l.texi: Likewise.
51333         * doc/glibc-functions/wcstof_l.texi: Likewise.
51334         * doc/glibc-functions/wcstol_l.texi: Likewise.
51335         * doc/glibc-functions/wcstold_l.texi: Likewise.
51336         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51337         * doc/glibc-functions/wcstoq.texi: Likewise.
51338         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51339         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51340         * doc/glibc-functions/wcstouq.texi: Likewise.
51341         * doc/glibc-functions/wmempcpy.texi: Likewise.
51342
51343 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51344             Eric Blake  <ebb9@byu.net>
51345             Paolo Bonzini  <bonzini@gnu.org>
51346             Bruno Haible  <bruno@clisp.org>
51347
51348         Make c-stack work on Haiku.
51349         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51350         (c_stack_action): Use SA_ONSTACK flag.
51351
51352 2008-12-22  Bruno Haible  <bruno@clisp.org>
51353
51354         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51355
51356 2008-12-22  Bruno Haible  <bruno@clisp.org>
51357
51358         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51359         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51360         being overridden.
51361         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51362         New macros.
51363         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51365         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51366         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51367
51368 2008-12-22  Bruno Haible  <bruno@clisp.org>
51369
51370         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51371         from test code.
51372
51373 2008-12-22  Eric Blake  <ebb9@byu.net>
51374
51375         Avoid gcc warnings on cygwin.
51376         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51377         Avoid unused variable.
51378         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51379         Likewise.
51380
51381 2008-12-22  Bruno Haible  <bruno@clisp.org>
51382
51383         Remove HAVE_MBRTOWC conditionals.
51384         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51385         (mbscasecmp): Assume mbrtowc function.
51386         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51387         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51388         * lib/mbschr.c: Include mbuiter.h unconditionally.
51389         (mbschr): Assume mbrtowc function.
51390         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51391         (mbscspn): Assume mbrtowc function.
51392         * lib/mbslen.c: Include mbuiter.h unconditionally.
51393         (mbslen): Assume mbrtowc function.
51394         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51395         (mbsncasecmp): Assume mbrtowc function.
51396         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51397         (mbsnlen): Assume mbrtowc function.
51398         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51399         (mbspbrk): Assume mbrtowc function.
51400         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51401         (mbspcasecmp): Assume mbrtowc function.
51402         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51403         (mbsrchr): Assume mbrtowc function.
51404         * lib/mbssep.c: Include mbuiter.h unconditionally.
51405         (mbssep): Assume mbrtowc function.
51406         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51407         (mbsspn): Assume mbrtowc function.
51408         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51409         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51410         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51411         (mbstok_r): Assume mbrtowc function.
51412         * lib/propername.c: Include mbuiter.h unconditionally.
51413         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51414         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51415         (trim2): Assume mbrtowc function.
51416         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51417         (mbsnwidth): Assume mbrtowc function.
51418         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51419         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51420         fallback definitions.
51421         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51422
51423 2008-12-22  Bruno Haible  <bruno@clisp.org>
51424
51425         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51426
51427 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51428
51429         * modules/regex: Request emulations for the mb*/wc* functions we need.
51430         * m4/regex.m4: Don't look for those functions here.
51431         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51432
51433 2008-12-22  Bruno Haible  <bruno@clisp.org>
51434
51435         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51436
51437 2008-12-21  Bruno Haible  <bruno@clisp.org>
51438
51439         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51440         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51441         (Include): Remove conditionalization.
51442         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51443         (Include): Remove conditionalization.
51444         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51445         (Include): Remove conditionalization.
51446         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51447         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51448         * NEWS: Mention the change.
51449         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51450         via Sergey Poznyakoff <gray@gnu.org.ua>.
51451
51452 2008-12-21  Bruno Haible  <bruno@clisp.org>
51453
51454         * MODULES.html.sh (Extended multibyte and wide character utilities
51455         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51456         wcrtomb, wcsrtombs.
51457         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51458         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51459         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51460         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51461
51462 2008-12-21  Bruno Haible  <bruno@clisp.org>
51463
51464         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51465
51466 2008-12-21  Bruno Haible  <bruno@clisp.org>
51467
51468         * modules/wcsnrtombs-tests: New file.
51469         * tests/test-wcsnrtombs1.sh: New file.
51470         * tests/test-wcsnrtombs2.sh: New file.
51471         * tests/test-wcsnrtombs3.sh: New file.
51472         * tests/test-wcsnrtombs4.sh: New file.
51473         * tests/test-wcsnrtombs.c: New file.
51474
51475         New module 'wcsnrtombs'.
51476         * lib/wchar.in.h (wcsnrtombs): New declaration.
51477         * lib/wcsnrtombs.c: New file.
51478         * lib/wcsrtombs-state.c: New file.
51479         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51480         (internal_state): Remove variable.
51481         * m4/wcsnrtombs.m4: New file.
51482         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51483         compilation units.
51484         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51485         HAVE_WCSNRTOMBS.
51486         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51487         HAVE_WCSNRTOMBS.
51488         * modules/wcsnrtombs: New file.
51489         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51490         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51491
51492 2008-12-21  Bruno Haible  <bruno@clisp.org>
51493
51494         * modules/wcsrtombs-tests: New file.
51495         * tests/test-wcsrtombs1.sh: New file.
51496         * tests/test-wcsrtombs2.sh: New file.
51497         * tests/test-wcsrtombs3.sh: New file.
51498         * tests/test-wcsrtombs4.sh: New file.
51499         * tests/test-wcsrtombs.c: New file.
51500
51501         New module 'wcsrtombs'.
51502         * lib/wchar.in.h (wcsrtombs): New declaration.
51503         * lib/wcsrtombs.c: New file.
51504         * m4/wcsrtombs.m4: New file.
51505         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51506         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51507         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51508         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51509         * modules/wcsrtombs: New file.
51510         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51511         bugs.
51512
51513 2008-12-21  Bruno Haible  <bruno@clisp.org>
51514
51515         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51516         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51517         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51518         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51519         if not correct.
51520         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51521         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51522         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51523         m4/locale-zh.m4, m4/codeset.m4.
51524         * doc/posix-functions/wcrtomb.texi: Document the bug.
51525
51526 2008-12-21  Bruno Haible  <bruno@clisp.org>
51527
51528         Work around a btowc() bug on IRIX 6.5.
51529         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51530         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51531         REPLACE_WTOBC if not.
51532         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51533         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51534         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51535
51536 2008-12-21  Bruno Haible  <bruno@clisp.org>
51537
51538         * modules/wcrtomb-tests: New file.
51539         * tests/test-wcrtomb.sh: New file.
51540         * tests/test-wcrtomb.c: New file.
51541
51542         New module 'wcrtomb'.
51543         * lib/wchar.in.h (wcrtomb): New declaration.
51544         * lib/wcrtomb.c: New file.
51545         * m4/wcrtomb.m4: New file.
51546         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51547         HAVE_WCRTOMB.
51548         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51549         HAVE_WCRTOMB.
51550         * modules/wcrtomb: New file.
51551         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51552
51553 2008-12-21  Bruno Haible  <bruno@clisp.org>
51554
51555         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51556         * modules/mbsrtowcs (Files): Likewise.
51557         * modules/wctob (Files): Likewise.
51558         * modules/c-strcase-tests (Files): Likewise.
51559         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51560         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51561         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51562         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51563         * modules/vasnprintf-posix-tests (Files): Likewise.
51564
51565 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51566
51567         gitlog-to-changelog: pass all command-line arguments to git-log
51568         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51569         it is sometimes convenient to filter the commits in various ways.
51570         gitlog-to-changelog only allows --since to specify a start date,
51571         but git-log itself supports many other filtering mechanisms.
51572         At the moment, I want to filter by branch name.  Rather than
51573         adding a --branch option to gitlog-to-changelog, it seems more
51574         flexible to simply pass all options directly to git-log and let
51575         git do the work.  Notice that this effectively makes --since a
51576         redundant option for gitlog-to-changelog, but removing it would
51577         require current usage to change since calls would then require
51578         an additional '--'.
51579
51580 2008-12-21  Bruno Haible  <bruno@clisp.org>
51581
51582         * modules/mbsnrtowcs-tests: New file.
51583         * tests/test-mbsnrtowcs1.sh: New file.
51584         * tests/test-mbsnrtowcs2.sh: New file.
51585         * tests/test-mbsnrtowcs3.sh: New file.
51586         * tests/test-mbsnrtowcs4.sh: New file.
51587         * tests/test-mbsnrtowcs.c: New file.
51588
51589         New module 'mbsnrtowcs'.
51590         * lib/wchar.in.h (mbsnrtowcs): New declaration.
51591         * lib/mbsnrtowcs.c: New file.
51592         * lib/mbsrtowcs-state.c: New file.
51593         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
51594         (internal_state): Remove variable.
51595         * m4/mbsnrtowcs.m4: New file.
51596         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
51597         compilation units.
51598         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
51599         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51600         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
51601         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51602         * modules/mbsnrtowcs: New file.
51603         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
51604         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
51605         portability problem.
51606
51607 2008-12-21  Bruno Haible  <bruno@clisp.org>
51608
51609         Work around mbsrtowcs bug.
51610         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
51611         (gl_FUNC_MBSRTOWCS): Invoke it.
51612         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51613         m4/locale-zh.m4.
51614         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
51615
51616 2008-12-21  Bruno Haible  <bruno@clisp.org>
51617
51618         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
51619
51620 2008-12-21  Bruno Haible  <bruno@clisp.org>
51621
51622         Update doc for AIX.
51623         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
51624         16-bit wchar_t type.
51625         * doc/posix-functions/btowc.texi: Likewise.
51626         * doc/posix-functions/fgetwc.texi: Likewise.
51627         * doc/posix-functions/fgetws.texi: Likewise.
51628         * doc/posix-functions/fputwc.texi: Likewise.
51629         * doc/posix-functions/fputws.texi: Likewise.
51630         * doc/posix-functions/fwide.texi: Likewise.
51631         * doc/posix-functions/fwprintf.texi: Likewise.
51632         * doc/posix-functions/fwscanf.texi: Likewise.
51633         * doc/posix-functions/getwchar.texi: Likewise.
51634         * doc/posix-functions/getwc.texi: Likewise.
51635         * doc/posix-functions/iswalnum.texi: Likewise.
51636         * doc/posix-functions/iswalpha.texi: Likewise.
51637         * doc/posix-functions/iswblank.texi: Likewise.
51638         * doc/posix-functions/iswcntrl.texi: Likewise.
51639         * doc/posix-functions/iswctype.texi: Likewise.
51640         * doc/posix-functions/iswdigit.texi: Likewise.
51641         * doc/posix-functions/iswgraph.texi: Likewise.
51642         * doc/posix-functions/iswlower.texi: Likewise.
51643         * doc/posix-functions/iswprint.texi: Likewise.
51644         * doc/posix-functions/iswpunct.texi: Likewise.
51645         * doc/posix-functions/iswspace.texi: Likewise.
51646         * doc/posix-functions/iswupper.texi: Likewise.
51647         * doc/posix-functions/iswxdigit.texi: Likewise.
51648         * doc/posix-functions/mbrtowc.texi: Likewise.
51649         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51650         * doc/posix-functions/mbstowcs.texi: Likewise.
51651         * doc/posix-functions/mbtowc.texi: Likewise.
51652         * doc/posix-functions/putwchar.texi: Likewise.
51653         * doc/posix-functions/putwc.texi: Likewise.
51654         * doc/posix-functions/swprintf.texi: Likewise.
51655         * doc/posix-functions/tolower.texi: Likewise.
51656         * doc/posix-functions/toupper.texi: Likewise.
51657         * doc/posix-functions/towctrans.texi: Likewise.
51658         * doc/posix-functions/ungetwc.texi: Likewise.
51659         * doc/posix-functions/vswprintf.texi: Likewise.
51660         * doc/posix-functions/wcrtomb.texi: Likewise.
51661         * doc/posix-functions/wcscat.texi: Likewise.
51662         * doc/posix-functions/wcschr.texi: Likewise.
51663         * doc/posix-functions/wcscmp.texi: Likewise.
51664         * doc/posix-functions/wcscoll.texi: Likewise.
51665         * doc/posix-functions/wcscpy.texi: Likewise.
51666         * doc/posix-functions/wcscspn.texi: Likewise.
51667         * doc/posix-functions/wcsftime.texi: Likewise.
51668         * doc/posix-functions/wcslen.texi: Likewise.
51669         * doc/posix-functions/wcsncat.texi: Likewise.
51670         * doc/posix-functions/wcsncmp.texi: Likewise.
51671         * doc/posix-functions/wcsncpy.texi: Likewise.
51672         * doc/posix-functions/wcspbrk.texi: Likewise.
51673         * doc/posix-functions/wcsrchr.texi: Likewise.
51674         * doc/posix-functions/wcsrtombs.texi: Likewise.
51675         * doc/posix-functions/wcsspn.texi: Likewise.
51676         * doc/posix-functions/wcsstr.texi: Likewise.
51677         * doc/posix-functions/wcstod.texi: Likewise.
51678         * doc/posix-functions/wcstof.texi: Likewise.
51679         * doc/posix-functions/wcstoimax.texi: Likewise.
51680         * doc/posix-functions/wcstok.texi: Likewise.
51681         * doc/posix-functions/wcstold.texi: Likewise.
51682         * doc/posix-functions/wcstoll.texi: Likewise.
51683         * doc/posix-functions/wcstol.texi: Likewise.
51684         * doc/posix-functions/wcstombs.texi: Likewise.
51685         * doc/posix-functions/wcstoull.texi: Likewise.
51686         * doc/posix-functions/wcstoul.texi: Likewise.
51687         * doc/posix-functions/wcstoumax.texi: Likewise.
51688         * doc/posix-functions/wcswidth.texi: Likewise.
51689         * doc/posix-functions/wcsxfrm.texi: Likewise.
51690         * doc/posix-functions/wctob.texi: Likewise.
51691         * doc/posix-functions/wctomb.texi: Likewise.
51692         * doc/posix-functions/wctrans.texi: Likewise.
51693         * doc/posix-functions/wctype.texi: Likewise.
51694         * doc/posix-functions/wcwidth.texi: Likewise.
51695         * doc/posix-functions/wmemchr.texi: Likewise.
51696         * doc/posix-functions/wmemcmp.texi: Likewise.
51697         * doc/posix-functions/wmemcpy.texi: Likewise.
51698         * doc/posix-functions/wmemmove.texi: Likewise.
51699         * doc/posix-functions/wmemset.texi: Likewise.
51700         * doc/posix-functions/wprintf.texi: Likewise.
51701         * doc/posix-functions/wscanf.texi: Likewise.
51702
51703 2008-12-21  Bruno Haible  <bruno@clisp.org>
51704
51705         Update doc for HP-UX 11.11.
51706         * doc/posix-functions/btowc.texi: Clarify that the function is missing
51707         in HP-UX version 11.00, not in all versions of HP-UX 11.
51708         * doc/posix-functions/fwide.texi: Likewise.
51709         * doc/posix-functions/fwprintf.texi: Likewise.
51710         * doc/posix-functions/fwscanf.texi: Likewise.
51711         * doc/posix-functions/inet_ntop.texi: Likewise.
51712         * doc/posix-functions/inet_pton.texi: Likewise.
51713         * doc/posix-functions/mbrlen.texi: Likewise.
51714         * doc/posix-functions/mbrtowc.texi: Likewise.
51715         * doc/posix-functions/mbsinit.texi: Likewise.
51716         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51717         * doc/posix-functions/swprintf.texi: Likewise.
51718         * doc/posix-functions/swscanf.texi: Likewise.
51719         * doc/posix-functions/towctrans.texi: Likewise.
51720         * doc/posix-functions/vfwprintf.texi: Likewise.
51721         * doc/posix-functions/vswprintf.texi: Likewise.
51722         * doc/posix-functions/vwprintf.texi: Likewise.
51723         * doc/posix-functions/wcrtomb.texi: Likewise.
51724         * doc/posix-functions/wcsrtombs.texi: Likewise.
51725         * doc/posix-functions/wcsstr.texi: Likewise.
51726         * doc/posix-functions/wctob.texi: Likewise.
51727         * doc/posix-functions/wctrans.texi: Likewise.
51728         * doc/posix-functions/wmemchr.texi: Likewise.
51729         * doc/posix-functions/wmemcmp.texi: Likewise.
51730         * doc/posix-functions/wmemcpy.texi: Likewise.
51731         * doc/posix-functions/wmemmove.texi: Likewise.
51732         * doc/posix-functions/wmemset.texi: Likewise.
51733         * doc/posix-functions/wprintf.texi: Likewise.
51734         * doc/posix-functions/wscanf.texi: Likewise.
51735
51736 2008-12-21  Bruno Haible  <bruno@clisp.org>
51737
51738         Work around a portability problem.
51739         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
51740         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
51741
51742 2008-12-20  Bruno Haible  <bruno@clisp.org>
51743
51744         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
51745         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
51746         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
51747         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
51748         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
51749
51750         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
51751         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
51752         set.
51753         (GNULIB_defined_mbstate_t): New macro.
51754         (mbsinit): Redefine if REPLACE_MBSINIT is set.
51755         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
51756         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
51757         reuses the system's mbrtowc function but works around the bugs.
51758         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
51759         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
51760         macros.
51761         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
51762         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
51763         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
51764         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
51765         REPLACE_MBSINIT if mbsinit needs to be overridden.
51766         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
51767         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51768         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
51769         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51770         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51771         m4/locale-zh.m4.
51772         (Depends): Add mbsinit.
51773         * modules/mbsinit (Depends): Add mbrtowc.
51774         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
51775
51776 2008-12-20  Bruno Haible  <bruno@clisp.org>
51777
51778         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
51779         so that there are no conversion errors on AIX.
51780         * tests/test-mbsrtowcs.c (main): LIkewise.
51781
51782 2008-12-20  Bruno Haible  <bruno@clisp.org>
51783
51784         Work around wctob bug on Solaris <= 9.
51785         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
51786         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
51787         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
51788         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
51789         * modules/wctob (Files): Add m4/locale-fr.m4.
51790         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
51791
51792 2008-12-20  Bruno Haible  <bruno@clisp.org>
51793
51794         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
51795         /dev/null.
51796         * tests/test-select-in.sh: Likewise.
51797         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51798
51799 2008-12-20  Bruno Haible  <bruno@clisp.org>
51800
51801         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
51802         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
51803         Cygwin 1.5.x.
51804
51805 2008-12-20  Bruno Haible  <bruno@clisp.org>
51806
51807         Ensure mbstate_t is defined on HP-UX 11.11.
51808         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
51809         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
51810         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
51811         AC_USE_SYSTEM_EXTENSIONS.
51812         * modules/fnmatch (Depends-on): Add extensions.
51813         * modules/mbrlen (Depends-on): Likewise.
51814         * modules/mbrtowc (Depends-on): Likewise.
51815         * modules/mbsinit (Depends-on): Likewise.
51816         * modules/mbsrtowcs (Depends-on): Likewise.
51817         * modules/mbswidth (Depends-on): Likewise.
51818         * modules/quotearg (Depends-on): Likewise.
51819         * modules/strftime (Depends-on): Likewise.
51820
51821 2008-12-20  Bruno Haible  <bruno@clisp.org>
51822
51823         Ensure wctob is declared on IRIX 6.5.
51824         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
51825         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
51826         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
51827         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
51828         of HAVE_WCTOB.
51829         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
51830         HAVE_WCTOB.
51831         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
51832
51833 2008-12-19  Bruno Haible  <bruno@clisp.org>
51834
51835         * modules/mbsrtowcs-tests: New file.
51836         * tests/test-mbsrtowcs1.sh: New file.
51837         * tests/test-mbsrtowcs2.sh: New file.
51838         * tests/test-mbsrtowcs3.sh: New file.
51839         * tests/test-mbsrtowcs4.sh: New file.
51840         * tests/test-mbsrtowcs.c: New file.
51841
51842         New module 'mbsrtowcs'.
51843         * lib/wchar.in.h (mbsrtowcs): New declaration.
51844         * lib/mbsrtowcs.c: New file.
51845         * m4/mbsrtowcs.m4: New file.
51846         * modules/mbsrtowcs: New file.
51847         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
51848         HAVE_MBSRTOWCS.
51849         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
51850         HAVE_MBSRTOWCS.
51851         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
51852
51853 2008-12-19  Bruno Haible  <bruno@clisp.org>
51854
51855         New module 'mbrlen'.
51856         * lib/wchar.in.h (mbrlen): New declaration.
51857         * lib/mbrlen.c: New file.
51858         * m4/mbrlen.m4: New file.
51859         * modules/mbrlen: New file.
51860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
51861         HAVE_MBRLEN.
51862         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
51863         HAVE_MBRLEN.
51864         * doc/posix-functions/mbrlen.texi: Document the new module.
51865
51866 2008-12-19  Bruno Haible  <bruno@clisp.org>
51867
51868         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
51869         * modules/mbrtowc (Depends-on): Add verify.
51870         Suggested by Paul Eggert.
51871
51872 2008-12-18  Bruno Haible  <bruno@clisp.org>
51873
51874         * modules/mbsinit-tests: New file.
51875         * tests/test-mbsinit.sh: New file.
51876         * tests/test-mbsinit.c: New file.
51877
51878 2008-12-18  Bruno Haible  <bruno@clisp.org>
51879
51880         * modules/mbrtowc-tests: New file.
51881         * tests/test-mbrtowc1.sh: New file.
51882         * tests/test-mbrtowc2.sh: New file.
51883         * tests/test-mbrtowc3.sh: New file.
51884         * tests/test-mbrtowc4.sh: New file.
51885         * tests/test-mbrtowc.c: New file.
51886
51887         New module 'mbrtowc'.
51888         * lib/wchar.in.h (mbstate_t): Override when the system does not have
51889         mbsinit and mbrtowc.
51890         (mbrtowc): New declaration.
51891         * lib/mbrtowc.c: New file.
51892         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
51893         * modules/mbrtowc: New file.
51894         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
51895         HAVE_MBRTOWC.
51896         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
51897         HAVE_MBRTOWC.
51898         * doc/posix-functions/mbrtowc.texi: Document the new module.
51899
51900 2008-12-18  Bruno Haible  <bruno@clisp.org>
51901
51902         New module 'wctob'.
51903         * lib/wchar.in.h (wctob): New declaration.
51904         * lib/wctob.c: New file.
51905         * m4/wctob.m4: New file.
51906         * modules/wctob: New file.
51907         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
51908         HAVE_WCTOB.
51909         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
51910         * doc/posix-functions/wctob.texi: Document the new module.
51911
51912 2008-12-18  Bruno Haible  <bruno@clisp.org>
51913
51914         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
51915         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
51916
51917 2008-12-18  Simon Josefsson  <simon@josefsson.org>
51918
51919         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
51920         G. Christensen" <tgc@jupiterrise.com>.
51921
51922         * lib/flock.c: Need to include errno.h.  Reported by "Tom
51923         G. Christensen" <tgc@jupiterrise.com>.
51924
51925         * lib/flock.c: Need to include string.h.  Reported by "Tom
51926         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
51927         <ebb9@byu.net>.
51928
51929 2008-12-18  Bruno Haible  <bruno@clisp.org>
51930
51931         * m4/locale-ja.m4: New file, from GNU gettext.
51932
51933 2008-12-17  Bruno Haible  <bruno@clisp.org>
51934
51935         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
51936         Suggested by Eric Blake.
51937
51938 2008-12-17  Bruno Haible  <bruno@clisp.org>
51939
51940         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
51941
51942 2008-12-17  Bruno Haible  <bruno@clisp.org>
51943
51944         * lib/mbsinit.c: Include verify.h. Verify an assumption.
51945         * modules/mbsinit (Depends-on): Add verify.
51946         Suggested by Paul Eggert.
51947
51948 2008-12-17  Bruno Haible  <bruno@clisp.org>
51949
51950         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
51951         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
51952         gl_FUNC_MBRTOWC.
51953         * m4/mbiter.m4 (gl_MBITER): LIkewise.
51954         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
51955         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
51956         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
51957         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
51958         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
51959         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
51960         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
51961         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
51962         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
51963         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
51964         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
51965         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
51966         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
51967         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
51968         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51969         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
51970         * modules/trim (configure.ac): Likewise.
51971
51972 2008-12-17  Bruno Haible  <bruno@clisp.org>
51973
51974         * modules/btowc-tests: New file.
51975         * tests/test-btowc1.sh: New file.
51976         * tests/test-btowc2.sh: New file.
51977         * tests/test-btowc.c: New file.
51978
51979         New module 'btowc'.
51980         * lib/wchar.in.h (btowc): New declaration.
51981         * lib/btowc.c: New file.
51982         * m4/btowc.m4: New file.
51983         * modules/btowc: New file.
51984         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
51985         HAVE_BTOWC.
51986         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
51987         * doc/posix-functions/btowc.texi: Document the new module.
51988
51989 2008-12-17  Bruno Haible  <bruno@clisp.org>
51990
51991         New module 'mbsinit'.
51992         * lib/wchar.in.h (mbsinit): New declaration.
51993         * lib/mbsinit.c: New file.
51994         * m4/mbsinit.m4: New file.
51995         * modules/mbsinit: New file.
51996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
51997         HAVE_MBSINIT.
51998         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
51999         HAVE_MBSINIT.
52000         * doc/posix-functions/mbsinit.texi: Document the new module.
52001
52002 2008-12-16  Bruno Haible  <bruno@clisp.org>
52003
52004         * lib/unistd.in.h: Add comment.
52005         * tests/test-environ.c: Don't include <stdlib.h>.
52006
52007 2008-12-16  Bruno Haible  <bruno@clisp.org>
52008
52009         * lib/parse-duration.h (parse_duration): Document return value
52010         convention.
52011         * lib/parse-duration.c: Include specification header first. Add
52012         comments.
52013         (_): Remove macro.
52014         (parse_year_month_day, parse_hour_minute_second): Move side effects
52015         outside of strchr call.
52016         (parse_non_iso8601): Move side effects outside of isspace call.
52017         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52018         call.
52019
52020 2008-12-16  Bruno Haible  <bruno@clisp.org>
52021
52022         * tests/test-parse-duration.sh: Produce no output when the test
52023         succeeds.
52024
52025 2008-12-16  Bruno Haible  <bruno@clisp.org>
52026
52027         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52028         expressions.
52029
52030 2008-12-15  Bruno Haible  <bruno@clisp.org>
52031
52032         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52033         * doc/glibc-functions/flistxattr.texi: Likewise.
52034         * doc/glibc-functions/fopencookie.texi: Likewise.
52035         * doc/glibc-functions/fremovexattr.texi: Likewise.
52036         * doc/glibc-functions/fsetxattr.texi: Likewise.
52037         * doc/glibc-functions/getxattr.texi: Likewise.
52038         * doc/glibc-functions/lgetxattr.texi: Likewise.
52039         * doc/glibc-functions/listxattr.texi: Likewise.
52040         * doc/glibc-functions/llistxattr.texi: Likewise.
52041         * doc/glibc-functions/lremovexattr.texi: Likewise.
52042         * doc/glibc-functions/lsetxattr.texi: Likewise.
52043         * doc/glibc-functions/removexattr.texi: Likewise.
52044         * doc/glibc-functions/setxattr.texi: Likewise.
52045         * doc/posix-functions/open_memstream.texi: Likewise.
52046
52047 2008-12-15  Eric Blake  <ebb9@byu.net>
52048
52049         Update doc for cygwin 1.7.
52050         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52051         functions.
52052         * doc/posix-functions/fchmodat.texi: Likewise.
52053         * doc/posix-functions/fchownat.texi: Likewise.
52054         * doc/posix-functions/fdopendir.texi: Likewise.
52055         * doc/posix-functions/fmemopen.texi: Likewise.
52056         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52057         * doc/posix-functions/fstatat.texi: Likewise.
52058         * doc/posix-functions/futimens.texi: Likewise.
52059         * doc/posix-functions/gai_strerror.texi: Likewise.
52060         * doc/posix-functions/getaddrinfo.texi: Likewise.
52061         * doc/posix-functions/getnameinfo.texi: Likewise.
52062         * doc/posix-functions/if_freenameindex.texi: Likewise.
52063         * doc/posix-functions/if_indextoname.texi: Likewise.
52064         * doc/posix-functions/if_nameindex.texi: Likewise.
52065         * doc/posix-functions/if_nametoindex.texi: Likewise.
52066         * doc/posix-functions/insque.texi: Likewise.
52067         * doc/posix-functions/linkat.texi: Likewise.
52068         * doc/posix-functions/llrint.texi: Likewise.
52069         * doc/posix-functions/llrintf.texi: Likewise.
52070         * doc/posix-functions/llrintl.texi: Likewise.
52071         * doc/posix-functions/lockf.texi: Likewise.
52072         * doc/posix-functions/lrintl.texi: Likewise.
52073         * doc/posix-functions/mkdirat.texi: Likewise.
52074         * doc/posix-functions/mkfifoat.texi: Likewise.
52075         * doc/posix-functions/mknodat.texi: Likewise.
52076         * doc/posix-functions/mq_close.texi: Likewise.
52077         * doc/posix-functions/mq_getattr.texi: Likewise.
52078         * doc/posix-functions/mq_notify.texi: Likewise.
52079         * doc/posix-functions/mq_open.texi: Likewise.
52080         * doc/posix-functions/mq_receive.texi: Likewise.
52081         * doc/posix-functions/mq_send.texi: Likewise.
52082         * doc/posix-functions/mq_setattr.texi: Likewise.
52083         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52084         * doc/posix-functions/mq_timedsend.texi: Likewise.
52085         * doc/posix-functions/mq_unlink.texi: Likewise.
52086         * doc/posix-functions/open_memstream.texi: Likewise.
52087         * doc/posix-functions/openat.texi: Likewise.
52088         * doc/posix-functions/posix_fadvise.texi: Likewise.
52089         * doc/posix-functions/posix_fallocate.texi: Likewise.
52090         * doc/posix-functions/posix_madvise.texi: Likewise.
52091         * doc/posix-functions/posix_memalign.texi: Likewise.
52092         * doc/posix-functions/posix_openpt.texi: Likewise.
52093         * doc/posix-functions/readlinkat.texi: Likewise.
52094         * doc/posix-functions/remque.texi: Likewise.
52095         * doc/posix-functions/renameat.texi: Likewise.
52096         * doc/posix-functions/rintl.texi: Likewise.
52097         * doc/posix-functions/sem_unlink.texi: Likewise.
52098         * doc/posix-functions/shm_open.texi: Likewise.
52099         * doc/posix-functions/shm_unlink.texi: Likewise.
52100         * doc/posix-functions/signgam.texi: Likewise.
52101         * doc/posix-functions/sigset.texi: Likewise.
52102         * doc/posix-functions/stpcpy.texi: Likewise.
52103         * doc/posix-functions/stpncpy.texi: Likewise.
52104         * doc/posix-functions/strerror.texi: Likewise.
52105         * doc/posix-functions/strtod.texi: Likewise.
52106         * doc/posix-functions/symlinkat.texi: Likewise.
52107         * doc/posix-functions/unlinkat.texi: Likewise.
52108         * doc/posix-functions/utimensat.texi: Likewise.
52109         * doc/glibc-functions/bindresvport.texi: Likewise.
52110         * doc/glibc-functions/dn_expand.texi: Likewise.
52111         * doc/glibc-functions/exp10.texi: Likewise.
52112         * doc/glibc-functions/exp10f.texi: Likewise.
52113         * doc/glibc-functions/fgetxattr.texi: Likewise.
52114         * doc/glibc-functions/flistxattr.texi: Likewise.
52115         * doc/glibc-functions/fopencookie.texi: Likewise.
52116         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52117         * doc/glibc-functions/fremovexattr.texi: Likewise.
52118         * doc/glibc-functions/fsetxattr.texi: Likewise.
52119         * doc/glibc-functions/getifaddrs.texi: Likewise.
52120         * doc/glibc-functions/getxattr.texi: Likewise.
52121         * doc/glibc-functions/lgetxattr.texi: Likewise.
52122         * doc/glibc-functions/listxattr.texi: Likewise.
52123         * doc/glibc-functions/llistxattr.texi: Likewise.
52124         * doc/glibc-functions/lremovexattr.texi: Likewise.
52125         * doc/glibc-functions/lsetxattr.texi: Likewise.
52126         * doc/glibc-functions/pow10.texi: Likewise.
52127         * doc/glibc-functions/pow10f.texi: Likewise.
52128         * doc/glibc-functions/rcmd_af.texi: Likewise.
52129         * doc/glibc-functions/removexattr.texi: Likewise.
52130         * doc/glibc-functions/res_init.texi: Likewise.
52131         * doc/glibc-functions/res_mkquery.texi: Likewise.
52132         * doc/glibc-functions/res_query.texi: Likewise.
52133         * doc/glibc-functions/res_querydomain.texi: Likewise.
52134         * doc/glibc-functions/res_send.texi: Likewise.
52135         * doc/glibc-functions/rresvport_af.texi: Likewise.
52136         * doc/glibc-functions/setxattr.texi: Likewise.
52137         * doc/glibc-functions/strcasestr.texi: Likewise.
52138
52139 2008-12-15  Bruno Haible  <bruno@clisp.org>
52140
52141         Fix compilation error on OSF/1 4.0.
52142         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52143         <sys/time.h>, simply delegate to the system header.
52144         Reported by Daniel Richard G. <oss@teragram.com>.
52145
52146 2008-12-15  Bruno Haible  <bruno@clisp.org>
52147
52148         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52149         * doc/posix-functions/fchmodat.texi: Likewise.
52150         * doc/posix-functions/fchownat.texi: Likewise.
52151         * doc/posix-functions/fdopendir.texi: Likewise.
52152         * doc/posix-functions/fstatat.texi: Likewise.
52153         * doc/posix-functions/mkdirat.texi: Likewise.
52154         * doc/posix-functions/unlinkat.texi: Likewise.
52155
52156 2008-12-14  Bruno Haible  <bruno@clisp.org>
52157
52158         Update doc for POSIX:2008.
52159         * doc/posix-functions/faccessat.texi: New file.
52160         * doc/posix-functions/fchmodat.texi: New file.
52161         * doc/posix-functions/fchownat.texi: New file.
52162         * doc/posix-functions/fdopendir.texi: New file.
52163         * doc/posix-functions/fstatat.texi: New file.
52164         * doc/posix-functions/futimens.texi: New file.
52165         * doc/posix-functions/linkat.texi: New file.
52166         * doc/posix-functions/mkdirat.texi: New file.
52167         * doc/posix-functions/mkfifoat.texi: New file.
52168         * doc/posix-functions/mknodat.texi: New file.
52169         * doc/posix-functions/open_wmemstream.texi: New file.
52170         * doc/posix-functions/openat.texi: New file.
52171         * doc/posix-functions/psiginfo.texi: New file.
52172         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52173         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52174         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52175         * doc/posix-functions/readlinkat.texi: New file.
52176         * doc/posix-functions/renameat.texi: New file.
52177         * doc/posix-functions/strerror_l.texi: New file.
52178         * doc/posix-functions/symlinkat.texi: New file.
52179         * doc/posix-functions/unlinkat.texi: New file.
52180         * doc/posix-functions/utimensat.texi: New file.
52181         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52182
52183 2008-12-14  Bruno Haible  <bruno@clisp.org>
52184
52185         Update doc for POSIX:2008.
52186         * doc/posix-functions/alphasort.texi: Renamed from
52187         doc/glibc-functions/alphasort.texi.
52188         * doc/posix-functions/dirfd.texi: Renamed from
52189         doc/glibc-functions/dirfd.texi.
52190         * doc/posix-functions/dprintf.texi: Renamed from
52191         doc/glibc-functions/dprintf.texi.
52192         * doc/posix-functions/duplocale.texi: Renamed from
52193         doc/glibc-functions/duplocale.texi.
52194         * doc/posix-functions/fexecve.texi: Renamed from
52195         doc/glibc-functions/fexecve.texi.
52196         * doc/posix-functions/fmemopen.texi: Renamed from
52197         doc/glibc-functions/fmemopen.texi.
52198         * doc/posix-functions/freelocale.texi: Renamed from
52199         doc/glibc-functions/freelocale.texi.
52200         * doc/posix-functions/getdate_err.texi: Renamed from
52201         doc/glibc-functions/getdate_err.texi.
52202         * doc/posix-functions/isalnum_l.texi: Renamed from
52203         doc/glibc-functions/isalnum_l.texi.
52204         * doc/posix-functions/isalpha_l.texi: Renamed from
52205         doc/glibc-functions/isalpha_l.texi.
52206         * doc/posix-functions/isblank_l.texi: Renamed from
52207         doc/glibc-functions/isblank_l.texi.
52208         * doc/posix-functions/iscntrl_l.texi: Renamed from
52209         doc/glibc-functions/iscntrl_l.texi.
52210         * doc/posix-functions/isdigit_l.texi: Renamed from
52211         doc/glibc-functions/isdigit_l.texi.
52212         * doc/posix-functions/isgraph_l.texi: Renamed from
52213         doc/glibc-functions/isgraph_l.texi.
52214         * doc/posix-functions/islower_l.texi: Renamed from
52215         doc/glibc-functions/islower_l.texi.
52216         * doc/posix-functions/isprint_l.texi: Renamed from
52217         doc/glibc-functions/isprint_l.texi.
52218         * doc/posix-functions/ispunct_l.texi: Renamed from
52219         doc/glibc-functions/ispunct_l.texi.
52220         * doc/posix-functions/isspace_l.texi: Renamed from
52221         doc/glibc-functions/isspace_l.texi.
52222         * doc/posix-functions/isupper_l.texi: Renamed from
52223         doc/glibc-functions/isupper_l.texi.
52224         * doc/posix-functions/iswalnum_l.texi: Renamed from
52225         doc/glibc-functions/iswalnum_l.texi.
52226         * doc/posix-functions/iswalpha_l.texi: Renamed from
52227         doc/glibc-functions/iswalpha_l.texi.
52228         * doc/posix-functions/iswblank_l.texi: Renamed from
52229         doc/glibc-functions/iswblank_l.texi.
52230         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52231         doc/glibc-functions/iswcntrl_l.texi.
52232         * doc/posix-functions/iswctype_l.texi: Renamed from
52233         doc/glibc-functions/iswctype_l.texi.
52234         * doc/posix-functions/iswdigit_l.texi: Renamed from
52235         doc/glibc-functions/iswdigit_l.texi.
52236         * doc/posix-functions/iswgraph_l.texi: Renamed from
52237         doc/glibc-functions/iswgraph_l.texi.
52238         * doc/posix-functions/iswlower_l.texi: Renamed from
52239         doc/glibc-functions/iswlower_l.texi.
52240         * doc/posix-functions/iswprint_l.texi: Renamed from
52241         doc/glibc-functions/iswprint_l.texi.
52242         * doc/posix-functions/iswpunct_l.texi: Renamed from
52243         doc/glibc-functions/iswpunct_l.texi.
52244         * doc/posix-functions/iswspace_l.texi: Renamed from
52245         doc/glibc-functions/iswspace_l.texi.
52246         * doc/posix-functions/iswupper_l.texi: Renamed from
52247         doc/glibc-functions/iswupper_l.texi.
52248         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52249         doc/glibc-functions/iswxdigit_l.texi.
52250         * doc/posix-functions/isxdigit_l.texi: Renamed from
52251         doc/glibc-functions/isxdigit_l.texi.
52252         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52253         doc/glibc-functions/mbsnrtowcs.texi.
52254         * doc/posix-functions/mkdtemp.texi: Renamed from
52255         doc/glibc-functions/mkdtemp.texi.
52256         * doc/posix-functions/newlocale.texi: Renamed from
52257         doc/glibc-functions/newlocale.texi.
52258         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52259         doc/glibc-functions/nl_langinfo_l.texi.
52260         * doc/posix-functions/open_memstream.texi: Renamed from
52261         doc/glibc-functions/open_memstream.texi.
52262         * doc/posix-functions/opterr.texi: Renamed from
52263         doc/glibc-functions/opterr.texi.
52264         * doc/posix-functions/optind.texi: Renamed from
52265         doc/glibc-functions/optind.texi.
52266         * doc/posix-functions/optopt.texi: Renamed from
52267         doc/glibc-functions/optopt.texi.
52268         * doc/posix-functions/psignal.texi: Renamed from
52269         doc/glibc-functions/psignal.texi.
52270         * doc/posix-functions/scandir.texi: Renamed from
52271         doc/glibc-functions/scandir.texi.
52272         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52273         doc/glibc-functions/sched_get_priority_min.texi.
52274         * doc/posix-functions/signgam.texi: Renamed from
52275         doc/glibc-functions/signgam.texi.
52276         * doc/posix-functions/stpcpy.texi: Renamed from
52277         doc/glibc-functions/stpcpy.texi.
52278         * doc/posix-functions/stpncpy.texi: Renamed from
52279         doc/glibc-functions/stpncpy.texi.
52280         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52281         doc/glibc-functions/strcasecmp_l.texi.
52282         * doc/posix-functions/strcoll_l.texi: Renamed from
52283         doc/glibc-functions/strcoll_l.texi.
52284         * doc/posix-functions/strfmon_l.texi: Renamed from
52285         doc/glibc-functions/strfmon_l.texi.
52286         * doc/posix-functions/strftime_l.texi: Renamed from
52287         doc/glibc-functions/strftime_l.texi.
52288         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52289         doc/glibc-functions/strncasecmp_l.texi.
52290         * doc/posix-functions/strndup.texi: Renamed from
52291         doc/glibc-functions/strndup.texi.
52292         * doc/posix-functions/strnlen.texi: Renamed from
52293         doc/glibc-functions/strnlen.texi.
52294         * doc/posix-functions/strsignal.texi: Renamed from
52295         doc/glibc-functions/strsignal.texi.
52296         * doc/posix-functions/strxfrm_l.texi: Renamed from
52297         doc/glibc-functions/strxfrm_l.texi.
52298         * doc/posix-functions/timer_gettime.texi: Renamed from
52299         doc/glibc-functions/timer_gettime.texi.
52300         * doc/posix-functions/tolower_l.texi: Renamed from
52301         doc/glibc-functions/tolower_l.texi.
52302         * doc/posix-functions/toupper_l.texi: Renamed from
52303         doc/glibc-functions/toupper_l.texi.
52304         * doc/posix-functions/towctrans_l.texi: Renamed from
52305         doc/glibc-functions/towctrans_l.texi.
52306         * doc/posix-functions/towlower_l.texi: Renamed from
52307         doc/glibc-functions/towlower_l.texi.
52308         * doc/posix-functions/towupper_l.texi: Renamed from
52309         doc/glibc-functions/towupper_l.texi.
52310         * doc/posix-functions/uselocale.texi: Renamed from
52311         doc/glibc-functions/uselocale.texi.
52312         * doc/posix-functions/vdprintf.texi: Renamed from
52313         doc/glibc-functions/vdprintf.texi.
52314         * doc/posix-functions/wcpcpy.texi:
52315         Renamed from doc/glibc-functions/wcpcpy.texi.
52316         * doc/posix-functions/wcpncpy.texi: Renamed from
52317         doc/glibc-functions/wcpncpy.texi.
52318         * doc/posix-functions/wcscasecmp.texi: Renamed from
52319         doc/glibc-functions/wcscasecmp.texi.
52320         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52321         doc/glibc-functions/wcscasecmp_l.texi.
52322         * doc/posix-functions/wcscoll_l.texi: Renamed from
52323         doc/glibc-functions/wcscoll_l.texi.
52324         * doc/posix-functions/wcsdup.texi: Renamed from
52325         doc/glibc-functions/wcsdup.texi.
52326         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52327         doc/glibc-functions/wcsncasecmp.texi.
52328         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52329         doc/glibc-functions/wcsncasecmp_l.texi.
52330         * doc/posix-functions/wcsnlen.texi: Renamed from
52331         doc/glibc-functions/wcsnlen.texi.
52332         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52333         doc/glibc-functions/wcsnrtombs.texi.
52334         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52335         doc/glibc-functions/wcsxfrm_l.texi.
52336         * doc/posix-functions/wctrans_l.texi: Renamed from
52337         doc/glibc-functions/wctrans_l.texi.
52338         * doc/posix-functions/wctype_l.texi: Renamed from
52339         doc/glibc-functions/wctype_l.texi.
52340         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52341         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52342         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52343         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52344         these subsections.
52345         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52346         Remove sections.
52347
52348 2008-12-14  Bruno Haible  <bruno@clisp.org>
52349
52350         Update doc for POSIX:2008.
52351         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52352
52353 2008-12-14  Bruno Haible  <bruno@clisp.org>
52354
52355         Update doc for POSIX:2008.
52356         * doc/pastposix-functions/bcmp.texi: Renamed from
52357         doc/posix-functions/bcmp.texi.
52358         * doc/pastposix-functions/bcopy.texi: Renamed from
52359         doc/posix-functions/bcopy.texi.
52360         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52361         doc/posix-functions/bsd_signal.texi.
52362         * doc/pastposix-functions/bzero.texi: Renamed from
52363         doc/posix-functions/bzero.texi.
52364         * doc/pastposix-functions/ecvt.texi: Renamed from
52365         doc/posix-functions/ecvt.texi.
52366         * doc/pastposix-functions/fcvt.texi: Renamed from
52367         doc/posix-functions/fcvt.texi.
52368         * doc/pastposix-functions/ftime.texi: Renamed from
52369         doc/posix-functions/ftime.texi.
52370         * doc/pastposix-functions/gcvt.texi: Renamed from
52371         doc/posix-functions/gcvt.texi.
52372         * doc/pastposix-functions/getcontext.texi: Renamed from
52373         doc/posix-functions/getcontext.texi.
52374         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52375         doc/posix-functions/gethostbyaddr.texi.
52376         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52377         doc/posix-functions/gethostbyname.texi.
52378         * doc/pastposix-functions/getwd.texi: Renamed from
52379         doc/posix-functions/getwd.texi.
52380         * doc/pastposix-functions/h_errno.texi: Renamed from
52381         doc/posix-functions/h_errno.texi.
52382         * doc/pastposix-functions/index.texi: Renamed from
52383         doc/posix-functions/index.texi.
52384         * doc/pastposix-functions/makecontext.texi: Renamed from
52385         doc/posix-functions/makecontext.texi.
52386         * doc/pastposix-functions/mktemp.texi: Renamed from
52387         doc/posix-functions/mktemp.texi.
52388         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52389         doc/posix-functions/pthread_attr_getstackaddr.texi.
52390         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52391         doc/posix-functions/pthread_attr_setstackaddr.texi.
52392         * doc/pastposix-functions/rindex.texi: Renamed from
52393         doc/posix-functions/rindex.texi.
52394         * doc/pastposix-functions/scalb.texi: Renamed from
52395         doc/posix-functions/scalb.texi.
52396         * doc/pastposix-functions/setcontext.texi: Renamed from
52397         doc/posix-functions/setcontext.texi.
52398         * doc/pastposix-functions/swapcontext.texi: Renamed from
52399         doc/posix-functions/swapcontext.texi.
52400         * doc/pastposix-functions/ualarm.texi: Renamed from
52401         doc/posix-functions/ualarm.texi.
52402         * doc/pastposix-functions/usleep.texi: Renamed from
52403         doc/posix-functions/usleep.texi.
52404         * doc/pastposix-functions/vfork.texi: Renamed from
52405         doc/posix-functions/vfork.texi.
52406         * doc/pastposix-functions/wcswcs.texi: Renamed from
52407         doc/posix-functions/wcswcs.texi.
52408         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52409         (Function Substitutes): Update.
52410
52411 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52412
52413         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52414         m4/strerror.m4.
52415
52416 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52417             Bruno Haible  <bruno@clisp.org>
52418
52419         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52420
52421 2008-12-13  Bruno Haible  <bruno@clisp.org>
52422
52423         * modules/strtoull (Depends-on): Remove unistd.
52424
52425 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52426
52427         * modules/strtoull (Depends-on): Add stdlib.
52428
52429 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52430
52431         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52432
52433 2008-12-10  Jim Meyering  <meyering@redhat.com>
52434
52435         gl_ASSERT: don't say assertions are disabled when they're not
52436         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52437         "checking whether to enable assertions... no", when they are in
52438         fact enabled.  This is solely a bug in the output of configure.
52439         In spite of saying "no", NDEBUG was not defined in that case.
52440         Also, as noted by Eric Blake, leave assertions enabled upon
52441         --enable-assert=INVALID.
52442
52443 2008-12-10  Bruno Haible  <bruno@clisp.org>
52444
52445         Change MODULES.html to refer to POSIX:2008 where possible.
52446         * MODULES.html.sh (POSIX2008_URL): New variable.
52447         (posix_headers): Remove sys/timeb, ucontext.
52448         (posix2001_headers): New variable.
52449         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52450         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52451         index, makecontext, mktemp, pthread_attr_getstackaddr,
52452         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52453         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52454         (posix2001_functions): New variable.
52455         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52456         otherwise.
52457
52458 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52459
52460         add missing include to parse-duration.c
52461         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52462         * modules/parse-duration (Depends-on): Add xalloc.
52463
52464         fix sed script reading maint.mk
52465         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52466         (syntax-check-rules): Use it.
52467
52468 2008-12-09  Bruno Haible  <bruno@clisp.org>
52469
52470         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52471         MacOS X 10.4/PowerPC.
52472         Reported by Simon Josefsson.
52473
52474 2008-12-08  Jim Meyering  <meyering@redhat.com>
52475
52476         work around mingw's lack of some S_IF definitions
52477         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52478         Reported by Simon Josefsson.
52479
52480 2008-12-08  Bruno Haible  <bruno@clisp.org>
52481
52482         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52483         applied to variables. Needed on MacOS X 10.4/PowerPC.
52484         Reported by Simon Josefsson.
52485
52486 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52487         and Eric Blake  <ebb9@byu.net>
52488
52489         assert: honor --enable-assert
52490         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52491         order to honor --enable-assert, rather than treating it as a
52492         synonym for --disable-assert.
52493
52494 2008-12-08  Jim Meyering  <meyering@redhat.com>
52495
52496         * lib/posixtm.c: Remove now-useless declaration of mktime.
52497
52498         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52499
52500 2008-12-07  Bruno Haible  <bruno@clisp.org>
52501
52502         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52503         test_once): Mark functions as static.
52504         * tests/test-tls.c (test_tls): Likewise.
52505
52506 2008-12-07  Bruno Haible  <bruno@clisp.org>
52507
52508         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52509         iconv_register_autodetect.
52510
52511 2008-12-07  Jim Meyering  <meyering@redhat.com>
52512
52513         posixtm.c: avoid a warning
52514         * lib/posixtm.c (posixtime): Don't initialize tm0.
52515         It's no longer needed to placate gcc4's -Wuninitialized,
52516         and the attempt to placate would elicit a new warning.
52517
52518         unicodeio.c: mark unused parameters
52519         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52520         (fallback_failure_callback): Likewise.
52521
52522 2008-12-07  Bruno Haible  <bruno@clisp.org>
52523
52524         * gnulib-tool (func_create_testdir): When building the tests
52525         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52526         Reported by Simon Josefsson.
52527
52528 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52529
52530         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52531
52532 2008-12-06  Bruno Haible  <bruno@clisp.org>
52533
52534         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52535         Suggested by Eric Blake.
52536
52537 2008-12-06  Bruno Haible  <bruno@clisp.org>
52538
52539         Fix a c-stack test failure on MacOS X.
52540         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52541         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52542         handler for SIGBUS as well.
52543         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52544         install a signal handler for SIGBUS as well.
52545         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52546
52547 2008-12-06  Bruno Haible  <bruno@clisp.org>
52548
52549         Advocacy documentation.
52550         * doc/gnulib-intro.texi (Benefits): New section.
52551         * doc/gnulib.texi: Update.
52552
52553 2008-12-06  Bruno Haible  <bruno@clisp.org>
52554
52555         Document the 'manywarnings' module.
52556         * doc/manywarnings.texi: New file.
52557         * doc/gnulib.texi: Include it.
52558
52559 2008-12-05  Eric Blake  <ebb9@byu.net>
52560
52561         tests: silence some gcc warnings
52562         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52563         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52564         type mismatches.
52565
52566 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52567             Bruno Haible  <bruno@clisp.org>
52568
52569         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52570
52571 2008-11-29  Jim Meyering  <meyering@redhat.com>
52572
52573         unicodeio.c: mark unused parameters
52574         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52575         (fallback_failure_callback): Likewise.
52576
52577         fts: fix a thinko
52578         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52579         (set_stat_type): Return S_IF*-valued "type" directly.
52580         Prompted by James Youngman's spotting a related bug.
52581         Confirmed by further testing through find.
52582
52583         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52584         * lib/fts.c (D_TYPE): Define.
52585         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
52586         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52587         (s_ifmt_shift_bits): New function.
52588         (set_stat_type): New function.
52589         (fts_build): When not calling fts_stat, call set_stat_type
52590         to propagate dirent.d_type info to fts_read caller.
52591         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
52592         fts_statp->st_mode type information may be valid.
52593
52594 2008-11-28  Simon Josefsson  <simon@josefsson.org>
52595
52596         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
52597         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
52598         <sds@gnu.org>.
52599
52600 2008-11-20  Bruno Haible  <bruno@clisp.org>
52601
52602         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
52603         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
52604         INCLUDE_NEXT.
52605         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
52606         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
52607         * modules/math (Makefile.am): Substitute
52608         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
52609         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52610
52611 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
52612             Bruno Haible  <bruno@clisp.org>
52613
52614         * lib/stdint.in.h: Define all type macros so that their expansion is
52615         a single typedef'ed token. Fixes a compilation failure in Boost which
52616         does "using ::int8_t;".
52617
52618 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52619
52620         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
52621         gl_MANYWARN_ALL_GCC.
52622         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
52623         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
52624         * modules/manywarnings: New file.
52625         * MODULES.html.sh: Mention manywarnings module.
52626
52627 2008-11-18  Bruno Haible  <bruno@clisp.org>
52628
52629         * doc/gnulib-tool.texi (Unit tests): New section.
52630
52631 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52632
52633         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
52634         paths like 'lib/po/foo.po'.
52635
52636 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52637
52638         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
52639         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
52640
52641 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52642
52643         * m4/warnings.m4: Use CPPFLAGS to really check whether the
52644         parameter works.
52645
52646 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52647
52648         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
52649
52650 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52651
52652         * modules/parse-duration-tests: New file.
52653         * tests/test-parse-duration.sh: New file.
52654         * tests/test-parse-duration.c: New file.
52655
52656         New module 'parse-duration'.
52657         * lib/parse-duration.h: New file.
52658         * lib/parse-duration.c: New file.
52659         * modules/parse-duration: New file.
52660
52661 2008-11-17  Bruno Haible  <bruno@clisp.org>
52662
52663         * tests/test-select-out.sh: Comment out the first pipe test.
52664         Reported by Simon Josefsson.
52665
52666 2008-11-17  Bruno Haible  <bruno@clisp.org>
52667
52668         * modules/getaddrinfo (Depends-on): Add servent, hostent.
52669         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
52670         gl_HOSTENT.
52671
52672 2008-11-17  Bruno Haible  <bruno@clisp.org>
52673
52674         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
52675         -lnetwork and -lnet. Needed for Haiku and BeOS.
52676
52677 2008-11-16  Bruno Haible  <bruno@clisp.org>
52678
52679         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
52680
52681 2008-11-16  Bruno Haible  <bruno@clisp.org>
52682
52683         Avoid test failure on Haiku.
52684         * tests/test-fsync.c: Include <errno.h>.
52685         (main): Don't require that fsync (0) fails.
52686
52687 2008-11-15  Bruno Haible  <bruno@clisp.org>
52688
52689         New module 'hostent'.
52690         * modules/hostent: New file.
52691         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
52692
52693 2008-11-15  Bruno Haible  <bruno@clisp.org>
52694
52695         New module 'servent'.
52696         * modules/servent: New file.
52697         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
52698
52699 2008-11-15  Bruno Haible  <bruno@clisp.org>
52700
52701         Avoid generating same test program with two different rules.
52702         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
52703         test-frexp to test-frexp-nolibm.
52704         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
52705         test-frexpl to test-frexpl-nolibm.
52706
52707 2008-11-15  Bruno Haible  <bruno@clisp.org>
52708
52709         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
52710         $(FREXPL_LIBM).
52711
52712 2008-11-15  Bruno Haible  <bruno@clisp.org>
52713
52714         * lib/netdb.in.h: Activate the definitions also when the system's
52715         <netdb.h> has 'struct addrinfo'.
52716         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
52717         EAI_OVERFLOW or AI_NUMERICSERV.
52718         * doc/posix-headers/netdb.texi: Document the problem.
52719
52720 2008-11-15  Bruno Haible  <bruno@clisp.org>
52721
52722         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
52723
52724         Make the 'sched' module work on platforms where <sched.h> exists but
52725         is incomplete (such as Haiku).
52726         * lib/sched.in.h; Include the system's <sched.h> if it exists.
52727         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
52728         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
52729         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
52730         HAVE_STRUCT_SCHED_PARAM.
52731         * modules/sched (Depends-on): Add include_next.
52732         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
52733         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
52734         * doc/posix-headers/sched.texi: Document the issue.
52735
52736 2008-11-13  Jim Meyering  <meyering@redhat.com>
52737
52738         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
52739         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
52740         test would fail due to the difference in the Report bugs to ...
52741         line.  The expected address is empty, "<>", while the actual
52742         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
52743
52744 2008-11-12  Bruno Haible  <bruno@clisp.org>
52745
52746         lstat: don't compile lstat.c on systems lacking lstat
52747         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
52748         which don't have lstat; this is handled by lib/sys_stat.in.h already.
52749         Reported by Daniel P. Berrange via Jim Meyering.
52750
52751 2008-11-12  Jim Meyering  <meyering@redhat.com>
52752
52753         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
52754
52755 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52756
52757         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
52758         instead.
52759
52760 2008-11-12  Bruno Haible  <bruno@clisp.org>
52761
52762         * lib/unicodeio.c: Include unistr.h.
52763         (utf8_wctomb): Remove function.
52764         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
52765
52766 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52767
52768         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
52769         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
52770         <bruno@clisp.org>.
52771         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
52772
52773 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52774
52775         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
52776         * doc/gnulib.texi: Add section for warnings.
52777
52778 2008-11-11  Bruno Haible  <bruno@clisp.org>
52779
52780         * lib/sockets.h: Add a comment.
52781
52782 2008-11-11  Karl Berry  <karl@gnu.org>
52783
52784         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
52785
52786 2008-11-11  Eric Blake  <ebb9@byu.net>
52787
52788         fdl.texi: avoid git symlinks
52789         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
52790
52791 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52792
52793         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
52794
52795 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52796
52797         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
52798         (gl_WARN_ADD): Substitute $2 if literal.
52799
52800 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52801
52802         * m4/warning.m4: Remove.
52803
52804 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52805
52806         * m4/warnings.m4: Almost complete rewrite. :-)
52807
52808 2008-11-10  Simon Josefsson  <simon@josefsson.org>
52809
52810         * modules/warnings: New module.
52811         * m4/warnings.m4: New file.
52812         * MODULES.html.sh: Mention warnings module.
52813         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
52814         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52815
52816 2008-11-10  Eric Blake  <ebb9@byu.net>
52817
52818         fdl.texi: make a symlink to the latest version
52819         * doc/standards.texi: Revert today's earlier change.
52820         * doc/fdl-1.2.texi: Rename from old fdl.texi...
52821         * doc/fdl.texi: ...and replace this with a symlink to the newer
52822         fdl-1.3.texi.
52823
52824 2008-11-10  Bruno Haible  <bruno@clisp.org>
52825
52826         * tests/test-select-fd.c (main): Accept the result file name as fourth
52827         argument.
52828         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
52829         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
52830
52831 2008-11-10  Bruno Haible  <bruno@clisp.org>
52832
52833         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
52834         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
52835         as autoconf-substituted macros.
52836         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
52837         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
52838         gl_NETDB_H_DEFAULTS. Set these variables.
52839         * modules/netdb (Makefile.am): Substitute these variables.
52840
52841 2008-11-10  Eric Blake  <ebb9@byu.net>
52842
52843         standards.texi: include correct file for FDL 1.3
52844         * doc/standards.texi (GNU Free Documentation License): Change
52845         include file to pull in FDL 1.3, not 1.2.
52846
52847         fdl.texi: revert accidental change to license
52848         * doc/fdl.texi: This is FDL 1.2, not 1.3.
52849
52850 2008-11-10  Bruno Haible  <bruno@clisp.org>
52851
52852         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
52853         cross-compiling guesses also when the native compile gives no result.
52854
52855 2008-11-10  Bruno Haible  <bruno@clisp.org>
52856
52857         * lib/spawni.c (__spawni): Force variable into the stack.
52858
52859 2008-11-10  Bruno Haible  <bruno@clisp.org>
52860
52861         Add support for Haiku.
52862         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
52863         glibc and BeOS, but also on Haiku.
52864         * lib/fpurge.c (fpurge): Likewise.
52865         * lib/freadable.c (freadable): Likewise.
52866         * lib/freadahead.c (freadahead): Likewise.
52867         * lib/freading.c (freading): Likewise.
52868         * lib/freadptr.c (freadptr): Likewise.
52869         * lib/freadseek.c (freadptrinc): Likewise.
52870         * lib/fseeko.c (rpl_fseeko): Likewise.
52871         * lib/fseterr.c (fseterr): Likewise.
52872         * lib/fwritable.c (fwritable): Likewise.
52873         * lib/fwriting.c (fwriting): Likewise.
52874         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
52875
52876 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52877
52878         * lib/config.charset: Treat Haiku like BeOS.
52879
52880 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52881
52882         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
52883         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
52884
52885 2008-11-08  Bruno Haible  <bruno@clisp.org>
52886
52887         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
52888         AC_CACHE_CHECK.
52889
52890 2008-11-08  Bruno Haible  <bruno@clisp.org>
52891
52892         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
52893
52894 2008-11-08  Bruno Haible  <bruno@clisp.org>
52895
52896         * tests/test-select-fd.c: New file.
52897         * tests/test-select-in.sh: New file.
52898         * tests/test-select-out.sh: New file.
52899         * tests/test-select-stdin.c: New file.
52900         * modules/select-tests (Files): Add the new files.
52901         (Depends-on): Add gettimeofday.
52902         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
52903         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
52904         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
52905
52906 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
52907             Bruno Haible  <bruno@clisp.org>
52908
52909         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
52910
52911 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
52912
52913         * build-aux/pmccabe2html: Added support for C++ source files.
52914
52915 2008-11-05  Ben Pfaff  <blp@gnu.org>
52916
52917         Fix lib/close.c build on Windows.
52918         * modules/close (Files): Add lib/w32sock.h.
52919
52920 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
52921
52922         Accept Bison's NEWS format.
52923         * build-aux/announce-gen (print_news_deltas): Tweak
52924         $re_prefix.
52925
52926 2008-11-04  Bruno Haible  <bruno@clisp.org>
52927
52928         * modules/random_r (Maintainer): Add glibc.
52929
52930 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52931
52932         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
52933         by karl@freefriends.org (Karl Berry).
52934         * doc/alloca.texi: Likewise.
52935         * doc/c-ctype.texi: Likewise.
52936         * doc/c-strcase.texi: Likewise.
52937         * doc/c-strcaseeq.texi: Likewise.
52938         * doc/c-strcasestr.texi: Likewise.
52939         * doc/c-strstr.texi: Likewise.
52940         * doc/c-strtod.texi: Likewise.
52941         * doc/c-strtold.texi: Likewise.
52942         * doc/ctime.texi: Likewise.
52943         * doc/error.texi: Likewise.
52944         * doc/fdl.texi: Likewise.
52945         * doc/gcd.texi: Likewise.
52946         * doc/getdate.texi: Likewise.
52947         * doc/gnulib-intro.texi: Likewise.
52948         * doc/gnulib-tool.texi: Likewise.
52949         * doc/gnulib.texi: Likewise.
52950         * doc/inet_ntoa.texi: Likewise.
52951         * doc/maintain.texi: Likewise.
52952         * doc/make-stds.texi: Likewise.
52953         * doc/quote.texi: Likewise.
52954         * doc/regexprops-generic.texi: Likewise.
52955         * doc/standards.texi: Likewise.
52956         * doc/verify.texi: Likewise.
52957         * doc/visibility.texi: Likewise.
52958         * doc/gnulib.texi (GNU Free Documentation License): Include
52959         fdl-1.3.texi instead of fdl.texi.
52960
52961 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52962
52963         * doc/fdl-1.3.texi: New file, from
52964         <http://www.gnu.org/licenses/fdl-1.3.texi>.
52965         * modules/fdl-1.3: Add.
52966         * MODULES.html.sh: Add fdl-1.3.
52967
52968 2008-11-03  Bruno Haible  <bruno@clisp.org>
52969
52970         Make determination of absolute name of header file work with AIX xlc.
52971         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
52972         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
52973         preprocessing.
52974         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52975         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52976
52977 2008-11-03  Simon Josefsson  <simon@josefsson.org>
52978
52979         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
52980         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
52981         <ludo@gnu.org>.
52982
52983 2008-11-02  Bruno Haible  <bruno@clisp.org>
52984
52985         Mark 'strpbrk' obsolete.
52986         * modules/strpbrk (Status, Notice): New sections.
52987         * modules/strtok_r (Depends-on): Add strpbrk.
52988
52989 2008-11-02  Bruno Haible  <bruno@clisp.org>
52990
52991         Mark 'strdup' obsolete.
52992         * modules/strdup (Status, Notice): New sections.
52993         * modules/findprog (Depends-on): Add strdup.
52994         * modules/getaddrinfo (Depends-on): Likewise.
52995         * modules/localename (Depends-on): Likewise.
52996         * modules/relocatable-lib (Depends-on): Likewise.
52997         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
52998         * modules/relocatable-prog (Depends-on): Likewise.
52999         * modules/trim (Depends-on): Likewise.
53000         * modules/unictype/gen-ctype (Depends-on): Likewise.
53001         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53002
53003 2008-11-02  Bruno Haible  <bruno@clisp.org>
53004
53005         Mark 'strcspn' obsolete.
53006         * modules/strcspn (Status, Notice): New sections.
53007
53008 2008-11-02  Bruno Haible  <bruno@clisp.org>
53009
53010         Mark 'rmdir' obsolete.
53011         * modules/rmdir (Status, Notice): New sections.
53012         * modules/clean-temp (Depends-on): Add rmdir.
53013         * modules/openat (Depends-on): Likewise.
53014
53015 2008-11-02  Bruno Haible  <bruno@clisp.org>
53016
53017         Mark 'raise' obsolete.
53018         * modules/raise (Status, Notice): New sections.
53019         (Include): Specify <signal.h>.
53020         * modules/stdio (Depends-on): Add raise.
53021         * modules/write (Depends-on): Likewise.
53022
53023 2008-11-02  Bruno Haible  <bruno@clisp.org>
53024
53025         Mark 'memset' obsolete.
53026         * modules/memset (Status, Notice): New sections.
53027
53028 2008-11-02  Bruno Haible  <bruno@clisp.org>
53029
53030         Mark 'memmove' obsolete.
53031         * modules/memmove (Status, Notice): New sections.
53032         * modules/argp (Depends-on): Add memmove.
53033         * modules/argz (Depends-on): Likewise.
53034         * modules/canonicalize (Depends-on): Likewise.
53035         * modules/canonicalize-lgpl (Depends-on): Likewise.
53036         * modules/fts (Depends-on): Likewise.
53037         * modules/getcwd (Depends-on): Likewise.
53038         * modules/human (Depends-on): Likewise.
53039         * modules/regex (Depends-on): Likewise.
53040         * modules/striconveh (Depends-on): Likewise.
53041         * modules/trim (Depends-on): Likewise.
53042         * modules/unistr/u8-move (Depends-on): Likewise.
53043         * modules/unistr/u16-move (Depends-on): Likewise.
53044         * modules/unistr/u32-move (Depends-on): Likewise.
53045
53046 2008-11-02  Bruno Haible  <bruno@clisp.org>
53047
53048         Mark 'memcpy' obsolete.
53049         * modules/memcpy (Status, Notice): New sections.
53050
53051 2008-11-02  Bruno Haible  <bruno@clisp.org>
53052
53053         Mark 'memcmp' obsolete.
53054         * modules/memcmp (Status, Notice): New sections.
53055         * modules/argmatch (Depends-on): Add memchr.
53056         * modules/backupfile (Depends-on): Likewise.
53057         * modules/c-strcasestr (Depends-on): Likewise.
53058         * modules/crypto/des (Depends-on): Likewise.
53059         * modules/csharpcomp (Depends-on): Likewise.
53060         * modules/fnmatch (Depends-on): Likewise.
53061         * modules/git-merge-changelog (Depends-on): Likewise.
53062         * modules/isnand (Depends-on): Likewise.
53063         * modules/isnand-nolibm (Depends-on): Likewise.
53064         * modules/isnanf (Depends-on): Likewise.
53065         * modules/isnanf-nolibm (Depends-on): Likewise.
53066         * modules/isnanl (Depends-on): Likewise.
53067         * modules/isnanl-nolibm (Depends-on): Likewise.
53068         * modules/mbchar (Depends-on): Likewise.
53069         * modules/memcoll (Depends-on): Likewise.
53070         * modules/quotearg (Depends-on): Likewise.
53071         * modules/regex (Depends-on): Likewise.
53072         * modules/relocatable-prog (Depends-on): Likewise.
53073         * modules/same (Depends-on): Likewise.
53074         * modules/signbit (Depends-on): Likewise.
53075         * modules/strcasestr-simple (Depends-on): Likewise.
53076         * modules/unictype/gen-ctype (Depends-on): Likewise.
53077         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53078         * modules/uniname/uniname (Depends-on): Likewise.
53079         * modules/unistr/u8-cmp (Depends-on): Likewise.
53080
53081 2008-11-02  Bruno Haible  <bruno@clisp.org>
53082
53083         Mark 'memchr' obsolete.
53084         * modules/memchr (Status, Notice): New sections.
53085         * modules/argp (Depends-on): Add memchr.
53086         * modules/base64 (Depends-on): Likewise.
53087         * modules/c-strcasestr (Depends-on): Likewise.
53088         * modules/chdir-long (Depends-on): Likewise.
53089         * modules/fnmatch (Depends-on): Likewise.
53090         * modules/getsubopt (Depends-on): Likewise.
53091         * modules/git-merge-changelog (Depends-on): Likewise.
53092         * modules/glob (Depends-on): Likewise.
53093         * modules/strcasestr-simple (Depends-on): Likewise.
53094         * modules/strnlen (Depends-on): Likewise.
53095
53096 2008-11-02  Bruno Haible  <bruno@clisp.org>
53097
53098         Mark 'atexit' obsolete.
53099         * modules/atexit (Status, Notice): New sections.
53100         * modules/chdir-long (Depends-on): Add atexit.
53101         * modules/wait-process (Depends-on): Likewise.
53102
53103 2008-11-02  Bruno Haible  <bruno@clisp.org>
53104
53105         * gnulib-tool: New option --with-obsolete.
53106         (func_usage): Document it.
53107         (func_modules_transitive_closure): Drop obsolete dependencies if
53108         incobsolete is not true.
53109         (func_import): Read and save the incobsolete variable to the cache.
53110
53111 2008-11-02  Bruno Haible  <bruno@clisp.org>
53112
53113         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53114         * gnulib-tool: New option --extract-status.
53115         (func_usage): Document it.
53116         (sed_extract_prog): Recognize it.
53117         (func_get_status): New function.
53118
53119 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53120
53121         * modules/sockets (License): Change from LGPL to LGPLv2+.
53122
53123 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53124
53125         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53126
53127 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53128
53129         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53130         Mention times and sys_times.
53131         * modules/sys_times, modules/sys_times-tests: New modules.
53132         * modules/times, modules/times-tests: Likewise
53133         * m4/sys_times_h.m4: New file.
53134         * lib/sys_times.in.h: Likewise
53135         * lib/times.c: Likewise.
53136         * tests/test-sys_times.c: Likewise.
53137         * tests/test-times.c: Likewise.
53138         * doc/posix-headers/sys_times.texi: Update.
53139         * doc/posix-functions/times.texi: Update.
53140
53141 2008-10-28  Jim Meyering  <meyering@redhat.com>
53142
53143         * modules/tempname (Depends-on): Add lstat.
53144
53145         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53146
53147 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53148
53149         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53150         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53151         using idiom used elsewhere in gnulib.
53152
53153 2008-10-27  Jim Meyering  <meyering@redhat.com>
53154
53155         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53156
53157 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53158
53159         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53160         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53161         programs.
53162         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53163
53164 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53165
53166         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53167
53168 2008-10-27  Bruno Haible  <bruno@clisp.org>
53169
53170         * tests/test-lstat.c: Include <stdio.h>.
53171
53172 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53173
53174         * modules/lstat-tests: New module.
53175         * tests/test-lstat.c: New file.
53176
53177 2008-10-26  Jim Meyering  <meyering@redhat.com>
53178
53179         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53180
53181 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53182             Bruno Haible  <bruno@clisp.org>
53183
53184         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53185         * modules/configmake (Include): Add a note that the include must come
53186         after all system headers.
53187         * lib/javaversion.c: Include configmake.h after all other includes.
53188
53189 2008-10-26  Bruno Haible  <bruno@clisp.org>
53190
53191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53192         HAVE_STRUCT_RANDOM_DATA to 1.
53193         (gl_STDLIB_H): Simplify.
53194
53195 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53196
53197         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53198         substitute HAVE_STRUCT_RANDOM_DATA.
53199         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53200         random_data.
53201         * modules/stdlib (Makefile.am): Substitute
53202         HAVE_STRUCT_RANDOM_DATA.
53203
53204 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53205
53206         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53207         * doc/gnulib-intro.texi (Copyright): Likewise.
53208
53209 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53210
53211         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53212         findings.
53213
53214 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53215             Bruno Haible  <bruno@clisp.org>
53216
53217         * lib/unistd.in.h: Include <winsock2.h>.
53218         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53219         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53220         Provide dummy declarations.
53221         (gethostname): Override.
53222         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53223         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53224         gl_PREREQ_SYS_H_WINSOCK2.
53225         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53226         * doc/posix-functions/gethostname.texi: More details.
53227
53228 2008-10-25  Bruno Haible  <bruno@clisp.org>
53229
53230         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53231         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53232         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53233
53234         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53235         here ...
53236         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53237         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53238         gl_UNISTD_H_DEFAULTS.
53239
53240 2008-10-25  Eric Blake  <ebb9@byu.net>
53241
53242         signbit: avoid spurious compiler failure
53243         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53244         declarations inside function.
53245
53246 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53247             Bruno Haible  <bruno@clisp.org>
53248
53249         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53250         * modules/random_r (Depends-on): Add stdint.
53251
53252 2008-10-24  Bruno Haible  <bruno@clisp.org>
53253
53254         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53255         Eggert.
53256         * modules/strerror (License): Likewise.
53257
53258 2008-10-24  Jim Meyering  <meyering@redhat.com>
53259
53260         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53261         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53262
53263 2008-10-24  Eric Blake  <ebb9@byu.net>
53264
53265         getgroups: fix compilation when getgroups is available
53266         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53267         but with <config.h> override of getgroups disabled.
53268
53269 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53270
53271         * doc/gnulib.texi (Header files): Add note about C++ problems.
53272         Explained by Bruno Haible <bruno@clisp.org>.
53273
53274 2008-10-23  Bruno Haible  <bruno@clisp.org>
53275
53276         Define a dummy SA_NODEFER macro on Interix.
53277         * lib/signal.in.h (SA_NODEFER): Define fallback.
53278         Reported by Aleksey Cheusov <cheusov@tut.by> via
53279         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53280
53281 2008-10-23  Bruno Haible  <bruno@clisp.org>
53282
53283         * modules/freadahead (License): Change to LGPLv2+.
53284         Suggested by Simon Josefsson.
53285
53286 2008-10-23  Jim Meyering  <meyering@redhat.com>
53287
53288         random_r: new module
53289         * modules/random_r: New file.
53290         * m4/random_r.m4: New file.
53291         * lib/random_r.c: New file, from glibc.
53292         * modules/random_r-tests: New file.
53293         * tests/test-random_r.c: New file.
53294         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53295          Declare.
53296         (RAND_MAX): Define.
53297         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53298         * modules/stdlib: Substitute them, too.
53299         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53300         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53301         * doc/glibc-functions/random_r.texi: Likewise.
53302         * doc/glibc-functions/setstate_r.texi: Likewise.
53303         * doc/glibc-functions/srandom_r.texi: Likewise.
53304         * config/srclist.txt: Mention it.
53305
53306 2008-10-23  David Lutterkort  <lutter@redhat.com>
53307
53308         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53309         link requirement
53310
53311 2008-10-23  Jim Meyering  <meyering@redhat.com>
53312
53313         selinux-h: mark parameters of stub functions as intentionally unused
53314         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53315         * lib/se-context.in.h: Likewise.
53316
53317 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53318
53319         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53320
53321 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53322
53323         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53324
53325 2008-10-22  Eric Blake  <ebb9@byu.net>
53326
53327         glthread/thread: avoid compiler warning
53328         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53329         Add unreachable abort to silence compiler.
53330
53331 2008-10-22  Eric Blake  <ebb9@byu.net>
53332
53333         netdb: also supply struct addrinfo for cygwin 1.5.x
53334         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53335         older cygwin.
53336         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53337         cygwin.
53338         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53339
53340 2008-10-22  Bruno Haible  <bruno@clisp.org>
53341
53342         * users.txt: Update entry about pspp.
53343
53344 2008-10-21  Bruno Haible  <bruno@clisp.org>
53345
53346         Simplification.
53347         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53348         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53349
53350         Simplification.
53351         * lib/ioctl.c (ioctl): Don't undefine.
53352         * lib/socket.c (socket): Don't undefine.
53353
53354         Remove unused module indicator macros.
53355         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53356         GNULIB_$1 as a C macro.
53357
53358         * doc/posix-functions/close.texi: Undo last change.
53359         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53360         Windows platforms.
53361
53362 2008-10-21  Bruno Haible  <bruno@clisp.org>
53363
53364         Add gethostname() declaration to <unistd.h>.
53365         * lib/unistd.in.h (gethostname): New declaration.
53366         * lib/gethostname.c: Include <unistd.h>.
53367         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53368         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53369         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53370         and HAVE_GETHOSTNAME.
53371         * modules/gethostname (Depends-on): Add unistd.
53372         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53373         (Include): Specify <unistd.h>.
53374         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53375         HAVE_GETHOSTNAME.
53376         * tests/test-gethostname.c: Include <unistd.h> first.
53377
53378 2008-10-21  Bruno Haible  <bruno@clisp.org>
53379
53380         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53381         * modules/select-tests (Depends-on): Likewise.
53382         Reported by Simon Josefsson.
53383
53384 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53385
53386         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53387         * lib/accept.c: New file, based on winsock.c.
53388         * lib/bind.c: New file, based on winsock.c.
53389         * lib/connect.c: New file, based on winsock.c.
53390         * lib/getpeername.c: New file, based on winsock.c.
53391         * lib/getsockname.c: New file, based on winsock.c.
53392         * lib/getsockopt.c: New file, based on winsock.c.
53393         * lib/ioctl.c: New file, based on winsock.c.
53394         * lib/listen.c: New file, based on winsock.c.
53395         * lib/recv.c: New file, based on winsock.c.
53396         * lib/recvfrom.c: New file, based on winsock.c.
53397         * lib/send.c: New file, based on winsock.c.
53398         * lib/sendto.c: New file, based on winsock.c.
53399         * lib/setsockopt.c: New file, based on winsock.c.
53400         * lib/shutdown.c: New file, based on winsock.c.
53401         * lib/socket.c: New file, based on winsock.c.
53402         * lib/w32sock.h: New file, based on winsock.c.
53403         * lib/winsock.c: Remove file.
53404         * modules/accept: Likewise.
53405         * modules/bind: Likewise.
53406         * modules/connect: Likewise.
53407         * modules/getpeername: Likewise.
53408         * modules/getsockname: Likewise.
53409         * modules/getsockopt: Likewise.
53410         * modules/ioctl: Likewise.
53411         * modules/listen: Likewise.
53412         * modules/recv: Likewise.
53413         * modules/recvfrom: Likewise.
53414         * modules/send: Likewise.
53415         * modules/sendto: Likewise.
53416         * modules/setsockopt: Likewise.
53417         * modules/shutdown: Likewise.
53418         * modules/socket: Use socket.c instead of winsock.c.
53419         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53420         * doc/posix-functions/accept.texi: Doc fix.
53421         * doc/posix-functions/bind.texi: Doc fix.
53422         * doc/posix-functions/close.texi: Doc fix.
53423         * doc/posix-functions/connect.texi: Doc fix.
53424         * doc/posix-functions/getpeername.texi: Doc fix.
53425         * doc/posix-functions/getsockname.texi: Doc fix.
53426         * doc/posix-functions/getsockopt.texi: Doc fix.
53427         * doc/posix-functions/ioctl.texi: Doc fix.
53428         * doc/posix-functions/listen.texi: Doc fix.
53429         * doc/posix-functions/recv.texi: Doc fix.
53430         * doc/posix-functions/recvfrom.texi: Doc fix.
53431         * doc/posix-functions/send.texi: Doc fix.
53432         * doc/posix-functions/sendto.texi: Doc fix.
53433         * doc/posix-functions/setsockopt.texi: Doc fix.
53434         * doc/posix-functions/shutdown.texi: Doc fix.
53435         * doc/posix-functions/socket.texi: Doc fix.
53436
53437 2008-10-20  Bruno Haible  <bruno@clisp.org>
53438
53439         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53440         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53441         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53442         as an alias for SIGABRT.
53443         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53444         (sigaction): Map it to SIGABRT.
53445         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53446
53447 2008-10-20  Bruno Haible  <bruno@clisp.org>
53448
53449         * lib/fts.c: Don't include lstat.h.
53450         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53451
53452         Move the lstat() declaration to <sys/stat.h>.
53453         * lib/lstat.h: Remove file.
53454         * lib/sys_stat.in.h: Add special invocation convention.
53455         (lstat): New declaration.
53456         * lib/lstat.c (orig_lstat): New function.
53457         (rpl_lstat): Use orig_lstat instead of lstat.
53458         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53459         AC_C_INLINE. Set REPLACE_LSTAT.
53460         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53461         and REPLACE_LSTAT.
53462         * modules/lstat (Files): Remove lib/lstat.h.
53463         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53464         (Include): Specify <sys/stat.h> instead of lstat.h.
53465         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53466         REPLACE_LSTAT.
53467         * NEWS: Mention the change.
53468
53469 2008-10-20  Bruno Haible  <bruno@clisp.org>
53470
53471         * modules/posix_spawn-tests: New file.
53472         * tests/test-posix_spawn3.c: New file.
53473
53474 2008-10-20  Bruno Haible  <bruno@clisp.org>
53475
53476         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53477         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53478         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53479         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53480         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53481
53482 2008-10-20  Bruno Haible  <bruno@clisp.org>
53483
53484         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53485         of posix_spawn on AIX 5.3.
53486
53487 2008-10-20  Bruno Haible  <bruno@clisp.org>
53488
53489         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53490
53491 2008-10-20  Bruno Haible  <bruno@clisp.org>
53492
53493         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53494         of AC_LANG_PROGRAM.
53495
53496 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53497
53498         * lib/netdb.in.h: Don't define GNU specific constants until they
53499         are supported or needed.  Reported by Bruno Haible
53500         <bruno@clisp.org>.
53501
53502 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53503
53504         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53505
53506 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53507
53508         * lib/getaddrinfo.h: Remove file.
53509         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53510         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53511         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53512         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53513         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53514         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53515         * tests/test-getaddrinfo.c: Likewise.
53516         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53517         * NEWS: Mention change.
53518
53519 2008-10-19  Bruno Haible  <bruno@clisp.org>
53520
53521         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53522
53523 2008-10-19  Bruno Haible  <bruno@clisp.org>
53524
53525         * lib/wait-process.c: Include simply <sys/wait.h>.
53526         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53527         WIFSTOPPED): Remove fallback definitions.
53528         * modules/wait-process (Depends-on): Add sys_wait.
53529
53530         New module 'sys_wait'.
53531         * modules/sys_wait: New file.
53532         * lib/sys_wait.in.h: New file, partially copied from
53533         lib/wait-process.c.
53534         * m4/sys_wait_h.m4: New file.
53535         * doc/posix-headers/sys_wait.texi: Mention the new module.
53536
53537 2008-10-19  Bruno Haible  <bruno@clisp.org>
53538
53539         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53540
53541 2008-10-19  Bruno Haible  <bruno@clisp.org>
53542
53543         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53544         * lib/wait-process.c (WAIT_T): Remove type.
53545         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53546         (wait_subprocess): Update.
53547
53548 2008-10-19  Bruno Haible  <bruno@clisp.org>
53549
53550         New module 'atoll'.
53551         * modules/atoll: New file.
53552         * lib/stdlib.in.h (atoll): New declaration.
53553         * lib/atoll.c: New file, from glibc with modifications.
53554         * m4/atoll.m4: New file.
53555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53556         HAVE_ATOLL.
53557         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53558         * doc/posix-functions/atoll.texi: Mention the new module.
53559
53560 2008-10-19  Bruno Haible  <bruno@clisp.org>
53561
53562         Add strtoull() declaration to <stdlib.h>.
53563         * lib/stdlib.in.h (strtoull): New declaration.
53564         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53565         Set HAVE_STRTOULL.
53566         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53567         HAVE_STRTOULL.
53568         * modules/strtoull (Depends-on): Add stdlib.
53569         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53570         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53571         HAVE_STRTOULL.
53572
53573 2008-10-19  Bruno Haible  <bruno@clisp.org>
53574
53575         Add strtoll() declaration to <stdlib.h>.
53576         * lib/stdlib.in.h (strtoll): New declaration.
53577         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53578         Set HAVE_STRTOLL.
53579         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53580         HAVE_STRTOLL.
53581         * modules/strtoll (Depends-on): Add stdlib.
53582         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53583         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53584
53585 2008-10-19  Bruno Haible  <bruno@clisp.org>
53586
53587         * modules/bcopy (Depends-on): Add strings.
53588         (Include): Specify <strings.h>.
53589
53590 2008-10-19  Bruno Haible  <bruno@clisp.org>
53591
53592         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
53593
53594 2008-10-19  Bruno Haible  <bruno@clisp.org>
53595
53596         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
53597         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
53598         mingw.
53599
53600 2008-10-19  Bruno Haible  <bruno@clisp.org>
53601
53602         * lib/atanl.c: Don't include isnanl.h.
53603         * lib/cosl.c: Likewise.
53604         * lib/ldexpl.c: Likewise.
53605         * lib/logl.c: Likewise.
53606         * lib/sinl.c: Likewise.
53607         * lib/sqrtl.c: Likewise.
53608         * lib/tanl.c: Likewise.
53609
53610         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
53611         * lib/isnanf.h: Remove file.
53612         * lib/isnand.h: Remove file.
53613         * lib/isnanl.h: Remove file.
53614         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
53615         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
53616         macros.
53617         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
53618         HAVE_ISNANF, don't define it as a C macro.
53619         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
53620         HAVE_ISNAND, don't define it as a C macro.
53621         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
53622         HAVE_ISNANL, don't define it as a C macro.
53623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
53624         HAVE_ISNAN[FDL].
53625         * modules/isnanf (Files): Remove lib/isnanf.h.
53626         (Depends-on): Add math.
53627         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53628         (Include): Specify <math.h> instead of isnanf.h.
53629         * modules/isnand (Files): Remove lib/isnand.h.
53630         (Depends-on): Add math.
53631         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53632         (Include): Specify <math.h> instead of isnand.h.
53633         * modules/isnanl (Files): Remove lib/isnanl.h.
53634         (Depends-on): Add math.
53635         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53636         (Include): Specify <math.h> instead of isnanl.h.
53637         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
53638         HAVE_ISNAN[FDL].
53639         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
53640         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
53641         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
53642         * NEWS: Mention the change.
53643
53644 2008-10-18  Bruno Haible  <bruno@clisp.org>
53645
53646         Add getusershell(), setusershell(), endusershell() declarations to
53647         <unistd.h>.
53648         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
53649         declarations.
53650         * lib/getusershell.c: Include unistd.h.
53651         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
53652         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53653         HAVE_GETUSERSHELL.
53654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
53655         and HAVE_GETUSERSHELL.
53656         * modules/getusershell (Depends-on): Add unistd, extensions.
53657         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53658         (Include): Specify <unistd.h>.
53659         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
53660         HAVE_GETUSERSHELL.
53661
53662 2008-10-18  Bruno Haible  <bruno@clisp.org>
53663
53664         Add a getloadavg() declaration to <stdlib.h>.
53665         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
53666         getloadavg declaration.
53667         (getloadavg): New declaration.
53668         * lib/getloadavg.c: Include <stdlib.h> first.
53669         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
53670         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
53671         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
53672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
53673         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53674         * modules/getloadavg (Depends-on): Add stdlib, extensions.
53675         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53676         (Include): Specify <stdlib.h>.
53677         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
53678         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53679
53680 2008-10-18  Bruno Haible  <bruno@clisp.org>
53681
53682         * lib/dirchownmod.c: Don't include lchmod.h.
53683
53684         Move the lchmod() declaration to <sys/stat.h>.
53685         * lib/lchmod.h: Remove file.
53686         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
53687         (lchmod): New declaration, moved here from lib/lchown.h.
53688         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
53689         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
53690         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
53691         and HAVE_LCHMOD.
53692         * modules/lchmod (Files): Remove lib/lchmod.h.
53693         (Depends-on): Add sys_stat, extensions.
53694         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53695         (Include): Specify <sys/stat.h> instead of lchmod.h.
53696         * modules/sys_stat (Depends-on): Add link-warning.
53697         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
53698         definition of GL_LINK_WARNING.
53699         * NEWS: Mention the change.
53700
53701 2008-10-18  Bruno Haible  <bruno@clisp.org>
53702
53703         * lib/fchdir.c: Don't include dirfd.h.
53704         * lib/fts.c: Likewise.
53705         * lib/getcwd.c: Likewise.
53706         * lib/glob.c: Likewise.
53707
53708         Move the dirfd() declaration to <dirent.h>.
53709         * lib/dirfd.h: Remove file.
53710         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
53711         (dirfd): New declaration.
53712         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
53713         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
53714         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
53715         HAVE_DECL_DIRFD.
53716         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
53717         HAVE_DECL_DIRFD.
53718         * modules/dirfd (Files): Remove lib/dirfd.h.
53719         (Depends-on): Add dirent, extensions.
53720         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
53721         (Include): Specify <dirent.h> instead of dirfd.h.
53722         * modules/dirent (Depends-on): Add link-warning.
53723         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
53724         definition of GL_LINK_WARNING.
53725         * NEWS: Mention the change.
53726
53727 2008-10-18  Bruno Haible  <bruno@clisp.org>
53728
53729         Move the euidaccess() declaration to <unistd.h>.
53730         * lib/euidaccess.h: Remove file.
53731         * lib/unistd.in.h (euidaccess): New declaration.
53732         * lib/euidaccess.c: Don't include euidaccess.h.
53733         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
53734         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
53735         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
53736         and HAVE_EUIDACCESS.
53737         * modules/euidaccess (Files): Remove lib/euidaccess.h.
53738         (Depends-on): Add unistd.
53739         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53740         (Include): Specify <unistd.h> instead of euidaccess.h.
53741         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
53742         HAVE_EUIDACCESS.
53743         * NEWS: Mention the change.
53744
53745 2008-10-18  Bruno Haible  <bruno@clisp.org>
53746
53747         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
53748
53749         Move the getdomainname() declaration to <unistd.h>.
53750         * lib/getdomainname.h: Remove file.
53751         * lib/unistd.in.h (getdomainname): New declaration.
53752         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
53753         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
53754         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53755         HAVE_GETDOMAINNAME.
53756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53757         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
53758         * modules/getdomainname (Files): Remove lib/getdomainname.h.
53759         (Depends-on): Add unistd, extensions.
53760         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53761         (Includes): Specify <unistd.h> instead of getdomainname.h.
53762         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
53763         HAVE_GETDOMAINNAME.
53764         * NEWS: Mention the change.
53765
53766 2008-10-18  Bruno Haible  <bruno@clisp.org>
53767
53768         * modules/dirent: New file.
53769         * m4/dirent_h.m4: New file.
53770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
53771         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
53772         * modules/fchdir (Files): Remove lib/dirent.in.h.
53773         (Depends-on): Add dirent.
53774         (Makefile.am): Move rules to modules/dirent.
53775         * doc/posix-headers/dirent.texi: Mention the new module.
53776
53777 2008-10-18  Bruno Haible  <bruno@clisp.org>
53778
53779         Avoid -Wunused-parameter warnings in public gnulib header files.
53780         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
53781         macro.
53782         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
53783
53784 2008-10-18  Bruno Haible  <bruno@clisp.org>
53785
53786         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
53787         * doc/glibc-functions/error.texi: Mention the module 'error'.
53788         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
53789         * doc/glibc-functions/getdomainname.texi: Mention the module
53790         'getdomainname'.
53791         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
53792         * doc/glibc-functions/getpagesize.texi: Mention the module
53793         'getpagesize'.
53794         * doc/glibc-functions/getusershell.texi: Mention the module
53795         'getusershell'.
53796         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
53797         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
53798         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
53799         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
53800         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
53801         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
53802         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
53803         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
53804         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
53805         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
53806         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
53807         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
53808         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
53809         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
53810
53811 2008-10-17  Bruno Haible  <bruno@clisp.org>
53812
53813         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
53814         HP-UX and IRIX, use -0.0L.
53815         * tests/test-ceill.c (minus_zero): Likewise.
53816         * tests/test-floorl.c (minus_zero): Likewise.
53817         * tests/test-frexpl.c (minus_zero): Likewise.
53818         * tests/test-isnan.c (minus_zerol): Likewise.
53819         * tests/test-isnanl.h (minus_zero): Likewise.
53820         * tests/test-ldexpl.c (minus_zero): Likewise.
53821         * tests/test-roundl.c (minus_zero): Likewise.
53822         * tests/test-signbit.c (minus_zerol): Likewise.
53823         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53824         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53825         * tests/test-truncl.c (minus_zero): Likewise.
53826         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53827         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53828         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
53829         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53830
53831 2008-10-17  Bruno Haible  <bruno@clisp.org>
53832
53833         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
53834         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
53835         that it gets activated only for gcc >= 3.0.
53836         * lib/dirent.in.h: Likewise.
53837         * lib/errno.in.h: Likewise.
53838         * lib/fcntl.in.h: Likewise.
53839         * lib/float.in.h: Likewise.
53840         * lib/iconv.in.h: Likewise.
53841         * lib/inttypes.in.h: Likewise.
53842         * lib/locale.in.h: Likewise.
53843         * lib/math.in.h: Likewise.
53844         * lib/netdb.in.h: Likewise.
53845         * lib/netinet_in.in.h: Likewise.
53846         * lib/search.in.h: Likewise.
53847         * lib/signal.in.h: Likewise.
53848         * lib/spawn.in.h: Likewise.
53849         * lib/stdarg.in.h: Likewise.
53850         * lib/stdint.in.h: Likewise.
53851         * lib/stdio.in.h: Likewise.
53852         * lib/stdlib.in.h: Likewise.
53853         * lib/string.in.h: Likewise.
53854         * lib/strings.in.h: Likewise.
53855         * lib/sys_file.in.h: Likewise.
53856         * lib/sys_ioctl.in.h: Likewise.
53857         * lib/sys_select.in.h: Likewise.
53858         * lib/sys_socket.in.h: Likewise.
53859         * lib/sys_stat.in.h: Likewise.
53860         * lib/sys_time.in.h: Likewise.
53861         * lib/sysexits.in.h: Likewise.
53862         * lib/time.in.h: Likewise.
53863         * lib/unistd.in.h: Likewise.
53864         * lib/wchar.in.h: Likewise.
53865         * lib/wctype.in.h: Likewise.
53866         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53867
53868 2008-10-17  Jim Meyering  <meyering@redhat.com>
53869
53870         ignore-value: don't depend on inline module
53871         * modules/ignore-value (Depends-on): Remove 'inline'.
53872         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
53873         Suggestion from Bruno Haible.
53874
53875 2008-10-17  Bruno Haible  <bruno@clisp.org>
53876
53877         New implementation of condition variables for Win32.
53878         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
53879         (gl_linked_waitqueue_t): New type.
53880         (gl_cond_t): Use it.
53881         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
53882         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
53883         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
53884         (glthread_cond_init_func, glthread_cond_wait_func,
53885         glthread_cond_timedwait_func, glthread_cond_signal_func,
53886         glthread_cond_broadcast_func, glthread_cond_destroy_func):
53887         Reimplemented on the basis of gl_linked_waitqueue_t.
53888         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
53889         gl_waitqueue_t.
53890         (gl_rwlock_t): Update.
53891         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
53892
53893 2008-10-17  Simon Josefsson  <simon@josefsson.org>
53894
53895         * modules/recvfrom (Depends-on): Add dependency on getpeername.
53896         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53897
53898 2008-10-17  Jim Meyering  <meyering@redhat.com>
53899
53900         ignore-value: new module
53901         * modules/ignore-value: New file.
53902         * lib/ignore-value.h: New file.
53903         * MODULES.html.sh (Compiler warning management): New section,
53904         just for this module.  More to come.
53905
53906 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53907
53908         open-safer.c: avoid 'signed and unsigned in conditional...' warning
53909         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
53910         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
53911
53912 2008-10-16  Jim Meyering  <meyering@redhat.com>
53913
53914         openat-die.c: avoid 'no previous prototype' warning
53915         * lib/openat-die.c: Include "openat.h".
53916         Reported by Reuben Thomas <rrt@sc3d.org>.
53917
53918 2008-10-16  Simon Josefsson  <simon@josefsson.org>
53919
53920         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
53921         * lib/netdb.in.h: Fix typo.
53922         Reported by Bruno Haible  <bruno@clisp.org>
53923
53924         * lib/netdb.in.h: Include sys/socket.h for platforms without
53925         netdb.h, to get structures like hostent on MinGW.
53926         * modules/netdb (Depends-on): Add sys_socket.
53927
53928 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53929
53930         * modules/netdb, modules/netdb-tests: New file.
53931         * m4/netdb_h.m4: New file.
53932         * lib/netdb.in.h: Add, currently just an empty file pending
53933         definitions.
53934         * tests/test-netdb.c: New file.
53935         * doc/posix-headers/netdb.texi: Mention that we replace it if
53936         needed.
53937         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53938         netdb.
53939
53940 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53941
53942         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
53943         with code.
53944
53945 2008-10-13  Bruno Haible  <bruno@clisp.org>
53946
53947         * lib/glthread/cond.c (glthread_cond_wait_func,
53948         glthread_cond_timedwait_func): Add a comment.
53949
53950 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53951
53952         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
53953         * tests/test-select.c: Likewise,
53954
53955 2008-10-13  Bruno Haible  <bruno@clisp.org>
53956
53957         * lib/glthread/cond.c (glthread_cond_wait_func,
53958         glthread_cond_timedwait_func): Fix variable name.
53959         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53960
53961 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
53962
53963         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
53964         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
53965         struct sockaddr.sa_len.
53966         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
53967
53968 2008-10-13  Simon Josefsson  <simon@josefsson.org>
53969
53970         * build-aux/pmccabe2html: Add css and css_url parameters.
53971
53972 2008-10-12  Bruno Haible  <bruno@clisp.org>
53973
53974         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
53975         calling aclx_get.
53976         Reported by Rainer Tammer <tammer@tammer.net>.
53977
53978 2008-10-12  Bruno Haible  <bruno@clisp.org>
53979
53980         Use msvcrt aware primitives for creation/termination of Win32 threads.
53981         * lib/glthread/thread.c: Include <process.h>.
53982         (glthread_create_func): Use _beginthreadex instead of CreateThread.
53983         (wrapper_func): Update signature.
53984         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
53985
53986 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53987             Bruno Haible  <bruno@clisp.org>
53988
53989         Provide a Win32 implementation of the 'cond' module.
53990         * lib/glthread/cond.h [USE_WIN32]: New implementation.
53991         * lib/glthread/cond.c (glthread_cond_init_func,
53992         glthread_cond_wait_func, glthread_cond_timedwait_func,
53993         glthread_cond_signal_func, glthread_cond_broadcast_func,
53994         glthread_cond_destroy_func) [USE_WIN32]: New functions.
53995         * modules/cond (Dependencies): Add gettimeofday.
53996
53997 2008-10-11  Bruno Haible  <bruno@clisp.org>
53998
53999         Make sleep work on older versions of mingw.
54000         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54001         only whether it exists.
54002         * doc/posix-functions/sleep.texi: Mention the problem with older
54003         versions of mingw.
54004
54005 2008-10-11  Bruno Haible  <bruno@clisp.org>
54006
54007         New module 'shutdown'.
54008         * modules/shutdown: New file.
54009         * lib/sys_socket.in.h (shutdown): New declaration.
54010         * lib/winsock.c (shutdown): New function.
54011         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54012         GNULIB_SHUTDOWN.
54013         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54014         * doc/posix-functions/shutdown.texi: Document the new module.
54015
54016 2008-10-11  Jim Meyering  <meyering@redhat.com>
54017
54018         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54019
54020 2008-10-11  Bruno Haible  <bruno@clisp.org>
54021
54022         New module 'fclose'.
54023         * modules/fclose: New file.
54024         * lib/stdio.in.h (fclose): New declaration.
54025         * lib/fclose.c: New file.
54026         * m4/fclose.m4: New file.
54027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54028         REPLACE_FCLOSE.
54029         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54030         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54031         REPLACE_FCLOSE.
54032         * modules/close (Depends-on): fclose.
54033         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54034
54035 2008-10-11  Bruno Haible  <bruno@clisp.org>
54036
54037         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54038         set errno and don't call _close.
54039
54040 2008-10-10  Bruno Haible  <bruno@clisp.org>
54041
54042         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54043         ACL, not afterwards. Fixes test failure on Cygwin.
54044
54045 2008-10-09  Ben Pfaff  <blp@gnu.org>
54046
54047         * build-aux/announce-gen: Fix gnulib version related part of usage
54048         message.  Die with a useful error message if no tarballs are
54049         found.
54050
54051 2008-10-10  Jim Meyering  <meyering@redhat.com>
54052
54053         bootstrap: use git's --depth=N option only if it's supported
54054         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54055         recognize the --depth option.  Reported by Pádraig Brady.
54056
54057 2008-10-09  Bruno Haible  <bruno@clisp.org>
54058
54059         New module 'ioctl'.
54060         * modules/ioctl: New file.
54061         * lib/sys_socket.in.h (ioctl): Remove declaration.
54062         * lib/winsock.c: Include <sys/ioctl.h>.
54063         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54064         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54065         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54066         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54067         * doc/posix-functions/ioctl.texi: Mention the new module.
54068
54069 2008-10-09  Bruno Haible  <bruno@clisp.org>
54070
54071         New module 'sys_ioctl'.
54072         * lib/sys_ioctl.in.h: New file.
54073         * m4/sys_ioctl_h.m4: New file.
54074         * modules/sys_ioctl: New file.
54075         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54076
54077 2008-10-09  Bruno Haible  <bruno@clisp.org>
54078
54079         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54080         * lib/winsock.c: Include <stdarg.h>.
54081         (rpl_ioctl): Change to second argument 'int' and then varargs.
54082
54083 2008-10-09  Bruno Haible  <bruno@clisp.org>
54084
54085         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54086         when the sys_socket module is present and the system has <winsock2.h>.
54087
54088 2008-10-09  Bruno Haible  <bruno@clisp.org>
54089
54090         * doc/posix-functions/close.texi: Mention module 'close' instead of
54091         module 'sys_socket'.
54092
54093 2008-10-09  Bruno Haible  <bruno@clisp.org>
54094
54095         * doc/glibc-headers/sys_ioctl.texi: New file.
54096         * doc/gnulib.texi: Include it.
54097
54098 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54099             Bruno Haible  <bruno@clisp.org>
54100
54101         Combine the two replacements of 'close'.
54102         * lib/sys_socket.in.h (close): Define to a reminder to include
54103         <unistd.h>.
54104         (_gl_close_fd_maybe_socket): New declaration.
54105         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54106         * lib/winsock.c (close): Remove undefinition.
54107         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54108         needed for the gnulib module 'close'.
54109         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54110         define to an error symbol or to a warning, if suitable.
54111         * lib/close.c: Include <sys/socket.h>.
54112         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54113         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54114         UNISTD_H_HAVE_WINSOCK2_H.
54115         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54117         UNISTD_H_HAVE_WINSOCK2_H.
54118         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54119         (configure.ac): Set a module indicator.
54120         (Makefile.am): Substitute GNULIB_CLOSE.
54121         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54122         * modules/poll-tests (Depends-on): Add close.
54123         * modules/select-tests (Depends-on): Likewise.
54124
54125 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54126             Bruno Haible  <bruno@clisp.org>
54127
54128         New module 'close'.
54129         * modules/close: New file.
54130         * lib/unistd.in.h (close): Move declaration out of the
54131         FCHDIR_REPLACEMENT scope.
54132         (_gl_unregister_fd): New declaration.
54133         * lib/close.c: New file.
54134         * lib/fchdir.c (rpl_close): Remove function.
54135         * m4/close.m4: New file.
54136         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54137         close.
54138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54139         REPLACE_CLOSE.
54140         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54141         REPLACE_CLOSE.
54142         * modules/fchdir (Depends-on): Add close.
54143
54144 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54145             Bruno Haible  <bruno@clisp.org>
54146
54147         * lib/fcntl.in.h (open): Simplify conditionals.
54148         (_gl_register_fd): New declaration.
54149         * lib/fchdir.c (rpl_open): Remove function.
54150         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54151         also.
54152         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54153         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54154         open.
54155
54156 2008-10-09  Jim Meyering  <meyering@redhat.com>
54157
54158         GNUmakefile: use the more name-space-friendly "_version"
54159         * top/GNUmakefile (_dummy): Update.
54160         (_version): Rename from "version".
54161
54162 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54163             Bruno Haible  <bruno@clisp.org>
54164
54165         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54166         rpl_close.
54167         (_gl_register_fd): New function, extracted from rpl_open.
54168         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54169         (rpl_open, rpl_opendir): Use _gl_register_fd.
54170
54171 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54172
54173         Fix organization of 'open' replacement.
54174         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54175         (gl_FUNC_OPEN): Use it.
54176         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54177
54178 2008-10-08  Bruno Haible  <bruno@clisp.org>
54179
54180         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54181
54182 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54183
54184         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54185         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54186         listen).
54187
54188 2008-10-08  Eric Blake  <ebb9@byu.net>
54189
54190         GNUmakefile: add 'make version' target
54191         * top/GNUmakefile (_curr-ver): Split version update rules...
54192         (version): ...into a target.
54193
54194 2008-10-07  Bruno Haible  <bruno@clisp.org>
54195
54196         Use a more portable replacement expression for -0.0L.
54197         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54198         instead of -0.0L. Fix m4 quotation.
54199
54200         * tests/test-signbit.c: Include <float.h>.
54201         (minus_zero): New variable.
54202         (test_signbitl): Use minus_zero instead of -zero.
54203         * modules/signbit-tests (Depends-on): Add float.
54204
54205         * tests/test-ceill.c: Include <float.h>.
54206         (zero): Remove variable.
54207         (minus_zero): New variable.
54208         (main): Use minus_zero instead of -zero.
54209         * modules/ceill-tests (Depends-on): Add float.
54210
54211         * tests/test-floorl.c: Include <float.h>.
54212         (zero): Remove variable.
54213         (minus_zero): New variable.
54214         (main): Use minus_zero instead of -zero.
54215         * modules/floorl-tests (Depends-on): Add float.
54216
54217         * tests/test-roundl.c: Include <float.h>.
54218         (zero): Remove variable.
54219         (minus_zero): New variable.
54220         (main): Use minus_zero instead of -zero.
54221         * modules/roundl-tests (Depends-on): Add float.
54222
54223         * tests/test-truncl.c: Include <float.h>.
54224         (zero): Remove variable.
54225         (minus_zero): New variable.
54226         (main): Use minus_zero instead of -zero.
54227         * modules/truncl-tests (Depends-on): Add float.
54228
54229         * tests/test-frexpl.c (zero): Remove variable.
54230         (minus_zero): New variable.
54231         (main): Use minus_zero instead of -zero.
54232         * modules/frexpl-tests (Depends-on): Add float.
54233
54234         * tests/test-isnan.c (zerol): Remove variable.
54235         (minus_zerol): New variable.
54236         (test_long_double): Use minus_zerol instead of -zerol.
54237         * modules/isnan-tests (Depends-on): Add float.
54238
54239         * tests/test-isnanl.h (zero): Remove variable.
54240         (minus_zero): New variable.
54241         (main): Use minus_zero instead of -zero.
54242         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54243         * modules/isnanl-tests (Depends-on): Add float.
54244
54245         * tests/test-ldexpl.c (zero): Remove variable.
54246         (minus_zero): New variable.
54247         (main): Use minus_zero instead of -zero.
54248         * modules/ldexpl-tests (Depends-on): Add float.
54249
54250         * tests/test-snprintf-posix.h (zerol): Remove variable.
54251         (minus_zerol): New variable.
54252         (test_function): Use minus_zerol instead of -zerol.
54253         * modules/snprintf-posix-tests (Depends-on): Add float.
54254         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54255
54256         * tests/test-sprintf-posix.h (zerol): Remove variable.
54257         (minus_zerol): New variable.
54258         (test_function): Use minus_zerol instead of -zerol.
54259         * modules/sprintf-posix-tests (Depends-on): Add float.
54260         * modules/vsprintf-posix-tests (Depends-on): Add float.
54261
54262         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54263         (minus_zerol): New variable.
54264         (test_function): Use minus_zerol instead of -zerol.
54265         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54266
54267         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54268         (minus_zerol): New variable.
54269         (test_function): Use minus_zerol instead of -zerol.
54270         * modules/vasprintf-posix-tests (Depends-on): Add float.
54271
54272 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54273
54274         * MODULES.html.sh (Support for building documentation): Mention
54275         pmccabe2html.  Sort entries.
54276
54277         Add pmccabe2html module, from gnupdf.
54278         * build-aux/pmccabe.css: New file.
54279         * build-aux/pmccabe2html: New file.
54280         * m4/pmccabe2html.m4: New file.
54281         * modules/pmccabe2html: New file.
54282
54283 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54284
54285         flock: new module
54286         * MODULES.html.sh: Add to list of modules.
54287         * lib/flock.c: flock implementation for Windows and Unix systems
54288         which have fcntl.
54289         * doc/glibc-functions/flock.texi: Update documentation.
54290         * lib/sys_file.in.h: <sys/file.h> header file.
54291         * m4/flock.m4: M4 macros.
54292         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54293         * modules/flock: flock module.
54294         * modules/flock-tests: flock tests module.
54295         * modules/sys_file: sys/file.h module.
54296         * tests/test-flock.c: test suite for flock.
54297
54298 2008-10-06  Jim Meyering  <meyering@redhat.com>
54299
54300         bootstrap: check for LT_INIT more portably still ;-)
54301         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54302         Spotted by Bruno Haible.
54303
54304 2008-10-06  Eric Blake  <ebb9@byu.net>
54305
54306         test-signbit: avoid tripping Irix cc bug on -0.0L
54307         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54308         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54309         entire testsuite consistent and avoids an Irix 6.2 bug.
54310
54311 2008-10-05  Bruno Haible  <bruno@clisp.org>
54312             Jim Meyering  <jim@meyering.net>
54313
54314         Add an option for ignoring EPIPE during close_stdout.
54315         * lib/closeout.h: Include <stdbool.h>.
54316         (close_stdout_set_ignore_EPIPE): New declaration.
54317         * lib/closeout.c: Include <stdbool.h>.
54318         (ignore_EPIPE): New variable.
54319         (close_stdout_set_ignore_EPIPE): New function.
54320         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54321         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54322         failure.
54323         * modules/closeout (Depends-on): Add stdbool.
54324
54325 2008-10-05  Bruno Haible  <bruno@clisp.org>
54326
54327         * modules/accept: New file.
54328         * modules/bind: New file.
54329         * modules/connect: New file.
54330         * modules/getpeername: New file.
54331         * modules/getsockname: New file.
54332         * modules/getsockopt: New file.
54333         * modules/listen: New file.
54334         * modules/recv: New file.
54335         * modules/recvfrom: New file.
54336         * modules/send: New file.
54337         * modules/sendto: New file.
54338         * modules/setsockopt: New file.
54339         * modules/socket: New file.
54340         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54341         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54342         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54343         the particular module is requested. Add a link warning when the
54344         particular module is not requested.
54345         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54346         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54347         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54348         the particular module is requested.
54349         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54350         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54351         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54352         * modules/sys_socket (Depends-on): Add link-warning.
54353         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54354         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54355         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54356         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54357         GL_LINK_WARNING.
54358         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54359         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54360         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54361         * doc/posix-functions/getpeername.texi: Mention the new module
54362         'getpeername'.
54363         * doc/posix-functions/getsockname.texi: Mention the new module
54364         'getsockname'.
54365         * doc/posix-functions/getsockopt.texi: Mention the new module
54366         'getsockopt'.
54367         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54368         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54369         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54370         * doc/posix-functions/send.texi: Mention the new module 'send'.
54371         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54372         * doc/posix-functions/setsockopt.texi: Mention the new module
54373         'setsockopt'.
54374         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54375         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54376         listen, connect, accept.
54377         * modules/select-tests (Depends-on): Likewise.
54378
54379 2008-10-05  Bruno Haible  <bruno@clisp.org>
54380
54381         * lib/winsock.c (strerror): Remove unused #undef.
54382         (rpl_close): Remove unused local variable.
54383
54384         * modules/sys_socket (Depends-on); Add errno.
54385
54386 2008-10-05  Bruno Haible  <bruno@clisp.org>
54387
54388         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54389         (select): Add a link warning when the 'select' module is not used.
54390         * modules/sys_select (Depends-on): Add link-warning.
54391         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54392         Suggested by Paolo Bonzini.
54393
54394 2008-10-05  Jim Meyering  <meyering@redhat.com>
54395
54396         bootstrap: check for LT_INIT more portably
54397         * build-aux/bootstrap: Avoid using grep -E, since it's not
54398         portable enough.  Suggestion from Bruno Haible.
54399
54400 2008-10-05  Bruno Haible  <bruno@clisp.org>
54401
54402         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54403         as being fixed by gnulib.
54404
54405 2008-10-05  Bruno Haible  <bruno@clisp.org>
54406
54407         * modules/select-tests: New file, mostly copied from
54408         modules/sys_select-tests.
54409         * tests/test-select.c: New file, mostly copied from
54410         tests/test-sys_select.c.
54411         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54412         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54413         (Makefile.am): Remove test_sys_select_LDADD.
54414
54415         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54416         to an undefined symbol, for an error message.
54417         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54418         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54419         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54420         winsock-select.c here.
54421         * modules/sys_select (Files): Remove lib/winsock-select.c.
54422         (Depends-on): Remove alloca.
54423         (Makefile.am): Substitute GNULIB_SELECT.
54424         * modules/select: New file.
54425         * doc/posix-functions/select.texi: Update.
54426
54427 2008-10-05  Bruno Haible  <bruno@clisp.org>
54428
54429         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54430         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54431         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54432         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54433         getdtablesize.
54434         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54435         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54436
54437 2008-10-05  Bruno Haible  <bruno@clisp.org>
54438
54439         * modules/getdtablesize-tests: New file.
54440         * tests/test-getdtablesize.c: New file.
54441
54442         New module 'getdtablesize'.
54443         * lib/unistd.in.h (getdtablesize): New declaration.
54444         * lib/getdtablesize.c: New file.
54445         * m4/getdtablesize.m4: New file.
54446         * modules/getdtablesize: New file.
54447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54448         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54449         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54450         HAVE_GETDTABLESIZE.
54451         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54452
54453 2008-10-05  Bruno Haible  <bruno@clisp.org>
54454
54455         * modules/sched (Makefile.am): Fix typo.
54456         Reported by Simon Josefsson.
54457
54458 2008-10-05  Jim Meyering  <meyering@redhat.com>
54459
54460         bootstrap: check for LT_INIT, too
54461         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54462         are deprecated.  Suggestion from Ralf Wildenhues.
54463
54464 2008-10-05  Bruno Haible  <bruno@clisp.org>
54465
54466         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54467         overriding them by ours.
54468         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54469
54470 2008-10-05  Jim Meyering  <meyering@redhat.com>
54471
54472         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54473         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54474         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54475
54476 2008-10-04  Bruno Haible  <bruno@clisp.org>
54477
54478         * modules/dup2 (License): Change to LGPLv2+.
54479         * modules/sleep (License): Likewise.
54480         * modules/perror (License): Likewise.
54481         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54482         Blake.
54483         * modules/signal (License): Likewise.
54484         * modules/sigprocmask (License): Likewise.
54485         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54486         Meyering.
54487
54488 2008-10-04  Bruno Haible  <bruno@clisp.org>
54489
54490         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54491         Reported by Rainer Tammer <tammer@tammer.net>.
54492
54493 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54494             Bruno Haible  <bruno@clisp.org>
54495
54496         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54497         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54498         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54499
54500 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54501
54502         filevercmp: new module
54503         * lib/filevercmp.h: New function filevercmp comparing version strings.
54504         * lib/filevercmp.c: Implementation of filevercmp function.
54505         * modules/filevercmp: Module metadata.
54506         * tests/test-filevercmp.c: Unit test for new module.
54507         * modules/filevercmp-tests: Unit test metadata.
54508         * MODULES.html.sh: Add filevercmp module.
54509
54510 2008-10-03  Bruno Haible  <bruno@clisp.org>
54511
54512         * lib/c-ctype.h: Add comment.
54513         Reported by Jim Meyering.
54514
54515 2008-10-02  Bruno Haible  <bruno@clisp.org>
54516
54517         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54518
54519 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54520
54521         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54522         name of bootstrap.conf accordingly.
54523
54524 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54525
54526         * build-aux/bootstrap: Install git-merge-changelog configuration
54527         items into .gitconfig if needed.
54528
54529 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54530
54531         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54532         git repository, and initialize/update it accordingly.
54533
54534 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54535
54536         * modules/fsync-tests: New file.
54537         * tests/test-fsync.c: New file.
54538
54539         New module 'fsync'.
54540         * lib/fsync.c: New file.
54541         * m4/fsync.m4: New file.
54542         * modules/fsync: New file.
54543         * lib/unistd.in.h (fsync): New declaration.
54544         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54545         GNULIB_FSYNC and HAVE_FSYNC.
54546         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54547         * MODULES.html.sh (posix_functions): Add fsync.
54548         * doc/posix-functions/fsync.texi: Mention the new module.
54549
54550 2008-10-02  Jim Meyering  <meyering@redhat.com>
54551
54552         fts.c: sync with similar code from coreutils' remove.c
54553         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54554         Guard also with "#if defined __linux__", since for now at least,
54555         this code is Linux-kernel-specific.
54556
54557 2008-10-02  Jim Meyering  <meyering@redhat.com>
54558
54559         fts: bug fixes
54560         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54561         Include <sys/vfs.h>, not <sys/statfs.h>.
54562
54563         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54564         Include <sys/vfs.h>, not <sys/statfs.h>.
54565
54566 2008-10-01  Bruno Haible  <bruno@clisp.org>
54567
54568         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54569         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54570         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54571         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54572         * doc/posix-functions/posix_spawnp.texi: Likewise.
54573         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54574         whether posix_spawn actually works.
54575         * m4/pipe.m4 (gl_PIPE): Likewise.
54576         * modules/execute (Files): Add m4/posix_spawn.m4.
54577         * modules/pipe (Files): Add m4/posix_spawn.m4.
54578         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54579
54580 2008-10-01  Jim Meyering  <meyering@redhat.com>
54581
54582         remove trailing spaces
54583         * NEWS: Likewise.
54584         * lib/poll.c (poll): Likewise.
54585         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
54586         * lib/winsock.c (rpl_close): Likewise.
54587         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
54588         * modules/yield: Likewise.
54589         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
54590         * tests/test-sys_select.c (connect_to_socket): Likewise.
54591
54592         fts.c: adjust a new interface to be more generally useful
54593         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
54594         (fts_build): Adjust caller.
54595
54596 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54597
54598         * modules/cond-tests: New file.
54599         * tests/test-cond.c: New file.
54600
54601 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54602             Bruno Haible  <bruno@clisp.org>
54603
54604         * modules/cond (Dependencies): Add errno, time.
54605         * lib/glthread/cond.h: Include <time.h>.
54606         (gl_cond_define, gl_cond_define_initialized): Use the same definition
54607         across platforms.
54608
54609 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54610             Bruno Haible  <bruno@clisp.org>
54611
54612         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
54613
54614 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54615             Bruno Haible  <bruno@clisp.org>
54616
54617         * modules/tls-tests (Depends-on): Add thread, yield.
54618         (configure.ac): Remove all checks.
54619         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
54620         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54621         gl_thread_self): Remove definitions. Include glthread/thread.h and
54622         glthread/yield.h instead.
54623         (test_tls): Pass an additional NULL argument to gl_thread_join.
54624
54625 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54626             Bruno Haible  <bruno@clisp.org>
54627
54628         * modules/lock-tests (Depends-on): Add thread, yield.
54629         (configure.ac): Remove all checks.
54630         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
54631         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54632         gl_thread_self): Remove definitions. Include glthread/thread.h and
54633         glthread/yield.h instead.
54634         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
54635         additional NULL argument to gl_thread_join.
54636
54637 2008-09-30  Bruno Haible  <bruno@clisp.org>
54638
54639         Fix the Win32 implementation of the 'thread' module.
54640         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
54641         pointer type.
54642         (gl_thread_self): Invoke gl_thread_self_func.
54643         (gl_thread_self_func): New declaration.
54644         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
54645         (do_init_self_key, init_self_key): New functions.
54646         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
54647         Remove some fields.
54648         (running_threads, running_lock): Remove variables.
54649         (get_current_thread_handle): New function.
54650         (gl_thread_self_func, wrapper_func, glthread_create_func,
54651         glthread_join_func, gl_thread_exit_func): Largely rewritten and
54652         simplified.
54653
54654 2008-09-30  Bruno Haible  <bruno@clisp.org>
54655
54656         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
54657         files.
54658
54659 2008-09-30  Jim Meyering  <meyering@redhat.com>
54660
54661         fts.m4: correct the test for statfs.f_type
54662         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
54663         when checking for statfs.f_type.
54664
54665 2008-09-15  Simon Josefsson  <simon@josefsson.org>
54666
54667         tests: avoid some compiler warnings
54668         * tests/test-memchr.c (main): Pass NULL indirectly.
54669         * tests/test-getdate.c (main): Remove unused variable 'ret'.
54670
54671 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
54672
54673         getdate.y: disallow countable dayshifts like "4 yesterday ago"
54674         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
54675         exactly specified dayshifts.
54676         (dayshift): New rule.
54677         (rel): Add dayshift.
54678         (relative_time_table) [tomorrow, yesterday, today, now]:
54679         Use tDAY_SHIFT in place of tDAY_UNIT.
54680         * tests/test-getdate.c: Add tests for now-disallowed countable
54681         dayshifts, e.g., "4 yesterday ago".
54682
54683 2008-09-29  Bruno Haible  <bruno@clisp.org>
54684
54685         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
54686         * tests/test-posix_spawn1.in.sh: Renamed from
54687         tests/test-posix_spawn.in.sh.
54688         * tests/test-posix_spawn2.c: New file.
54689         * tests/test-posix_spawn2.in.sh: New file.
54690         * modules/posix_spawnp-tests (Files): Update.
54691         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
54692
54693 2008-09-29  Bruno Haible  <bruno@clisp.org>
54694
54695         Propagate effects of putenv/setenv/unsetenv to child processes.
54696         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
54697         * lib/pipe.c (create_pipe): Likewise.
54698
54699 2008-09-29  Bruno Haible  <bruno@clisp.org>
54700
54701         Enable use of shell scripts as executables in mingw.
54702         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
54703         run the program as a shell script.
54704         * lib/pipe.c (create_pipe): Likewise.
54705         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
54706         resulting array.
54707
54708 2008-09-29  Eric Blake  <ebb9@byu.net>
54709
54710         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
54711
54712 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
54713
54714         * doc/posix-functions/accept.texi: Update mingw problems.
54715         * doc/posix-functions/bind.texi: Update mingw problems.
54716         * doc/posix-functions/close.texi: Update mingw problems.
54717         * doc/posix-functions/connect.texi: Update mingw problems.
54718         * doc/posix-functions/getpeername.texi: Update mingw problems.
54719         * doc/posix-functions/getsockname.texi: Update mingw problems.
54720         * doc/posix-functions/getsockopt.texi: Update mingw problems.
54721         * doc/posix-functions/ioctl.texi: Update mingw problems.
54722         * doc/posix-functions/listen.texi: Update mingw problems.
54723         * doc/posix-functions/recv.texi: Update mingw problems.
54724         * doc/posix-functions/recvfrom.texi: Update mingw problems.
54725         * doc/posix-functions/select.texi: Update mingw problems.
54726         * doc/posix-functions/send.texi: Update mingw problems.
54727         * doc/posix-functions/sendto.texi: Update mingw problems.
54728         * doc/posix-functions/setsockopt.texi: Update mingw problems.
54729         * doc/posix-functions/socket.texi: Update mingw problems.
54730
54731 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
54732             Bruno Haible  <bruno@clisp.org>
54733
54734         * lib/sys_select.in.h: Include sys/time.h.
54735         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
54736         * modules/sys_select: Depend on sys_time.
54737         * tests/test-sys_select.c: Test that sys/select.h defines struct
54738         timeval fully.
54739
54740 2008-09-29  Bruno Haible  <bruno@clisp.org>
54741
54742         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
54743         * lib/sys_select.in.h: Likewise.
54744
54745 2008-09-29  Bruno Haible  <bruno@clisp.org>
54746
54747         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
54748
54749 2008-09-29  Bruno Haible  <bruno@clisp.org>
54750
54751         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
54752         Set LIBSOCKET instead of augmenting LIBS.
54753         * modules/sockets (Link): New section.
54754         * modules/sockets-tests (test_sockets_LDADD): New variable.
54755         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
54756         * modules/poll-tests (test_poll_LDADD): New variable.
54757         * NEWS: Document the change.
54758
54759 2008-09-29  Bruno Haible  <bruno@clisp.org>
54760
54761         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
54762         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
54763         ARPA_INET_H directly.
54764         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54765
54766 2008-09-28  Bruno Haible  <bruno@clisp.org>
54767
54768         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
54769         from gl_HEADER_SYS_SOCKET.
54770         (gl_HEADER_SYS_SOCKET): Invoke it.
54771         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54772
54773 2008-09-28  Bruno Haible  <bruno@clisp.org>
54774
54775         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
54776         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
54777         Needed on OSF/1 4.0.
54778
54779 2008-09-28  Bruno Haible  <bruno@clisp.org>
54780
54781         Override open more carefully.
54782         * lib/open.c (orig_open): New function.
54783         (rpl_open): Use orig_open instead of open.
54784         * lib/fcntl.in.h: Add special invocation convention.
54785         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
54786         (gl_FUNC_OPEN): Invoke it.
54787
54788         Override freopen more carefully.
54789         * lib/freopen.c (orig_freopen): New function.
54790         (rpl_freopen): Use orig_freopen instead of freopen.
54791         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
54792         (gl_FUNC_FREOPEN): Invoke it.
54793
54794         Override fopen more carefully.
54795         * lib/fopen.c (orig_fopen): New function.
54796         (rpl_fopen): Use orig_fopen instead of fopen.
54797         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
54798         (gl_FUNC_FOPEN): Invoke it.
54799         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
54800
54801 2008-09-28  Bruno Haible  <bruno@clisp.org>
54802
54803         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
54804         SIGPIPE.
54805
54806 2008-09-28  Bruno Haible  <bruno@clisp.org>
54807
54808         * tests/test-sigaction.c (handler, main): Disable the check whether
54809         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
54810         glibc systems with LinuxThreads.
54811
54812 2008-09-28  Bruno Haible  <bruno@clisp.org>
54813
54814         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
54815
54816         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
54817         with AIX xlc.
54818         * lib/fcntl.in.h (open): Likewise.
54819         Reported by Rainer Tammer <tammer@tammer.net>.
54820
54821 2008-09-28  Bruno Haible  <bruno@clisp.org>
54822
54823         * modules/posix_spawnp-tests: New file.
54824         * tests/test-posix_spawn.c: New file.
54825         * tests/test-posix_spawn.in.sh: New file.
54826
54827         New module 'posix_spawnp'.
54828         * modules/posix_spawnp: New file.
54829         * lib/spawnp.c: New file, from GNU libc with modifications.
54830         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
54831
54832         New module 'posix_spawn'.
54833         * modules/posix_spawn: New file.
54834         * lib/spawn.c: New file, from GNU libc with modifications.
54835         * doc/posix-functions/posix_spawn.texi: Mention the new module.
54836
54837         New module 'posix_spawnattr_destroy'.
54838         * modules/posix_spawnattr_destroy: New file.
54839         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
54840         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
54841         module.
54842
54843         New module 'posix_spawnattr_setsigmask'.
54844         * modules/posix_spawnattr_setsigmask: New file.
54845         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
54846         modifications.
54847         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
54848         new module.
54849
54850         New module 'posix_spawnattr_getsigmask'.
54851         * modules/posix_spawnattr_getsigmask: New file.
54852         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
54853         modifications.
54854         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
54855         new module.
54856
54857         New module 'posix_spawnattr_setsigdefault'.
54858         * modules/posix_spawnattr_setsigdefault: New file.
54859         * lib/spawnattr_setdefault.c: New file, from GNU libc with
54860         modifications.
54861         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
54862         new module.
54863
54864         New module 'posix_spawnattr_getsigdefault'.
54865         * modules/posix_spawnattr_getsigdefault: New file.
54866         * lib/spawnattr_getdefault.c: New file, from GNU libc with
54867         modifications.
54868         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
54869         new module.
54870
54871         New module 'posix_spawnattr_setschedpolicy'.
54872         * modules/posix_spawnattr_setschedpolicy: New file.
54873         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
54874         modifications.
54875         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
54876         new module.
54877
54878         New module 'posix_spawnattr_getschedpolicy'.
54879         * modules/posix_spawnattr_getschedpolicy: New file.
54880         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
54881         modifications.
54882         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
54883         new module.
54884
54885         New module 'posix_spawnattr_setschedparam'.
54886         * modules/posix_spawnattr_setschedparam: New file.
54887         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
54888         modifications.
54889         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
54890         new module.
54891
54892         New module 'posix_spawnattr_getschedparam'.
54893         * modules/posix_spawnattr_getschedparam: New file.
54894         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
54895         modifications.
54896         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
54897         new module.
54898
54899         New module 'posix_spawnattr_setpgroup'.
54900         * modules/posix_spawnattr_setpgroup: New file.
54901         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
54902         modifications.
54903         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
54904         module.
54905
54906         New module 'posix_spawnattr_getpgroup'.
54907         * modules/posix_spawnattr_getpgroup: New file.
54908         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
54909         modifications.
54910         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
54911         module.
54912
54913         New module 'posix_spawnattr_setflags'.
54914         * modules/posix_spawnattr_setflags: New file.
54915         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
54916         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
54917         module.
54918
54919         New module 'posix_spawnattr_getflags'.
54920         * modules/posix_spawnattr_getflags: New file.
54921         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
54922         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
54923         module.
54924
54925         New module 'posix_spawnattr_init'.
54926         * modules/posix_spawnattr_init: New file.
54927         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
54928         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
54929         module.
54930
54931         New module 'posix_spawn_file_actions_destroy'.
54932         * modules/posix_spawn_file_actions_destroy: New file.
54933         * lib/spawn_faction_destroy.c: New file, from GNU libc with
54934         modifications.
54935         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
54936         the new module.
54937
54938         New module 'posix_spawn_file_actions_addopen'.
54939         * modules/posix_spawn_file_actions_addopen: New file.
54940         * lib/spawn_faction_addopen.c: New file, from GNU libc with
54941         modifications.
54942         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
54943         the new module.
54944
54945         New module 'posix_spawn_file_actions_adddup2'.
54946         * modules/posix_spawn_file_actions_adddup2: New file.
54947         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
54948         modifications.
54949         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
54950         the new module.
54951
54952         New module 'posix_spawn_file_actions_addclose'.
54953         * modules/posix_spawn_file_actions_addclose: New file.
54954         * lib/spawn_faction_addclose.c: New file, from GNU libc with
54955         modifications.
54956         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
54957         the new module.
54958
54959         New module 'posix_spawn_file_actions_init'.
54960         * modules/posix_spawn_file_actions_init: New file.
54961         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
54962         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
54963         new module.
54964
54965         New module 'posix_spawn-internal'.
54966         * modules/posix_spawn-internal: New file.
54967         * lib/spawn_int.h: New file, from GNU libc with modifications.
54968         * lib/spawni.c: New file, from GNU libc with modifications.
54969         * m4/posix_spawn.m4: New file.
54970
54971         New module 'spawn'.
54972         * modules/spawn: New file.
54973         * lib/spawn.in.h: New file, from GNU libc with modifications.
54974         * m4/spawn_h.m4: New file.
54975         * doc/posix-headers/spawn.texi: Mention the new module.
54976
54977 2008-09-28  Bruno Haible  <bruno@clisp.org>
54978
54979         * modules/sched-tests: New file.
54980         * tests/test-sched.c: New file.
54981
54982         New module 'sched'.
54983         * modules/sched: New file.
54984         * lib/sched.in.h: New file.
54985         * m4/sched_h.m4: New file.
54986         * doc/posix-headers/sched.texi: Mention the new module.
54987
54988 2008-09-27  Eric Blake  <ebb9@byu.net>
54989
54990         Fix previous patch, and tweak references to $0.
54991         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
54992         (func_version, func_gnulib_dir): Don't call this program
54993         gnulib-tool.
54994         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
54995         with using $0 in function.
54996         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
54997         (func_fatal_error): Reuse the name the user invoked us with.
54998
54999 2008-09-27  Bruno Haible  <bruno@clisp.org>
55000
55001         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55002         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55003         (gl_ICONV_H): Not here.
55004         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55005         instead of assigning ICONV_H directly.
55006
55007         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55008         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55009         WCHAR_H directly.
55010
55011 2008-09-27  Bruno Haible  <bruno@clisp.org>
55012
55013         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55014         * modules/arpa_inet (Depends-on): Add link-warning.
55015         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55016         * modules/unistd (Makefile.am): Likewise.
55017
55018 2008-09-26  Bruno Haible  <bruno@clisp.org>
55019
55020         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55021         variables.
55022         (func_version): Essentially copied from gnulib-tool.
55023         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55024         func_readlink): Copied from gnulib-tool.
55025
55026 2008-09-26  Bruno Haible  <bruno@clisp.org>
55027
55028         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55029         invoking git-version-gen.
55030
55031 2008-09-26  Bruno Haible  <bruno@clisp.org>
55032
55033         * posix-modules: Update to directory names changed on 2008-01-19.
55034         Remove commas in output before splitting into words. No more need to
55035         avoid 'ftruncate' since 2007-02-19.
55036
55037 2008-09-26  Bruno Haible  <bruno@clisp.org>
55038
55039         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55040
55041 2008-09-26  Bruno Haible  <bruno@clisp.org>
55042
55043         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55044         * modules/fwriteerror (Depends-on): Add errno.
55045
55046 2008-09-26  Bruno Haible  <bruno@clisp.org>
55047
55048         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55049         * tests/test-vc-list-files-cvs.sh: Likewise.
55050
55051 2008-09-26  Bruno Haible  <bruno@clisp.org>
55052
55053         * doc/posix-headers/sys_resource.texi: Reorder items.
55054
55055 2008-09-26  Jim Meyering  <meyering@redhat.com>
55056
55057         fts: tweak inode comparison function
55058         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55059         inode numbers, as documented.
55060
55061         fts: sort dirent entries on inode number before traversing
55062         This avoids a quadratic, seek-related performance penalty when
55063         operating on a directory containing many entries (measurable at 10k;
55064         3.5 hours at 2 million entries with a cold cache) on certain types
55065         of file systems, including ext3 and ext4, but not tmpfs.
55066         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55067         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55068         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55069         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55070         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55071         (fts_build): Set the stat.st_ino member from D_INO.
55072         If it is likely to be useful, sort dirent entries on inode number.
55073
55074         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55075         and the struct statfs.f_type member.
55076         * modules/fts (Depends-on): Add d-ino.
55077
55078 2008-09-26  Bruno Haible  <bruno@clisp.org>
55079
55080         * modules/sigpipe-die (Depends-on): Add sigpipe.
55081
55082         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55083         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55084         and GNULIB_STDIO_H_SIGPIPE are set.
55085         * lib/stdio-write.c: New file.
55086         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55087         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55088         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55089         REPLACE_STDIO_WRITE_FUNCS.
55090         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55091         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55092         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55093         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55094         * modules/stdio (Files): Add lib/stdio-write.c.
55095         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55096         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55097         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55098         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55099         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55100         REPLACE_FPRINTF_POSIX.
55101         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55102         REPLACE_PRINTF_POSIX.
55103         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55104         REPLACE_VFPRINTF_POSIX.
55105         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55106         REPLACE_VPRINTF_POSIX.
55107         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55108         SIGPIPE issue.
55109         * doc/posix-functions/fputc.texi: Likewise.
55110         * doc/posix-functions/fputs.texi: Likewise.
55111         * doc/posix-functions/fwrite.texi: Likewise.
55112         * doc/posix-functions/printf.texi: Likewise.
55113         * doc/posix-functions/putc.texi: Likewise.
55114         * doc/posix-functions/putchar.texi: Likewise.
55115         * doc/posix-functions/puts.texi: Likewise.
55116         * doc/posix-functions/vfprintf.texi: Likewise.
55117         * doc/posix-functions/vprintf.texi: Likewise.
55118
55119         * modules/safe-write (Depends-on): Add write.
55120
55121         * modules/sigpipe-tests: New file.
55122         * tests/test-sigpipe.c: New file.
55123         * tests/test-sigpipe.sh: New file.
55124
55125         * modules/write: New file.
55126         * lib/unistd.in.h: Include <sys/types.h>.
55127         (write): New declaration.
55128         * lib/write.c: New file.
55129         * m4/write.m4: New file.
55130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55131         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55132         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55133         GNULIB_WRITE, REPLACE_WRITE.
55134         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55135         and the SIGPIPE issue.
55136
55137         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55138         (raise): New declaration.
55139         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55140         (ext_signal): New function.
55141         (rpl_raise): New function.
55142         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55143         GNULIB_SIGNAL_H_SIGPIPE.
55144         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55145         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55146
55147         * modules/sigpipe: New file.
55148         * m4/sigpipe.m4: New file.
55149
55150 2008-09-25  Derek Price  <derek@ximbiot.com>
55151             Bruno Haible  <bruno@clisp.org>
55152
55153         * gnulib-tool (func_import): Report all license incompatibilities, not
55154         just the first one.
55155
55156 2008-09-25  Bruno Haible  <bruno@clisp.org>
55157
55158         * gnulib-tool (func_import): When computing the edits, consider not
55159         only the Makefile.ams that exist but also those that will be generated.
55160
55161 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55162
55163         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55164         fixes gnulib-tool --test warning about duplicate dependency.
55165
55166 2008-09-25  Bruno Haible  <bruno@clisp.org>
55167
55168         * gnulib-tool: Don't ask the user to perform edits in the generated
55169         Makefile.ams.
55170         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55171         apply to the Makefile.am being generated.
55172         (func_emit_tests_Makefile_am): Execute edits that apply to the
55173         Makefile.am being generated.
55174         (func_import): Setup list of Makefile.am edits before emitting the
55175         Makefile.ams, not at the end.
55176         (func_create_testdir): Update.
55177         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55178
55179 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55180
55181         * gnulib-tool (func_import): Store the --tests-base option in the
55182         comment in gnulib-cache.m4.
55183
55184 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55185
55186         * NEWS: Document increased portability that sys_select now provides.
55187
55188         * lib/sys_select.in.h: Install select wrapper.
55189         * lib/sys_socket.in.h: Use more descriptive name when there is no
55190         select wrapper.
55191         * lib/winsock-select.c: New.
55192         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55193         Require gl_HEADER_SYS_SOCKET.
55194         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55195         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55196         * tests/test-sys_select.c: Add functional tests.
55197
55198 2008-09-24  Eric Blake  <ebb9@byu.net>
55199
55200         open, fopen: close fd leak in last patch
55201         * lib/open.c (rpl_open): Close fd before returning error.
55202         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55203         * doc/posix-functions/open.texi (open): Document that Irix also
55204         has the bug.
55205         * doc/posix-functions/fopen.texi (fopen): Likewise.
55206         Reported by Paolo Bonzini.
55207
55208 2008-09-24  Bruno Haible  <bruno@clisp.org>
55209
55210         Ensure that a filename ending in a slash cannot be used to access a
55211         non-directory.
55212         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55213         to check whether it's really a directory.
55214         * lib/fopen.c: Include fcntl.h, unistd.h.
55215         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55216         and fdopen().
55217         * modules/fopen (Depends-on): Add unistd.
55218         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55219         * tests/test-fopen.c (main): Likewise.
55220         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55221         * doc/posix-functions/fopen.texi: Likewise.
55222         Reported by Eric Blake.
55223
55224 2008-09-23  Eric Blake  <ebb9@byu.net>
55225
55226         c-stack: avoid compiler optimizations when provoking overflow
55227         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55228         recursion harder to optimize, to ensure a stack overflow occurs.
55229         * tests/test-c-stack.c (recurse): Likewise.
55230         Borrowed from libsigsegv.
55231
55232         c-stack: work around Irix sigaltstack bug
55233         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55234         whether sigaltstack uses wrong end of stack_t (copied in part from
55235         libsigsegv).
55236         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55237         Irix bug, without requiring an over-allocation.
55238         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55239         bug.
55240
55241         fopen: document mingw bug on directories
55242         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55243         not allowing a stream visiting a directory, even though reading
55244         from such a stream is not portable.
55245
55246 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55247
55248         * lib/poll.c: Rewrite.
55249         * modules/poll: Depend on alloca.
55250
55251 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55252
55253         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55254         instead define prototypes for a full set of wrappers.  Ensure
55255         that Cygwin does not use the compatibility code, which is only
55256         for MinGW.
55257         * lib/winsock.c: New.
55258         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55259         * modules/sys_socket: Add lib/winsock.c.
55260
55261         * modules/poll-tests: Add errno and perror.
55262         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55263
55264 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55265
55266         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55267
55268 2008-09-23  Bruno Haible  <bruno@clisp.org>
55269
55270         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55271         * doc/glibc-functions/*: Likewise.
55272
55273 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55274
55275         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55276         success.
55277
55278 2008-09-22  Eric Blake  <ebb9@byu.net>
55279             Bruno Haible  <bruno@clisp.org>
55280
55281         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55282         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55283         supply %A but mishandle pseudo-NaN.
55284         Reported by Simon Josefsson.
55285
55286 2008-09-21  Bruno Haible  <bruno@clisp.org>
55287
55288         * tests/test-lock.c (main): Tweak skip message.
55289         * tests/test-tls.c (main): Likewise.
55290
55291 2008-09-21  Bruno Haible  <bruno@clisp.org>
55292
55293         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55294         whether 'struct sigaction' has sa_sigaction here...
55295         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55296         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55297
55298 2008-09-21  Bruno Haible  <bruno@clisp.org>
55299
55300         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55301         section.
55302         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55303         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55304         the new section.
55305         (Support for obsolete systems lacking POSIX:2001): New section.
55306         (String handling <string.h>): Move strdup to the new section.
55307         Suggested by Simon Josefsson and Paolo Bonzini.
55308
55309 2008-09-21  Bruno Haible  <bruno@clisp.org>
55310
55311         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55312         exponents in %e and %g results on 'long double'. Needed for mingw's
55313         improved *printf functions.
55314         * tests/test-vasprintf-posix.c (test_function): Likewise.
55315         * tests/test-snprintf-posix.h (test_function): Likewise.
55316         * tests/test-sprintf-posix.h (test_function): Likewise.
55317         Reported by Eric Blake.
55318
55319 2008-09-21  Bruno Haible  <bruno@clisp.org>
55320
55321         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55322         * tests/test-sprintf-posix.h (test_function): Likewise.
55323
55324 2008-09-21  Bruno Haible  <bruno@clisp.org>
55325
55326         * modules/getpass (Depends-on): Add strdup-posix.
55327
55328         New module 'strdup-posix'.
55329         * modules/strdup-posix: New file.
55330         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55331         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55332         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55333         REPLACE_STRDUP.
55334         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55335         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55336         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55337         strdup-posix.
55338
55339         * modules/strdup (Depends-on): Remove malloc-posix.
55340
55341 2008-09-20  Bruno Haible  <bruno@clisp.org>
55342
55343         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55344         Wildenhues.
55345
55346 2008-09-20  Bruno Haible  <bruno@clisp.org>
55347
55348         Ensure that wint_t gets defined on IRIX 5.3.
55349         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55350         * lib/wctype.in.h (wint_t): Likewise.
55351         (__wctype_wint_t): Remove type.
55352         (isw*): Use wint_t instead of __wctype_wint_t.
55353         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55354         * modules/wchar (Files): Add m4/wint_t.m4.
55355         (Makefile.am): Substitute HAVE_WINT_T.
55356         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55357         * tests/test-wctype.c: Check that wint_t is defined.
55358         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55359         * doc/posix-headers/wctype.texi: Likewise.
55360         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55361
55362 2008-09-18  Bruno Haible  <bruno@clisp.org>
55363
55364         * gnulib-tool (func_exit): Update comment.
55365
55366 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55367
55368         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55369         assumes strdup exists and does not depend on strdup to return
55370         ENOMEM on out of memory conditions.
55371
55372 2008-09-18  Bruno Haible  <bruno@clisp.org>
55373
55374         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
55375         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55376         digits for the exponent.
55377
55378 2008-09-18  Jim Meyering  <meyering@redhat.com>
55379             Bruno Haible  <bruno@clisp.org>
55380
55381         * lib/vasnprintf.c (decimal_point_char): Define also if
55382         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55383
55384 2008-09-16  Bruno Haible  <bruno@clisp.org>
55385         and Eric Blake  <ebb9@byu.net>
55386
55387         vasnprintf: support Irix 5.3
55388         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55389         that mishandle long double infinity.
55390         Reported by Tom G. Christensen.
55391
55392 2008-09-16  Bruno Haible  <bruno@clisp.org>
55393
55394         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55395         Solaris 9.
55396         * doc/glibc-functions/alphasort.texi: Likewise.
55397         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55398
55399 2008-09-16  Jim Meyering  <meyering@redhat.com>
55400
55401         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55402         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55403         a umask modification leak out of a subshell.  Otherwise, the
55404         opensolaris /bin/sh would be accepted and thus cause unwarranted
55405         failures in the coreutils test suite.
55406
55407 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55408
55409         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55410         to succeed.
55411
55412 2008-09-16  Jim Meyering  <meyering@redhat.com>
55413
55414         avoid spurious test failure when library is built without ACL support
55415         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55416         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55417         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55418         * tests/test-copy-acl.sh: Likewise.
55419
55420 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55421
55422         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55423         based on character occurrence counts.
55424
55425 2008-09-15  Eric Blake  <ebb9@byu.net>
55426
55427         tests: avoid some compiler warnings
55428         * tests/test-memchr.c (main): Pass NULL indirectly.
55429         * tests/test-closein.c (main): Avoid unused variable.
55430
55431 2008-09-15  Bruno Haible  <bruno@clisp.org>
55432
55433         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55434         are missing on OpenBSD 4.0 individually.
55435         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55436
55437 2008-09-15  Bruno Haible  <bruno@clisp.org>
55438
55439         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55440         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55441         * doc/posix-functions/perror.texi: Likewise.
55442         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55443         is missing.
55444         Reported by Eric Blake.
55445
55446         * lib/errno.in.h: Use replacement values >= 2000.
55447         Reported by Eric Blake.
55448
55449 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55450
55451         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55452         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55453         limit.
55454         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55455         compareseq was aborted.
55456
55457 2008-09-14  Bruno Haible  <bruno@clisp.org>
55458
55459         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55460         yvec_edit_count.
55461         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55462         (fstrcmp_bounded): Simplify result computation accordingly.
55463
55464 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55465
55466         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55467         (fstrcmp): Define in terms of fstrcmp_bounded.
55468         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55469         lower_bound argument.
55470         Return quickly if the result is certainly < lower_bound.
55471         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55472
55473 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55474
55475         * lib/diffseq.h (EARLY_ABORT): New macro.
55476         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55477         evaluates to true.
55478
55479 2008-09-14  Bruno Haible  <bruno@clisp.org>
55480
55481         * modules/perror-tests: New file.
55482         * tests/test-perror.sh: New file.
55483         * tests/test-perror.c: New file.
55484
55485         New module 'perror'.
55486         * lib/stdio.in.h (perror): New declaration.
55487         * lib/perror.c: New file.
55488         * m4/perror.m4: New file.
55489         * modules/perror: New file.
55490         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55491         * doc/posix-functions/perror.texi: Mention the perror module.
55492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55493         REPLACE_PERROR.
55494         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55495         REPLACE_PERROR.
55496
55497 2008-09-14  Bruno Haible  <bruno@clisp.org>
55498
55499         * modules/stdio (Makefile.am): Reorder to match the order in
55500         lib/stdio.in.h.
55501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55502
55503 2008-09-13  Bruno Haible  <bruno@clisp.org>
55504
55505         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55506
55507 2008-09-13  Bruno Haible  <bruno@clisp.org>
55508
55509         Extend strerror to cover the added errno values.
55510         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55511         (rpl_strerror): Provide error messages for the added errno values and
55512         for the WSA* values.
55513         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55514         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55515         strerror.
55516         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55517         * modules/strerror (Depends-on): Add errno.
55518         * doc/posix-functions/strerror.texi: Document the change.
55519         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55520         and EOVERFLOW.
55521
55522 2008-09-13  Bruno Haible  <bruno@clisp.org>
55523
55524         * modules/EOVERFLOW: Remove file.
55525         * m4/eoverflow.m4: Remove file.
55526         * modules/EOVERFLOW-tests: Remove file.
55527         * tests/test-EOVERFLOW.c: Remove file.
55528         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55529         * modules/ftell (Depends-on): Likewise.
55530         * modules/getdelim (Depends-on): Likewise.
55531         * modules/getugroups (Depends-on): Likewise.
55532         * modules/poll (Depends-on): Likewise.
55533         * modules/snprintf (Depends-on): Likewise.
55534         * modules/sprintf-posix (Depends-on): Likewise.
55535         * modules/vasnprintf (Depends-on): Likewise.
55536         * modules/vasprintf (Depends-on): Likewise.
55537         * modules/vfprintf-posix (Depends-on): Likewise.
55538         * modules/vsnprintf (Depends-on): Likewise.
55539         * modules/vsprintf-posix (Depends-on): Likewise.
55540         * modules/xvasprintf (Depends-on): Likewise.
55541         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55542         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55543         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55544         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55545         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55546         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55547         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55548         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55549         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55550         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55551         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55552         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55553         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55554         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55555         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55556         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55557         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55558         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55559         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55560         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55561         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55562         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55563         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55564         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55565         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55566         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55567         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55568         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55569         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55570         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55571         * MODULES.html.sh: Remove EOVERFLOW.
55572         * NEWS: Mention the change.
55573
55574 2008-09-13  Bruno Haible  <bruno@clisp.org>
55575
55576         * modules/errno-tests: New file.
55577         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55578
55579         * lib/errno.in.h: New file.
55580         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55581         * modules/errno: New file.
55582         * doc/posix-headers/errno.texi: Update documentation.
55583         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55584
55585 2008-09-13  Bruno Haible  <bruno@clisp.org>
55586
55587         * tests/test-poll.c: Use #if for native Windows, rather than testing
55588         __MSVCRT__.
55589
55590 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55591             Bruno Haible  <bruno@clisp.org>
55592
55593         * lib/glob.c: Don't include <pwd.h> on native Windows.
55594         (WINDOWS32): New macro.
55595         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
55596
55597 2008-09-13  Bruno Haible  <bruno@clisp.org>
55598
55599         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
55600         (ETIMEDOUT): Remove macro.
55601         (glthread_cond_timedwait_multithreaded): New declaration.
55602         (glthread_cond_timedwait): Use it.
55603         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
55604         (glthread_cond_timedwait_multithreaded): New function.
55605
55606 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55607
55608         * modules/poll-tests: Do not check for io.h.
55609         * tests/test-poll.c: Check for __MSVCRT__ instead.
55610
55611 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55612
55613         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
55614         * modules/poll-tests: Add inet_pton, stdbool, sockets.
55615         * tests/test-poll.c: Use them.  Use _pipe on Windows.
55616
55617 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55618
55619         * modules/poll-tests: New.
55620         * tests/test-poll.c: New.
55621
55622 2008-09-12  Eric Blake  <ebb9@byu.net>
55623
55624         frexp: test for NetBSD failure on -0.0
55625         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
55626         not all, bugs from NetBSD 3.0 have been fixed.
55627         * doc/posix-functions/frexp.texi (frexp): Document bug.
55628         Reported by Thomas Klausner.
55629
55630         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
55631         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
55632         literal -0.0.
55633         Reported by Jonathan C. Patschke <jp@centtech.com>.
55634
55635 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55636
55637         * lib/glthread/cond.h: Use dummy implementation also if
55638         USE_WIN32_THREADS.
55639
55640 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55641
55642         * modules/fnmatch-posix (License): Change to LGPLv2+.
55643         * modules/fnmatch-gnu (License): Likewise.
55644
55645 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55646
55647         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
55648
55649 2008-09-11  Jim Meyering  <meyering@redhat.com>
55650
55651         * users.txt: Add gtk-vnc.
55652
55653 2008-09-08  Simon Josefsson  <simon@josefsson.org>
55654
55655         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
55656         rotate amounts.
55657
55658         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
55659         required for 16-bit and 8-bit rotates.
55660         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
55661         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
55662         UINT8_MAX instead of hard-coded constants.
55663         Suggested by Paul Eggert.
55664
55665 2008-09-07  Bruno Haible  <bruno@clisp.org>
55666
55667         * tests/test-striconveh.c (main): Check behaviour when converting from
55668         UTF-7.
55669
55670         Make striconveh work better with stateful encodings.
55671         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
55672         that iconv does not increment the inptr when returning -1/EINVAL.
55673
55674 2008-09-07  Bruno Haible  <bruno@clisp.org>
55675
55676         * build-aux/config.rpath: Update according to libtool-2.2.6.
55677         * build-aux/config.libpath: Likewise.
55678
55679 2008-09-06  Bruno Haible  <bruno@clisp.org>
55680
55681         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
55682         * lib/freadptr.c (freadptr): Likewise.
55683         * lib/freadseek.c (freadptrinc): Likewise.
55684         Reported by Simon Josefsson.
55685
55686 2008-09-06  Bruno Haible  <bruno@clisp.org>
55687
55688         * modules/freadptr (License): Change to LGPLv2+.
55689         * modules/freadseek (License): Likewise.
55690         Suggested by Eric Blake.
55691
55692         * modules/memchr2 (License): Change to LGPLv2+.
55693         Approved by Eric Blake.
55694
55695 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55696             Bruno Haible  <bruno@clisp.org>
55697
55698         Make gnulib-tool work with native 'sed' on AIX.
55699         * gnulib-tool (sed_noop): New variable.
55700         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
55701         func_add_or_update, func_create_testdir): Use it to initialize sed
55702         script variables.
55703         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55704
55705 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
55706             Bruno Haible  <bruno@clisp.org>
55707
55708         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
55709         also works after #include directives.
55710
55711 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
55712
55713         getdate.y: reject an out-of-range timezone value
55714         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
55715         the range [-24...+24].  When specified with only one or two digits,
55716         * tests/test-getdate.c: Tests for the fix.
55717         * doc/getdate.texi: Document this change.
55718
55719 2008-09-03  Bruno Haible  <bruno@clisp.org>
55720
55721         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
55722
55723 2008-09-02  Simon Josefsson  <simon@josefsson.org>
55724
55725         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
55726         <bruce.korb@gmail.com> with ideas from Ben Pfaff
55727         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
55728         Blake <ebb9@byu.net>.
55729
55730         * tests/test-bitrotate.c: Add more test vectors.
55731
55732 2008-09-02  Eric Blake  <ebb9@byu.net>
55733
55734         vasnprintf-posix: handle large precision via %.*d
55735         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
55736         when handling it ourselves.
55737         * tests/test-vasnprintf-posix.c (test_function): Add test.
55738         * tests/test-snprintf-posix.h (test_function): Likewise.
55739         * tests/test-sprintf-posix.h (test_function): Likewise.
55740         * tests/test-vasprintf-posix.c (test_function): Likewise.
55741         Reported by Alain Guibert.
55742
55743 2008-09-01  Eric Blake  <ebb9@byu.net>
55744
55745         c-stack: make configure-time check more robust
55746         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
55747         successful sigaction call.
55748         Reported by Tom G. Christensen.
55749
55750 2008-09-01  Bruno Haible  <bruno@clisp.org>
55751
55752         New module 'findprog-lgpl'.
55753         * modules/findprog-lgpl: New file.
55754         * lib/findprog-lgpl.c: New file.
55755         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
55756         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
55757         to decide whether to use strdup or xstrdup, concatenated_filename or
55758         xconcatenated_filename.
55759
55760 2008-09-01  Bruno Haible  <bruno@clisp.org>
55761
55762         Split module 'concat-filename' into 'concat-filename' (LGPL) and
55763         'xconcat-filename' (GPL).
55764         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
55765         (License): Change to LGPLv2+.
55766         * modules/xconcat-filename: New file.
55767         * lib/concat-filename.h (concatenated_filename): Change specification.
55768         (xconcatenated_filename): New declaration.
55769         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
55770         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
55771         memory situations.
55772         * lib/xconcat-filename.c: New file.
55773         * NEWS: Mention the change.
55774         * lib/findprog.c: Include concat-filename.h, not filename.h.
55775         (find_in_path): Use xconcatenated_filename instead of
55776         concatenated_filename.
55777         * lib/javacomp.c: Include concat-filename.h, not filename.h.
55778         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55779         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55780         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55781         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
55782         instead of concatenated_filename.
55783         * lib/javaexec.c: Include concat-filename.h, not filename.h.
55784         (execute_java_class): Use xconcatenated_filename instead of
55785         concatenated_filename.
55786         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
55787         * modules/javacomp (Depends-on): Likewise.
55788         * modules/javaexec (Depends-on): Likewise.
55789
55790 2008-09-01  Bruno Haible  <bruno@clisp.org>
55791
55792         Split module 'filename' into 'filename' and 'concat-filename'.
55793         * modules/filename: Keep only lib/filename.h.
55794         (License): Change to LGPLv2+.
55795         * modules/concat-filename: New file, extracted from modules/filename.
55796         * lib/filename.h (concatenated_filename): Remove declaration.
55797         * lib/concat-filename.h: New file, extracted from lib/filename.h.
55798         * lib/concat-filename.c: Include concat-filename.h.
55799         * NEWS: Mention the change.
55800
55801 2008-09-01  Simon Josefsson  <simon@josefsson.org>
55802
55803         * lib/bitrotate.h (rotl8, rotr8): Add.
55804
55805         * modules/bitrotate (configure.ac): Need
55806         AC_REQUIRE([AC_C_INLINE]).
55807         (Description): Mention stdint.h.  Reported by Bruno Haible
55808         <bruno@clisp.org>.
55809
55810         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
55811         Paolo Bonzini <bonzini@gnu.org>.
55812
55813 2008-08-31  Bruno Haible  <bruno@clisp.org>
55814
55815         Assume Solaris specific bi-arch conventions on Solaris systems.
55816         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
55817         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
55818         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
55819         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
55820         like acl_libdirstem.
55821         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
55822         acl_libdirstem.
55823         * NEWS: Mention the change.
55824         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
55825
55826 2008-08-31  Jim Meyering  <meyering@redhat.com>
55827
55828         * lib/strftime.h: Add comments describing the two added arguments.
55829
55830         remove duplicate #include directives
55831         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
55832         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
55833
55834 2008-08-31  Bruno Haible  <bruno@clisp.org>
55835
55836         New module 'sigpipe-die'.
55837         * modules/sigpipe-die: New file.
55838         * lib/sigpipe-die.h: New file.
55839         * lib/sigpipe-die.c: New file.
55840         * MODULES.html.sh (Signal handling): Add sigpipe-die.
55841
55842 2008-08-31  Bruno Haible  <bruno@clisp.org>
55843
55844         Don't override previously installed signal handlers.
55845         * lib/fatal-signal.c (saved_sigactions): New variable.
55846         (uninstall_handlers): Reset the signal to the saved handler, not
55847         to SIG_DFL (except when ignored).
55848         (install_handlers): Save the previous handlers.
55849
55850 2008-08-30  Bruno Haible  <bruno@clisp.org>
55851
55852         * gnulib-tool (func_reset_sigpipe): New function.
55853         (func_get_automake_snippet, func_modules_transitive_closure,
55854         func_import): Invoke it before a join command that reads from stdin,
55855         to avoid "echo: write error: Broken pipe" error messages on stderr.
55856         Reported by Sam Steingold <sds@gnu.org>.
55857
55858 2008-08-30  Bruno Haible  <bruno@clisp.org>
55859
55860         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
55861         Code copied from m4/open.m4.
55862         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
55863         access and the filename ends in a slash. Code copied from lib/open.c.
55864         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
55865         * tests/test-fopen.c (main): Check against bug with trailing slash.
55866
55867 2008-08-29  Bruno Haible  <bruno@clisp.org>
55868
55869         Avoid some "gcc -pedantic" warnings.
55870         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
55871         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
55872         * lib/dirent.in.h: Likewise.
55873         * lib/fcntl.in.h: Likewise.
55874         * lib/float.in.h: Likewise.
55875         * lib/iconv.in.h: Likewise.
55876         * lib/inttypes.in.h: Likewise.
55877         * lib/locale.in.h: Likewise.
55878         * lib/math.in.h: Likewise.
55879         * lib/netinet_in.in.h: Likewise.
55880         * lib/search.in.h: Likewise.
55881         * lib/signal.in.h: Likewise.
55882         * lib/stdarg.in.h: Likewise.
55883         * lib/stdint.in.h: Likewise.
55884         * lib/stdio.in.h: Likewise.
55885         * lib/stdlib.in.h: Likewise.
55886         * lib/string.in.h: Likewise.
55887         * lib/strings.in.h: Likewise.
55888         * lib/sys_select.in.h: Likewise.
55889         * lib/sys_socket.in.h: Likewise.
55890         * lib/sys_stat.in.h: Likewise.
55891         * lib/sys_time.in.h: Likewise.
55892         * lib/sysexits.in.h: Likewise.
55893         * lib/time.in.h: Likewise.
55894         * lib/unistd.in.h: Likewise.
55895         * lib/wchar.in.h: Likewise.
55896         * lib/wctype.in.h: Likewise.
55897         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
55898         * modules/fchdir (Makefile.am): Likewise.
55899         * modules/fcntl (Makefile.am): Likewise.
55900         * modules/float (Makefile.am): Likewise.
55901         * modules/iconv_open (Makefile.am): Likewise.
55902         * modules/inttypes (Makefile.am): Likewise.
55903         * modules/locale (Makefile.am): Likewise.
55904         * modules/math (Makefile.am): Likewise.
55905         * modules/netinet_in (Makefile.am): Likewise.
55906         * modules/search (Makefile.am): Likewise.
55907         * modules/signal (Makefile.am): Likewise.
55908         * modules/stdarg (Makefile.am): Likewise.
55909         * modules/stdint (Makefile.am): Likewise.
55910         * modules/stdio (Makefile.am): Likewise.
55911         * modules/stdlib (Makefile.am): Likewise.
55912         * modules/string (Makefile.am): Likewise.
55913         * modules/strings (Makefile.am): Likewise.
55914         * modules/sys_select (Makefile.am): Likewise.
55915         * modules/sys_socket (Makefile.am): Likewise.
55916         * modules/sys_stat (Makefile.am): Likewise.
55917         * modules/sys_time (Makefile.am): Likewise.
55918         * modules/sysexits (Makefile.am): Likewise.
55919         * modules/time (Makefile.am): Likewise.
55920         * modules/unistd (Makefile.am): Likewise.
55921         * modules/wchar (Makefile.am): Likewise.
55922         * modules/wctype (Makefile.am): Likewise.
55923         Reported by Reuben Thomas <rrt@sc3d.org>.
55924
55925 2008-08-29  Bruno Haible  <bruno@clisp.org>
55926
55927         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
55928         any more.
55929
55930 2008-08-29  Simon Josefsson  <simon@josefsson.org>
55931
55932         * MODULES.html.sh (Misc): Add bitrotate.
55933
55934         * modules/bitrotate: New file.
55935
55936         * lib/bitrotate.h: New file.
55937
55938         * modules/bitrotate-tests: New file.
55939
55940         * tests/test-bitrotate.c: New file.
55941
55942         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
55943         on the bitrotate module.
55944
55945         * lib/arctwo.c: Use new bitrotate module.
55946
55947 2008-08-29  Jim Meyering  <meyering@redhat.com>
55948
55949         bootstrap: merge changes from coreutils
55950         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
55951         of copied files.  Remove a kludge, now that this is fixed.
55952         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
55953         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
55954         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
55955
55956 2008-08-29  Bruno Haible  <bruno@clisp.org>
55957
55958         * MODULES.html.sh: Remove --cvs-urls option.
55959
55960 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
55961
55962         maint.mk: adjust to file name change
55963         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
55964
55965 2008-08-28  Jim Meyering  <meyering@redhat.com>
55966
55967         * modules/getndelim2 (License): Relicense to LGPLv2+.
55968         Approved by Richard Stallman for the version of 1995, and by
55969         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
55970
55971 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
55972
55973         * lib/getdelim.c (flockfile, funlockfile): Make all of them
55974         dummy if one is not available.  Do not touch them if
55975         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
55976         (getc_maybe_unlocked): New.
55977         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
55978
55979 2008-08-26  Eric Blake  <ebb9@byu.net>
55980
55981         doc/INSTALL: resync from autoconf
55982         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
55983         (INSTALL_PRELUDE): Delete; this is done more efficiently by
55984         moving...
55985         * install.texi [!autoconf]: ...here.  Resync from autoconf.
55986         * INSTALL: Regenerate.
55987         * INSTALL.ISO: New file.
55988         * INSTALL.UTF-8: Likewise.
55989
55990 2008-08-26  Jim Meyering  <meyering@redhat.com>
55991
55992         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
55993         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
55994         these definitions conditional, so that they may be overridden, too.
55995
55996 2008-08-26  Bruno Haible  <bruno@clisp.org>
55997
55998         Generate INSTALL file variants with prettier quotes.
55999         * doc/Makefile (INSTALL_PRELUDE): New macro.
56000         (INSTALL): Use it.
56001         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56002
56003 2008-08-26  Bruno Haible  <bruno@clisp.org>
56004
56005         Run makeinfo in an English locale.
56006         * doc/Makefile (MAKEINFO): New variable.
56007
56008 2008-08-26  Bruno Haible  <bruno@clisp.org>
56009
56010         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56011         Suggested by Eric Blake.
56012
56013 2008-08-25  Bruno Haible  <bruno@clisp.org>
56014
56015         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56016
56017 2008-08-25  Eric Blake  <ebb9@byu.net>
56018
56019         c-stack: test that stack overflow can be caught
56020         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56021         that platform allows handling stack overflow; at least OS/2 EMX
56022         has sigaltstack, but crashes before transferring control to
56023         handler on stack overflow.
56024         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56025         check for HAVE_STACK_OVERFLOW_HANDLING.
56026         Reported by Elbert Pol.
56027
56028 2008-08-25  Bruno Haible  <bruno@clisp.org>
56029
56030         * doc/posix-functions/strftime.texi: Fix description of strftime
56031         module.
56032
56033 2008-08-24  Bruno Haible  <bruno@clisp.org>
56034
56035         * tests/uniwidth/test-uc_width2.c: New file.
56036         * tests/uniwidth/test-uc_width2.sh: New file.
56037         * modules/uniwidth/width-tests (Files): Add the new files.
56038         (TESTS): Add uniwidth/test-uc_width2.sh.
56039         (TESTS_ENVIRONMENT): New variable.
56040         (check_PROGRAMS): Add test-uc_width2.
56041         (test_uc_width2_SOURCES): New variable.
56042
56043         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56044         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56045         not 0x00AB.
56046         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56047
56048 2008-08-22  Eric Blake  <ebb9@byu.net>
56049
56050         test-lock, test-tls: mention why a test is skipped
56051         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56052         skipped.
56053         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56054
56055         count-one-bits: relax license
56056         * modules/count-one-bits (License): Relicense to LGPLv2+.
56057         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56058
56059 2008-08-22  Andreas Schwab  <schwab@suse.de>
56060
56061         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56062         Remove spurious space in assignment.
56063
56064 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56065
56066         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56067         Paul Eggert <eggert@CS.UCLA.EDU>.
56068
56069 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56070
56071         * modules/gettext: Add m4/threadlib.m4.
56072
56073 2008-08-19  Eric Blake  <ebb9@byu.net>
56074
56075         test-c-stack: fix compilation failure on FreeBSD 5.0
56076         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56077         headers before <sys/resource.h>.
56078         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56079         the bug.
56080         Reported by Nelson H. F. Beebe.
56081
56082         strverscmp: migrate from "strverscmp.h" to <string.h>
56083         * modules/string (Makefile.am): Add new hooks.
56084         * modules/strverscmp (Files): Remove strverscmp.h.
56085         (Depends-on): Add string.
56086         (configure.ac): Add indicator.
56087         (Include): Mention new header.
56088         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56089         defaults.
56090         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56091         results.
56092         * lib/strverscmp.h: Delete.
56093         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56094         * tests/test-strverscmp.c (includes): Adjust client.
56095         * lib/check-version.c (includes): Likewise.
56096         * NEWS: Document the change.
56097
56098         strverscmp: add unit test
56099         * modules/strverscmp-tests: New file.
56100         * tests/test-strverscmp.c: Likewise.
56101
56102 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56103
56104         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56105         regarding Windows crypto stuff, from Mono.
56106
56107 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56108
56109         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56110         if present, for intel RND.  Return error on failures.
56111
56112 2008-08-18  Ben Pfaff  <blp@gnu.org>
56113
56114         gitlog-to-changelog: give better diagnostic for failed pipe-open
56115         * build-aux/gitlog-to-changelog: Improve error message: suggest
56116         that the version of Git may be too old.
56117
56118 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56119
56120         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56121         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56122
56123 2008-08-18  Bruno Haible  <bruno@clisp.org>
56124
56125         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56126         pthread_in_use().
56127
56128 2008-08-18  Bruno Haible  <bruno@clisp.org>
56129
56130         * lib/glthread/threadlib.c: Include <pthread.h>.
56131
56132 2008-08-18  Bruno Haible  <bruno@clisp.org>
56133
56134         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56135         glthread_recursive_lock_* macros.
56136         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56137         Fix syntax error.
56138
56139 2008-08-18  Bruno Haible  <bruno@clisp.org>
56140
56141         * lib/glthread/thread.c: Avoid forcing a context switch right after
56142         thread creation.
56143
56144 2008-08-17  Bruno Haible  <bruno@clisp.org>
56145
56146         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56147         * lib/glthread/thread.h: Provide Win32 specific implementation.
56148         * modules/thread (Files): Add lib/glthread/thread.c.
56149         (Depends-on): Add lock.
56150         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56151
56152 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56153
56154         New module 'yield'.
56155         * modules/yield: New file.
56156         * lib/glthread/yield.h: New file.
56157         * m4/yield.m4: New file.
56158         * MODULES.html.sh (Multithreading): Add yield.
56159
56160 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56161
56162         New module 'thread'.
56163         * modules/thread: New file.
56164         * lib/glthread/thread.h: New file.
56165         * m4/thread.m4: New file.
56166         * MODULES.html.sh (Multithreading): Add thread.
56167
56168 2008-08-17  Bruno Haible  <bruno@clisp.org>
56169
56170         * lib/glthread/lock.h: Include <stdlib.h> always.
56171         * lib/glthread/tls.h: Likewise.
56172         * lib/glthread/cond.h: Likewise.
56173
56174 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56175
56176         New module 'cond'.
56177         * modules/cond: New file.
56178         * lib/glthread/cond.h: New file.
56179         * lib/glthread/cond.c: New file.
56180         * m4/cond.m4: New file.
56181         * MODULES.html.sh (Multithreading): Add cond.
56182
56183 2008-08-16  Eric Blake  <ebb9@byu.net>
56184
56185         c-stack: fix regression on Irix 5.3 from 2008-06-21
56186         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56187         sa_sigaction...
56188         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56189         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56190         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56191         * modules/signal (Makefile.am): Use the value.
56192         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56193         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56194         * doc/posix-headers/signal.texi (signal.h): Document this
56195         portability issue.
56196         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56197         Reported by Tom G. Christensen.
56198
56199 2008-08-17  Bruno Haible  <bruno@clisp.org>
56200
56201         New module 'threadlib'.
56202         * modules/threadlib: New file.
56203         * lib/glthread/threadlib.c: New file, extracted from
56204         lib/glthread/lock.c.
56205         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56206         functions.
56207         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56208         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56209         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56210         macros.
56211         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56212         (gl_DISABLE_THREADS): Remove macro.
56213         * modules/lock (Files): Remove build-aux/config.rpath.
56214         (Depends-on): Remove havelib. Add threadlib.
56215         (configure.ac-early): Remove section.
56216         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56217         * modules/tls (Depends-on): Remove lock. Add threadlib.
56218         (Link): New section, copied from threadlib.
56219         * MODULES.html.sh (Multithreading): Add threadlib.
56220
56221 2008-08-14  Bruno Haible  <bruno@clisp.org>
56222
56223         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56224         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56225         glthread_rwlock_unlock, glthread_rwlock_destroy,
56226         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56227         glthread_recursive_lock_destroy): Define as macros always.
56228         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56229         glthread_lock_lock.
56230         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56231         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56232         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56233         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56234         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56235         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56236         (glthread_recursive_lock_lock_func): Renamed from
56237         glthread_recursive_lock_lock.
56238         (glthread_recursive_lock_unlock_func): Renamed from
56239         glthread_recursive_lock_unlock.
56240         (glthread_recursive_lock_destroy_func): Renamed from
56241         glthread_recursive_lock_destroy.
56242
56243 2008-08-14  Bruno Haible  <bruno@clisp.org>
56244
56245         * lib/glthread/lock.h: Renamed from lib/lock.h.
56246         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56247         * lib/glthread/tls.h: Renamed from lib/tls.h.
56248         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56249         * lib/fstrcmp.c: Update includes.
56250         * lib/strsignal.c: Update includes.
56251         * modules/lock (Files, Makefile.am): Update.
56252         (Include): Change to "glthread/lock.h".
56253         * modules/tls (Files, Makefile.am): Update.
56254         (Include): Change to "glthread/tls.h".
56255         * tests/test-lock.c: Update includes.
56256         * tests/test-tls.c: Update includes.
56257         * NEWS: Mention the renamed header files.
56258
56259 2008-08-11  Jim Meyering  <meyering@redhat.com>
56260
56261         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56262
56263 2008-08-11  Eric Blake  <ebb9@byu.net>
56264
56265         test-c-stack: avoid C99-ism
56266         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56267         before statement.
56268         Reported by Alain Guibert.
56269
56270 2008-08-10  Jim Meyering  <meyering@redhat.com>
56271
56272         ensure that return value of uinttostr et al are not ignored
56273         * lib/inttostr.h (__GNUC_PREREQ): Define.
56274         (__attribute_warn_unused_result__): Define.
56275         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56276
56277 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56278
56279         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56280         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56281
56282 2008-08-07  Jim Meyering  <meyering@redhat.com>
56283
56284         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56285
56286         * modules/mkstemp (License): Relicense under LGPLv2+.
56287         * modules/tempname (License): Likewise.
56288
56289 2008-08-06  Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/poll.c (poll): Further micro-optimization.
56292
56293 2008-08-06  Jim Meyering  <meyering@redhat.com>
56294
56295         inet_pton.c: use locale-independent tolower
56296         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56297         (inet_pton6): Use c_tolower rather than tolower.
56298         * modules/inet_pton (Depends-on): Add c-ctype.
56299
56300 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56301
56302         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56303         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56304
56305 2008-08-06  Jim Meyering  <meyering@redhat.com>
56306
56307         * modules/inet_pton (License): Relicense under LGPLv2+.
56308
56309 2008-08-03  Bruno Haible  <bruno@clisp.org>
56310
56311         Additional non-aborting API for lock and tls.
56312         * lib/lock.h: Include <errno.h>.
56313         (glthread_lock_init): New macro/function.
56314         (gl_lock_init): Define as wrapper around glthread_lock_init.
56315         (glthread_lock_lock): New macro/function.
56316         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56317         (glthread_lock_unlock): New macro/function.
56318         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56319         (glthread_lock_destroy): New macro/function.
56320         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56321         (glthread_rwlock_init): New macro/function.
56322         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56323         (glthread_rwlock_rdlock): New macro/function.
56324         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56325         (glthread_rwlock_wrlock): New macro/function.
56326         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56327         (glthread_rwlock_unlock): New macro/function.
56328         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56329         (glthread_rwlock_destroy): New macro/function.
56330         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56331         (glthread_recursive_lock_init): New macro/function.
56332         (gl_recursive_lock_init): Define as wrapper around
56333         glthread_recursive_lock_init.
56334         (glthread_recursive_lock_lock): New macro/function.
56335         (gl_recursive_lock_lock): Define as wrapper around
56336         glthread_recursive_lock_lock.
56337         (glthread_recursive_lock_unlock): New macro/function.
56338         (gl_recursive_lock_unlock): Define as wrapper around
56339         glthread_recursive_lock_unlock.
56340         (glthread_recursive_lock_destroy): New macro/function.
56341         (gl_recursive_lock_destroy): Define as wrapper around
56342         glthread_recursive_lock_destroy.
56343         (glthread_once): New macro/function.
56344         (gl_once): Define as wrapper around glthread_once.
56345         Update function declarations.
56346         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56347         glthread_rwlock_init. Return error code.
56348         (glthread_rwlock_rdlock_multithreaded): Renamed from
56349         glthread_rwlock_rdlock. Return error code.
56350         (glthread_rwlock_wrlock_multithreaded): Renamed from
56351         glthread_rwlock_wrlock. Return error code.
56352         (glthread_rwlock_unlock_multithreaded): Renamed from
56353         glthread_rwlock_unlock. Return error code.
56354         (glthread_rwlock_destroy_multithreaded): Renamed from
56355         glthread_rwlock_destroy. Return error code.
56356         (glthread_recursive_lock_init_multithreaded): Renamed from
56357         glthread_recursive_lock_init. Return error code.
56358         (glthread_recursive_lock_lock_multithreaded): Renamed from
56359         glthread_recursive_lock_lock. Return error code.
56360         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56361         glthread_recursive_lock_unlock. Return error code.
56362         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56363         glthread_recursive_lock_destroy. Return error code.
56364         (glthread_once_call): Make static.
56365         (glthread_once_multithreaded): Renamed from glthread_once.
56366         * lib/tls.h: Include <errno.h>.
56367         (glthread_tls_key_init): New macro/function.
56368         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56369         (glthread_tls_set): New macro/function.
56370         (gl_tls_set): Define as wrapper around glthread_tls_set.
56371         (glthread_tls_key_destroy): New macro/function.
56372         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56373         Update function declarations.
56374         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56375         glthread_tls_get.
56376         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56377
56378 2008-08-04  Eric Blake  <ebb9@byu.net>
56379
56380         gnumakefile: use space, not TAB, outside of targets
56381         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56382
56383 2008-08-02  Jim Meyering  <meyering@redhat.com>
56384
56385         getdate.y: avoid locale-dependent date parsing failure
56386         In Turkish locales, getdate would fail to recognize keywords
56387         containing a lowercase "i".  The solution is not to rely on
56388         locale-sensitive case-conversion.
56389         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56390         (lookup_word): Use c_toupper in place of toupper.
56391         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56392         Reported by Vefa Bicakci <bicave@superonline.com> in
56393         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56394         * modules/getdate (Depends-on): Add c-ctype.
56395
56396 2008-08-02  Bruno Haible  <bruno@clisp.org>
56397
56398         * gnulib-tool (func_import): When updating or creating a .gitignore
56399         file, prepend each added line with a slash, and ignore leading slashes
56400         from the existing lines.
56401         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56402
56403 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56404
56405         Portability fix for GNU make 3.79.1.
56406         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56407         versions do not understand.
56408
56409 2008-08-01  Bruno Haible  <bruno@clisp.org>
56410
56411         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56412         * tests/test-isnanf.h (zero): New variable.
56413         (main): Avoid literal -0.0f.
56414         * tests/test-isnand.h (zero): New variable.
56415         (main): Avoid literal -0.0.
56416         * tests/test-isnanl.h (zero): New variable.
56417         (main): Avoid literal -0.0L.
56418         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56419         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56420         -0.0, -0.0L.
56421         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56422         (test_signbitd): Avoid literal -0.0.
56423         (test_signbitl): Avoid literal -0.0L.
56424         * tests/test-ceilf1.c (zero): New variable.
56425         (main): Avoid literal -0.0f.
56426         * tests/test-ceill.c (zero): New variable.
56427         (main): Avoid literal -0.0L.
56428         * tests/test-floorf1.c (zero): New variable.
56429         (main): Avoid literal -0.0f.
56430         * tests/test-floorl.c (zero): New variable.
56431         (main): Avoid literal -0.0L.
56432         * tests/test-roundf1.c (zero): New variable.
56433         (main): Avoid literal -0.0f.
56434         * tests/test-round1.c (zero): New variable.
56435         (main): Avoid literal -0.0.
56436         * tests/test-roundl.c (zero): New variable.
56437         (main): Avoid literal -0.0L.
56438         * tests/test-truncf1.c (zero): New variable.
56439         (main): Avoid literal -0.0f.
56440         * tests/test-trunc1.c (zero): New variable.
56441         (main): Avoid literal -0.0.
56442         * tests/test-truncl.c (zero): New variable.
56443         (main): Avoid literal -0.0L.
56444         * tests/test-frexp.c (zero): New variable.
56445         (main): Avoid literal -0.0.
56446         * tests/test-frexpl.c (zero): New variable.
56447         (main): Avoid literal -0.0L.
56448         * tests/test-ldexpl.c (zero): New variable.
56449         (main): Avoid literal -0.0L.
56450         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56451         (zerod, zerol): New variables.
56452         (test_function): Avoid literals -0.0, -0.0L.
56453         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56454         (zerod, zerol): New variables.
56455         (test_function): Avoid literals -0.0, -0.0L.
56456         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56457         (zerod, zerol): New variables.
56458         (test_function): Avoid literals -0.0, -0.0L.
56459         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56460         (zerod, zerol): New variables.
56461         (test_function): Avoid literals -0.0, -0.0L.
56462         * tests/test-strtod.c (zero): New variable.
56463         (main): Avoid literal -0.0.
56464         Reported by Jonathan C. Patschke <jp@centtech.com>.
56465
56466 2008-07-31  Jim Meyering  <meyering@redhat.com>
56467
56468         sha256.h: correct definition of SHA224_DIGEST_SIZE
56469         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56470         Reported by Paulie Pena IV <paulie4@gmail.com>.
56471         Define as 224 / 8, rather than as a literal.
56472         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56473         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56474         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56475
56476 2008-07-31  Bruno Haible  <bruno@clisp.org>
56477
56478         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56479         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56480         Reported by Jonathan Patschke <jp@centtech.com>.
56481
56482 2008-07-31  Bruno Haible  <bruno@clisp.org>
56483
56484         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56485         Reported by Paolo Bonzini <bonzini@gnu.org>.
56486
56487 2008-07-30  Eric Blake  <ebb9@byu.net>
56488
56489         test-strtod: allow compilation without -lm
56490         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56491         Reported by Dennis Clarke <blastwave@gmail.com>.
56492
56493 2008-07-28  Jim Meyering  <meyering@redhat.com>
56494
56495         bootstrap: work also when there are no .po files in po/
56496         * build-aux/bootstrap (update_po_files): Complete the change
56497         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56498
56499 2008-07-27  Jim Meyering  <meyering@redhat.com>
56500
56501         * users.txt: Add zile.
56502
56503 2008-07-26  Ben Pfaff  <blp@gnu.org>
56504
56505         Add missing dependencies on new m4/exponent[fdl].m4 files.
56506         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56507         * modules/isnand-nolibm: Add m4/exponentd.m4.
56508         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56509         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56510         m4/isnan[fdl].m4, because the macros actually used moved.
56511         Reported by Jim Meyering.
56512
56513 2008-07-14  Ben Pfaff  <blp@gnu.org>
56514
56515         Add isinf module.
56516         * lib/isinf.c: New file.
56517         * lib/math.in.h: Define isinf macro if we have decided to replace
56518         it.
56519         * m4/isinf.m4: New file.
56520         * m4/math_h.m4: Initialize and substitute variables for isinf
56521         module.
56522         * modules/isinf: New file.
56523         * modules/isinf-tests: New file.
56524         * modules/math: Add substitutions for new module.
56525         * tests/test-isinf.c: New file.
56526         * doc/posix-functions/isinf.texi: Mention new module.
56527         * MODULES.html.sh: Mention new module.
56528
56529 2008-07-14  Ben Pfaff  <blp@gnu.org>
56530
56531         Factor out some macros for use by additional modules.
56532         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56533         exponentf.m4.
56534         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56535         exponentd.m4.
56536         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56537         file exponentl.m4.
56538         * m4/exponentf.m4: New file.
56539         * m4/exponentd.m4: New file.
56540         * m4/exponentl.m4: New file.
56541         * modules/isnanf: Use new file m4/exponentf.m4.
56542         * modules/isnand: Use new file m4/exponentd.m4.
56543         * modules/isnanl: Use new file m4/exponentl.m4.
56544
56545 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56546
56547         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56548         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56549         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56550         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56551
56552         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56553         readlink on platforms without PATH_MAX.
56554
56555 2008-07-21  Eric Blake  <ebb9@byu.net>
56556
56557         Warn, not fail, on stale version.
56558         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56559
56560         Don't allow installation with stale devel version number.
56561         * top/GNUmakefile (_is-install-target): New macro.
56562         (_curr-ver): Forbid installation with stale version number.
56563
56564 2008-07-20  Bruno Haible  <bruno@clisp.org>
56565
56566         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56567         TESTS_ENVIRONMENT.
56568         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56569
56570 2008-07-20  Bruno Haible  <bruno@clisp.org>
56571
56572         * lib/c-stack.h (c_stack_action): Add documentation.
56573         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56574
56575 2008-07-20  Bruno Haible  <bruno@clisp.org>
56576
56577         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56578         * modules/readlink (License): Likewise.
56579
56580 2008-07-17  Eric Blake  <ebb9@byu.net>
56581
56582         * modules/c-stack (Link): Fix typo.
56583
56584         Make c-stack use libsigsegv, when available.
56585         * modules/c-stack (Depends-on): Add libsigsegv.
56586         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
56587         needed.
56588         * lib/c-stack.c (SIGSTKSZ): Define fallback.
56589         (segv_handler, overflow_handler, c_stack_action)
56590         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
56591         implementation when libsigsegv is available, but only when using
56592         the library is necessary.
56593         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
56594         comment, explaining why XSI check fails on Linux.
56595         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
56596         * tests/test-c-stack2.sh: Tweak skip message.
56597         * NEWS: Document new link-time requirements.
56598
56599 2008-07-16  Eric Blake  <ebb9@byu.net>
56600
56601         c-stack: Expose false positives when not using libsigsegv.
56602         * modules/c-stack-tests (Files): Expand test.
56603         * tests/test-c-stack.c (main): Add means to conditionally trigger
56604         non-overflow SIGSEGV.
56605         * tests/test-c-stack2.sh: New file.
56606
56607 2008-07-14  Bruno Haible  <bruno@clisp.org>
56608
56609         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
56610         Reported by Eric Blake.
56611
56612 2008-07-14  Sam Steingold  <sds@gnu.org>
56613             Bruno Haible  <bruno@clisp.org>
56614
56615         New module libsigsegv.
56616         * modules/libsigsegv: New file.
56617         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
56618         modifications.
56619         * MODULES.html.sh (Signal handling): New section.
56620
56621 2008-07-14  Bruno Haible  <bruno@clisp.org>
56622
56623         * modules/unictype/ctype-* (Description): Add the word "function".
56624         Improves the resulting doc in MODULES.html.
56625
56626 2008-07-12  Ben Pfaff  <blp@gnu.org>
56627
56628         Add longlong module.
56629         * modules/longlong: New file.
56630
56631 2008-07-12  Bruno Haible  <bruno@clisp.org>
56632
56633         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
56634         to empty.
56635
56636 2008-07-10  Ben Pfaff  <blp@gnu.org>
56637
56638         Add isnan module.
56639         * doc/posix-functions/isnan.texi: Mention new module.
56640         * lib/math.in.h: Define isnan macro if we have decided to replace
56641         it.
56642         * m4/isnan.m4: New file.
56643         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
56644         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
56645         also.
56646         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
56647         redundancy.
56648         * m4/math_h.m4: Initialize and substitute variables for isnan
56649         module.
56650         * modules/isnan: New file.
56651         * modules/isnan-tests: New file.
56652         * modules/math: Add substitutions for new module.
56653         * tests/test-isnan.c: New file.
56654         * MODULES.html.sh: Mention new module.
56655
56656 2008-07-10  Ben Pfaff  <blp@gnu.org>
56657
56658         Add isnanf module.
56659         * lib/isnanf.m4: New file.
56660         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
56661         (gl_HAVE_ISNANF_IN_LIBM): New macro.
56662         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
56663         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
56664         * modules/isnanf: New file.
56665         * modules/isnanf-tests: New file.
56666         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
56667         files.
56668         * tests/test-isnanf-nolibm.c: factored most of its contents into
56669         new file tests/test-isnanf.h.
56670         * tests/test-isnanf.h: New file.
56671         * tests/test-isnanf.c: New file.
56672         * MODULES.html.sh: Mention new module.
56673         * doc/glibc-functions/isnanf.texi: Mention new module.
56674
56675 2008-07-10  Ben Pfaff  <blp@gnu.org>
56676
56677         Add isnand module.
56678         * lib/isnand.h: New file.
56679         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
56680         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
56681         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
56682         functionality also.
56683         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
56684         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
56685         (gl_HAVE_ISNAND_IN_LIBM): New macro.
56686         * modules/isnand: New file.
56687         * modules/isnand-tests: New file.
56688         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
56689         files.
56690         * tests/test-isnand-nolibm.c: factored most of its contents into
56691         new file tests/test-isnand.h.
56692         * tests/test-isnand.h: New file.
56693         * tests/test-isnand.c: New file.
56694         * MODULES.html.sh: Mention new module.
56695
56696 2008-07-10  Ben Pfaff  <blp@gnu.org>
56697
56698         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
56699         * lib/isnand.h: Rename lib/isnand-nolibm.h.
56700         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
56701         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
56702         * modules/isnanf-nolibm: Update references to renamed files.
56703         * modules/isnand-nolibm: Likewise.
56704         * modules/isnanf-nolibm-tests: Likewise.
56705         * modules/isnand-nolibm-tests: Likewise.
56706         * lib/frexp.c: Likewise.
56707         * lib/isfinite.c: Likewise.
56708         * lib/signbitd.c: Likewise.
56709         * lib/signbitf.c: Likewise.
56710         * lib/vasnprintf.c: Likewise.
56711         * tests/test-ceilf1.c: Likewise.
56712         * tests/test-ceilf2.c: Likewise.
56713         * tests/test-floorf1.c: Likewise.
56714         * tests/test-floorf2.c: Likewise.
56715         * tests/test-frexp.c: Likewise.
56716         * tests/test-round1.c: Likewise.
56717         * tests/test-round2.c: Likewise.
56718         * tests/test-roundf1.c: Likewise.
56719         * tests/test-strtod.c: Likewise.
56720         * tests/test-trunc1.c: Likewise.
56721         * tests/test-trunc2.c: Likewise.
56722         * tests/test-truncf1.c: Likewise.
56723         * tests/test-truncf2.c: Likewise.
56724         * NEWS: Mention the renamed header files.
56725
56726 2008-07-11  Jim Meyering  <meyering@redhat.com>
56727
56728         vc-list-files: make the last-resort awk code more portable
56729         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
56730         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
56731         does not support it.
56732
56733 2008-07-10  Eric Blake  <ebb9@byu.net>
56734
56735         Work with tar's bootstrap.
56736         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
56737         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
56738         an m4 comment.
56739
56740 2008-07-09  Jim Meyering  <meyering@redhat.com>
56741
56742         posix-shell.m4: fix typo that made this test malfunction
56743         * m4/posix-shell.m4: Remove capitalization in variable name.
56744
56745 2008-07-08  Bruno Haible  <bruno@clisp.org>
56746
56747         * m4/onceonly.m4: Update comments.
56748         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56749
56750 2008-07-04  Jim Meyering  <meyering@redhat.com>
56751
56752         * users.txt: Add vc-dwim.
56753         (bison, coreutils): Use the gitweb URL.
56754
56755 2008-07-03  Jim Meyering  <meyering@redhat.com>
56756
56757         * users.txt: Add libffcall.  From Sam Steingold.
56758
56759 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
56760
56761         getdate.y: do not ignore TZ with relative day, month or year offset
56762         * lib/getdate.y (get_date): Move the tz-handling block to follow the
56763         relative-date-handling, since otherwise, the latter would clobber the
56764         sole output (an updated Start value) of the tz-handling block.
56765         * tests/test-getdate.c: Tests for the fix
56766
56767 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56768
56769         Recognize 'foo_LIBRARIES += libgnu.a'.
56770         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
56771         makefile snippet has already specified an installation location,
56772         also using '+='.
56773
56774 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
56775
56776         getdate.y: factor out common actions
56777         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
56778         Use them in place of open-coded actions.
56779
56780 2008-07-01  Simon Josefsson  <simon@josefsson.org>
56781
56782         Add self-test for getdate module.
56783         * modules/getdate-tests: New file.
56784         * tests/test-getdate.c: New file.
56785
56786 2008-06-29  Bruno Haible  <bruno@clisp.org>
56787
56788         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
56789         .gitignore.
56790         Reported by Sylvain Beucler <beuc@beuc.net>.
56791
56792 2008-06-29  Bruno Haible  <bruno@clisp.org>
56793
56794         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
56795         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
56796
56797 2008-06-29  Bruno Haible  <bruno@clisp.org>
56798
56799         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
56800         EXTRA_DIST.
56801         Reported by Sylvain Beucler <beuc@beuc.net>.
56802
56803 2008-06-26  Jim Meyering  <meyering@redhat.com>
56804
56805         make several modules depend on the "open" module
56806         This provides slightly increased consistency when opening-for-write
56807         the name of a non-directory spelled with a trailing slash.
56808         * modules/chdir-safer: Likewise.
56809         * modules/chown: Likewise.
56810         * modules/clean-temp: Likewise.
56811         * modules/copy-file: Likewise.
56812         * modules/fchdir: Likewise.
56813         * modules/fcntl-safer: Likewise.
56814         * modules/pipe: Likewise.
56815         * modules/utime: Likewise.
56816         Prompted by Eric Blake and Bruno Haible.
56817
56818 2008-06-24  Andreas Schwab  <schwab@suse.de>
56819
56820         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
56821         literals can be used as initializers for global variables.
56822
56823 2008-06-23  Eric Blake  <ebb9@byu.net>
56824
56825         Make gnulib-cache.m4 easier to diff.
56826         * gnulib-tool (func_import): Allow newlines when reading cached
56827         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
56828
56829 2008-06-23  Bruno Haible  <bruno@clisp.org>
56830
56831         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
56832         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
56833         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
56834         m4/signalblocking.m4.
56835         (gl_PREREQ_SIGACTION): Don't invoke it.
56836         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
56837         gl_PREREQ_SIG_HANDLER_H.
56838         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56839         Don't check for sigaction here.
56840
56841 2008-06-23  Bruno Haible  <bruno@clisp.org>
56842
56843         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
56844         (install_handlers): Don't set the SA_RESETHAND flag.
56845
56846 2008-06-23  Bruno Haible  <bruno@clisp.org>
56847
56848         * m4/sigaction.m4: Comment fixes.
56849         * lib/signal.in.h: Likewise.
56850
56851 2008-06-23  Eric Blake  <ebb9@byu.net>
56852
56853         Fix typo.
56854         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
56855
56856         Avoid SA_ namespace.
56857         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
56858         Reported by Ralf Wildenhues.
56859
56860         Avoid test failure due to SA_RESTORER.
56861         * tests/test-sigaction.c (SA_MASK): New macro.
56862         (main): Avoid failing due to extension flags being set.
56863         Reported by Jim Meyering.
56864
56865         Revert use of sig-handler.h in sigprocmask.c.
56866         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
56867         it requires the existence of struct sigaction.
56868         * lib/sigprocmask.c (handler_t): Restore typedef.
56869         (rpl_signal, old_handlers): Use local type.
56870
56871 2008-06-22  Bruno Haible  <bruno@clisp.org>
56872
56873         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
56874         conditionally.
56875         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56876
56877 2008-06-22  Bruno Haible  <bruno@clisp.org>
56878
56879         * doc/posix-functions/siginterrupt.texi: Move note.
56880
56881         * lib/signal.in.h (SA_RESTART): New macro.
56882         * lib/sigaction.c: Update comment.
56883
56884         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
56885
56886         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
56887         (gl_PREREQ_SIGPROCMASK): Invoke it.
56888         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
56889
56890         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
56891
56892         * lib/sigprocmask.c: Update a comment.
56893
56894 2008-06-21  Eric Blake  <ebb9@byu.net>
56895
56896         Use sigaction module rather than signal().
56897         * modules/c-stack (Depends-on): Add sigaction.
56898         * modules/fatal-signal (Depends-on): Likewise.
56899         * modules/nanosleep (Depends-on): Likewise.
56900         * modules/sigprocmask (Files): Add sig-handler.h.
56901         * modules/sigaction (Files): Likewise.
56902         * lib/sig-handler.h (get_handler): New file, suggested by Paul
56903         Eggert.
56904         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
56905         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
56906         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
56907         (init_fatal_signals): Likewise.
56908         * lib/nanosleep.c (rpl_nanosleep): Likewise.
56909         (siginterrupt): Delete fallback.
56910         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
56911         instead.
56912         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
56913         siginterrupt.
56914
56915         New module sigaction, for mingw.
56916         * modules/sigaction: New module...
56917         * modules/sigaction-tests: ...and its test.
56918         * m4/sigaction.m4: New file.
56919         * lib/sigaction.c: Likewise.
56920         * tests/test-sigaction.c: Likewise.
56921         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
56922         * modules/signal (Makefile.am): Likewise.
56923         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
56924         needed.
56925         * doc/posix-headers/signal.texi (signal.h): Mention provided
56926         types.
56927         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
56928         that sigaction is preferable.
56929         * doc/posix-functions/sigaction.texi (sigaction): Mention new
56930         module.
56931         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56932         sigaction.
56933
56934         Improve robustness of sigprocmask by overriding signal.
56935         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
56936         is in use.
56937         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
56938         (SIGKILL, SIGSTOP): Provide fallbacks.
56939         (rpl_signal): Implement.
56940         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
56941         signal can be called inside handlers.
56942
56943         Fix nanosleep module on mingw.
56944         * modules/nanosleep (Depends-on): Add sys_select.
56945         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
56946
56947         Fix licensing of sigprocmask.
56948         * modules/raise (License): Relicense as LGPL.
56949
56950 2008-06-21  Bruno Haible  <bruno@clisp.org>
56951
56952         * lib/propername.c (proper_name_utf8): Don't use the transliterated
56953         result if it contains question marks.
56954         Reported by Michael Geng <linux@michaelgeng.de>.
56955
56956 2008-06-19  Bruno Haible  <bruno@clisp.org>
56957
56958         Fix CVS-ism.
56959         * doc/gnulib.texi: Include updated-stamp.texi.
56960         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
56961         (updated-stamp.texi): New rule.
56962         (gnulib.info): Depend on it.
56963         * doc/.gitignore: Add updated-stamp.texi.
56964         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
56965
56966 2008-06-19  Bruno Haible  <bruno@clisp.org>
56967
56968         * doc/Makefile (gnulib.info): Update and simplify dependencies.
56969         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56970
56971 2008-06-19  Eric Blake  <ebb9@byu.net>
56972
56973         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
56974         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
56975         Reported by Stepan Kasal.
56976
56977 2008-06-18  Bruno Haible  <bruno@clisp.org>
56978
56979         * lib/fatal-signal.c (init_fatal_signals): Add comment.
56980         Reported by Eric Blake.
56981
56982 2008-06-18  Eric Blake  <ebb9@byu.net>
56983
56984         Work around cygwin 1.5.25 strsignal bug.
56985         * tests/test-strsignal.c: Allow for const char *.
56986         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
56987
56988 2008-06-18  Simon Josefsson  <simon@josefsson.org>
56989
56990         * users.txt: Update URL to article and add author/date
56991         information.
56992
56993 2008-06-17  Bruno Haible  <bruno@clisp.org>
56994
56995         New macro gl_DISABLE_THREADS.
56996         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
56997         if the user did not pass --enable-threads or --disable-threads option.
56998         (gl_DISABLE_THREADS): New macro.
56999         Reported by Eric Blake <ebb9@byu.net>.
57000
57001 2008-06-17  Bruno Haible  <bruno@clisp.org>
57002
57003         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57004         when the macro ignores it.
57005         Based on a patch by Eric Blake <ebb9@byu.net>.
57006
57007 2008-06-17  Bruno Haible  <bruno@clisp.org>
57008
57009         * modules/tls (License): Change to LGPLv2+.
57010         Reported by Eric Blake.
57011
57012 2008-06-17  Eric Blake  <ebb9@byu.net>
57013
57014         Simplify c-stack prerequisites.
57015         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57016         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57017         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57018         check.
57019         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57020         <sys/resource.h>.
57021
57022         Move c-stack test into testsuite.
57023         * modules/c-stack-tests: New file.
57024         * lib/c-stack.c [DEBUG]: Move test program...
57025         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57026         fail test if sigaltstack is lacking.
57027         * tests/test-c-stack.sh: New driver file.
57028
57029 2008-06-16  Eric Blake  <ebb9@byu.net>
57030
57031         Use raise module consistently.
57032         * modules/fatal-signal (Depends-on): Add raise.
57033         * modules/sigprocmask (Depends-on): Likewise.
57034         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57035         * lib/sigprocmask.c (sigprocmask): Likewise.
57036         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57037         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57038
57039         Fix compliance bug in sigpending.
57040         * lib/sigprocmask.c (sigpending): Return pending array via
57041         parameter, not return value.
57042
57043 2008-06-14  Eric Blake  <ebb9@byu.net>
57044
57045         Improve obstack-printf test code.
57046         * tests/test-obstack-printf.c (test_function): Fix comment, and
57047         simplify usage of obstack_* in macros.  Add a test for coverage.
57048         Reported by Bruno Haible.
57049
57050 2008-06-14  Bruno Haible  <bruno@clisp.org>
57051
57052         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57053         array size as a constant, not as a const variable.
57054         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57055         AC_USE_SYSTEM_EXTENSIONS.
57056         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57057         Test whether the obstack_printf function actually exists.
57058         * modules/obstack-printf (Depends-on): Add extensions.
57059         (Include): Remove obstack.h.
57060         * modules/obstack-printf-posix (Depends-on): Add extensions.
57061         (Include): Remove obstack.h.
57062
57063 2008-06-13  Eric Blake  <ebb9@byu.net>
57064
57065         Add obstack-printf and obstack-printf-posix modules.
57066         * modules/obstack-printf: New file.
57067         * modules/obstack-printf-posix: Likewise.
57068         * MODULES.html.sh (Misc): Mention them.
57069         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57070         Likewise.
57071         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57072         Likewise.
57073         * modules/stdio (Makefile.am): Accomodate new modules.
57074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57075         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57076         Declare.
57077         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57078         functions.
57079         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57080         (gl_REPLACE_OBSTACK_PRINTF): New macros
57081         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57082         * tests/test-obstack-printf.c: New file.
57083         * modules/obstack-printf-tests: Likewise.
57084         * modules/obstack-printf-posix-tests: Likewise.
57085
57086 2008-06-11  Bruno Haible  <bruno@clisp.org>
57087
57088         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57089         * lib/open.c: Include errno.h.
57090         (open): Fail when attempting to write to a file that has a trailing
57091         slash.
57092         * tests/test-open.c (main): Test against trailing slash bug.
57093         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57094
57095 2008-06-10  Bruno Haible  <bruno@clisp.org>
57096
57097         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57098         for $? to work inside the trap command, with various /bin/sh-s.
57099         * tests/test-vc-list-files-cvs.sh: Likewise.
57100
57101 2008-06-10  Bruno Haible  <bruno@clisp.org>
57102
57103         * lib/acl-internal.h: Don't include gettext.h here.
57104         * lib/set-mode-acl.c: Include gettext.h here.
57105         * lib/copy-acl.c: Likewise.
57106
57107 2008-06-10  Bruno Haible  <bruno@clisp.org>
57108
57109         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57110         * lib/wait-process.c (wait_subprocess): Likewise.
57111         * lib/execute.h (execute): Add termsigp argument.
57112         * lib/execute.c (execute): Likewise.
57113         * lib/csharpcomp.c (compile_csharp_using_pnet,
57114         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57115         * lib/csharpexec.c (execute_csharp_using_pnet,
57116         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57117         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57118         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57119         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57120         is_jikes_present): Update.
57121         * lib/javaexec.c (execute_java_class): Update.
57122         * lib/javaversion.c (execute_and_read_line): Update.
57123         * NEWS: Document the changes.
57124         Reported by Eric Blake.
57125
57126 2008-06-10  Eric Blake  <ebb9@byu.net>
57127
57128         Add missing include.
57129         * tests/test-strstr.c (includes): Add <signal.h>.
57130         * tests/test-strcasestr.c (includes): Likewise.
57131         * tests/test-memmem.c (includes): Likewise.
57132
57133 2008-06-10  Bruno Haible  <bruno@clisp.org>
57134
57135         * lib/wait-process.c (wait_subprocess): Add an assertion.
57136
57137 2008-06-10  Bruno Haible  <bruno@clisp.org>
57138
57139         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57140
57141 2008-06-10  Bruno Haible  <bruno@clisp.org>
57142
57143         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57144         using alarm().
57145         * tests/test-strcasestr.c (main): Likewise.
57146         * tests/test-strstr.c (main): Likewise.
57147
57148 2008-06-09  Bruno Haible  <bruno@clisp.org>
57149
57150         Work around the Solaris 10 ACE ACLs ABI change.
57151         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57152         declare if ACL_NO_TRIVIAL is present.
57153         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57154         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57155         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57156         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57157         define if ACL_NO_TRIVIAL is present.
57158         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57159         and use the current ABI.
57160         (file_has_acl): Use same #if condition as elsewhere.
57161         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57162         in use, and use the current ABI.
57163         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57164         Reported by Jim Meyering.
57165
57166 2008-06-09  Eric Blake  <ebb9@byu.net>
57167
57168         Work around environments that (stupidly) ignore SIGALRM.
57169         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57170         before using alarm().
57171         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57172         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57173         Reported by Ian Beckwith <ianb@erislabs.net>.
57174
57175         Produce autobuild blurb earlier in log.
57176         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57177
57178 2008-06-09  Jim Meyering  <meyering@redhat.com>
57179         and OndÅ™ej Vašík  <ovasik@redhat.com>
57180
57181         utimens.c: correct kernel bug work-around
57182         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57183         failure, not success, and the kernel bug we're trying to work
57184         around affects not just the utimensat call, but also the fallback
57185         futimens call.
57186         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57187         not success.
57188         [HAVE_FUTIMENS]: Use the same work-around, here.
57189
57190 2008-06-09  Jim Meyering  <meyering@redhat.com>
57191
57192         add more guards around definition of ACE_-related code
57193         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57194         ALLOW and ACE_OWNER are also defined.
57195
57196 2008-06-08  Bruno Haible  <bruno@clisp.org>
57197
57198         * lib/acl-internal.h: Add me as co-author.
57199         * lib/file-has-acl.c: Likewise.
57200         * lib/set-mode-acl.c: Likewise.
57201         * lib/copy-acl.c: Likewise.
57202
57203 2008-06-08  Bruno Haible  <bruno@clisp.org>
57204
57205         Add support for AIX ACLs.
57206         * lib/acl-internal.h (acl_nontrivial): New declaration.
57207         * lib/file-has-acl.c (acl_nontrivial): New function.
57208         (file_has_acl): Add implementation using AIX 4 ACL API.
57209         * lib/set-mode-acl.c (qset_acl): Likewise.
57210         * lib/copy-acl.c (qcopy_acl): Likewise.
57211
57212 2008-06-08  Bruno Haible  <bruno@clisp.org>
57213
57214         Add support for HP-UX ACLs.
57215         * lib/acl-internal.h (acl_nontrivial): New declaration.
57216         * lib/file-has-acl.c (acl_nontrivial): New function.
57217         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57218         * lib/set-mode-acl.c (qset_acl): Likewise.
57219         * lib/copy-acl.c (qcopy_acl): Likewise.
57220
57221 2008-06-08  Bruno Haible  <bruno@clisp.org>
57222
57223         Add support for Cygwin ACLs.
57224         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57225         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57226         the chmod_or_fchmod call.
57227         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57228
57229 2008-06-08  Bruno Haible  <bruno@clisp.org>
57230
57231         Fix bug with setuid modes in Solaris 10+ code.
57232         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57233         succeeded, when the mode contains some special bits.
57234
57235 2008-06-08  Bruno Haible  <bruno@clisp.org>
57236
57237         Add support for Solaris 7..10 ACLs.
57238         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57239         declarations.
57240         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57241         functions.
57242         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57243         * lib/set-mode-acl.c (qset_acl): Likewise.
57244         * lib/copy-acl.c (qcopy_acl): Likewise.
57245
57246 2008-06-08  Bruno Haible  <bruno@clisp.org>
57247
57248         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57249         declaration.
57250         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57251         (acl_access_nontrivial): Remove MacOS X case.
57252         (file_has_acl): Use acl_extended_nontrivial.
57253         * lib/copy-acl.c (qcopy_acl): Likewise.
57254
57255 2008-06-08  Bruno Haible  <bruno@clisp.org>
57256
57257         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57258
57259 2008-06-08  Jim Meyering  <meyering@redhat.com>
57260
57261         * modules/acl (Maintainer): Add Bruno Haible.
57262
57263 2008-06-07  Bruno Haible  <bruno@clisp.org>
57264
57265         Improve support for Tru64 ACLs.
57266         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57267         ACL on OSF/1.
57268
57269 2008-06-07  Bruno Haible  <bruno@clisp.org>
57270
57271         Add support for MacOS X ACLs.
57272         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57273         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57274         * lib/set-mode-acl.c (qset_acl): Likewise.
57275         * lib/copy-acl.c (qcopy_acl): Likewise.
57276
57277 2008-06-07  Bruno Haible  <bruno@clisp.org>
57278
57279         Fix memory leak introduced on 2008-05-22.
57280         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57281         use.
57282
57283 2008-06-07  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57286         to construct an empty ACL.
57287
57288 2008-06-07  Bruno Haible  <bruno@clisp.org>
57289
57290         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57291         precisely.
57292         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57293
57294 2008-06-07  Bruno Haible  <bruno@clisp.org>
57295
57296         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57297         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57298
57299 2008-06-07  Bruno Haible  <bruno@clisp.org>
57300
57301         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57302         regardless of POSIX.
57303         * doc/posix-functions/_longjmp.texi: Likewise.
57304         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57305         SystemV platform in this case.
57306
57307 2008-06-06  Eric Blake  <ebb9@byu.net>
57308
57309         Document abort() bugs.
57310         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57311
57312         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57313         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57314         sigsetjmp.
57315         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57316         siglongjmp, but only as a macro.
57317         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57318         is obsolete.
57319         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57320
57321         Tweak documentation to cover cygwin argz bugs.
57322         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57323         argz bug fix; no code change needed since no cygwin releases
57324         occurred between the last fix and the bug being tested.
57325         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57326         module and recently fixed cygwin bugs.
57327         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57328         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57329         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57330         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57331         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57332         Likewise.
57333         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57334         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57335         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57336         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57337         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57338         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57339         Likewise.
57340
57341         Avoid gcc warning on cygwin.
57342         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57343         !ACL_NO_TRIVIAL]: Avoid unused variable.
57344
57345 2008-06-05  Eric Blake  <ebb9@byu.net>
57346
57347         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57348         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57349         git-version-gen fails to come up with a version.
57350         Reported by Simon Josefsson.
57351
57352 2008-06-05  Jim Meyering  <meyering@redhat.com>
57353             Paul Eggert  <eggert@cs.ucla.edu>
57354
57355         utimens.c: work around a probable Linux kernel bug
57356         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57357         appears to be a kernel bug that causes utimensat to return 280
57358         instead of 0, indicating success.
57359
57360 2008-06-04  Bruno Haible  <bruno@clisp.org>
57361
57362         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57363         2008-06-01 commit.
57364
57365 2008-06-04  Bruno Haible  <bruno@clisp.org>
57366
57367         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57368         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57369         (file_has_acl): Use it. Save errno afterwards.
57370         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57371
57372 2008-06-03  Bruno Haible  <bruno@clisp.org>
57373
57374         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57375         draft code. Simplify #ifs.
57376         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57377         Put Solaris code after POSIX-draft code. Fix comments regarding
57378         Solaris 10, HP-UX. Mention Cygwin.
57379         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57380
57381 2008-06-03  Eric Blake  <ebb9@byu.net>
57382
57383         Provide fallback for older kernels.
57384         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57385         Provide runtime fallback if kernel lacks support.
57386         Reported by Mike Frysinger.
57387
57388 2008-06-02  Bruno Haible  <bruno@clisp.org>
57389
57390         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57391         it exists.
57392
57393 2008-06-02  Bruno Haible  <bruno@clisp.org>
57394
57395         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57396         * lib/copy-acl.c (qcopy_acl): Update comment.
57397
57398 2008-06-02  Bruno Haible  <bruno@clisp.org>
57399
57400         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57401         like ACL APIs.
57402
57403 2008-06-02  Bruno Haible  <bruno@clisp.org>
57404
57405         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57406         * tests/test-set-mode-acl.sh: Likewise.
57407         * tests/test-copy-acl.sh: Likewise.
57408         * tests/test-copy-file.sh: Likewise.
57409
57410 2008-06-02  Bruno Haible  <bruno@clisp.org>
57411
57412         * tests/test-file-has-acl.sh: Remove unused code.
57413
57414 2008-06-01  Bruno Haible  <bruno@clisp.org>
57415
57416         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57417         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57418         messages.
57419         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57420
57421 2008-06-01  Bruno Haible  <bruno@clisp.org>
57422
57423         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57424         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57425         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57426         APIs.
57427         * modules/acl-tests (configure.ac): Remove tests now contained in
57428         m4/acl.m4.
57429
57430 2008-06-02  Jim Meyering  <meyering@redhat.com>
57431
57432         announce-gen: use a better key-server host name
57433         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57434         it may be more consistently reliable.  Suggested by Werner Koch
57435         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57436
57437 2008-06-01  Bruno Haible  <bruno@clisp.org>
57438
57439         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57440         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57441
57442 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57443
57444         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57445
57446 2008-06-01  Bruno Haible  <bruno@clisp.org>
57447
57448         New ACL tests.
57449         * tests/test-file-has-acl.sh: New file.
57450         * tests/test-file-has-acl.c: New file.
57451         * tests/test-set-mode-acl.sh: New file.
57452         * tests/test-set-mode-acl.c: New file.
57453         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57454         * tests/test-copy-acl.c: New file.
57455         * modules/acl-tests: New file, based on modules/copy-file-tests.
57456         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57457         (Depends-on): Add acl-tests.
57458         (configure.ac): Remove checks.
57459         (Makefile.am): Don't create test-sameacls program here any more.
57460
57461 2008-06-01  Bruno Haible  <bruno@clisp.org>
57462
57463         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57464         * tests/test-sameacls.c: Include progname.h.
57465         (main): Invoke set_program_name. Portability fixes for MacOS X,
57466         Solaris, HP-UX.
57467
57468 2008-06-01  Bruno Haible  <bruno@clisp.org>
57469
57470         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57471         function.
57472         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57473
57474 2008-06-01  Bruno Haible  <bruno@clisp.org>
57475
57476         * modules/rpmatch (Depends-on): Add strdup.
57477
57478 2008-06-01  Bruno Haible  <bruno@clisp.org>
57479
57480         * lib/pipe.c: Include unistd-safer.h.
57481         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57482         * modules/pipe (Depends-on): Add unistd-safer.
57483
57484 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57485
57486         * modules/autobuild (configure.ac): Call AB_INIT.
57487
57488 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57489
57490         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57491         Suggested by Bruno Haible <bruno@clisp.org>.
57492
57493 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57494
57495         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57496         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57497         <bruno@clisp.org>.
57498
57499 2008-05-29  Eric Blake  <ebb9@byu.net>
57500
57501         Prefer new POSIX 200x interfaces over futimesat.
57502         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57503         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57504         when available.
57505         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57506
57507 2008-05-28  Bruno Haible  <bruno@clisp.org>
57508
57509         * modules/stpcpy (License): Change to LGPLv2+.
57510         Requested by David Lutterkort <dlutter@redhat.com>.
57511
57512 2008-05-27  Bruno Haible  <bruno@clisp.org>
57513
57514         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57515         current mingw.
57516         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57517
57518 2008-05-27  Bruno Haible  <bruno@clisp.org>
57519
57520         * modules/iconv_open (Link): New section, from module 'iconv'.
57521         * modules/striconv (Link): Likewise.
57522         * modules/striconveh (Link): Likewise.
57523         * modules/xstriconv (Link): Likewise.
57524         * modules/unicodeio (Link): Likewise.
57525         * modules/propername (Link): Likewise.
57526         Reported by Jim Meyering.
57527
57528 2008-05-26  Jim Meyering  <meyering@redhat.com>
57529
57530         sha256: do not artificially restrict buffer length to be < 2^32
57531         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57532         uint32_t to size_t.
57533         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57534         to match.
57535
57536         avoid unaligned access errors, e.g., on sparc
57537         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57538         direct access through a possibly-unaligned uint64* pointer.
57539         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57540         direct access through a possibly-unaligned uint32* pointer.
57541         Prompted by this patch from Tom "spot" Callaway:
57542         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57543
57544         sha512.c: fix typo in comment
57545         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57546
57547 2008-05-25  Bruno Haible  <bruno@clisp.org>
57548
57549         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57550         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57551         (Makefile.am): Update lib_SOURCES.
57552
57553 2008-05-25  Bruno Haible  <bruno@clisp.org>
57554
57555         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57556
57557 2008-05-25  Jim Meyering  <meyering@redhat.com>
57558
57559         useless-if-before-free: freed expr may have white-space differences
57560         * build-aux/useless-if-before-free: Recognize cases in which the
57561         freed expression differs from the tested one in embedded white
57562         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57563         $1 was used, so we can't make any regexp shy.  Improved tests now
57564         detect this.
57565
57566         useless-if-before-free: accept white space in the expression.
57567         * build-aux/useless-if-before-free: For now, any white space
57568         in the expression must be identical in the free argument.
57569
57570         useless-if-before-free: efficiency tweak
57571         * build-aux/useless-if-before-free: Make the expression-matching
57572         regexp "shy".
57573         Make the *outer* regexp shy, not the expr-matching one.
57574
57575         update code-in-comment to accept cast of free arg
57576         * build-aux/useless-if-before-free: Update regexp.
57577
57578 2008-05-25  Bruno Haible  <bruno@clisp.org>
57579
57580         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57581         * modules/copy-file-tests (Files, Makefile.am): Update.
57582         * tests/test-copy-file.c (func_test_copy): Update.
57583
57584 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
57585
57586         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
57587
57588 2008-05-23  Bruno Haible  <bruno@clisp.org>
57589
57590         Improve support for ACLs on OSF/1.
57591         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
57592         Remove fallback for unknown flavors of ACLs.
57593
57594 2008-05-22  Bruno Haible  <bruno@clisp.org>
57595
57596         Add support for ACLs on OSF/1.
57597         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
57598         replacements.
57599         (acl_free_text): New macro fallback.
57600         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
57601         acl_free.
57602         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
57603         acl_free_text function. Require AC_C_INLINE.
57604
57605 2008-05-22  Bruno Haible  <bruno@clisp.org>
57606
57607         Make copy_acl work on MacOS X 10.5.
57608         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
57609         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
57610         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
57611         If MODE_INSIDE_ACL, don't assume that every system has the same text
57612         representation for ACLs as FreeBSD.
57613         * lib/copy-acl.c (copy_acl): Add support for platforms with
57614         !MODE_INSIDE_ACL.
57615         * lib/file-has-acl.c (file_has_acl): Likewise.
57616         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
57617         FreeBSD, MacOS X, or IRIX, respectively.
57618
57619 2008-05-22  Bruno Haible  <bruno@clisp.org>
57620
57621         * lib/acl.h: Don't include <sys/acl.h>.
57622         (GETACLCNT): Move fallback to lib/acl-internal.h.
57623         * lib/acl-internal.h: Include <sys/acl.h> here.
57624         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
57625
57626 2008-05-22  Bruno Haible  <bruno@clisp.org>
57627
57628         Split off copy_acl function to separate file.
57629         * lib/copy-acl.c: New file, extracted from lib/acl.c.
57630         * lib/acl.c (copy_acl): Moved function to separate file.
57631         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
57632         * modules/acl (Files): Add lib/copy-acl.c.
57633         (Makefiles.am): Augment lib_SOURCES.
57634
57635 2008-05-22  Bruno Haible  <bruno@clisp.org>
57636
57637         * modules/copy-file-tests: New file.
57638         * tests/test-copy-file.sh: New file.
57639         * tests/test-copy-file.c: New file.
57640         * tests/test-copy-file-sameacls.c: New file.
57641
57642 2008-05-22  Eric Blake  <ebb9@byu.net>
57643
57644         Avoid gcc warning.
57645         * tests/test-memcmp.c (main): Pass NULL indirectly.
57646
57647 2008-05-21  Bruno Haible  <bruno@clisp.org>
57648
57649         Add reference doc about ACLs.
57650         * doc/acl-resources.txt: New file.
57651         * doc/acl-cygwin.txt: New file.
57652
57653 2008-05-21  Bruno Haible  <bruno@clisp.org>
57654
57655         Avoid one more warning from gcc.
57656         * lib/vasnprintf.c (IF_LINT): Update comments.
57657         (VASNPRINTF): Use it also for the 'prefix' array initializer.
57658
57659 2008-05-21  Jim Meyering  <meyering@redhat.com>
57660
57661         avoid a warning from gcc
57662         * lib/vasnprintf.c (IF_LINT): Define.
57663         (scale10_round_decimal_long_double):
57664         Use it to avoid a "may be used uninitialized" warning.
57665         (scale10_round_decimal_double): Likewise.
57666
57667 2008-05-21  Simon Josefsson  <simon@josefsson.org>
57668
57669         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
57670         declared.
57671
57672 2008-05-20  Bruno Haible  <bruno@clisp.org>
57673
57674         * tests/test-memcmp.c (main): Test also the sign of the result. Test
57675         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
57676
57677 2008-05-20  Simon Josefsson  <simon@josefsson.org>
57678
57679         * modules/memcmp-tests: New file.
57680         * tests/test-memcmp.c: New file.
57681
57682 2008-05-19  Bruno Haible  <bruno@clisp.org>
57683
57684         * modules/propername (Notice, configure.ac): Put quoted "..." into
57685         --keyword option.
57686         * lib/propername.h: Update comments accordingly.
57687         Reported by Eric Blake.
57688
57689 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
57690
57691         * modules/getpass-gnu (Depends-on): Add fseeko.
57692
57693 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57694
57695         * modules/base64-tests: New file.
57696
57697 2008-05-19  Bo Borgerson <gigabo@gmail.com>
57698
57699         * lib/base64.c (base64_decode_ctx): If a decode context structure
57700         was passed in use it to ignore newlines.  If a context structure
57701         was _not_ passed in, continue to treat newlines as garbage (this
57702         is the historical behavior).  Formerly base64_decode.
57703         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57704         takes a decode context structure.
57705         * lib/base64.h (base64_decode): Macro for four-argument calls.
57706         (base64_decode_alloc): Likewise.
57707         * lib/base64.c (base64_decode_ctx): If a decode context structure
57708         was passed in use it to ignore newlines.  If a context structure
57709         was _not_ passed in, continue to treat newlines as garbage (this
57710         is the historical behavior).  Formerly base64_decode.
57711         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57712         takes a decode context structure.
57713         * lib/base64.h (base64_decode): Macro for four-argument calls.
57714         (base64_decode_alloc): Likewise.
57715
57716 2008-05-19  Jim Meyering  <meyering@redhat.com>
57717
57718         avoid a warning from gcc
57719         * lib/trim.c (IF_LINT): Define.
57720         (trim2): Use it to avoid a "may be used uninitialized" warning.
57721
57722         Fix doc typo.
57723         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
57724
57725 2008-05-19  Bruno Haible  <bruno@clisp.org>
57726
57727         * doc/glibc-functions/getpass.texi: Document limits of other
57728         implementations.
57729
57730 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57731             Bruno Haible <bruno@clisp.org>
57732
57733         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
57734
57735 2008-05-18  Bruno Haible  <bruno@clisp.org>
57736
57737         * modules/propername: New file, from GNU gettext.
57738         * lib/propername.h: New file, from GNU gettext.
57739         * lib/propername.c: New file, from GNU gettext.
57740         * MODULES.html.sh (Internationalization functions): Add propername.
57741
57742 2008-05-16  Jim Meyering  <meyering@redhat.com>
57743             Bruno Haible  <bruno@clisp.org>
57744
57745         Avoid some warnings from "gcc -Wshadow".
57746         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
57747
57748 2008-05-15  Eric Blake  <ebb9@byu.net>
57749
57750         Extend previous patch to cygwin 1.7.0.
57751         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
57752         fast implementation in cygwin >= 1.7.0.
57753         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57754         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57755
57756 2008-05-15  Bruno Haible  <bruno@clisp.org>
57757
57758         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
57759         implementation in glibc >= 2.9.
57760         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57761         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57762
57763 2008-05-15  Bruno Haible  <bruno@clisp.org>
57764
57765         * MODULES.html.sh (Internationalization functions): Remove linebreak.
57766         (Unicode string functions): Add unilbrk/*.
57767         Reported by Karl Berry.
57768
57769 2008-05-15  Eric Blake  <ebb9@byu.net>
57770
57771         Fix violation of <stdbool.h> replacement in regex.
57772         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
57773         * lib/regexec.c (re_search_internal): Likewise.
57774         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
57775
57776 2008-05-15  Jim Meyering  <meyering@redhat.com>
57777
57778         avoid distracting test output when git or cvs is not found
57779         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
57780         * tests/test-vc-list-files-git.sh: Likewise.
57781
57782 2008-05-15  Eric Blake  <ebb9@byu.net>
57783
57784         Glibc finally accepted the memmem speedup code, bugzilla #5514.
57785         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
57786         glibc version.
57787         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
57788         * doc/posix-functions/strstr.texi (strstr): Likewise.
57789         * lib/str-two-way.h (MAX): Sychronize with glibc.
57790
57791 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
57792
57793         * lib/regcomp.c (optimize_utf8): Add a note on why we test
57794         opr.ctx_type.
57795         (calc_first): Initialize constraint field.
57796         (duplicate_node_closure): Use it instead of special casing ANCHORS.
57797         Fix grammar.
57798         (duplicate_node): Merge constraint field for all node types.
57799         (calc_eclosure_iter): Look at constraint field for all node types.
57800         * lib/regex_internal.c (create_cd_newstate): Don't look at
57801         opr.ctx_type.
57802
57803 2008-05-14  Bruno Haible  <bruno@clisp.org>
57804
57805         Help GCC to do better code generation.
57806         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
57807         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
57808         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
57809         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
57810         Declare with attribute 'malloc' if supported.
57811
57812 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
57813
57814         use "echo STR|wc -c" rather than unportable "expr length STR"
57815         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
57816         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
57817
57818 2008-05-14  Jim Meyering  <meyering@redhat.com>
57819
57820         use dd ibs=$n count=1 ... rather than less-portable head -c$n
57821         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
57822         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
57823         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
57824         via Collin Lasse.
57825
57826 2008-05-14  Eric Blake  <ebb9@byu.net>
57827
57828         Avoid quadratic growth in gl_LIBSOURCES.
57829         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
57830         Suggested by Bruno Haible.
57831
57832         Test xmemdup0.
57833         * modules/xmemdup0-tests: New file.
57834         * tests/test-xmemdup0.c: Likewise.
57835
57836 2008-05-13  Eric Blake  <ebb9@byu.net>
57837
57838         Split xmemdup0 into its own module.
57839         * modules/xmemdup0: New file.
57840         * lib/xmemdup0.h: Likewise.
57841         * lib/xmemdup0.c: Likewise.
57842         * MODULES.html.sh (Memory management functions): Add xmemdup0.
57843         * lib/xalloc.h (xmemdup0): Remove.
57844         * lib/xmalloc.c (xmemdup0): Likewise.
57845
57846 2008-05-13  Eric Blake  <ebb9@byu.net>
57847             Bruno Haible  <bruno@clisp.org>
57848
57849         Reduce number of forks required during autoconf.
57850         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
57851         and gl_LIBSOURCES_DIR.
57852         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
57853         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
57854         m4_syscmd per file.
57855         <m4_foreach_w>: Move...
57856         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
57857
57858 2008-05-13  Eric Blake  <ebb9@byu.net>
57859
57860         * gnulib-tool: Fix various comment typos.
57861
57862 2008-05-12  Bruno Haible  <bruno@clisp.org>
57863
57864         Tailor the linebreaking algorithm.
57865         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
57866
57867 2008-05-12  Bruno Haible  <bruno@clisp.org>
57868
57869         Update to Unicode 5.0.0.
57870         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57871         LBP_JV, LBP_JT. Redistribute values.
57872         (unilbrk_table): Change size.
57873         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
57874         Unicode TR#14 rev. 22.
57875         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57876         LBP_JV, LBP_JT. Redistribute values.
57877         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
57878         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
57879         Update.
57880         * lib/unilbrk/lbrkprop1.h: Regenerated.
57881         * lib/unilbrk/lbrkprop2.h: Regenerated.
57882         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
57883         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
57884         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
57885         Likewise.
57886         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
57887         Likewise.
57888         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
57889         result.
57890         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57891         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57892         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57893         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
57894         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
57895         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
57896
57897 2008-05-11  Bruno Haible  <bruno@clisp.org>
57898
57899         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
57900
57901 2008-05-11  Bruno Haible  <bruno@clisp.org>
57902
57903         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
57904         * modules/unilbrk/gen-lbrk: New file.
57905
57906 2008-05-11  Bruno Haible  <bruno@clisp.org>
57907
57908         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
57909         * m4/sha512.m4 (gl_SHA512): Likewise.
57910
57911 2008-05-11  Jim Meyering  <meyering@redhat.com>
57912
57913         New modules: crypto/sha256, crypto/sha512 (from coreutils)
57914         * modules/crypto/sha256: New file.
57915         * modules/crypto/sha512: Likewise.
57916         * lib/sha256.c: Likewise.
57917         * lib/sha256.h: Likewise.
57918         * lib/sha512.c: Likewise.
57919         * lib/sha512.h: Likewise.
57920         * lib/u64.h: Likewise.
57921         * m4/sha256.m4: Likewise.
57922         * m4/sha512.m4: Likewise.
57923         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
57924
57925 2008-05-10  Bruno Haible  <bruno@clisp.org>
57926
57927         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
57928         (Input/Output <stdio.h>): Add xprintf.
57929         (Signal handling <signal.h>): Add strsignal.
57930         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
57931         (Core language properties): Add func.
57932         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
57933         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
57934         strings.
57935         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
57936         (Input/output): New section.
57937         (File system functions): Add openat-die, stat-macros.
57938         (Networking functions): Add sockets.
57939         (Unicode string functions): Add unictype/*.
57940         (Support for building libraries and executables): Add gperf.
57941         (Support for building documentation): Add agpl-3.0.
57942         (Misc): Add nocrash.
57943
57944 2008-05-10  Bruno Haible  <bruno@clisp.org>
57945
57946         * modules/unictype/gen-ctype: New file.
57947
57948 2008-05-10  Jim Meyering  <meyering@redhat.com>
57949
57950         Make chdir-safer.c more efficient on a system with no symlinks.
57951         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
57952         also if ELOOP is zero.  Suggested by Bruno Haible.
57953
57954         Make chdir-safer.c slightly safer.
57955         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
57956         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
57957
57958         Avoid compile failure on systems without ELOOP (like mingw).
57959         * lib/chdir-safer.c (ELOOP): Define if not already defined.
57960         Reported by Bruno Haible.
57961
57962 2008-05-10  Bruno Haible  <bruno@clisp.org>
57963
57964         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
57965         (is_utf8_encoding): Use a case-insensitive comparison.
57966         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
57967         streq.
57968
57969 2008-05-10  Bruno Haible  <bruno@clisp.org>
57970
57971         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
57972         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
57973         * lib/unilbrk/ulc-common.h (iconv_string_length,
57974         iconv_string_keeping_offsets): Remove declarations.
57975         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
57976         Don't include <iconv.h>, streq.h, xsize.h.
57977         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
57978         conversion.
57979         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
57980         <iconv.h>, streq.h, xsize.h.
57981         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
57982         conversion.
57983         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
57984         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
57985         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
57986         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
57987
57988 2008-05-10  Bruno Haible  <bruno@clisp.org>
57989
57990         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
57991         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
57992
57993         * modules/unilbrk/u32-width-linebreaks-tests: New file.
57994         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
57995
57996         * modules/unilbrk/u16-width-linebreaks-tests: New file.
57997         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
57998
57999         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58000         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58001
58002         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58003         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58004
58005         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58006         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58007
58008         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58009         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58010
58011         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58012         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58013
58014 2008-05-10  Bruno Haible  <bruno@clisp.org>
58015
58016         Split up 'linebreak' module.
58017         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58018         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58019         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58020         modifications.
58021         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58022         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58023         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58024         lib/linebreak.c.
58025         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58026         lib/linebreak.c.
58027         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58028         lib/linebreak.c.
58029         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58030         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58031         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58032         lib/linebreak.c.
58033         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58034         lib/linebreak.c.
58035         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58036         lib/linebreak.c.
58037         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58038         lib/linebreak.c.
58039         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58040         lib/linebreak.c.
58041         * modules/unilbrk/base: New file.
58042         * modules/unilbrk/tables: New file.
58043         * modules/unilbrk/u8-possible-linebreaks: New file.
58044         * modules/unilbrk/u16-possible-linebreaks: New file.
58045         * modules/unilbrk/u32-possible-linebreaks: New file.
58046         * modules/unilbrk/ulc-common: New file.
58047         * modules/unilbrk/ulc-possible-linebreaks: New file.
58048         * modules/unilbrk/u8-width-linebreaks: New file.
58049         * modules/unilbrk/u16-width-linebreaks: New file.
58050         * modules/unilbrk/u32-width-linebreaks: New file.
58051         * modules/unilbrk/ulc-width-linebreaks: New file.
58052         * lib/linebreak.h: Remove file.
58053         * lib/linebreak.c: Remove file.
58054         * m4/linebreak.m4: Remove file.
58055         * modules/linebreak: Remove file.
58056         * NEWS: Mention the changes.
58057
58058 2008-05-09  Eric Blake  <ebb9@byu.net>
58059
58060         Add xmemdup0.
58061         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58062         implementation.
58063         * lib/xmalloc.c (xmemdup0): New C implementation.
58064
58065 2008-05-08  Bruno Haible  <bruno@clisp.org>
58066
58067         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58068
58069 2008-05-07  Eric Blake  <ebb9@byu.net>
58070
58071         Support cross-compilation of <wctype.h>.
58072         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58073         AC_CACHE_CHECK.
58074
58075 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58076
58077         * build-aux/vc-list-files: Add support for bzr.
58078
58079 2008-05-03  Jim Meyering  <meyering@redhat.com>
58080
58081         avoid failed assertion with tight malloc
58082         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58083
58084 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58085
58086         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58087         are needed from arpa/inet.h.
58088         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58089         Reported by Bruno Haible.
58090
58091 2008-05-02  Jim Meyering  <meyering@redhat.com>
58092
58093         avoid compilation error on FreeBSD 6
58094         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58095
58096 2008-05-01  Jim Meyering  <meyering@redhat.com>
58097
58098         useless-if-before-free: correct --help's exit status description
58099         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58100         for one or more matches, etc.  Reported by Bruno Haible.
58101
58102         vc-list-files: make the stand-alone gnulib test work
58103         * modules/vc-list-files-tests (configure.ac):
58104         Define and AC_SUBST abs_aux_dir.
58105         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58106         $(abs_top_srcdir) to each script and having each of them
58107         duplicate the work of setting PATH, set PATH here, using
58108         the new variable, abs_aux_dir instead.
58109         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58110         * tests/test-vc-list-files-git.sh: Likewise.
58111         Reported by Bruno Haible.
58112
58113 2008-05-01  Bruno Haible  <bruno@clisp.org>
58114
58115         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58116         reallocation. Rename 'done' to 'found_delimiter'.
58117
58118 2008-05-01  Jim Meyering  <meyering@redhat.com>
58119
58120         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58121         * build-aux/vc-list-files: Use `...`, not $(...).
58122
58123 2008-04-30  Jim Meyering  <meyering@redhat.com>
58124
58125         add tests for vc-list-files
58126         * modules/vc-list-files-tests: New module.
58127         * tests/test-vc-list-files-cvs.sh: New file.
58128         * tests/test-vc-list-files-git.sh: New file.
58129
58130         avoid a warning from gcc
58131         * lib/getndelim2.c (IF_LINT): Define.
58132         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58133
58134         vc-list-files: work properly with build-aux/cvsu, too
58135         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58136         to all cvs-based clauses.
58137
58138         vc-list-files: work properly in the CVS+awk case, too
58139         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58140
58141         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58142         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58143         take more than one file argument, so .  Add quotes, just in case $dir
58144         ever contains a shell meta-character.  Prompted by Soren Hansen in
58145         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58146
58147 2008-04-29  Eric Blake  <ebb9@byu.net>
58148
58149         Optimize getndelim2 to use block operations when possible.
58150         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58151         freadseek, and memchr2.
58152         * lib/getndelim2.c (getndelim2): Use them for block reads.
58153
58154 2008-04-29  Bruno Haible  <bruno@clisp.org>
58155
58156         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58157         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58158         * modules/inet_ntop (Depends-on): Add extensions.
58159         * modules/inet_pton (Depends-on): Likewise.
58160         Reported by Simon Josefsson.
58161
58162 2008-04-29  Jim Meyering  <meyering@redhat.com>
58163
58164         When the is more than one match in a block, match all of them.
58165         * build-aux/useless-if-before-free: Iterate through each block
58166         until there are no more matches.
58167
58168         Fix broken useless-if-before-free script.
58169         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58170         the expression to match cast of argument to free-like function.
58171
58172 2008-04-29  Eric Blake  <ebb9@byu.net>
58173
58174         Use new header.
58175         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58176
58177 2008-04-29  Jim Meyering  <meyering@redhat.com>
58178
58179         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58180         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58181         by gnulib to exist and to declare e.g., inet_ntop.
58182         Don't include "inet_ntop.h", now removed.
58183
58184         * m4/arpa_inet_h.m4: Remove trailing blanks.
58185
58186 2008-04-29  Eric Blake  <ebb9@byu.net>
58187
58188         Silence valgrind on safe reads beyond potential array bounds.
58189         * lib/rawmemchr.valgrind: New file.
58190         * lib/strchrnul.valgrind: Likewise.
58191         * modules/rawmemchr (Files): Distribute new file.
58192         * modules/strchrnul (Files): Likewise.
58193         Suggested by Bruno Haible.
58194
58195 2008-04-29  Bruno Haible  <bruno@clisp.org>
58196
58197         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58198         (inet_ntop, inet_pton): Change portability warning's wording.
58199         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58200         Invoke gl_CHECK_NEXT_HEADERS.
58201         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58202         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58203         set ARPA_INET_H.
58204         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58205         * modules/arpa_inet (Description): No longer only for systems that
58206         lack it.
58207         (Depends-on): Add include_next.
58208         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58209         HAVE_ARPA_INET_H.
58210
58211 2008-04-29  Jim Meyering  <meyering@redhat.com>
58212
58213         * modules/mkdir (License): Re-license as LGPLv2+.
58214
58215 2008-04-29  Bruno Haible  <bruno@clisp.org>
58216
58217         * modules/rawmemchr (Maintainer): Set to Eric.
58218         * modules/strchrnul (Maintainer): Likewise.
58219
58220 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58221
58222         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58223         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58224
58225         * modules/arpa_inet (arpa/inet.h): Use them.
58226
58227 2008-04-28  Eric Blake  <ebb9@byu.net>
58228
58229         Test getndelim2.
58230         * modules/getndelim2-tests: New file.
58231         * tests/test-getndelim2.c: Likewise.
58232         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58233         stream.
58234         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58235
58236         * MODULES.html.sh: Document new module.
58237
58238 2008-04-20  Bruno Haible  <bruno@clisp.org>
58239
58240         * lib/c-stack.c (die): Use raise.
58241         * modules/c-stack (Depends-on): Add raise.
58242
58243 2008-04-28  Bruno Haible  <bruno@clisp.org>
58244
58245         Expect rpmatch to be declared.
58246         * lib/yesno.c (rpmatch): Remove declaration.
58247
58248         Declare rpmatch.
58249         * lib/stdlib.in.h (rpmatch): New declaration.
58250         * lib/rpmatch.c: Include <stdlib.h> first.
58251         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58252         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58253         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58254         HAVE_RPMATCH.
58255         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58256         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58257         (Include): Set to <stdlib.h>.
58258         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58259         HAVE_RPMATCH.
58260         * NEWS: Document the change.
58261
58262 2008-04-28  Bruno Haible  <bruno@clisp.org>
58263
58264         Change rpmatch to use nl_langinfo when appropriate.
58265         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58266         (N_): New macro.
58267         (localized_pattern): New function/macro.
58268         (try): Remove match, nomatch arguments. Copy the pattern into safe
58269         memory before caching it.
58270         (rpmatch): Use localized_pattern. Add translator comments.
58271         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58272         Suggested by Eric Blake.
58273         * modules/rpmatch (Depends-on): Add stdbool.
58274
58275 2008-04-28  Eric Blake  <ebb9@byu.net>
58276
58277         Add rawmemchr module, matching glibc.
58278         * modules/string (Makefile.am): New indicator.
58279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58280         * lib/string.in.h (rawmemchr): Declare when appropriate.
58281         * modules/rawmemchr: New file.
58282         * m4/rawmemchr.m4: Likewise.
58283         * lib/rawmemchr.c: Likewise.
58284         * modules/rawmemchr-tests: Likewise.
58285         * tests/test-rawmemchr.c: Likewise.
58286         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58287         module.
58288         * modules/strchrnul (Depends-on): Add rawmemchr.
58289         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58290
58291         Whitespace cleanup.
58292         * tests/test-strchrnul.c: Reindent.
58293         * lib/strchrnul.c: Likewise.
58294
58295         Optimize and test strchrnul.
58296         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58297         * modules/strchrnul-tests: New file.
58298         * tests/test-strchrnul.c: Likewise.
58299
58300         Remove intprops dependency.
58301         * modules/memchr (Depends-on): Remove intprops.
58302         * modules/memrchr (Depends-on): Likewise.
58303         * modules/memchr2 (Depends-on): Likewise.
58304         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58305         * lib/memrchr.c (__memrchr): Likewise.
58306         * lib/memrchr2.c (memchr2): Likewise.
58307         Reported by Simon Josefsson.
58308
58309 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58310
58311         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58312         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58313
58314 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58315
58316         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58317
58318         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58319
58320         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58321
58322         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58323         declarations.
58324         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58325
58326         * m4/inet_pton.m4: Don't check for header files.
58327
58328         * m4/inet_ntop.m4: Don't check for header files.
58329
58330 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58331
58332         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58333         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58334         trigger for cygwin).
58335         Reported by Bruno Haible  <bruno@clisp.org>.
58336
58337 2008-04-28  Bruno Haible  <bruno@clisp.org>
58338
58339         * doc/posix-functions/strdup.texi: Mention mingw problem.
58340
58341 2008-04-27  Bruno Haible  <bruno@clisp.org>
58342
58343         * modules/stat-time-tests (Depends-on): Add sleep.
58344         * tests/test-stat-time.c (force_unlink): New function.
58345         (cleanup): Use it.
58346         (test_mtime): Remove the ctime related tests.
58347         (test_ctime): New function, containing the ctime related tests.
58348         (main): Call test_ctime, except on native Windows platforms.
58349
58350 2008-04-27  Bruno Haible  <bruno@clisp.org>
58351
58352         * lib/rpmatch.c (rpmatch): Add some comments.
58353         Reported by James Youngman <jay@gnu.org>.
58354
58355 2008-04-27  Bruno Haible  <bruno@clisp.org>
58356
58357         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58358         quiet NaNs.
58359
58360 2008-04-27  Bruno Haible  <bruno@clisp.org>
58361
58362         Make test-yesno.sh work on mingw.
58363         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58364         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58365         (main): Set stdin to binary mode.
58366         * modules/yesno-tests (Depends-on): Add binary-io.
58367
58368 2008-04-27  Bruno Haible  <bruno@clisp.org>
58369
58370         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58371         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58372         argument that lie outside the IEEE 854 domain.
58373         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58374         (gl_ISFINITE): Use it.
58375         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58376
58377 2008-04-27  Bruno Haible  <bruno@clisp.org>
58378
58379         Allow local renaming in config.h.
58380         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58381
58382 2008-04-27  Bruno Haible  <bruno@clisp.org>
58383
58384         * lib/memchr.c (__memchr): Change type of 'i'.
58385         * lib/memchr2.c (memchr2): Likewise.
58386
58387 2008-04-26  Eric Blake  <ebb9@byu.net>
58388         and Bruno Haible  <bruno@clisp.org>
58389
58390         Optimize and test memrchr.
58391         * modules/memrchr (Depends-on): Add intprops.
58392         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58393         * modules/memrchr-tests: New file.
58394         * tests/test-memrchr.c: New file.
58395
58396 2008-04-26  Bruno Haible  <bruno@clisp.org>
58397
58398         Add tentative support for DragonFly BSD.
58399         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58400         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58401         fp.
58402         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58403         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58404         * lib/fpurge.c (fpurge): Likewise.
58405         * lib/freadable.c (freaadable): Likewise.
58406         * lib/freadahead.c (freadahead): Likewise.
58407         * lib/freading.c (freading): Likewise.
58408         * lib/freadptr.c (freadptr): Likewise.
58409         * lib/freadseek.c (freadptrinc): Likewise.
58410         * lib/fseeko.c (fseeko): Likewise.
58411         * lib/fseterr.c (fseterr): Likewise.
58412         * lib/fwritable.c (fwritable): Likewise.
58413         * lib/fwriting.c (fwriting): Likewise.
58414
58415 2008-04-26  Bruno Haible  <bruno@clisp.org>
58416
58417         * lib/stdio-impl.h: New file.
58418         * lib/fbufmode.c: Include stdio-impl.h.
58419         (fbufmode): Use fp_, remove redundant #defines.
58420         * lib/fflush.c: Include stdio-impl.h.
58421         (clear_ungetc_buffer): Remove redundant #defines.
58422         * lib/fpurge.c: Include stdio-impl.h.
58423         (fpurge): Remove redundant #defines.
58424         * lib/freadable.c: Include stdio-impl.h.
58425         (freadable): Remove redundant #defines.
58426         * lib/freadahead.c: Include stdio-impl.h.
58427         (freadahead): Remove redundant #defines.
58428         * lib/freading.c: Include stdio-impl.h.
58429         (freading): Remove redundant #defines.
58430         * lib/freadptr.c: Include stdio-impl.h.
58431         (freadptr): Remove redundant #defines.
58432         * lib/freadseek.c: Include stdio-impl.h.
58433         (freadptrinc): Remove redundant #defines.
58434         * lib/fseeko.c: Include stdio-impl.h.
58435         (rpl_fseeko): Remove redundant #defines.
58436         * lib/fseterr.c: Include stdio-impl.h.
58437         (fseterr): Remove redundant #defines.
58438         * lib/fwritable.c: Include stdio-impl.h.
58439         (fwritable: Remove redundant #defines.
58440         * lib/fwriting.c: Include stdio-impl.h.
58441         (fwriting): Remove redundant #defines.
58442         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58443         * modules/fflush (Files): Likewise.
58444         * modules/fpurge (Files): Likewise.
58445         * modules/freadable (Files): Likewise.
58446         * modules/freadahead (Files): Likewise.
58447         * modules/freading (Files): Likewise.
58448         * modules/freadptr (Files): Likewise.
58449         * modules/freadseek (Files): Likewise.
58450         * modules/fseeko (Files): Likewise.
58451         * modules/fseterr (Files): Likewise.
58452         * modules/fwritable (Files): Likewise.
58453         * modules/fwriting (Files): Likewise.
58454
58455 2008-04-26  Bruno Haible  <bruno@clisp.org>
58456
58457         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58458         restore_seek_optimization, update_fpos_cache): New functions, extracted
58459         from rpl_fflush.
58460         (rpl_fflush): Use them.
58461         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58462         (gl_REPLACE_FFLUSH): Use it.
58463
58464 2008-04-26  Bruno Haible  <bruno@clisp.org>
58465
58466         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58467         on Solaris.
58468         * tests/test-xstrtoimax.sh: Likewise.
58469         * tests/test-xstrtoumax.sh: Likewise.
58470         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58471
58472 2008-04-26  Bruno Haible  <bruno@clisp.org>
58473
58474         * modules/memchr-tests: New file.
58475         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58476
58477 2008-04-26  Eric Blake  <ebb9@byu.net>
58478             Bruno Haible  <bruno@clisp.org>
58479
58480         * lib/memchr.c: Include intprops.h.
58481         (__memchr): Optimize parallel detection of matching bytes. Rename local
58482         variables. Add explanatory comments.
58483
58484 2008-04-26  Bruno Haible  <bruno@clisp.org>
58485
58486         Fix module 'memchr', broken since 2000-10-28.
58487         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58488
58489 2008-04-26  Bruno Haible  <bruno@clisp.org>
58490
58491         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58492         comments.
58493
58494 2008-04-25  Eric Blake  <ebb9@byu.net>
58495
58496         Use native fstatat on cygwin 1.7.0.
58497         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58498         first.
58499
58500 2008-04-23  Eric Blake  <ebb9@byu.net>
58501
58502         Improve memchr2 performance.
58503         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58504         NUL bytes.
58505         * modules/memchr2 (Depends-on): Use intprops.h.
58506
58507 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58508
58509         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58510         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58511         <blp@cs.stanford.edu>.
58512
58513 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58514
58515         * lib/arpa_inet.in.h: New file.
58516
58517         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58518         (Makefile.am): Sed in substitute header file.
58519
58520         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58521         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58522
58523         * modules/inet_ntop (configure.ac): Use
58524         gl_ARPA_INET_MODULE_INDICATOR.
58525
58526         * modules/inet_pton (configure.ac): Use
58527         gl_ARPA_INET_MODULE_INDICATOR.
58528
58529 2008-04-22  Jim Meyering  <meyering@redhat.com>
58530
58531         * modules/verify (License): Re-license as LGPLv2+.
58532
58533 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58534
58535         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58536         parameter to void* as per POSIX standard (MinGW uses char*).
58537
58538 2008-04-21  Bruno Haible  <bruno@clisp.org>
58539
58540         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58541         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58542         Define to replacements if REPLACE_ISWCNTRL is 1.
58543         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58544         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58545         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58546         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58547         what it fixes.
58548         * doc/posix-functions/iswalpha.texi: Likewise.
58549         * doc/posix-functions/iswblank.texi: Likewise.
58550         * doc/posix-functions/iswcntrl.texi: Likewise.
58551         * doc/posix-functions/iswdigit.texi: Likewise.
58552         * doc/posix-functions/iswgraph.texi: Likewise.
58553         * doc/posix-functions/iswlower.texi: Likewise.
58554         * doc/posix-functions/iswprint.texi: Likewise.
58555         * doc/posix-functions/iswpunct.texi: Likewise.
58556         * doc/posix-functions/iswspace.texi: Likewise.
58557         * doc/posix-functions/iswupper.texi: Likewise.
58558         * doc/posix-functions/iswxdigit.texi: Likewise.
58559         Reported by Alain Guibert.
58560
58561 2008-04-21  Bruno Haible  <bruno@clisp.org>
58562
58563         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58564         Patch by Alain Guibert.
58565
58566 2008-04-21  Bruno Haible  <bruno@clisp.org>
58567
58568         Fix test failures on mingw.
58569         * tests/test-xstrtol.c (print_no_progname): New function.
58570         (main): Install it in error_print_progname hook.
58571         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58572         * tests/test-xstrtoimax.sh: Likewise.
58573         * tests/test-xstrtoumax.sh: Likewise.
58574
58575 2008-04-21  Bruno Haible  <bruno@clisp.org>
58576
58577         Fix test failure on mingw.
58578         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58579
58580 2008-04-21  Bruno Haible  <bruno@clisp.org>
58581
58582         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58583         Actually assign a value.
58584
58585 2008-04-20  Bruno Haible  <bruno@clisp.org>
58586
58587         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
58588         take 2.
58589         * lib/canonicalize.c (canonicalize_file_name): Elide if the
58590         'canonicalize-lgpl' module is also used.
58591         * lib/canonicalize-lgpl.c: Undo last change.
58592         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
58593
58594 2008-04-20  Bruno Haible  <bruno@clisp.org>
58595
58596         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
58597         config.h. Provide _mkdir based fallback for mingw.
58598         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
58599         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
58600         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
58601         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
58602         rather than defining mkdir in config.h.
58603         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
58604         (gl_SYS_STAT_H_DEFAULTS): New macro.
58605         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
58606         HAVE_IO_H any more.
58607         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
58608         HAVE_DECL_MKDIR and HAVE_IO_H.
58609
58610 2008-04-20  Bruno Haible  <bruno@clisp.org>
58611
58612         * lib/isapipe.c: Port to native Windows platforms.
58613
58614 2008-04-20  Bruno Haible  <bruno@clisp.org>
58615
58616         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
58617
58618 2008-04-21  Eric Blake  <ebb9@byu.net>
58619
58620         Work around preprocessors that don't handle UINTMAX_MAX.
58621         * lib/memchr2.c (memchr2): Avoid embedded #if.
58622         Reported by Alain Guibert, fix suggested by Bruno Haible.
58623
58624 2008-04-21  Simon Josefsson  <simon@josefsson.org>
58625
58626         * doc/posix-functions/strftime.texi (strftime): Explain better
58627         Windows incompatibility.  Suggested by Micah Cowan
58628         <micah@cowan.name>.
58629
58630 2008-04-20  Bruno Haible  <bruno@clisp.org>
58631
58632         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
58633         unistr/u8-mblen.
58634
58635 2008-04-20  Bruno Haible  <bruno@clisp.org>
58636
58637         Fix test failure on platforms with non-GNU iconv.
58638         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
58639         (U_TO_U8): Use it, rather than u16_to_u8.
58640         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
58641         units at the end of the input string.
58642         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
58643
58644 2008-04-20  Bruno Haible  <bruno@clisp.org>
58645
58646         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
58647         when the resulting length is 0.
58648         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
58649
58650 2008-04-20  Bruno Haible  <bruno@clisp.org>
58651
58652         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
58653         works.
58654         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
58655
58656 2008-04-20  Bruno Haible  <bruno@clisp.org>
58657
58658         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
58659         * modules/tsearch-tests (configure.ac): Test for initstate function.
58660
58661 2008-04-20  Bruno Haible  <bruno@clisp.org>
58662
58663         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
58664         for nlink_t if missing.
58665         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
58666
58667 2008-04-19  Bruno Haible  <bruno@clisp.org>
58668
58669         Work around snprintf bug on Linux libc5.
58670         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
58671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58672         gl_SNPRINTF_SIZE1.
58673         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58674         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
58675         that test failed.
58676         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
58677         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
58678         * modules/snprintf (Files): Add m4/printf.m4.
58679         * modules/vsnprintf (Files): Likewise.
58680         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
58681         * doc/posix-functions/vsnprintf.texi: Likewise.
58682
58683 2008-04-19  Bruno Haible  <bruno@clisp.org>
58684
58685         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
58686         from 0.0058 to less than 10^-7.
58687
58688 2008-04-19  Bruno Haible  <bruno@clisp.org>
58689
58690         Fix rounding when a precision is given.
58691         * lib/vasnprintf.c (is_borderline): New function.
58692         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
58693         9...9x.
58694         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
58695         %e, %g.
58696         * tests/test-vasprintf-posix.c (test_function): Likewise.
58697         * tests/test-snprintf-posix.h (test_function): Likewise.
58698         * tests/test-sprintf-posix.h (test_function): Likewise.
58699         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
58700         * tests/test-printf-posix.h (test_function): Likewise.
58701         * tests/test-printf-posix.output: Update.
58702         Reported by John Darrington <john@darrington.wattle.id.au> via
58703         Ben Pfaff <blp@cs.stanford.edu>.
58704
58705 2008-04-18  Simon Josefsson  <simon@josefsson.org>
58706
58707         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
58708         Suggested by Bruno Haible <bruno@clisp.org>.
58709
58710 2008-04-17  Bruno Haible  <bruno@clisp.org>
58711
58712         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
58713         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
58714         implementation.
58715         Patch by Bruce Merry <bmerry@gmail.com>.
58716
58717 2008-04-17  Simon Josefsson  <simon@josefsson.org>
58718
58719         * doc/posix-functions/strftime.texi (strftime): Mention that %e
58720         doesn't work under Windows.
58721
58722 2008-04-16  Bruno Haible  <bruno@clisp.org>
58723
58724         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
58725         New macros.
58726         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
58727         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
58728         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
58729         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
58730         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
58731         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
58732         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
58733         macros.
58734         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
58735         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
58736         Northern Sotho, Uighur.
58737
58738 2008-04-16  Bruno Haible  <bruno@clisp.org>
58739
58740         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
58741         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
58742         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
58743         Reported by Daniel Bergström <daniel@octocode.com>.
58744
58745 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
58746             Bruno Haible  <bruno@clisp.org>
58747
58748         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
58749         function.
58750         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
58751         New functions, mostly extracted from gl_locale_name_default.
58752         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
58753
58754 2008-04-16  Eric Blake  <ebb9@byu.net>
58755
58756         Adjust strtod detection to catch glibc 2.7 bug.
58757         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
58758         Reported by John Gatewood Ham.
58759
58760 2008-04-16  Bruno Haible  <bruno@clisp.org>
58761
58762         Add tentative support for Linux libc5.
58763         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
58764         * lib/fpurge.c (fpurge): Likewise.
58765         * lib/freadable.c (freadable): Likewise.
58766         * lib/freadahead.c (freadahead): Likewise.
58767         * lib/freading.c (freading): Likewise.
58768         * lib/freadptr.c (freadptr): Likewise.
58769         * lib/freadseek.c (freadptrinc): Likewise.
58770         * lib/fseeko.c (rpl_fseeko): Likewise.
58771         * lib/fseterr.c (fseterr): Likewise.
58772         * lib/fwritable.c (fwritable): Likewise.
58773         * lib/fwriting.c (fwriting): Likewise.
58774         Reported by Alain Guibert <alguibert+bts@free.fr>.
58775
58776 2008-04-15  Bruno Haible  <bruno@clisp.org>
58777
58778         * modules/mathl (configure.ac): Define module indicator.
58779
58780 2008-04-15  Bruno Haible  <bruno@clisp.org>
58781
58782         * lib/logl.c (logl): Remove unused variables.
58783
58784 2008-04-15  Bruno Haible  <bruno@clisp.org>
58785
58786         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
58787         fails.
58788
58789 2008-04-15  Bruno Haible  <bruno@clisp.org>
58790
58791         * lib/trim.c (trim2): Fix argument of isspace() macro.
58792
58793 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
58794
58795         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
58796         to 0.
58797         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
58798
58799 2008-04-14  Bruno Haible  <bruno@clisp.org>
58800
58801         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
58802         AC_LANG_PROGRAM argument.
58803         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
58804         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
58805         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58806         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58807         * m4/math_h.m4 (gl_MATH_H): Likewise.
58808         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58809         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58810         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58811         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
58812         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58813         * m4/regex.m4 (gl_REGEX): Likewise.
58814         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
58815         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
58816         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58817         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
58818         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58819         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58820         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58821         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58822
58823 2008-04-14  Jim Meyering  <meyering@redhat.com>
58824
58825         test-strtod: fix typos: s/abs/fabs/
58826         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
58827
58828 2008-04-13  Bruno Haible  <bruno@clisp.org>
58829
58830         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
58831         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
58832         module is also used and while not building the reloc-wrapper.
58833
58834 2008-04-13  Bruno Haible  <bruno@clisp.org>
58835
58836         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
58837
58838 2008-04-13  Bruno Haible  <bruno@clisp.org>
58839
58840         Fix AIX compilation failure introduced on 2008-04-02.
58841         * tests/test-frexp.c (exp): Undefine before redefining.
58842         * tests/test-frexpl.c (exp): Likewise.
58843
58844 2008-04-13  Bruno Haible  <bruno@clisp.org>
58845
58846         Work around a HP-UX stdio bug.
58847         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
58848         * tests/test-ftello.c (main): Likewise.
58849         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
58850         * doc/posix-functions/ftello.texi: Likewise.
58851
58852 2008-04-13  Bruno Haible  <bruno@clisp.org>
58853
58854         Make test-signbit pass on HP-UX/hppa.
58855         * tests/test-signbit.c (minus_zerol): New variable.
58856         (test_signbitl): Use it.
58857
58858 2008-04-13  Bruno Haible  <bruno@clisp.org>
58859
58860         Make truncl work on OSF/1 4.0.
58861         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
58862         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58863         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58864         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
58865         HAVE_DECL_TRUNCL.
58866         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
58867         HAVE_DECL_TRUNCL.
58868         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
58869
58870 2008-04-13  Bruno Haible  <bruno@clisp.org>
58871
58872         * lib/unictype.h: Remove trailing comma from enumeration definitions.
58873
58874 2008-04-13  Bruno Haible  <bruno@clisp.org>
58875
58876         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
58877         expression, so as to avoid HP-UX 11 cc compiler bug.
58878
58879 2008-04-13  Bruno Haible  <bruno@clisp.org>
58880
58881         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
58882
58883 2008-04-13  Bruno Haible  <bruno@clisp.org>
58884
58885         * lib/git-merge-changelog.c: Remove empty declaration outside of
58886         functions.
58887
58888 2008-04-13  Bruno Haible  <bruno@clisp.org>
58889
58890         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
58891
58892 2008-04-13  Bruno Haible  <bruno@clisp.org>
58893
58894         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
58895         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
58896         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
58897         also if it exists but lacks definitions of the SHUT_* macros.
58898         * modules/sys_socket (Description): Update.
58899         Reported by Elbert Pol <e.pol@chello.nl>.
58900
58901 2008-04-13  Bruno Haible  <bruno@clisp.org>
58902
58903         * lib/localcharset.c (OS2): Don't redefine if already defined.
58904         Reported by Elbert Pol <e.pol@chello.nl>.
58905
58906 2008-04-13  Bruno Haible  <bruno@clisp.org>
58907
58908         * lib/binary-io.h [__EMX__]: Include <io.h>.
58909         Reported by Elbert Pol <e.pol@chello.nl>.
58910
58911 2008-04-12  Bruno Haible  <bruno@clisp.org>
58912
58913         * lib/fpucw.h: Enable the definitions also for x86_64.
58914         Needed for NetBSD/x86_64.
58915         Reported by Thomas Klausner <tk@giga.or.at>.
58916
58917 2008-04-12  Bruno Haible  <bruno@clisp.org>
58918
58919         * tests/test-strtod.c: Include isnand.h.
58920         (main): Use isnand instead of isnan.
58921         Reported by Jim Meyering.
58922
58923 2008-04-12  Bruno Haible  <bruno@clisp.org>
58924
58925         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
58926         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58927
58928 2008-04-12  Jim Meyering  <meyering@redhat.com>
58929
58930         * m4/math_h.m4 (gl_MATH_H): Fix typos.
58931
58932 2008-04-12  Bruno Haible  <bruno@clisp.org>
58933
58934         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
58935         Reported by Elbert Pol <e.pol@chello.nl>.
58936
58937 2008-04-12  Eric Blake  <ebb9@byu.net>
58938
58939         Work around Solaris 10 math.h bug.
58940         * m4/math_h.m4 (gl_MATH_H): Check for bug.
58941         (gl_MATH_H_DEFAULTS): Set up default.
58942         * modules/math (Makefile.am): Replace new indicators.
58943         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
58944         * tests/test-math.c (main): Test this.
58945         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
58946         * doc/posix-headers/math.texi (math.h): Mention bug.
58947         Reported by Nelson H. F. Beebe and Jim Meyering.
58948
58949 2008-04-11  Bruno Haible  <bruno@clisp.org>
58950
58951         Adapt to future versions of Apple GCC.
58952         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
58953         Reported by Peter O'Gorman <peter@pogma.com>.
58954
58955 2008-04-11  Bruno Haible  <bruno@clisp.org>
58956
58957         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
58958
58959 2008-04-11  Bruno Haible  <bruno@clisp.org>
58960
58961         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
58962
58963         * modules/getaddrinfo-tests (Makefile.am): Define
58964         test_getaddrinfo_LDADD.
58965
58966 2008-04-11  Bruno Haible  <bruno@clisp.org>
58967
58968         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
58969         (init): Fix syntax error.
58970         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
58971         is declared.
58972
58973 2008-04-11  Bruno Haible  <bruno@clisp.org>
58974
58975         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
58976         * modules/glob (Depends-on): Add stdbool.
58977
58978 2008-04-11  Bruno Haible  <bruno@clisp.org>
58979
58980         * lib/trim.c: Include <string.h>.
58981
58982 2008-04-11  Eric Blake  <ebb9@byu.net>
58983
58984         Avoid compile failure on OS/2.
58985         * lib/regex_internal.h (internal_function): Disable optimization
58986         on OS/2 (__EMX__), where it caused compiler error.
58987         Reported by Elbert Pol.
58988
58989 2008-04-11  Bruno Haible  <bruno@clisp.org>
58990
58991         Flush the standard error stream before aborting. Needed on mingw.
58992         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
58993         * tests/test-array_list.c (ASSERT): Likewise.
58994         * tests/test-array_oset.c (ASSERT): Likewise.
58995         * tests/test-avltree_list.c (ASSERT): Likewise.
58996         * tests/test-avltree_oset.c (ASSERT): Likewise.
58997         * tests/test-avltreehash_list.c (ASSERT): Likewise.
58998         * tests/test-binary-io.c (ASSERT): Likewise.
58999         * tests/test-byteswap.c (ASSERT): Likewise.
59000         * tests/test-c-ctype.c (ASSERT): Likewise.
59001         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59002         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59003         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59004         * tests/test-c-strstr.c (ASSERT): Likewise.
59005         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59006         * tests/test-canonicalize.c (ASSERT): Likewise.
59007         * tests/test-carray_list.c (ASSERT): Likewise.
59008         * tests/test-ceilf1.c (ASSERT): Likewise.
59009         * tests/test-ceilf2.c (ASSERT): Likewise.
59010         * tests/test-ceill.c (ASSERT): Likewise.
59011         * tests/test-count-one-bits.c (ASSERT): Likewise.
59012         * tests/test-fbufmode.c (ASSERT): Likewise.
59013         * tests/test-fflush2.c (ASSERT): Likewise.
59014         * tests/test-floorf1.c (ASSERT): Likewise.
59015         * tests/test-floorf2.c (ASSERT): Likewise.
59016         * tests/test-floorl.c (ASSERT): Likewise.
59017         * tests/test-fopen.c (ASSERT): Likewise.
59018         * tests/test-fpending.c (ASSERT): Likewise.
59019         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59020         * tests/test-fpurge.c (ASSERT): Likewise.
59021         * tests/test-freadable.c (ASSERT): Likewise.
59022         * tests/test-freadahead.c (ASSERT): Likewise.
59023         * tests/test-freading.c (ASSERT): Likewise.
59024         * tests/test-freadptr.c (ASSERT): Likewise.
59025         * tests/test-freadptr2.c (ASSERT): Likewise.
59026         * tests/test-freadseek.c (ASSERT): Likewise.
59027         * tests/test-freopen.c (ASSERT): Likewise.
59028         * tests/test-frexp.c (ASSERT): Likewise.
59029         * tests/test-frexpl.c (ASSERT): Likewise.
59030         * tests/test-fseek.c (ASSERT): Likewise.
59031         * tests/test-fseeko.c (ASSERT): Likewise.
59032         * tests/test-fstrcmp.c (ASSERT): Likewise.
59033         * tests/test-ftell.c (ASSERT): Likewise.
59034         * tests/test-ftello.c (ASSERT): Likewise.
59035         * tests/test-func.c (ASSERT): Likewise.
59036         * tests/test-fwritable.c (ASSERT): Likewise.
59037         * tests/test-fwriting.c (ASSERT): Likewise.
59038         * tests/test-getdelim.c (ASSERT): Likewise.
59039         * tests/test-getline.c (ASSERT): Likewise.
59040         * tests/test-i-ring.c (ASSERT): Likewise.
59041         * tests/test-iconv-utf.c (ASSERT): Likewise.
59042         * tests/test-iconv.c (ASSERT): Likewise.
59043         * tests/test-isfinite.c (ASSERT): Likewise.
59044         * tests/test-isnand.c (ASSERT): Likewise.
59045         * tests/test-isnanf.c (ASSERT): Likewise.
59046         * tests/test-isnanl.h (ASSERT): Likewise.
59047         * tests/test-ldexpl.c (ASSERT): Likewise.
59048         * tests/test-linked_list.c (ASSERT): Likewise.
59049         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59050         * tests/test-localename.c (ASSERT): Likewise.
59051         * tests/test-lseek.c (ASSERT): Likewise.
59052         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59053         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59054         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59055         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59056         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59057         * tests/test-mbschr.c (ASSERT): Likewise.
59058         * tests/test-mbscspn.c (ASSERT): Likewise.
59059         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59060         * tests/test-mbspbrk.c (ASSERT): Likewise.
59061         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59062         * tests/test-mbsrchr.c (ASSERT): Likewise.
59063         * tests/test-mbsspn.c (ASSERT): Likewise.
59064         * tests/test-mbsstr1.c (ASSERT): Likewise.
59065         * tests/test-mbsstr2.c (ASSERT): Likewise.
59066         * tests/test-mbsstr3.c (ASSERT): Likewise.
59067         * tests/test-memchr2.c (ASSERT): Likewise.
59068         * tests/test-memmem.c (ASSERT): Likewise.
59069         * tests/test-open.c (ASSERT): Likewise.
59070         * tests/test-printf-frexp.c (ASSERT): Likewise.
59071         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59072         * tests/test-printf-posix.c (ASSERT): Likewise.
59073         * tests/test-quotearg.c (ASSERT): Likewise.
59074         * tests/test-rbtree_list.c (ASSERT): Likewise.
59075         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59076         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59077         * tests/test-round1.c (ASSERT): Likewise.
59078         * tests/test-roundf1.c (ASSERT): Likewise.
59079         * tests/test-roundl.c (ASSERT): Likewise.
59080         * tests/test-signbit.c (ASSERT): Likewise.
59081         * tests/test-sleep.c (ASSERT): Likewise.
59082         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59083         * tests/test-snprintf.c (ASSERT): Likewise.
59084         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59085         * tests/test-stat-time.c (ASSERT): Likewise.
59086         * tests/test-strcasestr.c (ASSERT): Likewise.
59087         * tests/test-strerror.c (ASSERT): Likewise.
59088         * tests/test-striconv.c (ASSERT): Likewise.
59089         * tests/test-striconveh.c (ASSERT): Likewise.
59090         * tests/test-striconveha.c (ASSERT): Likewise.
59091         * tests/test-strsignal.c (ASSERT): Likewise.
59092         * tests/test-strstr.c (ASSERT): Likewise.
59093         * tests/test-strtod.c (ASSERT): Likewise.
59094         * tests/test-trunc1.c (ASSERT): Likewise.
59095         * tests/test-trunc2.c (ASSERT): Likewise.
59096         * tests/test-truncf1.c (ASSERT): Likewise.
59097         * tests/test-truncf2.c (ASSERT): Likewise.
59098         * tests/test-truncl.c (ASSERT): Likewise.
59099         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59100         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59101         * tests/test-vasnprintf.c (ASSERT): Likewise.
59102         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59103         * tests/test-vasprintf.c (ASSERT): Likewise.
59104         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59105         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59106         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59107         * tests/test-vsnprintf.c (ASSERT): Likewise.
59108         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59109         * tests/test-wcwidth.c (ASSERT): Likewise.
59110         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59111         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59112         * tests/test-xvasprintf.c (ASSERT): Likewise.
59113         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59114         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59115         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59116         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59117         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59118         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59119         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59120         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59121         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59122         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59123         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59124         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59125         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59126         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59127         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59128         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59129         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59130         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59131         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59132         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59133         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59134         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59135         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59136         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59137         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59138         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59139         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59140         * tests/unictype/test-combining.c (ASSERT): Likewise.
59141         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59142         * tests/unictype/test-digit.c (ASSERT): Likewise.
59143         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59144         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59145         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59146         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59147         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59148         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59149         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59150         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59151         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59152         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59153         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59154         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59155         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59156         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59157         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59158         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59159         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59160         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59161         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59162         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59163         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59164         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59165         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59166         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59167         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59168         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59169         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59170         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59171         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59172         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59173         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59174         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59175         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59176         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59177         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59178         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59179         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59180         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59181         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59182         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59183         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59184         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59185         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59186         Reported by Eric Blake.
59187
59188 2008-04-11  Bruno Haible  <bruno@clisp.org>
59189
59190         * lib/wchar.in.h: Tweak comment.
59191
59192 2008-04-11  Bruno Haible  <bruno@clisp.org>
59193
59194         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59195         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59196         gl_COMMON.
59197         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59198
59199 2008-04-11  Bruno Haible  <bruno@clisp.org>
59200
59201         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59202
59203 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59204
59205         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59206         of attempting to use non-existing /dev/*random.  Based on patch
59207         from Adam Strzelecki <ono@java.pl> in
59208         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59209
59210 2008-04-08  Bruno Haible  <bruno@clisp.org>
59211
59212         Add tentative support for emx+gcc.
59213         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59214         * lib/fpurge.c (fpurge): Likewise.
59215         * lib/freadable.c (freadable): Likewise.
59216         * lib/freadahead.c (freadahead): Likewise.
59217         * lib/freading.c (freading): Likewise.
59218         * lib/freadptr.c (freadptr): Likewise.
59219         * lib/freadseek.c (freadptrinc): Likewise.
59220         * lib/fseeko.c (rpl_fseeko): Likewise.
59221         * lib/fseterr.c (fseterr): Likewise.
59222         * lib/fwritable.c (fwritable): Likewise.
59223         * lib/fwriting.c (fwriting): Likewise.
59224         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59225
59226 2008-04-09  Eric Blake  <ebb9@byu.net>
59227
59228         Avoid some autoconf warnings.
59229         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59230         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59231         * m4/afs.m4 (gl_AFS): Likewise.
59232         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59233         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59234         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59235         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59236         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59237         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59238         (AC_CHECK_DECLS_ONCE): Likewise.
59239         Rename file...
59240         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59241         gnulib-tool requires autoconf 2.59 or better.
59242         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59243
59244 2008-04-08  Eric Blake  <ebb9@byu.net>
59245
59246         Use 'git describe --match' if present (added in git 1.5.5).
59247         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59248         if possible.
59249
59250 2008-04-08  Bruno Haible  <bruno@clisp.org>
59251
59252         Add tentative support for OpenServer.
59253         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59254         _ptr, _cnt.
59255         * lib/fpurge.c (fpurge): Likewise.
59256         * lib/freadable.c (freadable): Likewise.
59257         * lib/freadahead.c (freadahead): Likewise.
59258         * lib/freading.c (freading): Likewise.
59259         * lib/freadptr.c (freadptr): Likewise.
59260         * lib/freadseek.c (freadptrinc): Likewise.
59261         * lib/fseeko.c (rpl_fseeko): Likewise.
59262         * lib/fseterr.c (fseterr): Likewise.
59263         * lib/fwritable.c (fwritable): Likewise.
59264         * lib/fwriting.c (fwriting): Likewise.
59265         Reported by Roger Cornelius <rac@tenzing.org> and
59266         Brian K. White <brian@aljex.com>.
59267
59268 2008-04-06  Jim Meyering  <meyering@redhat.com>
59269
59270         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59271
59272 2008-04-06  Bruno Haible  <bruno@clisp.org>
59273
59274         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59275         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59276         * tests/test-printf-posix.sh: Likewise.
59277         * tests/test-vfprintf-posix.sh: Likewise.
59278         * tests/test-vprintf-posix.sh: Likewise.
59279         * tests/test-xprintf-posix.sh: Likewise.
59280
59281 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59282
59283         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59284         hide error from 'ls', needed on OS/2.
59285         Report by Elbert Pol <elbert.pol@gmail.com>.
59286
59287 2008-04-04  Eric Blake  <ebb9@byu.net>
59288
59289         Make test-fseeko.c failures meaningful.
59290         * tests/test-fseeko.c: Print line number on failure.
59291         * tests/test-fseek.c: Likewise.
59292         Reported by Nelson H. F. Beebe.
59293
59294         Improve strtod bug detection check.
59295         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59296         required for Solaris 10.
59297         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59298
59299 2008-04-04  Bruno Haible  <bruno@clisp.org>
59300
59301         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59302         by m4/setenv.m4.
59303
59304 2008-04-03  Eric Blake  <ebb9@byu.net>
59305
59306         Ensure sane .version contents.
59307         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59308         version string.
59309         * build-aux/git-version-gen: Improve documentation.
59310
59311         Make GNU make output nicer.
59312         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59313         MAKECMDGOALS to enforce message for all command line targets.  Set
59314         srcdir for use in maint.mk.
59315
59316         Another maintainer tweak.
59317         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59318         a target that regenerates version.
59319
59320 2008-04-03  Jim Meyering  <meyering@redhat.com>
59321
59322         vc-list-files: don't cause coreutils "make po-check" failure
59323         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59324
59325 2008-04-03  Eric Blake  <ebb9@byu.net>
59326
59327         Allow VPATH usage of vc-list-files.
59328         * build-aux/vc-list-files (scriptversion): Add timestamp.
59329         (options): Add --help, --version, -C.
59330         (CVS): Support installed cvsu.
59331
59332 2008-04-02  Bruno Haible  <bruno@clisp.org>
59333
59334         Avoid some "statement with no effect" warnings from gcc.
59335         * tests/test-wctype.c (main): Explicitly ignore unused values.
59336         Reported by Jim Meyering.
59337
59338 2008-04-02  Jim Meyering  <meyering@redhat.com>
59339
59340         Avoid some warnings from "gcc -Wshadow".
59341         * tests/test-frexp.c (exp): Define to a different identifier.
59342         * tests/test-frexpl.c (exp): Likewise.
59343
59344 2008-04-03  Jim Meyering  <meyering@redhat.com>
59345
59346         bootstrap: remove dangling *.[ch] symlinks from lib
59347         * build-aux/bootstrap [dangling symlink removal]: Move find's
59348         -depth option to precede all others, to avoid a warning.
59349         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59350
59351 2008-04-02  Bruno Haible  <bruno@clisp.org>
59352
59353         Avoid some warnings from "gcc -Wshadow".
59354         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59355         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59356         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59357         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59358         Reported by Jim Meyering.
59359
59360 2008-04-01  Bruno Haible  <bruno@clisp.org>
59361
59362         Fix test to work on IRIX 6.5 with cc.
59363         * tests/test-math.c (numeric_equal): New function.
59364         (main): Use it.
59365
59366 2008-04-01  Bruno Haible  <bruno@clisp.org>
59367
59368         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59369
59370 2008-04-01  Bruno Haible  <bruno@clisp.org>
59371
59372         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59373         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59374         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59375         (Depends-on): Remove math.
59376
59377         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59378         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59379         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59380         (Depends-on): Remove math.
59381
59382         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59383         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59384         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59385         (Depends-on): Remove math.
59386         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59387         (Depends-on): Remove math.
59388
59389         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59390         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59391         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59392         (Depends-on): Remove math.
59393         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59394         (Depends-on): Remove math.
59395
59396         * tests/test-round1.c: Include nan.h.
59397         (main): Use NaNd instead of NAN.
59398         * modules/round-tests (Files): Add tests/nan.h.
59399
59400         * tests/test-trunc1.c: Include nan.h.
59401         (main): Use NaNd instead of NAN.
59402         * modules/trunc-tests (Files): Add tests/nan.h.
59403
59404         * tests/test-roundf1.c: Include nan.h.
59405         (main): Use NaNf instead of NAN.
59406         * modules/roundf-tests (Files): Add tests/nan.h.
59407
59408         * tests/test-truncf1.c: Include nan.h.
59409         (main): Use NaNf instead of NAN.
59410         * modules/truncf-tests (Files): Add tests/nan.h.
59411
59412         * tests/test-ceilf1.c: Include nan.h.
59413         (main): Use NaNf instead of NAN.
59414         * modules/ceilf-tests (Files): Add tests/nan.h.
59415
59416         * tests/test-floorf1.c: Include nan.h.
59417         (main): Use NaNf instead of NAN.
59418         * modules/floorf-tests (Files): Add tests/nan.h.
59419
59420         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59421         (main): Use NaNf instead of NAN.
59422         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59423
59424         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59425         (main): Use NaNd instead of NAN.
59426         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59427
59428         * tests/test-frexp.c: Include nan.h.
59429         (main): Use NaNd instead of NAN.
59430         * modules/frexp-tests (Files): Add tests/nan.h.
59431
59432         * lib/isnan.c: Don't include <math.h>.
59433         (FUNC): Don't use NAN macro.
59434         * modules/isnand-nolibm (Depends-on): Remove math.
59435         * modules/isnanf-nolibm (Depends-on): Remove math.
59436         * modules/isnanl (Depends-on): Remove math.
59437         * modules/isnanl-nolibm (Depends-on): Remove math.
59438
59439         * tests/nan.h: New file.
59440
59441 2008-04-01  Eric Blake  <ebb9@byu.net>
59442
59443         Fix typos.
59444         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59445         values to be the right type.
59446
59447         For now, cater to gnulib strtod inaccuracies.
59448         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59449         fractional results.  While not as nice from a QoI perspective, it
59450         is a quicker patch than correctly implementing decimal to binary
59451         rounding.
59452
59453 2008-03-31  Eric Blake  <ebb9@byu.net>
59454
59455         Guarantee a definition of NAN.
59456         * lib/math.in.h (NAN): Define if missing.
59457         * tests/test-math.c (main): Test it.
59458         * doc/posix-headers/math.texi (math.h): Document this.
59459         * lib/isnan.c (rpl_isnand): Use it.
59460         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59461         * tests/test-floorf1.c (NaN): Likewise.
59462         * tests/test-frexp.c (NaN): Likewise.
59463         * tests/test-isnand.c (NaN): Likewise.
59464         * tests/test-isnanf.c (NaN): Likewise.
59465         * tests/test-round1.c (NaN): Likewise.
59466         * tests/test-roundf1.c (NaN): Likewise.
59467         * tests/test-snprintf-posix.h (NaN): Likewise.
59468         * tests/test-sprintf-posix.h (NaN): Likewise.
59469         * tests/test-trunc1.c (NaN): Likewise.
59470         * tests/test-truncf1.c (NaN): Likewise.
59471         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59472         * tests/test-vasprintf-posix.c (NaN): Likewise.
59473         * modules/isnand-nolibm (Depends-on): Add math.
59474         * modules/isnanf-nolibm (Depends-on): Likewise.
59475         * modules/isnanl (Depends-on): Likewise.
59476         * modules/isnanl-nolibm (Depends-on): Likewise.
59477         * modules/snprintf-posix-tests (Depends-on): Likewise.
59478         * modules/sprintf-posix-tests (Depends-on): Likewise.
59479         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59480         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59481         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59482         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59483
59484 2008-03-31  Bruno Haible  <bruno@clisp.org>
59485
59486         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59487         * doc/posix-functions/strtod.texi: Likewise.
59488
59489 2008-03-31  Bruno Haible  <bruno@clisp.org>
59490
59491         * tests/test-strtod.c (main): Don't use C99 syntax.
59492
59493 2008-03-31  Bruno Haible  <bruno@clisp.org>
59494
59495         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59496         Reported by Eric Blake.
59497
59498 2008-03-31  Jim Meyering  <meyering@redhat.com>
59499
59500         Don't compare actual signbit return values.
59501         * tests/test-strtod.c (main): Rather, compare only their
59502         zero/non-zero nature.
59503
59504 2008-03-31  Eric Blake  <ebb9@byu.net>
59505
59506         More strtod documentation.
59507         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59508         failures as distinct bugs.
59509
59510 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59511
59512         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59513         Problem reported by Erik Benada in
59514         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59515
59516 2008-03-30  Bruno Haible  <bruno@clisp.org>
59517
59518         * tests/test-strtod.c: Add comments about which assertion fails on which
59519         platform.
59520         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59521
59522 2008-03-30  Eric Blake  <ebb9@byu.net>
59523
59524         Test signbit behavior on zeros.
59525         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59526         (test_signbitd, test_signbitl): Likewise.
59527
59528         More strtod touchups.
59529         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59530         sign of negative underflow, for now.  Use .5, not .1.
59531         * doc/posix-functions/strtod.texi (strtod): Mention these
59532         limitations.
59533         Reported by Jim Meyering.
59534
59535 2008-03-30  Bruno Haible  <bruno@clisp.org>
59536
59537         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59538         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59539
59540 2008-03-30  Bruno Haible  <bruno@clisp.org>
59541
59542         Avoid failure when attempting to return empty iconv results on some
59543         platforms.
59544         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59545         allocation, don't report ENOMEM when the resulting string is empty.
59546
59547 2008-03-30  Bruno Haible  <bruno@clisp.org>
59548
59549         Fix buffer overrun.
59550         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59551         Don't consider the width for tmp_length. Check count against tmp_length
59552         before doing the padding. Ensure enough allocation during padding.
59553
59554 2008-03-30  Eric Blake  <ebb9@byu.net>
59555
59556         strtod touchups.
59557         * lib/strtod.c (strtod): Avoid compiler warnings.
59558         Reported by Jim Meyering.
59559
59560 2008-03-30  Bruno Haible  <bruno@clisp.org>
59561
59562         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59563         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59564         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59565         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59566         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59567         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59568         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59569         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59570
59571         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59572         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59573         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59574         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59575         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59576         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59577         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59578         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59579
59580         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59581         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59582         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59583         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59584         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
59585         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
59586         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
59587         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
59588
59589         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
59590         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
59591
59592         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
59593         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
59594
59595         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
59596         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
59597
59598         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
59599         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
59600         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
59601
59602         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
59603         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
59604         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
59605
59606         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
59607         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
59608         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
59609
59610         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
59611         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
59612         * modules/vasprintf (Depends-on): Add EOVERFLOW.
59613
59614         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
59615         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
59616         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
59617         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
59618         (Depends-on): Add EOVERFLOW.
59619         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
59620         (Depends-on): Add EOVERFLOW.
59621         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59622         (Depends-on): Add EOVERFLOW.
59623         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59624         (Depends-on): Add EOVERFLOW.
59625         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59626         (Depends-on): Add EOVERFLOW.
59627         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59628         (Depends-on): Add EOVERFLOW.
59629         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59630         (Depends-on): Add EOVERFLOW.
59631         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59632         (Depends-on): Add EOVERFLOW.
59633
59634         * lib/sprintf.c (EOVERFLOW): Remove fallback.
59635         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
59636         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
59637
59638         * lib/snprintf.c (EOVERFLOW): Remove fallback.
59639         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
59640         * modules/snprintf (Depends-on): Add EOVERFLOW.
59641
59642         * lib/poll.c (EOVERFLOW): Remove fallback.
59643         * modules/poll (Depends-on): Add EOVERFLOW.
59644
59645         * lib/getugroups.c (EOVERFLOW): Remove fallback.
59646         * modules/getugroups (Depends-on): Add EOVERFLOW.
59647
59648         * lib/getdelim.c (EOVERFLOW): Remove fallback.
59649         * modules/getdelim (Depends-on): Add EOVERFLOW.
59650
59651         * lib/ftell.c (EOVERFLOW): Remove fallback.
59652         * modules/ftell (Depends-on): Add EOVERFLOW.
59653
59654         * lib/fprintf.c (EOVERFLOW): Remove fallback.
59655         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
59656         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
59657
59658         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
59659
59660         * modules/EOVERFLOW-tests: New file.
59661         * tests/test-EOVERFLOW.c: New file.
59662
59663         * modules/EOVERFLOW: New file.
59664         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
59665
59666 2008-03-30  Bruno Haible  <bruno@clisp.org>
59667
59668         Fix bug introduced on 2007-06-10.
59669         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
59670         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
59671
59672 2008-03-30  Bruno Haible  <bruno@clisp.org>
59673
59674         Improve freadseek's efficiency after ungetc.
59675         * lib/freadseek.c: Include freadahead.h.
59676         (freadptrinc): New function, extracted from freadseek.
59677         (freadseek): Use it in a loop. Use freadahead to determine the number
59678         of loop iterations.
59679         * modules/freadseek (Depends-on): Add freadahead.
59680         (configure.ac): Require AC_C_INLINE.
59681
59682 2008-03-30  Bruno Haible  <bruno@clisp.org>
59683
59684         * lib/freadseek.c (freadseek): Don't ignore the return value of
59685         freadptr.
59686
59687 2008-03-29  Eric Blake  <ebb9@byu.net>
59688
59689         Add hex float support.
59690         * modules/strtod (Depends-on): Add c-ctype.
59691         (Link): Mention POW_LIB.
59692         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
59693         whitespace between 'e' and exponent.
59694         * tests/test-strtod.c (main): Enable hex float tests.
59695         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
59696         now provides.
59697
59698         Document various strtod bugs, with some fixes.
59699         * doc/posix-functions/strtod.texi (strtod): Document bugs with
59700         "-0x", "inf", "nan", and hex constants.
59701         * doc/posix-functions/atof.texi (atof): Likewise.
59702         * modules/stdlib (Makefile.am): Support strtod.
59703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59704         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
59705         detect additional strtod bugs.
59706         * lib/stdlib.in.h (rpl_strtod): Add declarations.
59707         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
59708         bool where appropriate.  Parse 'inf' and 'nan'.
59709         * tests/test-strtod.c: New file.
59710         * modules/strtod (Depends-on): Add stdbool, stdlib.
59711         (configure.ac): Turn on module indicator.
59712         * modules/strtod-tests: New module.
59713
59714 2008-03-29  Eric Blake  <ebb9@byu.net>
59715
59716         Fix ftell on mingw.
59717         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
59718         * modules/ftell-tests (Depends-on): Add binary-io.
59719         * modules/ftello-tests (Depends-on): Likewise.
59720         * tests/test-ftell.c (main): Enhance test to cover behavior after
59721         ungetc.  Enforce binary mode.
59722         * tests/test-ftello.c (main): Likewise.
59723
59724         Pass test-freadseek on cygwin.
59725         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
59726         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
59727         ungetc buffer.
59728
59729         * tests/test-fflush2.c (main): Fix typo.
59730
59731 2008-03-29  Bruno Haible  <bruno@clisp.org>
59732
59733         * tests/test-fflush2.c (main): Temporarily disable the contents of
59734         this test.
59735         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
59736         Reported by Eric Blake.
59737
59738 2008-03-28  Simon Josefsson  <simon@josefsson.org>
59739
59740         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
59741         (GC_SHA224_DIGEST_SIZE): Add.
59742
59743         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
59744         (gc_hash_digest_length): Likewise.
59745         (gc_hash_buffer): Likewise.
59746
59747 2008-03-25  Bruno Haible  <bruno@clisp.org>
59748
59749         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
59750         detail which gettext release to use.
59751         Reported by Simon Josefsson.
59752
59753 2008-03-26  Jim Meyering  <meyering@redhat.com>
59754
59755         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
59756         * modules/gnumakefile (clean-GNUmakefile): Also, use
59757         test ... && ... || : syntax rather than if-then ... fi.
59758
59759         gnumakefile: Don't double-quote-expand $(VPATH) value.
59760         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
59761
59762 2008-03-24  Eric Blake  <ebb9@byu.net>
59763
59764         Alter GNUmakefile to install into top directory.
59765         * modules/maintainer-makefile: Split, and add dependency...
59766         * modules/gnumakefile: to this new module.
59767         * build-aux/GNUmakefile: Move...
59768         * top/GNUmakefile: ...here.
59769         * build-aux/maint.mk: Move...
59770         * top/maint.mk: ...here.
59771         * MODULES.html.sh (Support for maintaining...): Document new
59772         module.
59773
59774 2008-03-23  Bruno Haible  <bruno@clisp.org>
59775
59776         * gnulib-tool: New options --vc-files, --no-vc-files.
59777         (func_usage): Document them.
59778         (vc_files): New variable.
59779         (func_import): Consider vc_files.
59780         (func_create_testdir): Set vc_files to empty.
59781         Suggested by Jim Meyering and Karl Berry.
59782
59783 2008-03-23  Bruno Haible  <bruno@clisp.org>
59784
59785         Fix regex compilation error on HP-UX 11.
59786         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
59787         * modules/regex (Files): Add m4/mbstate_t.m4.
59788         Reported by Ton Voon <ton.voon@altinity.com>.
59789
59790 2008-03-23  Bruno Haible  <bruno@clisp.org>
59791
59792         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
59793
59794 2008-03-23  Eric Blake  <ebb9@byu.net>
59795             Bruno Haible  <bruno@clisp.org>
59796
59797         Install files from top/ in the destination directory.
59798         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59799         augmentation also for the files from top/.
59800         (func_import, func_create_testdir): Rewrite file names:
59801         top/filename -> filename.
59802
59803 2008-03-23  Bruno Haible  <bruno@clisp.org>
59804
59805         Tweak "gnulib --version" output.
59806         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
59807
59808 2008-03-23  Bruno Haible  <bruno@clisp.org>
59809
59810         Tweak "gnulib --version" output.
59811         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
59812         rather than contents of ChangeLog, when possible.
59813
59814 2008-03-21  Eric Blake  <ebb9@byu.net>
59815
59816         More --version tweaks.
59817         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
59818         date of last ChangeLog entry.
59819
59820 2008-03-21  Jim Meyering  <meyering@redhat.com>
59821
59822         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
59823
59824 2008-03-20  Eric Blake  <ebb9@byu.net>
59825
59826         VPATH fix.
59827         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
59828
59829 2008-03-20  Simon Josefsson  <simon@josefsson.org>
59830
59831         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
59832         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
59833
59834 2008-03-20  Eric Blake  <ebb9@byu.net>
59835
59836         Sync GNUmakefile with coreutils.
59837         * build-aux/GNUmakefile (have-Makefile): Rename...
59838         (_have-Makefile): ...to this, for namespace consideration.
59839         (GNUmakefile.cfg): Include, if present.
59840         (_autoreconf): Define a default.
59841         (_is-dist-target): New rule for rebuilds to pick up intra-release
59842         version.
59843         (maint-cfg.mk): Rename...
59844         (cfg.mk): ...to this.
59845
59846 2008-03-18  Jim Meyering  <meyering@redhat.com>
59847
59848         New script and module: mktempd
59849         * MODULES.html.sh (maint+release support): Add mktempd.
59850         * build-aux/mktempd: New file.
59851         * modules/mktempd: New file.
59852
59853 2008-03-15  Jim Meyering  <meyering@redhat.com>
59854
59855         Undo last change.
59856         * lib/sha1.c, lib/md5.c: 63 != ~63.
59857         Reported by Andreas Schwab.
59858
59859         sha1.c, md5.c: Hoist a redundant expression.
59860         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
59861         "ctx->buflen" only once, before calling *_process_block.
59862         * lib/md5.c (md5_process_bytes): Likewise.
59863
59864 2008-03-14  Eric Blake  <ebb9@byu.net>
59865
59866         Bump copyright year in files generated by gnulib-tool.
59867         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
59868         gnulib-tool, rather than hard-coding it.
59869
59870         Fix 'gnulib-tool --version' output to work with git.
59871         * gnulib-tool (func_gnulib_dir): New function, extracted from...
59872         (startup): ...here.
59873         (func_version): Use it to invoke git-version-gen, rather than
59874         relying on CVS keyword expansion.  Modernize wording.
59875         (cvsdatestamp, last_checkin_date, version): Kill unused
59876         variables.
59877
59878 2008-03-12  Jim Meyering  <meyering@redhat.com>
59879
59880         Recognize optional cast of the argument to free.
59881         * build-aux/useless-if-before-free: Update regexps.
59882
59883         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
59884
59885 2008-03-11  Bruno Haible  <bruno@clisp.org>
59886
59887         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
59888         by a single package.
59889         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
59890         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
59891         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
59892         Reported by Sam Steingold <sds@gnu.org>.
59893
59894 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59895
59896         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
59897         repositories.
59898
59899 2008-03-11  Bruno Haible  <bruno@clisp.org>
59900
59901         Avoid conflicts between local macro definitions.
59902         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59903         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
59904
59905 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
59906             Bruno Haible  <bruno@clisp.org>
59907
59908         Make va_copy work with some version of xlc on AIX 5.1.
59909         * lib/stdarg.in.h: New file.
59910         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
59911         On AIX, use a <stdarg.h> file substitute.
59912         * modules/stdarg (Files): Add lib/stdarg.in.h.
59913         (Depends-on): Add include_next.
59914         (Makefile.am): Build a stdarg.h substitute if requested.
59915         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
59916
59917 2008-03-10  Bruno Haible  <bruno@clisp.org>
59918
59919         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
59920         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59921         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59922
59923 2008-03-10  Bruno Haible  <bruno@clisp.org>
59924
59925         * modules/stdlib (Depends-on): Add include_next, remove
59926         absolute-header.
59927
59928 2008-03-09  Bruno Haible  <bruno@clisp.org>
59929
59930         * lib/freadahead.h (freadahead): Document more precisely.
59931         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
59932         the sum of both buffer sizes.
59933         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
59934         * NEWS: Document the change.
59935
59936 2008-03-09  Bruno Haible  <bruno@clisp.org>
59937
59938         Extend freadptr to return also the buffer size.
59939         * lib/freadptr.h (freadptr): Add sizep argument.
59940         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
59941         (freadptr): Add sizep argument. Determine buffer size like freadahead
59942         does.
59943         * tests/test-freadptr.c: Don't include freadahead.h.
59944         (main): Adapt for new calling convention of freadptr.
59945         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
59946         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
59947         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
59948         tests/test-freadptr2.sh.
59949         (Depends): Remove freadahead.
59950         (TESTS): Add test-freadptr2.sh.
59951         (check_PROGRAMS): Add test-freadptr2.
59952
59953 2008-03-09  Bruno Haible  <bruno@clisp.org>
59954
59955         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
59956         Report and solution by Simon Josefsson.
59957
59958 2008-03-06  Bruno Haible  <bruno@clisp.org>
59959
59960         Make fflush after ungetc work on BSD platforms.
59961         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
59962         * tests/test-fflush2.c: New file.
59963         * tests/test-fflush2.sh: New file.
59964         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
59965         tests/test-fflush2.c.
59966         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
59967         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
59968
59969 2008-03-06  Eric Blake  <ebb9@byu.net>
59970
59971         Likewise for ftello.
59972         * modules/ftello (Dependencies): Add extensions.
59973         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
59974
59975 2008-03-06  Bruno Haible  <bruno@clisp.org>
59976
59977         * modules/fseeko (Dependencies): Add extensions.
59978         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
59979         Needed on glibc systems.
59980
59981 2008-03-06  Bruno Haible  <bruno@clisp.org>
59982
59983         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
59984         email address.
59985         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59986
59987 2008-03-06  Bruno Haible  <bruno@clisp.org>
59988
59989         * users.txt: Add libgnupdf.
59990
59991 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59992
59993         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
59994         (Header File Substitutes, Function Substitutes,
59995         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
59996         (Build robot for gnulib): Fix typo.
59997
59998 2008-03-06  Bruno Haible  <bruno@clisp.org>
59999
60000         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60001         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60002
60003 2008-03-06  Bruno Haible  <bruno@clisp.org>
60004
60005         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60006         * doc/gnulib.texi: Include it.
60007
60008 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60009
60010         * modules/func (License): Change license to unlimited; there was
60011         no LGPL parts in the module anyway.
60012
60013 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60014
60015         * modules/__func__: Renamed to modules/func.
60016         * modules/__func__-tests: Renamed to modules/func-tests.
60017         * tests/test-__func__.c: Renamed to tests/test-func.c.
60018         * m4/__func__.m4: Renamed to m4/func.m4.
60019         * doc/gnulib.texi (__func__): Section renamed to func.
60020         Suggested by Eric Blake <ebb9@byu.net>.
60021
60022 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60023
60024         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60025         about __func__.  Make example self-contained.  Suggested by Eric
60026         Blake <ebb9@byu.net>.
60027
60028         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60029         Suggested by Eric Blake <ebb9@byu.net>.
60030
60031 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60032
60033         * modules/__func__: New file.
60034         * modules/__func__-tests: New file.
60035         * tests/test-__func__.c: New file.
60036         * m4/__func__.m4: New file.
60037         * doc/gnulib.texi (__func__): Document __func__ module.
60038
60039 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60040
60041         * modules/byteswap (License): Re-license as LGPLv2+.
60042
60043 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60044
60045         * doc/Makefile: Add pdf target.
60046
60047 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60048
60049         * modules/inline (License): Use 'unlimited', since there are only
60050         *.m4 files in this module.
60051
60052 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60053             Bruno Haible  <bruno@clisp.org>
60054
60055         Add support for HP C 7.1 on OpenVMS 8.3.
60056         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60057
60058 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60059
60060         Update VMS specifics.
60061         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60062
60063 2008-03-02  Jim Meyering  <meyering@redhat.com>
60064
60065         Remove the last dependency on the "free" module.
60066         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60067         Reported by Bob Proulx.
60068
60069         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60070
60071         Remove useless "if" tests before free.  Deprecate "free" module.
60072         * doc/posix-functions/free.texi: Mention that this
60073         module is no longer useful.
60074         * modules/free (Notice): Say this module is obsolete.
60075         * modules/readutmp (Depends-on): Remove free.
60076         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60077         * lib/putenv.c (putenv): Likewise.
60078         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60079         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60080         * tests/test-c-strcasestr.c (main): Likewise.
60081         * tests/test-c-strstr.c (main): Likewise.
60082         * tests/test-mbscasestr1.c (main): Likewise.
60083         * tests/test-mbscasestr2.c (main): Likewise.
60084         * tests/test-mbsstr1.c (main): Likewise.
60085         * tests/test-mbsstr2.c (main): Likewise.
60086         * tests/test-memmem.c (main): Likewise.
60087         * tests/test-strcasestr.c (main): Likewise.
60088         * tests/test-striconv.c (main): Likewise.
60089         * tests/test-striconveh.c (main): Likewise.
60090         * tests/test-striconveha.c (main): Likewise.
60091         * tests/test-strstr.c (main): Likewise.
60092
60093         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60094
60095         bootstrap: sync from coreutils again
60096         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60097
60098 2008-03-01  Jim Meyering  <meyering@redhat.com>
60099
60100         bootstrap: sync from coreutils
60101         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60102         also when the target doesn't exist.
60103
60104 2008-03-01  Eric Blake  <ebb9@byu.net>
60105
60106         Fix bugs in last patch.
60107         * lib/memchr2.c (memchr2): Fix typo.
60108         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60109         extension.
60110         Reported by Bruce Korb.
60111
60112         New module 'memchr2'.
60113         * modules/memchr2: New file.
60114         * modules/memchr2-tests: Likewise.
60115         * lib/memchr2.h: Likewise.
60116         * lib/memchr2.c: Likewise, based on memchr.c.
60117         * tests/test-memchr2.c: New test.
60118         * MODULES.html.sh (String handling): Add memchr2.
60119
60120 2008-02-29  Bruno Haible  <bruno@clisp.org>
60121
60122         * modules/freadseek-tests: New file.
60123         * tests/test-freadseek.sh: New file.
60124         * tests/test-freadseek.c: New file.
60125
60126         New module 'freadseek'.
60127         * modules/freadseek: New file.
60128         * lib/freadseek.h: New file.
60129         * lib/freadseek.c: New file.
60130         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60131
60132 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60133
60134         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60135         wydawca.
60136
60137         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60138         program_invocation_name and program_invocation_short_name are
60139         present.
60140
60141 2008-02-28  Bruno Haible  <bruno@clisp.org>
60142
60143         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60144         * tests/test-freadptr.sh: Also test non-seekable stdin.
60145
60146 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60147
60148         * build-aux/bootstrap (source_base, m4_base)
60149         (doc_base, tests_base): New variables.
60150         (gnulib_tool_options): Do not hardcode base directories, use
60151         the above variables instead.
60152
60153 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60154
60155         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60156
60157 2008-02-28  Bruno Haible  <bruno@clisp.org>
60158
60159         * modules/freadptr-tests: New file.
60160         * tests/test-freadptr.sh: New file.
60161         * tests/test-freadptr.c: New file.
60162
60163         New module 'freadptr'.
60164         * modules/freadptr: New file.
60165         * lib/freadptr.h: New file.
60166         * lib/freadptr.c: New file.
60167         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60168
60169 2008-02-26  Karl Berry  <karl@freefriends.org>
60170
60171         Sync from Libtool:
60172         * libltdl/argz.c (argz_add, argz_count): New functions.
60173         * libltdl/argz.in.h: Declare them.
60174         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60175
60176 2008-02-22  Bruno Haible  <bruno@clisp.org>
60177
60178         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60179         is a pointer type.  Needed for HP-UX 10.
60180         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60181         * doc/posix-functions/gmtime_r.texi: Likewise.
60182         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60183
60184 2008-02-24  Bruno Haible  <bruno@clisp.org>
60185
60186         * modules/environ-tests: New file.
60187         * tests/test-environ.c: New file.
60188
60189         New module 'environ'.
60190         * modules/environ: New file.
60191         * lib/unistd.in.h (environ): New declaration.
60192         * m4/environ.m4: New file.
60193         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60194         after use.
60195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60196         HAVE_DECL_ENVIRON.
60197         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60198         HAVE_DECL_ENVIRON.
60199         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60200         wrong claim that 'environ' is missing on some systems.
60201         * modules/execute (Depends-on): Add environ.
60202         * lib/execute.c (environ): Remove fallback declaration.
60203         * modules/pipe (Depends-on): Add environ.
60204         * lib/pipe.c (environ): Remove fallback declaration.
60205         * modules/setenv (Depends-on): Add environ.
60206         * lib/setenv.c (environ): Remove fallback declaration.
60207         * modules/unsetenv (Depends-on): Add environ.
60208         * lib/unsetenv.c (environ): Remove fallback declaration.
60209         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60210         m4/environ.m4.
60211         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60212         (gl_PREREQ_UNSETENV): Likewise.
60213
60214 2008-02-24  Bruno Haible  <bruno@clisp.org>
60215
60216         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60217
60218 2008-02-20  Bob Proulx  <bob@proulx.com>
60219
60220         Enable use of older two part flavor 'git describe'.
60221         * build-aux/git-version-gen: If using the older two part flavor of
60222         git version then recreate the third part now present in the
60223         newer three part flavor of git describe.
60224
60225 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60226
60227         * lib/fts.c (fts_build): Typo correction to comment.
60228
60229 2008-02-17  Bruno Haible  <bruno@clisp.org>
60230
60231         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60232         generating no-op conflicts.
60233
60234 2008-02-17  Bruno Haible  <bruno@clisp.org>
60235
60236         Speed up by 10%.
60237         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60238         result_entries, rather than an index-based loop.
60239
60240 2008-02-17  Bruno Haible  <bruno@clisp.org>
60241
60242         Speed up by 25%.
60243         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60244         'hashcode_cached'.
60245         (entry_create): New function.
60246         (entry_hashcode): Use the cached hashcode if possible.
60247         (read_changelog_file, try_split_merged_entry): Use entry_create.
60248
60249 2008-02-17  Bruno Haible  <bruno@clisp.org>
60250
60251         Speed up from O(n^2) to O(n) for long ChangeLog files.
60252         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60253         (read_changelog_file): Change implementation of entries_reversed list
60254         to rbtreehash.
60255         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60256
60257 2008-02-17  Bruno Haible  <bruno@clisp.org>
60258
60259         New option --split-merged-entry.
60260         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60261         (find_paragraph_end, try_split_merged_entry): New functions.
60262         (long_options): Add option --split-merged-entry.
60263         (usage): Document option --split-merged-entry.
60264         (main): Implement option --split-merged-entry.
60265         Reported by Eric Blake.
60266
60267 2008-02-17  Bruno Haible  <bruno@clisp.org>
60268
60269         * lib/git-merge-changelog.c: Include c-strstr.h.
60270         (main): Support the "git pull --rebase" situation.
60271         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60272         Reported by Eric Blake.
60273
60274 2008-02-16  Eric Blake  <ebb9@byu.net>
60275
60276         Avoid doubling \ in common case of "c-maybe" quoting style.
60277         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60278         eliding outer quotes.
60279         * lib/quotearg.h: Document this.
60280         * tests/test-quotearg.c (result_strings, inputs, results_g)
60281         (flag_results, locale_results): Test it by adding a new string to
60282         each test group.
60283         (compare_strings): Test new string.
60284
60285 2008-02-13  Eric Blake  <ebb9@byu.net>
60286
60287         Avoid trigraph quoting in default output.
60288         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60289         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60290         unless explicitly requested.
60291         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60292
60293 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60294
60295         Don't rely on signed integer overflowing to negative value.
60296         * lib/getugroups.c (getugroups): Include <limits.h>.
60297         Instead, compare against INT_MAX, and increment only if the test passes.
60298
60299 2008-02-13  Jim Meyering  <meyering@redhat.com>
60300         and Eric Blake  <ebb9@byu.net>
60301
60302         Avoid shadowing warning and compile errors on Linux.
60303         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60304         forwarding macros on Linux.
60305         (dcgettext): Define a stub, for Linux.
60306         (results_g, main): Avoid warnings.
60307
60308 2008-02-12  Eric Blake  <ebb9@byu.net>
60309
60310         Silence warning in last patch.
60311         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60312
60313         Quotearg part 4: add tests, fix c-maybe colon quoting.
60314         * lib/quotearg.h: Improve documentation.
60315         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60316         escapes when adding outer quotes.  When quoting trigraphs, use
60317         valid C notation.  When quoting NUL, omit extra characters if next
60318         character is not digit.  Alter prototype.
60319         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60320         callers.
60321         * modules/quotearg-tests: New module.
60322         * tests/test-quotearg.c: New test.
60323
60324 2008-02-07  Eric Blake  <ebb9@byu.net>
60325
60326         Quotearg part 3: add flag to control outer quote elision.
60327         * lib/quotearg.h (c_maybe_quoting_style): New style.
60328         (enum quoting_flags): Better documentation of flags.
60329         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60330         c-maybe style.
60331         (quotearg_buffer_restyled): Handle new flag to elide outer
60332         quotes.
60333
60334         Quotearg part 2: add flag that can control NUL elision.
60335         * lib/quotearg.h (set_quoting_flags): New prototype.
60336         * lib/quotearg.c (struct quoting_options): Add flag field.
60337         (set_quoting_flags): New function.
60338         (quotearg_buffer_restyled): Add flags parameter.
60339         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60340         (quotearg_n_options): Set the flag, since length cannot be
60341         returned.
60342         (quoting_options_from_style): Default flags correctly.
60343
60344         Quotearg part 1: more wrappers, restore quotearg_char state.
60345         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60346         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60347         (quotearg_colon_mem): New wrappers.
60348         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60349         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60350         functions.
60351         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60352         (quotearg_colon_mem): New functions.
60353
60354 2008-02-11  Bruno Haible  <bruno@clisp.org>
60355
60356         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60357         library in the current directory: it does not work with parallel make.
60358         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60359
60360 2008-02-11  Bruno Haible  <bruno@clisp.org>
60361
60362         * .gitattributes: New file.
60363
60364 2008-02-11  Jim Meyering  <meyering@redhat.com>
60365
60366         useless-if-before-free: Fix reversed exit values.
60367         * build-aux/useless-if-before-free: Use correct values
60368         for EXIT_MATCH and EXIT_NO_MATCH.
60369
60370         * build-aux/useless-if-before-free: Close stdout carefully.
60371
60372 2008-02-10  Bruno Haible  <bruno@clisp.org>
60373
60374         New module 'git-merge-changelog'.
60375         * modules/git-merge-changelog: New file.
60376         * lib/git-merge-changelog.c: New file.
60377
60378 2008-02-10  Jim Meyering  <meyering@redhat.com>
60379
60380         useless-if-before-free: New option: --list (-l).
60381
60382         useless-if-before-free: Don't exit immediately upon open failure.
60383         * build-aux/useless-if-before-free: Exit 2 for errors.
60384         Upon failure to open a file, don't exit immediately.
60385         Rather, just warn and continue with any remaining files.
60386
60387 2008-02-10  Bruno Haible  <bruno@clisp.org>
60388
60389         New abstract list operation 'node_set_value'.
60390         * lib/gl_list.h (gl_list_node_set_value): New function.
60391         (struct gl_list_implementation): New field node_set_value.
60392         * lib/gl_list.c (gl_list_node_set_value): New function.
60393         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60394         (gl_array_list_implementation): Update.
60395         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60396         (gl_carray_list_implementation): Update.
60397         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60398         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60399         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60400         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60401         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60402         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60403         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60404         Update.
60405         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60406         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60407         (gl_sublist_list_implementation): Update.
60408
60409 2008-02-10  Bruno Haible  <bruno@clisp.org>
60410
60411         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60412         Needed when ELEMENT is #defined to 'some_type *'.
60413
60414 2008-02-10  Jim Meyering  <meyering@redhat.com>
60415
60416         New script and module: useless-if-before-free
60417         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60418         * build-aux/useless-if-before-free: New file.
60419         * modules/useless-if-before-free: New file.
60420
60421         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60422
60423         xstrtol_error: Fix typo.
60424         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60425         s/exit_failure/exit_status/.
60426
60427 2008-02-09  Jim Meyering  <meyering@redhat.com>
60428
60429         New script and module: gitlog-to-changelog
60430         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60431         * modules/gitlog-to-changelog: New file.
60432         * build-aux/gitlog-to-changelog: New file.
60433
60434 2008-02-08  Jim Meyering  <meyering@redhat.com>
60435
60436         Avoid two "parameter unused" warnings.
60437         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60438         Mark "st" as used.
60439
60440         Use "git COMMAND", not "git-COMMAND".
60441         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60442         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60443         * build-aux/git-version-gen: Use "git status", not "git-status".
60444
60445 2008-02-07  Bruno Haible  <bruno@clisp.org>
60446
60447         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60448         Avoids a crash on Windows Vista.
60449         Reported by Adam Strzelecki <ono@java.pl> via
60450         Simon Josefsson <simon@josefsson.org>.
60451
60452 2008-02-06  Bruno Haible  <bruno@clisp.org>
60453
60454         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60455         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60456         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60458         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60459         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60460         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60461         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60462         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60463         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60464         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60465         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60466         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60467         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60468         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60469         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60470         left-adjust flag.
60471         * tests/test-snprintf-posix.h (test_function): Likewise.
60472         * tests/test-sprintf-posix.h (test_function): Likewise.
60473         * tests/test-vasprintf-posix.c (test_function): Likewise.
60474         * doc/posix-functions/fprintf.texi: Update.
60475         * doc/posix-functions/printf.texi: Update.
60476         * doc/posix-functions/snprintf.texi: Update.
60477         * doc/posix-functions/sprintf.texi: Update.
60478         * doc/posix-functions/vfprintf.texi: Update.
60479         * doc/posix-functions/vprintf.texi: Update.
60480         * doc/posix-functions/vsnprintf.texi: Update.
60481         * doc/posix-functions/vsprintf.texi: Update.
60482         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60483
60484 2008-02-06  Bruno Haible  <bruno@clisp.org>
60485
60486         Fix bug introduced on 2008-01-26.
60487         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60488
60489 2008-02-06  Bruno Haible  <bruno@clisp.org>
60490
60491         Fix bug introduced on 2007-06-10.
60492         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60493         !NEED_PRINTF_FLAG_ZERO.
60494
60495 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60496
60497         getloadavg: use libperfstat on AIX5
60498         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60499
60500 2008-02-03  Bruno Haible  <bruno@clisp.org>
60501
60502         * lib/diffseq.h: Add comments about required #includes.
60503         Reported by Michael Biggs <gnulib@doubleplum.net>.
60504
60505 2008-02-01  Bruno Haible  <bruno@clisp.org>
60506
60507         * users.txt: Add gnuit.
60508
60509 2008-01-31  Bruno Haible  <bruno@clisp.org>
60510
60511         * lib/md4.c (set_uint32): Mark as inline.
60512         * lib/md5.c (set_uint32): Likewise.
60513         * lib/sha1.c (set_uint32): Likewise.
60514         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60515         * m4/md5.m4 (gl_MD5): Likewise.
60516         * m4/sha1.m4 (gl_SHA1): Likewise.
60517
60518 2008-01-31  Jim Meyering  <meyering@redhat.com>
60519
60520         Use "sizeof VAR", rather than a literal "4".
60521         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60522         * lib/md4.c (md4_read_ctx): Likewise.
60523         * lib/sha1.c (sha1_read_ctx): Likewise.
60524
60525 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60526
60527         * tests/test-sha1.c: New file, based on test-md5.c.
60528
60529         * modules/crypto/sha1-tests: New file.
60530
60531 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60532
60533         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60534
60535 2008-01-31  Jim Meyering  <meyering@redhat.com>
60536
60537         Prefer "sizeof v" over the equivalent "4".
60538         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60539         * lib/md5.c (set_uint32): Likewise.
60540         * lib/sha1.c (set_uint32): Likewise.
60541
60542 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60543
60544         * lib/sha1.c (set_uint32): Mark function as static.
60545
60546 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60547
60548         md2: clarify comments to say that alignment is not required.
60549         * lib/md2.h: Remove warning about alignment in comment.
60550         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60551         never been required.
60552
60553 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60554
60555         md4: adapt alignment constraint fix from sha1.
60556         * lib/md4.c (set_uint32): New function, from sha1.c
60557         (md4_read_ctx): Use it.
60558         (md4_finish_ctx): Doc fix.
60559         * lib/md4.h: Doc fix.
60560
60561 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60562
60563         md5: adapt alignment constraint fix from sha1.
60564         * lib/md5.c (set_uint32): New function, from sha1.c
60565         (md5_read_ctx): Use it.
60566         (md5_finish_ctx): Doc fix.
60567         * lib/md5.h: Doc fix.
60568
60569 2008-01-30  Peter Palfrader  <weasel@debian.org>
60570
60571         sha1: remove the result buffer alignment constraint
60572         * lib/sha1.c (set_uint32): New function.
60573         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60574         constraint.
60575         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60576         * lib/sha1.h: Likewise.
60577
60578 2008-01-30  Andreas Schwab  <schwab@suse.de>
60579             Bruno Haible  <bruno@clisp.org>
60580
60581         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60582         correct definition of LDBL_MIN_EXP.
60583
60584 2008-01-30  Karl Berry  <karl@gnu.org>
60585
60586         * config/srclist-update: try to preserve x bit on updates.
60587         * config/srclistvars.sh: update for karl.
60588
60589 2008-01-29  Jim Meyering  <meyering@redhat.com>
60590
60591         vasnprintf.c: Avoid warning about unused label
60592         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
60593         "overflow" label definition and associated code with the
60594         same cpp condition that guards the sole use of that label.
60595
60596 2008-01-26  Bruno Haible  <bruno@clisp.org>
60597
60598         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
60599         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
60600         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
60601         * lib/isnanl-nolibm.h (isnanl): Likewise.
60602         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60603
60604 2008-01-26  Bruno Haible  <bruno@clisp.org>
60605
60606         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
60607         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
60608
60609 2008-01-26  Bruno Haible  <bruno@clisp.org>
60610
60611         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
60612         GCC >= 4.0 built-in.
60613         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
60614
60615 2008-01-26  Bruno Haible  <bruno@clisp.org>
60616
60617         Rename isnan, applicable to 'double' only, to isnand.
60618         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
60619         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
60620         (configure.ac): Update.
60621         (Include): Replace "isnan.h" with "isnand.h".
60622         * m4/isnand.m4: Renamed from m4/isnan.m4.
60623         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
60624         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
60625         instead of isnan.c.
60626         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
60627         instead of HAVE_ISNAN_IN_LIBC.
60628         (isnand): Renamed from isnan.
60629         * lib/isnand.c: New file.
60630         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
60631         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
60632         (Makefile.am): Update.
60633         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
60634         Include isnand.h instead of isnan.h.
60635         (main): Test isnand instead of isnan.
60636         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
60637         isnan-nolibm.
60638         * modules/frexp (Depends-on): Likewise.
60639         * modules/frexp-tests (Depends-on): Likewise.
60640         * modules/frexp-nolibm (Depends-on): Likewise.
60641         * modules/frexp-nolibm-tests (Depends-on): Likewise.
60642         * modules/isfinite (Depends-on): Likewise.
60643         * modules/round-tests (Depends-on): Likewise.
60644         * modules/signbit (Depends-on): Likewise.
60645         * modules/signbit-tests (Depends-on): Likewise.
60646         * modules/snprintf-posix (Depends-on): Likewise.
60647         * modules/sprintf-posix (Depends-on): Likewise.
60648         * modules/trunc-tests (Depends-on): Likewise.
60649         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60650         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60651         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60652         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60653         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60654         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60655         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60656         * modules/vasnprintf-posix (Depends-on): Likewise.
60657         * modules/vasprintf-posix (Depends-on): Likewise.
60658         * modules/vfprintf-posix (Depends-on): Likewise.
60659         * modules/vsnprintf-posix (Depends-on): Likewise.
60660         * modules/vsprintf-posix (Depends-on): Likewise.
60661         * lib/frexp.c: Include isnand.h instead of isnan.h.
60662         (ISNAN): Set to isnand instead of isnan.
60663         * lib/isfinite.c: Include isnand.h instead of isnan.h.
60664         (gl_isfinited): Use isnand instead of isnan.
60665         * lib/signbitd.c: Include isnand.h instead of isnan.h.
60666         (gl_signbitd): Use isnand instead of isnan.
60667         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
60668         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
60669         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
60670         (main): Use isnand instead of isnan.
60671         * tests/test-round1.c: Include isnand.h.
60672         (main): Use isnand instead of isnan.
60673         * tests/test-round2.c: Include isnand.h instead of isnan.h.
60674         (ISNAN): Set to isnand instead of isnan.
60675         * tests/test-trunc1.c: Include isnand.h.
60676         (main): Use isnand instead of isnan.
60677         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
60678         (equal): Use isnand instead of isnan.
60679         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
60680         isnand-nolibm.
60681         * NEWS: Mention the change.
60682
60683 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60684             Bruno Haible  <bruno@clisp.org>
60685
60686         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
60687         the GCC builtins for signbits are present and set
60688         REPLACE_SIGNBIT_USING_GCC if so.
60689         * lib/math.in.h (signbit): Define using GCC builtins if
60690         REPLACE_SIGNBIT_USING_GCC is set.
60691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
60692         REPLACE_SIGNBIT_USING_GCC.
60693         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
60694
60695 2008-01-25  Jim Meyering  <meyering@redhat.com>
60696
60697         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
60698         * lib/poll.c: Include <config.h>, not "config.h".
60699         * tests/test-getaddrinfo.c: Likewise.
60700
60701 2008-01-25  Simon Josefsson  <simon@josefsson.org>
60702
60703         * modules/sockets-tests: New file.
60704
60705 2008-01-24  Simon Josefsson  <simon@josefsson.org>
60706
60707         * modules/sockets: New module, can be used to call WSA_Startup and
60708         WSA_Cleanup when needed.
60709
60710         * lib/sockets.h, lib/sockets.c: New files.
60711
60712         * m4/sockets.m4: New file.
60713
60714         * tests/test-sockets.c: New file.
60715
60716 2008-01-19  Bruno Haible  <bruno@clisp.org>
60717
60718         * doc/posix-headers: Renamed from doc/headers.
60719         * doc/posix-functions: Renamed from doc/functions.
60720         * doc/gnulib.texi: Update.
60721
60722 2008-01-19  Bruno Haible  <bruno@clisp.org>
60723
60724         * doc/glibc-functions/strcasestr.texi: Include contents of
60725         doc/functions/strcasestr.texi, fixing the list of platforms.
60726         * doc/functions/strcasestr.texi: Remove file.
60727
60728 2008-01-19  Bruno Haible  <bruno@clisp.org>
60729
60730         * doc/glibc-functions/memmem.texi: Include contents of
60731         doc/functions/memmem.texi.
60732         * doc/functions/memmem.texi: Remove file.
60733
60734 2008-01-18  Bruno Haible  <bruno@clisp.org>
60735
60736         * doc/glibc-functions/*.texi: New files.
60737         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
60738         to use the new files.
60739
60740 2008-01-17  Bruno Haible  <bruno@clisp.org>
60741
60742         * tests/test-gethostname.c (main): Fix printf statement.
60743
60744 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60745
60746         * modules/gethostname-tests: New file.
60747
60748         * tests/test-gethostname.c: New file.
60749
60750 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60751
60752         * lib/gethostname.c: Include string.h unconditionally, strncpy is
60753         used by the UNAME case.  Reported by Bruno Haible
60754         <bruno@clisp.org>.
60755
60756 2008-01-17  Eric Blake  <ebb9@byu.net>
60757
60758         Convert c-strcasestr to be more efficient.
60759         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
60760         (Depends-on): Add c-strcase, remove malloca, strnlen.
60761         * tests/test-c-strcasestr.c (main): Enhance test.
60762         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
60763
60764 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60765
60766         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
60767         Use it in creating po/Makevars.
60768
60769 2008-01-15  Simon Josefsson  <simon@josefsson.org>
60770
60771         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
60772         Applications that requires it should initialize libgcrypt
60773         manually.
60774
60775 2008-01-16  Simon Josefsson  <simon@josefsson.org>
60776
60777         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
60778
60779 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
60780
60781         Fix problem with getdate on mingw32 reported by Simon Josefsson
60782         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
60783         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
60784         tzname", when deciding whether to declare tzname.
60785         * lib/strftime.c (tzname): Likewise.
60786
60787 2008-01-15  Bruno Haible  <bruno@clisp.org>
60788
60789         Work around a MacOS X 10.5 bug in frexpl().
60790         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
60791         * doc/functions/frexpl.texi: Document the bug.
60792         Reported by Elias Pipping <pipping@gentoo.org>.
60793
60794 2008-01-14  Eric Blake  <ebb9@byu.net>
60795
60796         Touch up previous patch.
60797         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
60798         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
60799
60800         Convert strcasestr module to use Two-Way algorithm.
60801         * modules/strcasestr-simple: New module, based on the old
60802         strcasestr, but with Two-Way rather than KMP.
60803         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
60804         * lib/string.in.h (rpl_strcasestr): Declare.
60805         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
60806         performance.
60807         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
60808         * modules/string (Makefile.am): Support strcasestr.
60809         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
60810         * modules/strcasestr-tests (Depends-on): Check for alarm.
60811         * tests/test-strcasestr.c: Augment test.
60812         * lib/str-two-way.h: Clean up stray macro.
60813         * NEWS: Document new module.
60814         * MODULES.html.sh (string handling): Likewise.
60815         * doc/functions/strcasestr.texi: New file.
60816         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
60817         here, since it is not a POSIX function.
60818
60819 2008-01-14  Colin Watson  <cjwatson@debian.org>
60820             Bruno Haible  <bruno@clisp.org>
60821
60822         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
60823         works fine; if not, set REPLACE_STRSIGNAL.
60824         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
60825         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60826         REPLACE_STRSIGNAL.
60827         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
60828         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
60829         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
60830
60831 2008-01-14  Bruno Haible  <bruno@clisp.org>
60832
60833         * modules/strsignal (Include): Change to <string.h>.
60834
60835 2008-01-14  Colin Watson  <cjwatson@debian.org>
60836
60837         * modules/argp (Notice): Add a notice recommending to change
60838         XGETTEXT_OPTIONS.
60839         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
60840
60841 2008-01-13  Colin Watson  <cjwatson@debian.org>
60842
60843         * modules/strsignal-tests: New file.
60844         * tests/test-strsignal.c: New file.
60845
60846         * lib/strsignal.c: New file, from glibc with modifications.
60847         * lib/siglist.h: New file, from glibc with modifications.
60848         * lib/string.in.h (strsignal): New declaration.
60849         * m4/strsignal.m4: New file.
60850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60851         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
60852         * modules/strsignal: New file.
60853         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
60854         HAVE_DECL_STRSIGNAL.
60855
60856 2008-01-13  Bruno Haible  <bruno@clisp.org>
60857
60858         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
60859         locale encoding is not ASCII. Needed for OpenBSD 4.0.
60860         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60861         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60862
60863 2008-01-13  Bruno Haible  <bruno@clisp.org>
60864
60865         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
60866         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
60867         * lib/argp.h (__attribute__): Likewise.
60868         * lib/c-stack.c (__attribute__): Likewise.
60869         * lib/error.h (__attribute__): Likewise.
60870         * lib/fts.c (__attribute__): Likewise.
60871         * lib/openat.h (__attribute__): Likewise.
60872         * lib/stdio.in.h (__attribute__): Likewise.
60873         * lib/string.in.h (__attribute__): Likewise.
60874         * lib/utimens.c (__attribute__): Likewise.
60875         * lib/vasnprintf.h (__attribute__): Likewise.
60876         * lib/xalloc.h (__attribute__): Likewise.
60877         * lib/xprintf.h (__attribute__): Likewise.
60878         * lib/xstrtol.h (__attribute__): Likewise.
60879         * lib/xvasprintf.h (__attribute__): Likewise.
60880
60881 2008-01-12  Bruno Haible  <bruno@clisp.org>
60882
60883         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
60884         * doc/glibc-headers/a.out.texi: New file.
60885         * doc/glibc-headers/aliases.texi: New file.
60886         * doc/glibc-headers/alloca.texi: New file.
60887         * doc/glibc-headers/ar.texi: New file.
60888         * doc/glibc-headers/argp.texi: New file.
60889         * doc/glibc-headers/argz.texi: New file.
60890         * doc/glibc-headers/byteswap.texi: New file.
60891         * doc/glibc-headers/crypt.texi: New file.
60892         * doc/glibc-headers/endian.texi: New file.
60893         * doc/glibc-headers/envz.texi: New file.
60894         * doc/glibc-headers/err.texi: New file.
60895         * doc/glibc-headers/error.texi: New file.
60896         * doc/glibc-headers/execinfo.texi: New file.
60897         * doc/glibc-headers/fpu_control.texi: New file.
60898         * doc/glibc-headers/fstab.texi: New file.
60899         * doc/glibc-headers/fts.texi: New file.
60900         * doc/glibc-headers/getopt.texi: New file.
60901         * doc/glibc-headers/ieee754.texi: New file.
60902         * doc/glibc-headers/ifaddrs.texi: New file.
60903         * doc/glibc-headers/libintl.texi: New file.
60904         * doc/glibc-headers/mcheck.texi: New file.
60905         * doc/glibc-headers/mntent.texi: New file.
60906         * doc/glibc-headers/obstack.texi: New file.
60907         * doc/glibc-headers/paths.texi: New file.
60908         * doc/glibc-headers/printf.texi: New file.
60909         * doc/glibc-headers/pty.texi: New file.
60910         * doc/glibc-headers/resolv.texi: New file.
60911         * doc/glibc-headers/shadow.texi: New file.
60912         * doc/glibc-headers/sysexits.texi: New file.
60913         * doc/glibc-headers/ttyent.texi: New file.
60914
60915 2008-01-12  Jim Meyering  <meyering@redhat.com>
60916
60917         announce-gen: emit Gnulib's git-based version string.
60918         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
60919         New option --gnulib-version=V, where V is expected to be
60920         the output of running git describe in the gnulib directory.
60921         (get_tool_versions): Request feedback on xdelta.  I suspect it's
60922         not useful, and plan to stop publishing an xdelta file with each
60923         coreutils release.
60924
60925         * build-aux/announce-gen: Also check for lzma-compressed files.
60926
60927 2008-01-11  Bruno Haible  <bruno@clisp.org>
60928
60929         * tests/test-memmem.c (main): Increase maximum allowed time.
60930         * tests/test-strstr.c (main): Likewise.
60931
60932 2008-01-11  Bruno Haible  <bruno@clisp.org>
60933
60934         * doc/functions/memmem.texi: Add more precisions about platforms.
60935         * doc/functions/strstr.texi: Likewise.
60936
60937 2008-01-10  Eric Blake  <ebb9@byu.net>
60938
60939         * m4/strstr.m4: Delete cruft from copy-n-paste.
60940         Reported by Bruno Haible.
60941
60942 2008-01-10  Bruno Haible  <bruno@clisp.org>
60943
60944         Make c-strstr rely on strstr.
60945         * lib/c-strstr.c: Don't include str-kmp.h.
60946         (c_strstr): Define in terms of strstr.
60947         * modules/c-strstr (Files): Remove lib/str-kmp.h.
60948         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
60949
60950 2008-01-10  Bruno Haible  <bruno@clisp.org>
60951
60952         * doc/gnulib.texi (String Functions in C Locale): New section.
60953         * doc/c-ctype.texi: New file.
60954         * doc/c-strcase.texi: New file.
60955         * doc/c-strcaseeq.texi: New file.
60956         * doc/c-strcasestr.texi: New file.
60957         * doc/c-strstr.texi: New file.
60958         * doc/c-strtod.texi: New file.
60959         * doc/c-strtold.texi: New file.
60960
60961 2008-01-10  Eric Blake  <ebb9@byu.net>
60962
60963         * lib/relocatable.h: Fix a comment.
60964
60965 2008-01-10  Eric Blake  <ebb9@byu.net>
60966
60967         Share two-way algorithm.
60968         * lib/str-two-way.h: New file, merged from...
60969         * lib/memmem.c: ...here...
60970         * lib/strstr.c: ...and here.
60971         * modules/memmem (Files): Use it.
60972         * modules/strstr (Files): Likewise.
60973
60974         Avoid quadratic strstr implementations.
60975         * lib/strstr.c: New file.
60976         * m4/strstr.m4: Likewise.
60977         * modules/strstr: Likewise.
60978         * modules/strstr-tests: Likewise.
60979         * tests/test-strstr.c: Likewise.
60980         * lib/string.in.h (rpl_strstr): Declare.
60981         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
60982         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
60983         * modules/string (Makefile.am): Likewise.
60984         * MODULES.html.sh (string handling): Mention new module.
60985         * doc/functions/strstr.texi (strstr): Document the bug.
60986
60987 2008-01-10  Bruno Haible  <bruno@clisp.org>
60988
60989         * lib/relocatable.h (relocate): State whether result is freshly
60990         allocated or not.
60991         * lib/relocatable.c (relocate): Return a freshly allocated string
60992         instead of a pointer to a privately held string.
60993         Reported by Sylvain Beucler <beuc@gnu.org>.
60994
60995 2008-01-10  Colin Watson  <cjwatson@debian.org>
60996
60997         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
60998         s/S_ISNLK/S_ISLNK/.
60999
61000 2008-01-09  Bruno Haible  <bruno@clisp.org>
61001
61002         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61003         and other files.
61004         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61005         if it's only a guess.
61006         * modules/memmem: Simplify by depending on memmem-simple.
61007
61008 2008-01-09  Bruno Haible  <bruno@clisp.org>
61009
61010         Work around OpenBSD 4.0 tdelete() bug.
61011         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61012         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61013         macros and don't redefine the enum values.
61014         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61015         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61016         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61017
61018 2008-01-09  Bruno Haible  <bruno@clisp.org>
61019
61020         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61021         (main): Don't perform the tests if setlocale did not install a UTF-8
61022         locale. Needed on OpenBSD 4.0.
61023         * modules/wcwidth-tests (Depends-on): Add localcharset.
61024
61025 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61026
61027         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61028         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61029         * NEWS: announce this.
61030         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61031
61032 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61033         and Eric Blake  <ebb9@byu.net>
61034
61035         Add memmem-simple module.
61036         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61037         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61038         * modules/memmem-simple: New file.
61039         * modules/memmem (Description): Tweak.
61040         * MODULES.html.sh (string handling): Mention new module.
61041         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61042         addressed by memmem-simple.
61043         * NEWS: Document the difference.
61044
61045 2008-01-09  Eric Blake  <ebb9@byu.net>
61046
61047         Give gcc some memmem optimization hints.
61048         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61049         (strcasestr): Declare as pure.
61050         * modules/memmem (Maintainer): Claim my implementation.
61051
61052 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61053
61054         Support AIX 6.1 and higher.
61055         * build-aux/config.libpath: Likewise.
61056         * build-aux/config.rpath: Likewise.
61057
61058 2008-01-08  Jim Meyering  <meyering@redhat.com>
61059             Bruno Haible  <bruno@clisp.org>
61060
61061         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61062         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61063         Reported by Peter Fales in
61064         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61065
61066 2008-01-08  Bruno Haible  <bruno@clisp.org>
61067
61068         * modules/unictype/category-of (Depends-on): Add
61069         unictype/category-none.
61070         * modules/unictype/category-and-tests (Depends-on): Add
61071         unictype/category-{L,N,Lu,Nd}.
61072         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61073         * modules/unictype/category-or-tests (Depends-on): Add
61074         unictype/category-{L,N}.
61075         * modules/unictype/category-name-tests (Depends-on): Add
61076         unictype/category-{Z,Nl}.
61077         Reported by Simon Josefsson.
61078
61079 2008-01-08  Bruno Haible  <bruno@clisp.org>
61080
61081         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61082         convention better.
61083         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61084         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61085         Reported by Peter Miller <millerp@canb.auug.org.au>.
61086
61087 2008-01-08  Eric Blake  <ebb9@byu.net>
61088
61089         Rewrite memmem to guarantee linear complexity without malloc.
61090         * lib/memmem.c (memmem): Use Two-Way rather than
61091         Knuth-Morris-Pratt, to allow O(1) space usage.
61092         (critical_factorization, two_way_short_needle)
61093         (two_way_long_needle): New functions.
61094         (knuth_morris_pratt): Delete.
61095         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61096         Add stdint.
61097         * tests/test-memmem.c (main): Add tests for periodic needle and
61098         sublinear performance.
61099         * doc/functions/memmem.texi (memmem): Document other deficiencies
61100         in cygwin and older glibc.
61101
61102 2008-01-08  Bruno Haible  <bruno@clisp.org>
61103
61104         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61105         augmentation.
61106
61107 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61108
61109         Add a configure time option: --disable-acl.
61110         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61111         AC_ARG_ENABLE(acl).
61112
61113 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61114
61115         * tests/test-localename.c: Don't include obsolete "setenv.h".
61116
61117         * modules/localename-tests (Depends-on): Need unsetenv.
61118
61119 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61120
61121         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61122
61123 2008-01-06  Colin Watson  <cjwatson@debian.org>
61124
61125         * users.txt: Add man-db.
61126
61127 2008-01-07  Bruno Haible  <bruno@clisp.org>
61128
61129         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61130         previous section name.
61131
61132 2008-01-07  Bruno Haible  <bruno@clisp.org>
61133
61134         * lib/progname.c (set_program_name): Don't strip off a leading
61135         "lt-" prefix outside a .libs directory.
61136         Suggested by Paul Eggert.
61137
61138 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61139             Bruno Haible  <bruno@clisp.org>
61140
61141         Improve memory cleanup in 'relocatable' module.
61142         * lib/relocatable.h (compute_curr_prefix): Change return type to
61143         'char *'.
61144         * lib/relocatable.c (compute_curr_prefix): Change return type to
61145         'char *'. Free curr_installdir after use.
61146         (relocate): Free curr_prefix_better after use.
61147         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61148
61149 2008-01-01  Bruno Haible  <bruno@clisp.org>
61150
61151         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61152         failure on older glibc systems.
61153         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61154
61155 2008-01-05  Eric Blake  <ebb9@byu.net>
61156
61157         Avoid quadratic system memmem.
61158         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61159         Reported by Ralf Wildenhues.
61160
61161         Fix memmem test for mingw.
61162         * modules/memmem-tests (configure.ac): Check for alarm.
61163         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61164         it.
61165         * doc/functions/memmem.texi: New file.
61166         * doc/gnulib.texi (Function Substitutes): Add memmem.
61167         Reported by Bruno Haible.
61168
61169 2008-01-04  Bruno Haible  <bruno@clisp.org>
61170
61171         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61172         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61173         gl_HEADER_STRING_H_DEFAULTS.
61174
61175 2008-01-04  Eric Blake  <ebb9@byu.net>
61176
61177         Shorten duration of memmem test.
61178         * tests/test-memmem.c (main): Use alarm to declare failure if test
61179         is taking too long.
61180         Reported by Ralf Wildenhues.
61181
61182 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61183
61184         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61185         string, needed by strerror.
61186
61187 2008-01-03  Colin Watson  <cjwatson@debian.org>
61188             Bruno Haible  <bruno@clisp.org>
61189
61190         * doc/gnulib-tool.texi (Localization): New section.
61191
61192 2008-01-02  Bruno Haible  <bruno@clisp.org>
61193
61194         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61195         variables to 'unsigned char *' type.
61196         Reported by Paul Eggert.
61197
61198 2008-01-02  Jim Meyering  <jim@meyering.net>
61199
61200         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61201
61202 2007-12-31  Jim Meyering  <jim@meyering.net>
61203
61204         Avoid use of private FTS type name.
61205         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61206
61207 2007-12-30  Karl Berry  <karl@gnu.org>
61208
61209         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61210         work around defect in Texinfo and/or the standalone Info browser.
61211
61212 2007-12-30  Bruno Haible  <bruno@clisp.org>
61213
61214         Unify 5 copies of the KMP code.
61215         * lib/str-kmp.h: New file.
61216         * lib/c-strcasestr.c: Include str-kmp.h.
61217         (knuth_morris_pratt): Remove function.
61218         (c_strcasestr): Update.
61219         * lib/c-strstr.c: Include str-kmp.h.
61220         (knuth_morris_pratt): Remove function.
61221         (c_strcasestr): Update.
61222         * lib/mbscasestr.c: Include str-kmp.h.
61223         (knuth_morris_pratt_unibyte): Remove function.
61224         * lib/mbsstr.c: Include str-kmp.h.
61225         (knuth_morris_pratt_unibyte): Remove function.
61226         * lib/strcasestr.c: Include str-kmp.h.
61227         (knuth_morris_pratt): Remove function.
61228         (strcasestr): Update.
61229         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61230         * modules/c-strstr (Files): Likewise.
61231         * modules/mbscasestr (Files): Likewise.
61232         * modules/mbsstr (Files): Likewise.
61233         * modules/strcasestr (Files): Likewise.
61234         Suggested by Paul Eggert.
61235
61236 2007-12-30  Bruno Haible  <bruno@clisp.org>
61237
61238         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61239         defined.
61240
61241 2007-12-30  Bruno Haible  <bruno@clisp.org>
61242
61243         * lib/xmalloca.h: Include xalloc.h.
61244         (xnmalloca): New macro.
61245
61246 2007-12-30  Bruno Haible  <bruno@clisp.org>
61247
61248         * lib/malloca.h (nmalloca): New macro.
61249         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61250         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61251         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61252         knuth_morris_pratt_multibyte): Likewise.
61253         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61254         knuth_morris_pratt_multibyte): Likewise.
61255         * lib/memmem.c (knuth_morris_pratt): Likewise.
61256         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61257
61258 2007-12-25  Bruno Haible  <bruno@clisp.org>
61259
61260         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61261         * lib/glob.c: Don't include openat.h.
61262         (link_exists2_p): Add back the code that deals with the
61263         !GLOB_ALTDIRFUNC case.
61264         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61265         let it do the filename concatenation.
61266         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61267         * modules/glob (Depends-on): Remove openat.
61268
61269 2007-12-31  Bruno Haible  <bruno@clisp.org>
61270
61271         * modules/dirfd (License): Change to LGPLv2+.
61272         Approved by Jim Meyering.
61273
61274 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61275
61276         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61277         when multiplying M by sizeof (size_t).
61278
61279 2007-12-10  Martin Lambers  <marlam@marlam.de>
61280
61281         Override getpagesize on mingw.
61282         * lib/getpagesize.c: New file.
61283         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61284         * modules/getpagesize (Files): Add lib/getpagesize.c.
61285         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61286         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61287         REPLACE_GETPAGESIZE.
61288         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61289
61290 2007-12-25  Bruno Haible  <bruno@clisp.org>
61291
61292         * modules/localcharset (Notice): New field.
61293         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61294         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61295
61296 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61297             Bruno Haible  <bruno@clisp.org>
61298
61299         Avoid using the syntax symbol() in formatted documentation.
61300         * MODULES.html.sh (func_module): When replacing symbol() with a
61301         hyperlink, remove the parentheses. Show an error if some remain.
61302         Recognize and render the '...' syntax.
61303         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61304         Rework. Add paragraph about GCC's inlining.
61305         * doc/alloca.texi: Likewise.
61306         * doc/error.texi: Remove parentheses from symbol reference.
61307         * doc/gnulib-intro.texi: Likewise.
61308         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61309         * modules/fnmatch (Description): Reword to say "the ... function".
61310         * modules/full-read (Description): Likewise.
61311         * modules/full-write (Description): Likewise.
61312         * modules/safe-read (Description): Likewise.
61313         * modules/safe-write (Description): Likewise.
61314         * modules/strchrnul (Description): Likewise.
61315         * modules/trim (Description): Likewise.
61316         * modules/error (Description): Remove parentheses from symbol
61317         references.
61318         * modules/verror (Description): Likewise.
61319         Reported by Karl Berry.
61320
61321 2007-12-25  Bruno Haible  <bruno@clisp.org>
61322
61323         Fixup after 2007-10-16 commit.
61324         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61325
61326 2007-12-24  Bruno Haible  <bruno@clisp.org>
61327
61328         Make --enable-relocatable work with DESTDIR.
61329         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61330         to compute installdir from destprog.
61331         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61332         also set the RELOC_DESTDIR variable.
61333         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61334
61335 2007-12-24  Bruno Haible  <bruno@clisp.org>
61336
61337         Fix link error due to xalloc_die().
61338         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61339         of xreadlink.
61340         * lib/relocwrapper.c: Update comments.
61341         * build-aux/install-reloc: Remove xreadlink.c from file list.
61342         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61343         xreadlink.c.
61344         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61345
61346 2007-12-24  Bruno Haible  <bruno@clisp.org>
61347
61348         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61349         * lib/setenv.h: Remove file.
61350         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61351         lib/setenv.h.
61352         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61353         (Depends-on): Add stdlib.
61354         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61355         gl_FUNC_UNSETENV.
61356         (Include): Replace setenv.h with <stdlib.h>.
61357         * modules/unsetenv: New file.
61358         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61359         * lib/unsetenv.c: Include <stdlib.h> first.
61360         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61361         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61362         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61363         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61364         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61365         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61366         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61367         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61368         * doc/functions/unsetenv.texi: Update.
61369         * modules/xsetenv (Depends-on): Add unsetenv.
61370         * modules/getdate (Depends-on): Likewise.
61371         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61372         * lib/xsetenv.c: Don't include setenv.h.
61373         * lib/getdate.y: Likewise.
61374         * lib/relocwrapper.c: Likewise.
61375         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61376         (Depends-on): Add stdlib.
61377         * NEWS: Mention the changes.
61378         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61379
61380 2007-12-23  Bruno Haible  <bruno@clisp.org>
61381
61382         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61383         indentation.
61384
61385 2007-12-23  Bruno Haible  <bruno@clisp.org>
61386
61387         * lib/c-strcasestr.c: Add more comments.
61388         * lib/c-strstr.c: Likewise.
61389         * lib/mbscasestr.c: Likewise.
61390         * lib/mbsstr.c: Likewise.
61391         * lib/strcasestr.c: Likewise.
61392         * lib/memmem.c: Likewise.
61393
61394 2007-12-23  Bruno Haible  <bruno@clisp.org>
61395
61396         * tests/test-memmem.c: Include <string.h> first.
61397
61398 2007-12-22  Bruno Haible  <bruno@clisp.org>
61399
61400         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61401         the contents of $testsbase.
61402         Reported by Ralf Wildenhues.
61403
61404 2007-12-22  Bruno Haible  <bruno@clisp.org>
61405
61406         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61407         two variables local_ldadd_before, local_ldadd_last.
61408
61409 2007-12-20  Eric Blake  <ebb9@byu.net>
61410
61411         Work around circular library issue when cross-compiling.
61412         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61413         that progname.o does not need to pull in rpl_memcmp.
61414
61415 2007-12-19  Eric Blake  <ebb9@byu.net>
61416
61417         Fix memmem to avoid O(n^2) worst-case complexity.
61418         * lib/memmem.c (knuth_morris_pratt): New function.
61419         (memmem): Use it if first few naive iterations fail.
61420         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61421         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61422         * modules/memchr (License): Likewise.
61423         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61424         malloca.
61425         * tests/test-memmem.c: Rewrite, borrowing ideas from
61426         test-mbsstr1.c; the old version wouldn't even compile!
61427         * modules/memmem-tests: New file.
61428         * lib/string.in.h (rpl_memmem): Add declaration.
61429         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61430         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61431         REPLACE_MEMMEM.
61432
61433 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61434
61435         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61436         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61437         before any system include files, and undef after them all.  This
61438         should fix a problem on VMS reported by John E. Malmberg in
61439         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61440
61441 2007-12-17  Eric Blake  <ebb9@byu.net>
61442
61443         Revert addition of verify, for BSD/OS.
61444         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61445         can't handle large files, for the sake of obsolete platforms.
61446         * modules/fseeko (Depends-on): Remove verify.
61447         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61448         * doc/functions/ftello.texi (ftello): Likewise.
61449         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61450         Reported by Larry Jones.
61451
61452 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61453
61454         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61455         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61456
61457 2007-12-17  Jim Meyering  <meyering@redhat.com>
61458
61459         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61460         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61461         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61462         * modules/getcwd (Depends-on): Add openat.
61463         Reported by Petr Salinger.
61464
61465 2007-12-17  Bruno Haible  <bruno@clisp.org>
61466
61467         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61468         avoid a segmentation fault of the configure test on x86_64 systems.
61469
61470 2007-12-15  Jim Meyering  <meyering@redhat.com>
61471
61472         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61473
61474 2007-12-13  Eric Blake  <ebb9@byu.net>
61475
61476         Another fseek test.
61477         * tests/test-fseek.c (main): Also test ungetc handling.
61478         * tests/test-fseeko.c (main): Likewise.
61479         * modules/fseeko (Depends-on): Add verify.
61480         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61481         large.
61482         Reported by Larry Jones.
61483
61484         Fix fseeko on mingw.
61485         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61486         seek.
61487
61488         Beef up fseek tests.
61489         * tests/test-fseek.c (main): Also test eof handling.
61490         * tests/test-fseeko.c (main): Likewise.
61491         Reported by Larry Jones.
61492
61493 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61494
61495         Fix fseeko on BSD-based platforms.
61496         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61497         successful seek.
61498
61499 2007-12-12  Eric Blake  <ebb9@byu.net>
61500
61501         Allow circular dependency of separate libtests.a
61502         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61503         when use_libtests.
61504
61505 2007-12-11  Eric Blake  <ebb9@byu.net>
61506
61507         Fix bug with -0.0L in previous patch.
61508         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61509         * tests/test-isnan.c (main): Also test on zeroes.
61510         * tests/test-isnanf.c (main): Likewise.
61511         * tests/test-isnanl.h (main): Likewise.
61512
61513         Detect pseudo-denormals on x86 even when cross-compiling.
61514         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61515         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61516         invalid bit patterns that happen to satisfy ==.
61517
61518         Avoid link failures with separate libtests.a.
61519         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61520         last, to satisfy circular dependencies.
61521
61522 2007-12-11  Eric Blake  <ebb9@byu.net>
61523         and Bruno Haible  <bruno@clisp.org>
61524
61525         Fix OpenBSD 4.0 <float.h> handling of long double.
61526         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61527         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61528         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61529
61530 2007-12-11  Jim Meyering  <meyering@redhat.com>
61531
61532         * users.txt: Add libvirt.
61533
61534         Support versions of autoconf prior to 2.59c.
61535         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61536         if it is not already defined.
61537
61538 2007-12-09  Bruno Haible  <bruno@clisp.org>
61539
61540         Let 'gnulib-tool --import' collect sources needed for the tests in
61541         tests/ rather than in lib/.
61542         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61543         argument. If true, add rules to generate libtests.a, and put libtests.a
61544         into $(LDADD). Consider source files in subdirectories and set
61545         uses_subdirs.
61546         (func_emit_initmacro_start, func_emit_initmacro_end,
61547         func_emit_initmacro_done): Pass all arguments explicitly.
61548         (func_import): Determine two module lists main_modules,
61549         testsrelated_modules. Determine use_libtests. Determine two variables
61550         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61551         instead of just sed_transform_lib_file. Determine two variables
61552         main_files and testsrelated_files. Compute 'files' as the union of
61553         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61554         func_add_or_update. In the generated gnulib-comp.m4, collect the
61555         object files for tests/ in different variables than those for lib/.
61556         Substitute LIBTESTS_LIBDEPS.
61557         (func_create_testdir): Combine the uses_subdirs results from
61558         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61559
61560 2007-12-09  Bruno Haible  <bruno@clisp.org>
61561
61562         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61563         the build-aux directory.
61564
61565 2007-12-09  Bruno Haible  <bruno@clisp.org>
61566
61567         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61568         introduced on 2006-09-09.
61569
61570 2007-12-07  Jim Meyering  <meyering@redhat.com>
61571
61572         Let these macros work also with autoconf-2.59.
61573         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61574         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61575         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61576
61577 2007-12-06  Jim Meyering  <meyering@redhat.com>
61578
61579         Avoid a configure-time syntax error in gl_FUNC_ACL.
61580         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61581         function in each branch, before testing the cache variable.
61582
61583 2007-12-04  Eric Blake  <ebb9@byu.net>
61584
61585         Make scripts executable.
61586         * build-aux/config.guess: Add execute permissions.
61587         * build-aux/config.sub: Likewise.
61588         * build-aux/gendocs.sh: Likewise.
61589
61590         Fix frexp on mingw.
61591         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
61592         cross-compiling.
61593         * doc/functions/frexp.texi (frexp): Document the bug.
61594
61595         Make cygwin fseeko check more reliable.
61596         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
61597         version numbers, rather than unrelated feature check.
61598         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
61599         * doc/functions/ftello.texi (ftello): Likewise.
61600         Reported by Bruno Haible.
61601
61602         * m4/strerror.m4: Bump version number.
61603
61604 2007-12-03  Bruno Haible  <bruno@clisp.org>
61605
61606         * doc/functions/mprotect.texi: Mention the mingw problem.
61607
61608 2007-12-03  Eric Blake  <ebb9@byu.net>
61609
61610         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
61611         REPLACE_STRERROR is initialized before this macro.
61612
61613 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61614
61615         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
61616         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
61617         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
61618         put -lsec in even for programs other than 'ls'.  This fixes a problem
61619         for gettext reported by Bruno Haible in
61620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
61621         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
61622         Add support for Solaris 10.  This isn't efficient, but should get the
61623         job done for now.
61624
61625 2007-12-03  James Youngman  <jay@gnu.org>
61626
61627         * doc/regexprops-generic.texi: change "an close-group" to "a
61628         close-group" and "illegal" to "not allowed".
61629
61630 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61631
61632         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
61633         pr_byname.h. Needed for the rare case when the maintainer has done
61634         "make maintainer-clean" in the source directory and then attempts a
61635         build outside the source directory.
61636         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
61637         scripts_byname.h.
61638
61639 2007-12-02  Martin Lambers <marlam@marlam.de>
61640             Bruno Haible  <bruno@clisp.org>
61641
61642         * lib/getpagesize.h: Remove file.
61643         * lib/unistd.in.h: Include declaration of getpagesize here.
61644         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
61645         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
61646         HAVE_SYS_PARAM_H.
61647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
61648         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61649         * modules/getpagesize (Files): Remove lib/getpagesize.h.
61650         (Depends-on): Add unistd.
61651         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61652         (Include): Use <unistd.h> instead of getpagesize.h.
61653         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
61654         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61655         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
61656         gl_GETPAGESIZE invocation, already handled by module dependency.
61657         * lib/pagealign_alloc.c: Don't include getpagesize.h.
61658
61659 2007-12-02  Bruno Haible  <bruno@clisp.org>
61660
61661         * modules/strings-tests: New file.
61662         * tests/test-strings.c: New file.
61663
61664         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
61665         * lib/strings.in.h: New file.
61666         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
61667         * m4/strings_h.m4: New file.
61668         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
61669         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
61670         * modules/strings: New file.
61671         * modules/string (Makefile.am): Update.
61672         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
61673         Reported by Karl Berry.
61674
61675 2007-12-01  Eric Blake  <ebb9@byu.net>
61676
61677         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
61678         accommodate fix in cygwin 1.5.25.
61679
61680 2007-12-01  Jim Meyering  <meyering@redhat.com>
61681
61682         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
61683         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
61684         that would inhibit utf8-optimization of a regexp containing line-
61685         or buffer-anchors, e.g., `^', `$'.
61686
61687 2007-11-30  Bruno Haible  <bruno@clisp.org>
61688
61689         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
61690         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
61691         glthread_recursive_lock_init.
61692         * lib/lock.c (glthread_recursive_lock_init)
61693         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
61694         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61695
61696 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
61697
61698         New function qset_acl, like set_acl but with syscall semantics.
61699         * lib/acl.h (qset_acl): New decl.
61700         * lib/acl.c (qset_acl): New function.
61701         (set_acl): Use new function.  Use more-consistent diagnostics.
61702
61703 2007-11-28  Jim Meyering  <meyering@redhat.com>
61704
61705         * modules/physmem (License): Change from GPL to LGPLv2+.
61706
61707 2007-11-26  Bruno Haible  <bruno@clisp.org>
61708
61709         * lib/vasnprintf.c (decode_long_double): Don't abort if the
61710         'long double' type has excess precision.
61711         Reported by Jim Meyering in
61712         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
61713
61714 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61715
61716         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
61717         Sync from <http://gnu.org/licenses>.
61718         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
61719         with license text from same location.
61720         * doc/maintain.texi, doc/standards.texi:  Sync from
61721         <http://savannah.gnu.org/projects/gnustandards>.
61722
61723 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
61724         and Jim Meyering  <meyering@redhat.com>
61725
61726         Adjust getdate' grammar to accept a slightly more regular language.
61727         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
61728         Before, the former was rejected.
61729         * lib/getdate.y (digits_to_date_time): New function, factored
61730         out of ...
61731         (number): ...here.  Just call digits_to_date_time.
61732         (hybrid): New non-terminal to handle an <unsigned number,
61733         signed relative offset> sequence consistently.
61734
61735 2007-11-18  Jim Meyering  <meyering@redhat.com>
61736
61737         Pull my changes from coreutils:
61738         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
61739         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
61740         use of $gnulib_tool_option_extras, so that it's separated from the
61741         preceding argument.
61742
61743         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
61744         * build-aux/bootstrap (cp_mark_as_generated): Create any required
61745         parent destination directories before copying a file into place.
61746
61747 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61748
61749         bootstrap: work also with 4-argument variant of AC_INIT
61750         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
61751
61752 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61753
61754         Port test-getaddrinfo to Solaris.
61755         Problem reported by Bruno Haible in
61756         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
61757         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
61758         explanation of setting 'hints'.
61759         Don't reject an implementation merely because it returns EAI_SERVICE.
61760         (EAI_SERVICE): Define to 0 if not defined.
61761
61762 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61763
61764         The license of gnu-make and posix-shell is now "GPLed build tool".
61765         * modules/gnu-make (License): Likewise.
61766         * modules/posix-shell (License): Likewise.
61767
61768         New module posix-shell, for determining a POSIX shell
61769         or perhaps something that is close enough to a POSIX shell.
61770         * m4/posix-shell.m4: New file.
61771         * modules/posix-shell: New file.
61772
61773         * MODULES.html.sh: Mention new module.
61774
61775         New module gnu-make, for determining whether we're using GNU Make.
61776         * m4/gnu-make.m4: New file.
61777         * modules/gnu-make: New file.
61778         * MODULES.html.sh: Mention new module.
61779
61780 2007-11-14  Jim Meyering  <meyering@redhat.com>
61781
61782         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
61783         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
61784         use this macro to create a function _definition_.
61785         Remove useless "#undef ARGMATCH_DIE".
61786
61787 2007-11-14  Bruno Haible  <bruno@clisp.org>
61788
61789         * lib/config.charset: Update for OpenBSD 4.1.
61790         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
61791
61792 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
61793
61794         Document 64-bit #if problems in stdint.texi.
61795         * doc/headers/stdint.texi (stdint.h): Mention problems with
61796         64-bit-#if, and how to work around them.
61797
61798         Don't insist on 'long long int' support in the preprocessor.  It
61799         breaks too many things.  For example, PRIdMAX still uses a 'long
61800         long int' format with the latest Sun compiler, even though
61801         HAVE_LONG_LONG_INT isn't defined due to that compiler's
61802         preprocessor problem.  This causes the latest coreutils to dump
61803         core on Solaris 10 sparc with the Sun C compiler.
61804         Instead, fix the 2007-10-16 problem in a different way, by evaluating
61805         the troublesome expressions at configure-time, not at #if-time.
61806         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
61807         preprocessor.
61808         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
61809         compile-time C checks, done at 'configure'-time.
61810         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
61811         * modules/inttypes (Makefile): Substitute the new symbols that
61812         gl_INTTYPES_H now generates.
61813         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
61814
61815 2007-11-12  Bruno Haible  <bruno@clisp.org>
61816
61817         Tests for Unicode character classification functions.
61818
61819         * modules/unictype/bidicategory-byname-tests: New file.
61820         * modules/unictype/bidicategory-name-tests: New file.
61821         * modules/unictype/bidicategory-of-tests: New file.
61822         * modules/unictype/bidicategory-test-tests: New file.
61823         * modules/unictype/block-list-tests: New file.
61824         * modules/unictype/block-of-tests: New file.
61825         * modules/unictype/block-test-tests: New file.
61826         * modules/unictype/category-C-tests: New file.
61827         * modules/unictype/category-Cc-tests: New file.
61828         * modules/unictype/category-Cf-tests: New file.
61829         * modules/unictype/category-Cn-tests: New file.
61830         * modules/unictype/category-Co-tests: New file.
61831         * modules/unictype/category-Cs-tests: New file.
61832         * modules/unictype/category-L-tests: New file.
61833         * modules/unictype/category-Ll-tests: New file.
61834         * modules/unictype/category-Lm-tests: New file.
61835         * modules/unictype/category-Lo-tests: New file.
61836         * modules/unictype/category-Lt-tests: New file.
61837         * modules/unictype/category-Lu-tests: New file.
61838         * modules/unictype/category-M-tests: New file.
61839         * modules/unictype/category-Mc-tests: New file.
61840         * modules/unictype/category-Me-tests: New file.
61841         * modules/unictype/category-Mn-tests: New file.
61842         * modules/unictype/category-N-tests: New file.
61843         * modules/unictype/category-Nd-tests: New file.
61844         * modules/unictype/category-Nl-tests: New file.
61845         * modules/unictype/category-No-tests: New file.
61846         * modules/unictype/category-P-tests: New file.
61847         * modules/unictype/category-Pc-tests: New file.
61848         * modules/unictype/category-Pd-tests: New file.
61849         * modules/unictype/category-Pe-tests: New file.
61850         * modules/unictype/category-Pf-tests: New file.
61851         * modules/unictype/category-Pi-tests: New file.
61852         * modules/unictype/category-Po-tests: New file.
61853         * modules/unictype/category-Ps-tests: New file.
61854         * modules/unictype/category-S-tests: New file.
61855         * modules/unictype/category-Sc-tests: New file.
61856         * modules/unictype/category-Sk-tests: New file.
61857         * modules/unictype/category-Sm-tests: New file.
61858         * modules/unictype/category-So-tests: New file.
61859         * modules/unictype/category-Z-tests: New file.
61860         * modules/unictype/category-Zl-tests: New file.
61861         * modules/unictype/category-Zp-tests: New file.
61862         * modules/unictype/category-Zs-tests: New file.
61863         * modules/unictype/category-and-not-tests: New file.
61864         * modules/unictype/category-and-tests: New file.
61865         * modules/unictype/category-byname-tests: New file.
61866         * modules/unictype/category-name-tests: New file.
61867         * modules/unictype/category-none-tests: New file.
61868         * modules/unictype/category-of-tests: New file.
61869         * modules/unictype/category-or-tests: New file.
61870         * modules/unictype/category-test-withtable-tests: New file.
61871         * modules/unictype/combining-class-tests: New file.
61872         * modules/unictype/ctype-alnum-tests: New file.
61873         * modules/unictype/ctype-alpha-tests: New file.
61874         * modules/unictype/ctype-blank-tests: New file.
61875         * modules/unictype/ctype-cntrl-tests: New file.
61876         * modules/unictype/ctype-digit-tests: New file.
61877         * modules/unictype/ctype-graph-tests: New file.
61878         * modules/unictype/ctype-lower-tests: New file.
61879         * modules/unictype/ctype-print-tests: New file.
61880         * modules/unictype/ctype-punct-tests: New file.
61881         * modules/unictype/ctype-space-tests: New file.
61882         * modules/unictype/ctype-upper-tests: New file.
61883         * modules/unictype/ctype-xdigit-tests: New file.
61884         * modules/unictype/decimal-digit-tests: New file.
61885         * modules/unictype/digit-tests: New file.
61886         * modules/unictype/mirror-tests: New file.
61887         * modules/unictype/numeric-tests: New file.
61888         * modules/unictype/property-alphabetic-tests: New file.
61889         * modules/unictype/property-ascii-hex-digit-tests: New file.
61890         * modules/unictype/property-bidi-arabic-digit-tests: New file.
61891         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
61892         * modules/unictype/property-bidi-block-separator-tests: New file.
61893         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
61894         * modules/unictype/property-bidi-common-separator-tests: New file.
61895         * modules/unictype/property-bidi-control-tests: New file.
61896         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
61897         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
61898         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
61899         * modules/unictype/property-bidi-european-digit-tests: New file.
61900         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
61901         * modules/unictype/property-bidi-left-to-right-tests: New file.
61902         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
61903         * modules/unictype/property-bidi-other-neutral-tests: New file.
61904         * modules/unictype/property-bidi-pdf-tests: New file.
61905         * modules/unictype/property-bidi-segment-separator-tests: New file.
61906         * modules/unictype/property-bidi-whitespace-tests: New file.
61907         * modules/unictype/property-byname-tests: New file.
61908         * modules/unictype/property-combining-tests: New file.
61909         * modules/unictype/property-composite-tests: New file.
61910         * modules/unictype/property-currency-symbol-tests: New file.
61911         * modules/unictype/property-dash-tests: New file.
61912         * modules/unictype/property-decimal-digit-tests: New file.
61913         * modules/unictype/property-default-ignorable-code-point-tests: New file.
61914         * modules/unictype/property-deprecated-tests: New file.
61915         * modules/unictype/property-diacritic-tests: New file.
61916         * modules/unictype/property-extender-tests: New file.
61917         * modules/unictype/property-format-control-tests: New file.
61918         * modules/unictype/property-grapheme-base-tests: New file.
61919         * modules/unictype/property-grapheme-extend-tests: New file.
61920         * modules/unictype/property-grapheme-link-tests: New file.
61921         * modules/unictype/property-hex-digit-tests: New file.
61922         * modules/unictype/property-hyphen-tests: New file.
61923         * modules/unictype/property-id-continue-tests: New file.
61924         * modules/unictype/property-id-start-tests: New file.
61925         * modules/unictype/property-ideographic-tests: New file.
61926         * modules/unictype/property-ids-binary-operator-tests: New file.
61927         * modules/unictype/property-ids-trinary-operator-tests: New file.
61928         * modules/unictype/property-ignorable-control-tests: New file.
61929         * modules/unictype/property-iso-control-tests: New file.
61930         * modules/unictype/property-join-control-tests: New file.
61931         * modules/unictype/property-left-of-pair-tests: New file.
61932         * modules/unictype/property-line-separator-tests: New file.
61933         * modules/unictype/property-logical-order-exception-tests: New file.
61934         * modules/unictype/property-lowercase-tests: New file.
61935         * modules/unictype/property-math-tests: New file.
61936         * modules/unictype/property-non-break-tests: New file.
61937         * modules/unictype/property-not-a-character-tests: New file.
61938         * modules/unictype/property-numeric-tests: New file.
61939         * modules/unictype/property-other-alphabetic-tests: New file.
61940         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
61941         * modules/unictype/property-other-grapheme-extend-tests: New file.
61942         * modules/unictype/property-other-id-continue-tests: New file.
61943         * modules/unictype/property-other-id-start-tests: New file.
61944         * modules/unictype/property-other-lowercase-tests: New file.
61945         * modules/unictype/property-other-math-tests: New file.
61946         * modules/unictype/property-other-uppercase-tests: New file.
61947         * modules/unictype/property-paired-punctuation-tests: New file.
61948         * modules/unictype/property-paragraph-separator-tests: New file.
61949         * modules/unictype/property-pattern-syntax-tests: New file.
61950         * modules/unictype/property-pattern-white-space-tests: New file.
61951         * modules/unictype/property-private-use-tests: New file.
61952         * modules/unictype/property-punctuation-tests: New file.
61953         * modules/unictype/property-quotation-mark-tests: New file.
61954         * modules/unictype/property-radical-tests: New file.
61955         * modules/unictype/property-sentence-terminal-tests: New file.
61956         * modules/unictype/property-soft-dotted-tests: New file.
61957         * modules/unictype/property-space-tests: New file.
61958         * modules/unictype/property-terminal-punctuation-tests: New file.
61959         * modules/unictype/property-test-tests: New file.
61960         * modules/unictype/property-titlecase-tests: New file.
61961         * modules/unictype/property-unassigned-code-value-tests: New file.
61962         * modules/unictype/property-unified-ideograph-tests: New file.
61963         * modules/unictype/property-uppercase-tests: New file.
61964         * modules/unictype/property-variation-selector-tests: New file.
61965         * modules/unictype/property-white-space-tests: New file.
61966         * modules/unictype/property-xid-continue-tests: New file.
61967         * modules/unictype/property-xid-start-tests: New file.
61968         * modules/unictype/property-zero-width-tests: New file.
61969         * modules/unictype/scripts-tests: New file.
61970         * modules/unictype/syntax-c-ident-tests: New file.
61971         * modules/unictype/syntax-c-whitespace-tests: New file.
61972         * modules/unictype/syntax-java-ident-tests: New file.
61973         * modules/unictype/syntax-java-whitespace-tests: New file.
61974         * tests/unictype/test-bidi_byname.c: New file.
61975         * tests/unictype/test-bidi_name.c: New file.
61976         * tests/unictype/test-bidi_of.c: New file.
61977         * tests/unictype/test-bidi_test.c: New file.
61978         * tests/unictype/test-block_list.c: New file.
61979         * tests/unictype/test-block_of.c: New file.
61980         * tests/unictype/test-block_test.c: New file.
61981         * tests/unictype/test-categ_and.c: New file.
61982         * tests/unictype/test-categ_and_not.c: New file.
61983         * tests/unictype/test-categ_byname.c: New file.
61984         * tests/unictype/test-categ_name.c: New file.
61985         * tests/unictype/test-categ_none.c: New file.
61986         * tests/unictype/test-categ_of.c: New file.
61987         * tests/unictype/test-categ_or.c: New file.
61988         * tests/unictype/test-categ_test_withtable.c: New file.
61989         * tests/unictype/test-combining.c: New file.
61990         * tests/unictype/test-decdigit.c: New file.
61991         * tests/unictype/test-digit.c: New file.
61992         * tests/unictype/test-mirror.c: New file.
61993         * tests/unictype/test-numeric.c: New file.
61994         * tests/unictype/test-pr_byname.c: New file.
61995         * tests/unictype/test-pr_test.c: New file.
61996         * tests/unictype/test-predicate-part1.h: New file.
61997         * tests/unictype/test-predicate-part2.h: New file.
61998         * tests/unictype/test-scripts.c: New file.
61999         * tests/unictype/test-sy_c_ident.c: New file.
62000         * tests/unictype/test-sy_java_ident.c: New file.
62001
62002         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62003         for Unicode 5.0.0.
62004         * tests/unictype/test-categ_Cc.c: Likewise.
62005         * tests/unictype/test-categ_Cf.c: Likewise.
62006         * tests/unictype/test-categ_Cn.c: Likewise.
62007         * tests/unictype/test-categ_Co.c: Likewise.
62008         * tests/unictype/test-categ_Cs.c: Likewise.
62009         * tests/unictype/test-categ_L.c: Likewise.
62010         * tests/unictype/test-categ_Ll.c: Likewise.
62011         * tests/unictype/test-categ_Lm.c: Likewise.
62012         * tests/unictype/test-categ_Lo.c: Likewise.
62013         * tests/unictype/test-categ_Lt.c: Likewise.
62014         * tests/unictype/test-categ_Lu.c: Likewise.
62015         * tests/unictype/test-categ_M.c: Likewise.
62016         * tests/unictype/test-categ_Mc.c: Likewise.
62017         * tests/unictype/test-categ_Me.c: Likewise.
62018         * tests/unictype/test-categ_Mn.c: Likewise.
62019         * tests/unictype/test-categ_N.c: Likewise.
62020         * tests/unictype/test-categ_Nd.c: Likewise.
62021         * tests/unictype/test-categ_Nl.c: Likewise.
62022         * tests/unictype/test-categ_No.c: Likewise.
62023         * tests/unictype/test-categ_P.c: Likewise.
62024         * tests/unictype/test-categ_Pc.c: Likewise.
62025         * tests/unictype/test-categ_Pd.c: Likewise.
62026         * tests/unictype/test-categ_Pe.c: Likewise.
62027         * tests/unictype/test-categ_Pf.c: Likewise.
62028         * tests/unictype/test-categ_Pi.c: Likewise.
62029         * tests/unictype/test-categ_Po.c: Likewise.
62030         * tests/unictype/test-categ_Ps.c: Likewise.
62031         * tests/unictype/test-categ_S.c: Likewise.
62032         * tests/unictype/test-categ_Sc.c: Likewise.
62033         * tests/unictype/test-categ_Sk.c: Likewise.
62034         * tests/unictype/test-categ_Sm.c: Likewise.
62035         * tests/unictype/test-categ_So.c: Likewise.
62036         * tests/unictype/test-categ_Z.c: Likewise.
62037         * tests/unictype/test-categ_Zl.c: Likewise.
62038         * tests/unictype/test-categ_Zp.c: Likewise.
62039         * tests/unictype/test-categ_Zs.c: Likewise.
62040         * tests/unictype/test-ctype_alnum.c: Likewise.
62041         * tests/unictype/test-ctype_alpha.c: Likewise.
62042         * tests/unictype/test-ctype_blank.c: Likewise.
62043         * tests/unictype/test-ctype_cntrl.c: Likewise.
62044         * tests/unictype/test-ctype_digit.c: Likewise.
62045         * tests/unictype/test-ctype_graph.c: Likewise.
62046         * tests/unictype/test-ctype_lower.c: Likewise.
62047         * tests/unictype/test-ctype_print.c: Likewise.
62048         * tests/unictype/test-ctype_punct.c: Likewise.
62049         * tests/unictype/test-ctype_space.c: Likewise.
62050         * tests/unictype/test-ctype_upper.c: Likewise.
62051         * tests/unictype/test-ctype_xdigit.c: Likewise.
62052         * tests/unictype/test-decdigit.h: Likewise.
62053         * tests/unictype/test-digit.h: Likewise.
62054         * tests/unictype/test-numeric.h: Likewise.
62055         * tests/unictype/test-pr_alphabetic.c: Likewise.
62056         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62057         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62058         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62059         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62060         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62061         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62062         * tests/unictype/test-pr_bidi_control.c: Likewise.
62063         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62064         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62065         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62066         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62067         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62068         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62069         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62070         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62071         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62072         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62073         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62074         * tests/unictype/test-pr_combining.c: Likewise.
62075         * tests/unictype/test-pr_composite.c: Likewise.
62076         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62077         * tests/unictype/test-pr_dash.c: Likewise.
62078         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62079         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62080         * tests/unictype/test-pr_deprecated.c: Likewise.
62081         * tests/unictype/test-pr_diacritic.c: Likewise.
62082         * tests/unictype/test-pr_extender.c: Likewise.
62083         * tests/unictype/test-pr_format_control.c: Likewise.
62084         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62085         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62086         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62087         * tests/unictype/test-pr_hex_digit.c: Likewise.
62088         * tests/unictype/test-pr_hyphen.c: Likewise.
62089         * tests/unictype/test-pr_id_continue.c: Likewise.
62090         * tests/unictype/test-pr_id_start.c: Likewise.
62091         * tests/unictype/test-pr_ideographic.c: Likewise.
62092         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62093         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62094         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62095         * tests/unictype/test-pr_iso_control.c: Likewise.
62096         * tests/unictype/test-pr_join_control.c: Likewise.
62097         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62098         * tests/unictype/test-pr_line_separator.c: Likewise.
62099         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62100         * tests/unictype/test-pr_lowercase.c: Likewise.
62101         * tests/unictype/test-pr_math.c: Likewise.
62102         * tests/unictype/test-pr_non_break.c: Likewise.
62103         * tests/unictype/test-pr_not_a_character.c: Likewise.
62104         * tests/unictype/test-pr_numeric.c: Likewise.
62105         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62106         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62107         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62108         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62109         * tests/unictype/test-pr_other_id_start.c: Likewise.
62110         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62111         * tests/unictype/test-pr_other_math.c: Likewise.
62112         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62113         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62114         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62115         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62116         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62117         * tests/unictype/test-pr_private_use.c: Likewise.
62118         * tests/unictype/test-pr_punctuation.c: Likewise.
62119         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62120         * tests/unictype/test-pr_radical.c: Likewise.
62121         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62122         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62123         * tests/unictype/test-pr_space.c: Likewise.
62124         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62125         * tests/unictype/test-pr_titlecase.c: Likewise.
62126         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62127         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62128         * tests/unictype/test-pr_uppercase.c: Likewise.
62129         * tests/unictype/test-pr_variation_selector.c: Likewise.
62130         * tests/unictype/test-pr_white_space.c: Likewise.
62131         * tests/unictype/test-pr_xid_continue.c: Likewise.
62132         * tests/unictype/test-pr_xid_start.c: Likewise.
62133         * tests/unictype/test-pr_zero_width.c: Likewise.
62134         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62135         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62136
62137 2007-11-12  Bruno Haible  <bruno@clisp.org>
62138
62139         Unicode character classification functions.
62140         * lib/unictype.h: New file.
62141         * modules/unictype/base: New file.
62142         * modules/unictype/category-L: New file.
62143         * modules/unictype/category-Lu: New file.
62144         * modules/unictype/category-Ll: New file.
62145         * modules/unictype/category-Lt: New file.
62146         * modules/unictype/category-Lm: New file.
62147         * modules/unictype/category-Lo: New file.
62148         * modules/unictype/category-M: New file.
62149         * modules/unictype/category-Mn: New file.
62150         * modules/unictype/category-Mc: New file.
62151         * modules/unictype/category-Me: New file.
62152         * modules/unictype/category-N: New file.
62153         * modules/unictype/category-Nd: New file.
62154         * modules/unictype/category-Nl: New file.
62155         * modules/unictype/category-No: New file.
62156         * modules/unictype/category-P: New file.
62157         * modules/unictype/category-Pc: New file.
62158         * modules/unictype/category-Pd: New file.
62159         * modules/unictype/category-Ps: New file.
62160         * modules/unictype/category-Pe: New file.
62161         * modules/unictype/category-Pi: New file.
62162         * modules/unictype/category-Pf: New file.
62163         * modules/unictype/category-Po: New file.
62164         * modules/unictype/category-S: New file.
62165         * modules/unictype/category-Sm: New file.
62166         * modules/unictype/category-Sc: New file.
62167         * modules/unictype/category-Sk: New file.
62168         * modules/unictype/category-So: New file.
62169         * modules/unictype/category-Z: New file.
62170         * modules/unictype/category-Zs: New file.
62171         * modules/unictype/category-Zl: New file.
62172         * modules/unictype/category-Zp: New file.
62173         * modules/unictype/category-C: New file.
62174         * modules/unictype/category-Cc: New file.
62175         * modules/unictype/category-Cf: New file.
62176         * modules/unictype/category-Cs: New file.
62177         * modules/unictype/category-Co: New file.
62178         * modules/unictype/category-Cn: New file.
62179         * modules/unictype/category-or: New file.
62180         * modules/unictype/category-of: New file.
62181         * modules/unictype/category-test: New file.
62182         * modules/unictype/category-test-withtable: New file.
62183         * modules/unictype/category-byname: New file.
62184         * modules/unictype/category-none: New file.
62185         * modules/unictype/category-and: New file.
62186         * modules/unictype/category-and-not: New file.
62187         * modules/unictype/category-name: New file.
62188         * modules/unictype/combining-class: New file.
62189         * modules/unictype/category-all: New file.
62190         * modules/unictype/bidicategory-all: New file.
62191         * modules/unictype/bidicategory-byname: New file.
62192         * modules/unictype/bidicategory-name: New file.
62193         * modules/unictype/bidicategory-of: New file.
62194         * modules/unictype/bidicategory-test: New file.
62195         * modules/unictype/decimal-digit: New file.
62196         * modules/unictype/digit: New file.
62197         * modules/unictype/numeric: New file.
62198         * modules/unictype/mirror: New file.
62199         * modules/unictype/property-white-space: New file.
62200         * modules/unictype/property-alphabetic: New file.
62201         * modules/unictype/property-other-alphabetic: New file.
62202         * modules/unictype/property-not-a-character: New file.
62203         * modules/unictype/property-default-ignorable-code-point: New file.
62204         * modules/unictype/property-other-default-ignorable-code-point: New
62205         file.
62206         * modules/unictype/property-deprecated: New file.
62207         * modules/unictype/property-logical-order-exception: New file.
62208         * modules/unictype/property-variation-selector: New file.
62209         * modules/unictype/property-private-use: New file.
62210         * modules/unictype/property-unassigned-code-value: New file.
62211         * modules/unictype/property-uppercase: New file.
62212         * modules/unictype/property-other-uppercase: New file.
62213         * modules/unictype/property-lowercase: New file.
62214         * modules/unictype/property-other-lowercase: New file.
62215         * modules/unictype/property-titlecase: New file.
62216         * modules/unictype/property-soft-dotted: New file.
62217         * modules/unictype/property-id-start: New file.
62218         * modules/unictype/property-other-id-start: New file.
62219         * modules/unictype/property-id-continue: New file.
62220         * modules/unictype/property-other-id-continue: New file.
62221         * modules/unictype/property-xid-start: New file.
62222         * modules/unictype/property-xid-continue: New file.
62223         * modules/unictype/property-pattern-white-space: New file.
62224         * modules/unictype/property-pattern-syntax: New file.
62225         * modules/unictype/property-join-control: New file.
62226         * modules/unictype/property-grapheme-base: New file.
62227         * modules/unictype/property-grapheme-extend: New file.
62228         * modules/unictype/property-other-grapheme-extend: New file.
62229         * modules/unictype/property-grapheme-link: New file.
62230         * modules/unictype/property-bidi-control: New file.
62231         * modules/unictype/property-bidi-left-to-right: New file.
62232         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62233         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62234         * modules/unictype/property-bidi-european-digit: New file.
62235         * modules/unictype/property-bidi-eur-num-separator: New file.
62236         * modules/unictype/property-bidi-eur-num-terminator: New file.
62237         * modules/unictype/property-bidi-arabic-digit: New file.
62238         * modules/unictype/property-bidi-common-separator: New file.
62239         * modules/unictype/property-bidi-block-separator: New file.
62240         * modules/unictype/property-bidi-segment-separator: New file.
62241         * modules/unictype/property-bidi-whitespace: New file.
62242         * modules/unictype/property-bidi-non-spacing-mark: New file.
62243         * modules/unictype/property-bidi-boundary-neutral: New file.
62244         * modules/unictype/property-bidi-pdf: New file.
62245         * modules/unictype/property-bidi-embedding-or-override: New file.
62246         * modules/unictype/property-bidi-other-neutral: New file.
62247         * modules/unictype/property-hex-digit: New file.
62248         * modules/unictype/property-ascii-hex-digit: New file.
62249         * modules/unictype/property-ideographic: New file.
62250         * modules/unictype/property-unified-ideograph: New file.
62251         * modules/unictype/property-radical: New file.
62252         * modules/unictype/property-ids-binary-operator: New file.
62253         * modules/unictype/property-ids-trinary-operator: New file.
62254         * modules/unictype/property-zero-width: New file.
62255         * modules/unictype/property-space: New file.
62256         * modules/unictype/property-non-break: New file.
62257         * modules/unictype/property-iso-control: New file.
62258         * modules/unictype/property-format-control: New file.
62259         * modules/unictype/property-dash: New file.
62260         * modules/unictype/property-hyphen: New file.
62261         * modules/unictype/property-punctuation: New file.
62262         * modules/unictype/property-line-separator: New file.
62263         * modules/unictype/property-paragraph-separator: New file.
62264         * modules/unictype/property-quotation-mark: New file.
62265         * modules/unictype/property-sentence-terminal: New file.
62266         * modules/unictype/property-terminal-punctuation: New file.
62267         * modules/unictype/property-currency-symbol: New file.
62268         * modules/unictype/property-math: New file.
62269         * modules/unictype/property-other-math: New file.
62270         * modules/unictype/property-paired-punctuation: New file.
62271         * modules/unictype/property-left-of-pair: New file.
62272         * modules/unictype/property-combining: New file.
62273         * modules/unictype/property-composite: New file.
62274         * modules/unictype/property-decimal-digit: New file.
62275         * modules/unictype/property-numeric: New file.
62276         * modules/unictype/property-diacritic: New file.
62277         * modules/unictype/property-extender: New file.
62278         * modules/unictype/property-ignorable-control: New file.
62279         * modules/unictype/property-test: New file.
62280         * modules/unictype/property-byname: New file.
62281         * modules/unictype/property-all: New file.
62282         * modules/unictype/scripts: New file.
62283         * modules/unictype/scripts-all: New file.
62284         * modules/unictype/block-of: New file.
62285         * modules/unictype/block-test: New file.
62286         * modules/unictype/block-list: New file.
62287         * modules/unictype/block-all: New file.
62288         * modules/unictype/syntax-c-whitespace: New file.
62289         * modules/unictype/syntax-java-whitespace: New file.
62290         * modules/unictype/syntax-c-ident: New file.
62291         * modules/unictype/syntax-java-ident: New file.
62292         * modules/unictype/ctype-alnum: New file.
62293         * modules/unictype/ctype-alpha: New file.
62294         * modules/unictype/ctype-cntrl: New file.
62295         * modules/unictype/ctype-digit: New file.
62296         * modules/unictype/ctype-graph: New file.
62297         * modules/unictype/ctype-lower: New file.
62298         * modules/unictype/ctype-print: New file.
62299         * modules/unictype/ctype-punct: New file.
62300         * modules/unictype/ctype-space: New file.
62301         * modules/unictype/ctype-upper: New file.
62302         * modules/unictype/ctype-xdigit: New file.
62303         * modules/unictype/ctype-blank: New file.
62304         * lib/unictype/bidi_byname.c: New file.
62305         * lib/unictype/bidi_name.c: New file.
62306         * lib/unictype/bidi_of.c: New file.
62307         * lib/unictype/bidi_test.c: New file.
62308         * lib/unictype/bitmap.h: New file.
62309         * lib/unictype/block_test.c: New file.
62310         * lib/unictype/blocks.c: New file.
62311         * lib/unictype/categ_C.c: New file.
62312         * lib/unictype/categ_Cc.c: New file.
62313         * lib/unictype/categ_Cf.c: New file.
62314         * lib/unictype/categ_Cn.c: New file.
62315         * lib/unictype/categ_Co.c: New file.
62316         * lib/unictype/categ_Cs.c: New file.
62317         * lib/unictype/categ_L.c: New file.
62318         * lib/unictype/categ_Ll.c: New file.
62319         * lib/unictype/categ_Lm.c: New file.
62320         * lib/unictype/categ_Lo.c: New file.
62321         * lib/unictype/categ_Lt.c: New file.
62322         * lib/unictype/categ_Lu.c: New file.
62323         * lib/unictype/categ_M.c: New file.
62324         * lib/unictype/categ_Mc.c: New file.
62325         * lib/unictype/categ_Me.c: New file.
62326         * lib/unictype/categ_Mn.c: New file.
62327         * lib/unictype/categ_N.c: New file.
62328         * lib/unictype/categ_Nd.c: New file.
62329         * lib/unictype/categ_Nl.c: New file.
62330         * lib/unictype/categ_No.c: New file.
62331         * lib/unictype/categ_P.c: New file.
62332         * lib/unictype/categ_Pc.c: New file.
62333         * lib/unictype/categ_Pd.c: New file.
62334         * lib/unictype/categ_Pe.c: New file.
62335         * lib/unictype/categ_Pf.c: New file.
62336         * lib/unictype/categ_Pi.c: New file.
62337         * lib/unictype/categ_Po.c: New file.
62338         * lib/unictype/categ_Ps.c: New file.
62339         * lib/unictype/categ_S.c: New file.
62340         * lib/unictype/categ_Sc.c: New file.
62341         * lib/unictype/categ_Sk.c: New file.
62342         * lib/unictype/categ_Sm.c: New file.
62343         * lib/unictype/categ_So.c: New file.
62344         * lib/unictype/categ_Z.c: New file.
62345         * lib/unictype/categ_Zl.c: New file.
62346         * lib/unictype/categ_Zp.c: New file.
62347         * lib/unictype/categ_Zs.c: New file.
62348         * lib/unictype/categ_and.c: New file.
62349         * lib/unictype/categ_and_not.c: New file.
62350         * lib/unictype/categ_byname.c: New file.
62351         * lib/unictype/categ_name.c: New file.
62352         * lib/unictype/categ_none.c: New file.
62353         * lib/unictype/categ_of.c: New file.
62354         * lib/unictype/categ_or.c: New file.
62355         * lib/unictype/categ_test.c: New file.
62356         * lib/unictype/combining.c: New file.
62357         * lib/unictype/ctype_alnum.c: New file.
62358         * lib/unictype/ctype_alpha.c: New file.
62359         * lib/unictype/ctype_blank.c: New file.
62360         * lib/unictype/ctype_cntrl.c: New file.
62361         * lib/unictype/ctype_digit.c: New file.
62362         * lib/unictype/ctype_graph.c: New file.
62363         * lib/unictype/ctype_lower.c: New file.
62364         * lib/unictype/ctype_print.c: New file.
62365         * lib/unictype/ctype_punct.c: New file.
62366         * lib/unictype/ctype_space.c: New file.
62367         * lib/unictype/ctype_upper.c: New file.
62368         * lib/unictype/ctype_xdigit.c: New file.
62369         * lib/unictype/decdigit.c: New file.
62370         * lib/unictype/digit.c: New file.
62371         * lib/unictype/identsyntaxmap.h: New file.
62372         * lib/unictype/mirror.c: New file.
62373         * lib/unictype/numeric.c: New file.
62374         * lib/unictype/pr_alphabetic.c: New file.
62375         * lib/unictype/pr_ascii_hex_digit.c: New file.
62376         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62377         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62378         * lib/unictype/pr_bidi_block_separator.c: New file.
62379         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62380         * lib/unictype/pr_bidi_common_separator.c: New file.
62381         * lib/unictype/pr_bidi_control.c: New file.
62382         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62383         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62384         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62385         * lib/unictype/pr_bidi_european_digit.c: New file.
62386         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62387         * lib/unictype/pr_bidi_left_to_right.c: New file.
62388         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62389         * lib/unictype/pr_bidi_other_neutral.c: New file.
62390         * lib/unictype/pr_bidi_pdf.c: New file.
62391         * lib/unictype/pr_bidi_segment_separator.c: New file.
62392         * lib/unictype/pr_bidi_whitespace.c: New file.
62393         * lib/unictype/pr_byname.c: New file.
62394         * lib/unictype/pr_byname.gperf: New file.
62395         * lib/unictype/pr_combining.c: New file.
62396         * lib/unictype/pr_composite.c: New file.
62397         * lib/unictype/pr_currency_symbol.c: New file.
62398         * lib/unictype/pr_dash.c: New file.
62399         * lib/unictype/pr_decimal_digit.c: New file.
62400         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62401         * lib/unictype/pr_deprecated.c: New file.
62402         * lib/unictype/pr_diacritic.c: New file.
62403         * lib/unictype/pr_extender.c: New file.
62404         * lib/unictype/pr_format_control.c: New file.
62405         * lib/unictype/pr_grapheme_base.c: New file.
62406         * lib/unictype/pr_grapheme_extend.c: New file.
62407         * lib/unictype/pr_grapheme_link.c: New file.
62408         * lib/unictype/pr_hex_digit.c: New file.
62409         * lib/unictype/pr_hyphen.c: New file.
62410         * lib/unictype/pr_id_continue.c: New file.
62411         * lib/unictype/pr_id_start.c: New file.
62412         * lib/unictype/pr_ideographic.c: New file.
62413         * lib/unictype/pr_ids_binary_operator.c: New file.
62414         * lib/unictype/pr_ids_trinary_operator.c: New file.
62415         * lib/unictype/pr_ignorable_control.c: New file.
62416         * lib/unictype/pr_iso_control.c: New file.
62417         * lib/unictype/pr_join_control.c: New file.
62418         * lib/unictype/pr_left_of_pair.c: New file.
62419         * lib/unictype/pr_line_separator.c: New file.
62420         * lib/unictype/pr_logical_order_exception.c: New file.
62421         * lib/unictype/pr_lowercase.c: New file.
62422         * lib/unictype/pr_math.c: New file.
62423         * lib/unictype/pr_non_break.c: New file.
62424         * lib/unictype/pr_not_a_character.c: New file.
62425         * lib/unictype/pr_numeric.c: New file.
62426         * lib/unictype/pr_other_alphabetic.c: New file.
62427         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62428         * lib/unictype/pr_other_grapheme_extend.c: New file.
62429         * lib/unictype/pr_other_id_continue.c: New file.
62430         * lib/unictype/pr_other_id_start.c: New file.
62431         * lib/unictype/pr_other_lowercase.c: New file.
62432         * lib/unictype/pr_other_math.c: New file.
62433         * lib/unictype/pr_other_uppercase.c: New file.
62434         * lib/unictype/pr_paired_punctuation.c: New file.
62435         * lib/unictype/pr_paragraph_separator.c: New file.
62436         * lib/unictype/pr_pattern_syntax.c: New file.
62437         * lib/unictype/pr_pattern_white_space.c: New file.
62438         * lib/unictype/pr_private_use.c: New file.
62439         * lib/unictype/pr_punctuation.c: New file.
62440         * lib/unictype/pr_quotation_mark.c: New file.
62441         * lib/unictype/pr_radical.c: New file.
62442         * lib/unictype/pr_sentence_terminal.c: New file.
62443         * lib/unictype/pr_soft_dotted.c: New file.
62444         * lib/unictype/pr_space.c: New file.
62445         * lib/unictype/pr_terminal_punctuation.c: New file.
62446         * lib/unictype/pr_test.c: New file.
62447         * lib/unictype/pr_titlecase.c: New file.
62448         * lib/unictype/pr_unassigned_code_value.c: New file.
62449         * lib/unictype/pr_unified_ideograph.c: New file.
62450         * lib/unictype/pr_uppercase.c: New file.
62451         * lib/unictype/pr_variation_selector.c: New file.
62452         * lib/unictype/pr_white_space.c: New file.
62453         * lib/unictype/pr_xid_continue.c: New file.
62454         * lib/unictype/pr_xid_start.c: New file.
62455         * lib/unictype/pr_zero_width.c: New file.
62456         * lib/unictype/scripts.c: New file.
62457         * lib/unictype/sy_c_ident.c: New file.
62458         * lib/unictype/sy_c_whitespace.c: New file.
62459         * lib/unictype/sy_java_ident.c: New file.
62460         * lib/unictype/sy_java_whitespace.c: New file.
62461
62462         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62463         Unicode 5.0.0.
62464         * lib/unictype/blocks.h: Likewise.
62465         * lib/unictype/categ_C.h: Likewise.
62466         * lib/unictype/categ_Cc.h: Likewise.
62467         * lib/unictype/categ_Cf.h: Likewise.
62468         * lib/unictype/categ_Cn.h: Likewise.
62469         * lib/unictype/categ_Co.h: Likewise.
62470         * lib/unictype/categ_Cs.h: Likewise.
62471         * lib/unictype/categ_L.h: Likewise.
62472         * lib/unictype/categ_Ll.h: Likewise.
62473         * lib/unictype/categ_Lm.h: Likewise.
62474         * lib/unictype/categ_Lo.h: Likewise.
62475         * lib/unictype/categ_Lt.h: Likewise.
62476         * lib/unictype/categ_Lu.h: Likewise.
62477         * lib/unictype/categ_M.h: Likewise.
62478         * lib/unictype/categ_Mc.h: Likewise.
62479         * lib/unictype/categ_Me.h: Likewise.
62480         * lib/unictype/categ_Mn.h: Likewise.
62481         * lib/unictype/categ_N.h: Likewise.
62482         * lib/unictype/categ_Nd.h: Likewise.
62483         * lib/unictype/categ_Nl.h: Likewise.
62484         * lib/unictype/categ_No.h: Likewise.
62485         * lib/unictype/categ_P.h: Likewise.
62486         * lib/unictype/categ_Pc.h: Likewise.
62487         * lib/unictype/categ_Pd.h: Likewise.
62488         * lib/unictype/categ_Pe.h: Likewise.
62489         * lib/unictype/categ_Pf.h: Likewise.
62490         * lib/unictype/categ_Pi.h: Likewise.
62491         * lib/unictype/categ_Po.h: Likewise.
62492         * lib/unictype/categ_Ps.h: Likewise.
62493         * lib/unictype/categ_S.h: Likewise.
62494         * lib/unictype/categ_Sc.h: Likewise.
62495         * lib/unictype/categ_Sk.h: Likewise.
62496         * lib/unictype/categ_Sm.h: Likewise.
62497         * lib/unictype/categ_So.h: Likewise.
62498         * lib/unictype/categ_Z.h: Likewise.
62499         * lib/unictype/categ_Zl.h: Likewise.
62500         * lib/unictype/categ_Zp.h: Likewise.
62501         * lib/unictype/categ_Zs.h: Likewise.
62502         * lib/unictype/categ_of.h: Likewise.
62503         * lib/unictype/combining.h: Likewise.
62504         * lib/unictype/ctype_alnum.h: Likewise.
62505         * lib/unictype/ctype_alpha.h: Likewise.
62506         * lib/unictype/ctype_blank.h: Likewise.
62507         * lib/unictype/ctype_cntrl.h: Likewise.
62508         * lib/unictype/ctype_digit.h: Likewise.
62509         * lib/unictype/ctype_graph.h: Likewise.
62510         * lib/unictype/ctype_lower.h: Likewise.
62511         * lib/unictype/ctype_print.h: Likewise.
62512         * lib/unictype/ctype_punct.h: Likewise.
62513         * lib/unictype/ctype_space.h: Likewise.
62514         * lib/unictype/ctype_upper.h: Likewise.
62515         * lib/unictype/ctype_xdigit.h: Likewise.
62516         * lib/unictype/decdigit.h: Likewise.
62517         * lib/unictype/digit.h: Likewise.
62518         * lib/unictype/mirror.h: Likewise.
62519         * lib/unictype/numeric.h: Likewise.
62520         * lib/unictype/pr_alphabetic.h: Likewise.
62521         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62522         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62523         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62524         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62525         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62526         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62527         * lib/unictype/pr_bidi_control.h: Likewise.
62528         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62529         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62530         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62531         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62532         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62533         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62534         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62535         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62536         * lib/unictype/pr_bidi_pdf.h: Likewise.
62537         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62538         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62539         * lib/unictype/pr_combining.h: Likewise.
62540         * lib/unictype/pr_composite.h: Likewise.
62541         * lib/unictype/pr_currency_symbol.h: Likewise.
62542         * lib/unictype/pr_dash.h: Likewise.
62543         * lib/unictype/pr_decimal_digit.h: Likewise.
62544         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62545         * lib/unictype/pr_deprecated.h: Likewise.
62546         * lib/unictype/pr_diacritic.h: Likewise.
62547         * lib/unictype/pr_extender.h: Likewise.
62548         * lib/unictype/pr_format_control.h: Likewise.
62549         * lib/unictype/pr_grapheme_base.h: Likewise.
62550         * lib/unictype/pr_grapheme_extend.h: Likewise.
62551         * lib/unictype/pr_grapheme_link.h: Likewise.
62552         * lib/unictype/pr_hex_digit.h: Likewise.
62553         * lib/unictype/pr_hyphen.h: Likewise.
62554         * lib/unictype/pr_id_continue.h: Likewise.
62555         * lib/unictype/pr_id_start.h: Likewise.
62556         * lib/unictype/pr_ideographic.h: Likewise.
62557         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62558         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62559         * lib/unictype/pr_ignorable_control.h: Likewise.
62560         * lib/unictype/pr_iso_control.h: Likewise.
62561         * lib/unictype/pr_join_control.h: Likewise.
62562         * lib/unictype/pr_left_of_pair.h: Likewise.
62563         * lib/unictype/pr_line_separator.h: Likewise.
62564         * lib/unictype/pr_logical_order_exception.h: Likewise.
62565         * lib/unictype/pr_lowercase.h: Likewise.
62566         * lib/unictype/pr_math.h: Likewise.
62567         * lib/unictype/pr_non_break.h: Likewise.
62568         * lib/unictype/pr_not_a_character.h: Likewise.
62569         * lib/unictype/pr_numeric.h: Likewise.
62570         * lib/unictype/pr_other_alphabetic.h: Likewise.
62571         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62572         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62573         * lib/unictype/pr_other_id_continue.h: Likewise.
62574         * lib/unictype/pr_other_id_start.h: Likewise.
62575         * lib/unictype/pr_other_lowercase.h: Likewise.
62576         * lib/unictype/pr_other_math.h: Likewise.
62577         * lib/unictype/pr_other_uppercase.h: Likewise.
62578         * lib/unictype/pr_paired_punctuation.h: Likewise.
62579         * lib/unictype/pr_paragraph_separator.h: Likewise.
62580         * lib/unictype/pr_pattern_syntax.h: Likewise.
62581         * lib/unictype/pr_pattern_white_space.h: Likewise.
62582         * lib/unictype/pr_private_use.h: Likewise.
62583         * lib/unictype/pr_punctuation.h: Likewise.
62584         * lib/unictype/pr_quotation_mark.h: Likewise.
62585         * lib/unictype/pr_radical.h: Likewise.
62586         * lib/unictype/pr_sentence_terminal.h: Likewise.
62587         * lib/unictype/pr_soft_dotted.h: Likewise.
62588         * lib/unictype/pr_space.h: Likewise.
62589         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62590         * lib/unictype/pr_titlecase.h: Likewise.
62591         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62592         * lib/unictype/pr_unified_ideograph.h: Likewise.
62593         * lib/unictype/pr_uppercase.h: Likewise.
62594         * lib/unictype/pr_variation_selector.h: Likewise.
62595         * lib/unictype/pr_white_space.h: Likewise.
62596         * lib/unictype/pr_xid_continue.h: Likewise.
62597         * lib/unictype/pr_xid_start.h: Likewise.
62598         * lib/unictype/pr_zero_width.h: Likewise.
62599         * lib/unictype/scripts.h: Likewise.
62600         * lib/unictype/scripts_byname.gperf: Likewise.
62601         * lib/unictype/sy_c_ident.h: Likewise.
62602         * lib/unictype/sy_c_whitespace.h: Likewise.
62603         * lib/unictype/sy_java_ident.h: Likewise.
62604         * lib/unictype/sy_java_whitespace.h: Likewise.
62605
62606         * lib/unictype/Makefile: New file.
62607         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
62608         glibc.
62609         * lib/unictype/3level.h: New file, copied from glibc.
62610         * lib/unictype/3levelbit.h: New file.
62611
62612 2007-11-11  Bruno Haible  <bruno@clisp.org>
62613
62614         * modules/gperf: New file.
62615         * modules/iconv_open (Depends-on): Add it.
62616         (Makefile.am): Remove the GPERF definition.
62617
62618 2007-11-11  Bruno Haible  <bruno@clisp.org>
62619
62620         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
62621         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
62622
62623 2007-11-11  Bruno Haible  <bruno@clisp.org>
62624
62625         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
62626         (usage): Remove function.
62627
62628 2007-11-11  Bruno Haible  <bruno@clisp.org>
62629
62630         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
62631         gl_FUNC_CEILF_LIBS.
62632         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
62633         gl_FUNC_CEIL_LIBS.
62634         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
62635         gl_FUNC_CEILL_LIBS.
62636         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
62637         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
62638         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
62639
62640 2007-11-11  Bruno Haible  <bruno@clisp.org>
62641
62642         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
62643         roundf were declared but do not exist on functions.
62644         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
62645         roundl were declared but do not exist on functions.
62646         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
62647         HAVE_FLOORL_AND_CEILL, respectively.
62648         Needed for Sun C on Solaris 10.
62649
62650 2007-11-11  Bruno Haible  <bruno@clisp.org>
62651
62652         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
62653         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
62654         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
62655         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
62656         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
62657         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
62658         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
62659         HAVE_DECL_ROUNDF.
62660         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
62661         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
62662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
62663         of HAVE_DECL_ROUND*.
62664         * modules/math (Makefile.am): Update.
62665
62666 2007-11-10  Bruno Haible  <bruno@clisp.org>
62667
62668         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
62669         ptrdiff_t as m4/intl.m4.
62670
62671 2007-11-10  Jim Meyering  <meyering@redhat.com>
62672
62673         Avoid link failure for the argmatch test.
62674         * tests/test-argmatch.c (usage): Define function to avoid a link
62675         failure: argmatch_die requires a usage function.
62676
62677 2007-11-09  Bruno Haible  <bruno@clisp.org>
62678
62679         * doc/functions/snprintf.texi: Mention BeOS deficiency.
62680         * doc/functions/vsnprintf.texi: Likewise.
62681         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
62682         with a size argument < 2.
62683
62684 2007-11-09  Bruno Haible  <bruno@clisp.org>
62685
62686         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
62687         buffer. Fixes an inefficiency introduced on 2007-11-03.
62688
62689 2007-11-09  Bruno Haible  <bruno@clisp.org>
62690
62691         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
62692         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
62693
62694 2007-11-08  Jim Meyering  <meyering@redhat.com>
62695
62696         Change cache variable name prefix "jm_" to "gl_" everywhere.
62697         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
62698         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
62699         * m4/uptime.m4: s/gl_/jm_/
62700
62701 2007-11-07  Bruno Haible  <bruno@clisp.org>
62702
62703         Update to GNU gettext 0.17.
62704         * m4/intl.m4: Update to GNU gettext 0.17.
62705         * m4/po.m4: Likewise.
62706         * modules/gettext (Files): Remove m4/ulonglong.m4.
62707         (configure.ac): Require gettext infrastructure from version 0.17.
62708
62709 2007-11-06  Bruno Haible  <bruno@clisp.org>
62710
62711         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
62712         symbolic values are not defined in a public header.
62713         * lib/freadable.c (freadable) [QNX]: Likewise.
62714         * lib/freadahead.c (freadahead) [QNX]: Likewise.
62715         * lib/freading.c (freading) [QNX]: Likewise.
62716         * lib/fseterr.c (fseterr) [QNX]: Likewise.
62717         * lib/fwritable.c (fwritable) [QNX]: Likewise.
62718         * lib/fwriting.c (fwriting) [QNX]: Likewise.
62719         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
62720         Reported by Alain Magloire.
62721
62722         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
62723
62724 2007-11-05  Bruno Haible  <bruno@clisp.org>
62725
62726         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
62727         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
62728         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
62729         Reported by Eric Blake.
62730
62731 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62732             Bruno Haible  <bruno@clisp.org>
62733
62734         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
62735         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
62736         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
62737         (malloc): Undefine also before including <stdlib.h>.
62738         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
62739         Needed on OSF/1 4.0.
62740
62741 2007-11-05  Jim Meyering  <meyering@redhat.com>
62742
62743         git-version-gen: sync from coreutils.
62744         * build-aux/git-version-gen: Add comments.
62745         Change the first '-' to '.' in the snapshot version string,
62746         e.g., 6.9-377-08144 -> 6.9.377-08144
62747         Remove first parameter.
62748         Don't declare a version "-dirty" merely because a time
62749         stamp has changed.
62750
62751 2007-11-04  Bruno Haible  <bruno@clisp.org>
62752
62753         * lib/lock.h: Protect all macro definitions containing an 'if'
62754         statement through a "do { ... } while (0)".
62755         * lib/tls.h: Likewise.
62756
62757 2007-11-04  Bruno Haible  <bruno@clisp.org>
62758
62759         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
62760
62761 2007-11-04  Bruno Haible  <bruno@clisp.org>
62762
62763         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
62764         * modules/fprintf-posix (Depends-on): Add nocrash.
62765         * modules/snprintf-posix (Depends-on): Likewise.
62766         * modules/sprintf-posix (Depends-on): Likewise.
62767         * modules/vasnprintf-posix (Depends-on): Likewise.
62768         * modules/vasprintf-posix (Depends-on): Likewise.
62769         * modules/vfprintf-posix (Depends-on): Likewise.
62770         * modules/vsnprintf-posix (Depends-on): Likewise.
62771         * modules/vsprintf-posix (Depends-on): Likewise.
62772         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62773         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62774         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62775         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62776         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62777         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62778         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62779
62780 2007-11-04  Bruno Haible  <bruno@clisp.org>
62781
62782         * modules/nocrash: New file.
62783         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
62784         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
62785
62786 2007-11-04  Bruno Haible  <bruno@clisp.org>
62787
62788         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
62789         precision handling.
62790         * tests/test-vasprintf-posix.c (test_function): Likewise.
62791         * tests/test-snprintf-posix.h (test_function): Likewise.
62792         * tests/test-sprintf-posix.h (test_function): Likewise.
62793
62794         Fix *printf behaviour for large precisions on mingw and BeOS.
62795         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
62796         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
62797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
62798         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62800         gl_PRINTF_PRECISION and test its result. Invoke
62801         gl_PREREQ_VASNPRINTF_PRECISION.
62802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62809         * doc/functions/fprintf.texi: Update.
62810         * doc/functions/printf.texi: Update.
62811         * doc/functions/snprintf.texi: Update.
62812         * doc/functions/sprintf.texi: Update.
62813         * doc/functions/vfprintf.texi: Update.
62814         * doc/functions/vprintf.texi: Update.
62815         * doc/functions/vsnprintf.texi: Update.
62816         * doc/functions/vsprintf.texi: Update.
62817
62818 2007-11-04  Bruno Haible  <bruno@clisp.org>
62819
62820         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
62821
62822 2007-11-04  Bruno Haible  <bruno@clisp.org>
62823
62824         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
62825         Reported by Sylvain Beucler <beuc@gnu.org>.
62826
62827 2007-11-03  Bruno Haible  <bruno@clisp.org>
62828
62829         * tests/test-fprintf-posix2.sh: New file.
62830         * tests/test-fprintf-posix2.c: New file.
62831         * modules/fprintf-posix-tests (Files): Add them.
62832         (TESTS): Add test-fprintf-posix2.sh.
62833         (configure.ac): Check for getrlimit and setrlimit.
62834         (check_PROGRAMS): Add test-fprintf-posix2.
62835
62836         * tests/test-printf-posix2.sh: New file.
62837         * tests/test-printf-posix2.c: New file.
62838         * modules/printf-posix-tests (Files): Add them.
62839         (TESTS): Add test-printf-posix2.sh.
62840         (configure.ac): Check for getrlimit and setrlimit.
62841         (check_PROGRAMS): Add test-printf-posix2.
62842
62843         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
62844         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
62845         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
62846         (decode_double): New function, copied from decode_long_double.
62847         (scale10_round_decimal_decoded): New function, extracted from
62848         scale10_round_decimal_long_double.
62849         (scale10_round_decimal_long_double): Use it.
62850         (scale10_round_decimal_double): New function.
62851         (floorlog10): New function.
62852         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
62853         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
62854         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62855         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62856         gl_PRINTF_ENOMEM and test its result. Invoke
62857         gl_PREREQ_VASNPRINTF_ENOMEM.
62858         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62859         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62860         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62861         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62862         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62863         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62864         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62865         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
62866         * modules/snprintf-posix (Depends-on): Likewise.
62867         * modules/sprintf-posix (Depends-on): Likewise.
62868         * modules/vasnprintf-posix (Depends-on): Likewise.
62869         * modules/vasprintf-posix (Depends-on): Likewise.
62870         * modules/vfprintf-posix (Depends-on): Likewise.
62871         * modules/vsnprintf-posix (Depends-on): Likewise.
62872         * modules/vsprintf-posix (Depends-on): Likewise.
62873         * doc/functions/fprintf.texi: Update.
62874         * doc/functions/printf.texi: Update.
62875         * doc/functions/snprintf.texi: Update.
62876         * doc/functions/sprintf.texi: Update.
62877         * doc/functions/vfprintf.texi: Update.
62878         * doc/functions/vprintf.texi: Update.
62879         * doc/functions/vsnprintf.texi: Update.
62880         * doc/functions/vsprintf.texi: Update.
62881
62882 2007-11-03  Bruno Haible  <bruno@clisp.org>
62883
62884         * modules/frexp-nolibm-tests: New file.
62885
62886         * modules/frexp-nolibm: New file.
62887         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
62888
62889 2007-11-03  Bruno Haible  <bruno@clisp.org>
62890
62891         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
62892         value is C99 compliant.
62893         Needed for OSF/1 5.1.
62894
62895 2007-11-03  Bruno Haible  <bruno@clisp.org>
62896
62897         Fix out-of-memory handling of vasnprintf.
62898         * lib/printf-parse.c: Include <errno.h>.
62899         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
62900         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
62901         is already set.
62902
62903 2007-11-02  Eric Blake  <ebb9@byu.net>
62904
62905         Fix tests on cygwin.
62906         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
62907
62908 2007-11-01  Bruno Haible  <bruno@clisp.org>
62909
62910         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
62911         warning.
62912         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
62913         needed for POSIX compatibility.
62914
62915 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62916
62917         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
62918         for compatibility with GNU.
62919
62920 2007-11-01  Bruno Haible  <bruno@clisp.org>
62921
62922         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
62923         (putenv): Renamed from rpl_putenv. Change argument type from
62924         'const char *' to 'char *'.
62925         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
62926         of defining putenv in config.h, just set REPLACE_PUTENV.
62927         * modules/putenv (Depends-on): Add stdlib.
62928         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62929         (Include): Use <stdlib.h>.
62930         * lib/stdlib.in.h (putenv): New declaration.
62931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
62932         REPLACE_PUTENV.
62933         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
62934         REPLACE_PUTENV.
62935         Needed for MacOS X 10.5.0.
62936         Reported by Peter O'Gorman <peter@pogma.com>.
62937
62938 2007-11-01  Jim Meyering  <meyering@redhat.com>
62939
62940         Treat an empty date string exactly like "0".
62941         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
62942         if the remaining date string (to be parsed) is empty, use "0".
62943         Reported by Mischa Molhoek and discussed in this thread:
62944         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
62945
62946 2007-10-31  Bruno Haible  <bruno@clisp.org>
62947
62948         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
62949         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
62950         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
62951         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
62952         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
62953         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
62954
62955 2007-10-31  Bruno Haible  <bruno@clisp.org>
62956
62957         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
62958         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
62959         (AC_TYPE_LONG_LONG_INT): Use it.
62960         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
62961         it as well.
62962         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
62963         to m4/longlong.m4.
62964         * modules/stdint (Files): Remove m4/ulonglong.m4.
62965         * modules/strtoull (Files): Use m4/longlong.m4 instead of
62966         m4/ulonglong.m4.
62967         * modules/strtoumax (Files): Likewise.
62968
62969 2007-10-30  Bruno Haible  <bruno@clisp.org>
62970
62971         * modules/xvasprintf-posix: New file.
62972         Suggested by Eric Blake.
62973
62974 2007-10-30  Bruno Haible  <bruno@clisp.org>
62975
62976         * modules/xprintf-posix-tests: New file.
62977         * tests/test-xprintf-posix.sh: New file.
62978         * tests/test-xprintf-posix.c: New file.
62979         * tests/test-xfprintf-posix.c: New file.
62980
62981         * modules/xprintf-posix: New file.
62982
62983 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62984
62985         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
62986         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
62987         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
62988
62989 2007-10-29  Bruno Haible  <bruno@clisp.org>
62990
62991         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
62992         contain the special marker '_cv_'.
62993         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62994         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62995         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62996         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62997         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62998         Reported by Ralf Wildenhues.
62999
63000 2007-10-29  Bruno Haible  <bruno@clisp.org>
63001
63002         * gnulib-tool (func_import): When --lgpl is not specified, set
63003         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63004         GPLv3.
63005         Reported by Simon Josefsson.
63006
63007 2007-10-28  Bruno Haible  <bruno@clisp.org>
63008
63009         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63010         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63011         HAVE_DECL_ISFINITE.
63012         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63013         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63014         HAVE_DECL_ISFINITE.
63015
63016 2007-10-28  Bruno Haible  <bruno@clisp.org>
63017
63018         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63019         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63020
63021 2007-10-28  Bruno Haible  <bruno@clisp.org>
63022
63023         Fix link errors with Sun C 5.0 on Solaris 10.
63024         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63025         function is declared but not present in the compiler's libm.
63026         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63027         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63028         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63029         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63030         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63031         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63032         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63033         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63034         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63035         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63036         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63037         HAVE_DECL_FLOORL.
63038
63039 2007-10-28  Bruno Haible  <bruno@clisp.org>
63040
63041         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63042         gl_FUNC_FLOORL. Cache the result.
63043         (gl_FUNC_FLOORL): Use it.
63044         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63045         gl_FUNC_CEILL. Cache the result.
63046         (gl_FUNC_CEILL): Use it.
63047
63048         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63049         gl_FUNC_FLOOR. Cache the result.
63050         (gl_FUNC_FLOOR): Use it.
63051         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63052         gl_FUNC_CEIL. Cache the result.
63053         (gl_FUNC_CEIL): Use it.
63054
63055         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63056         gl_FUNC_FLOORF. Cache the result.
63057         (gl_FUNC_FLOORF): Use it.
63058         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63059         gl_FUNC_CEILF. Cache the result.
63060         (gl_FUNC_CEILF): Use it.
63061
63062 2007-10-28  Bruno Haible  <bruno@clisp.org>
63063
63064         * gnulib-tool: Allow specifying the LGPL version number through
63065         --lgpl=2 or --lgpl=3.
63066         (func_usage): Document --lgpl with argument.
63067         Handle --lgpl=... arguments.
63068         (func_import): Recognize also gl_LGPL calls with an argument. When
63069         --lgpl=2 is used and the module's license is just LGPL, report an
63070         error. Set sed_transform_lib_file according to the lgpl variable. In
63071         the generated files, use --lgpl or gl_LGPL invocations with argument,
63072         if necessary.
63073         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63074         an LGPv2+ license.
63075         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63076         gl_LGPL macro.
63077
63078 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63079             Bruno Haible  <bruno@clisp.org>
63080
63081         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63082         (u16_uctomb_aux): Likewise.
63083         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63084         !HAVE_INLINE.
63085         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63086
63087 2007-10-28  Bruno Haible  <bruno@clisp.org>
63088
63089         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63090         Invoke AM_GETTEXT_OPTION if it exists.
63091         * modules/vasprintf: Likewise.
63092         * modules/verror: Likewise.
63093         * modules/xprintf: Likewise.
63094         * modules/xvasprintf: Likewise.
63095
63096 2007-10-27  Ben Pfaff  <blp@gnu.org>
63097
63098         * lib/math.in.h: Define isfinite macro and prototypes for
63099         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63100         implementations.
63101         * m4/math_h.m4: New substitutions for isfinite module.
63102         * lib/isfinite.c: New file.
63103         * m4/isfinite.m4: New file.
63104         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63105         * modules/isfinite: New file.
63106         * modules/isfinite-tests: New file.
63107         * tests/tests-isfinite.c: New file.
63108         * doc/functions/isfinite.texi: Mention isfinite module.
63109         * MODULES.html.sh: Mention new module.
63110
63111 2007-10-27  Ben Pfaff  <blp@gnu.org>
63112
63113         Ralf Wildenhues reported that Tru64 4.0D declares the round
63114         functions but does not have definitions.
63115         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63116         cannot be found in any library, set the output variable to
63117         "missing" instead of "".
63118         * m4/round.m4: Also use our substitute if we cannot find round in
63119         any library, even if it is declared.
63120         * m4/roundf.m4: Likewise for roundf.
63121         * m4/roundl.m4: Likewise for roundl.
63122         * lib/math.in.h: Undefine roundf, round, roundl before defining
63123         their replacements, to allow for hypothetical systems where these
63124         may be defined as macros but not available in libraries.
63125
63126 2007-10-27  Bruno Haible  <bruno@clisp.org>
63127
63128         * doc/gnulib.texi: Invoke @firstparagraphindent.
63129         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63130         changes in gnulib.
63131         (Source changes): New section.
63132
63133 2007-10-26  Bruno Haible  <bruno@clisp.org>
63134
63135         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63136         borrowed from autoconf.
63137
63138 2007-10-26  Bruno Haible  <bruno@clisp.org>
63139
63140         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63141         strerror returned the empty string. Needed on HP-UX 11.00.
63142
63143 2007-10-24  Micah Cowan  <micah@cowan.name>
63144
63145         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63146         * build-aux/bootstrap: Remove support for now-unnecessary option,
63147         --cvs-user, and envvars CVS_USER, CVS_RSH.
63148
63149 2007-10-24  Jim Meyering  <meyering@redhat.com>
63150
63151         Avoid diagnostics from sha1sum when there is no cached checksum.
63152         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63153         if the po.s1 file hasn't been created yet.
63154
63155         * build-aux/bootstrap: Sync from coreutils:
63156         2007-10-24  Jim Meyering  <meyering@redhat.com>
63157         Get gnulib from the git repository, not from an obsolete cvs one.
63158         * build-aux/bootstrap: Suggestion from Micah Cowan.
63159         2007-10-04  Jim Meyering  <jim@meyering.net>
63160         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63161         (update_po_files): Work also when there are no .po files in po/.
63162
63163 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63164
63165         * README: Append ".git" to git and cg examples.
63166         Problem reported by Benoit Sigoure.
63167
63168 2007-10-23  Micah Cowan  <micah@cowan.name>
63169
63170         * users.txt: Add wget.
63171
63172 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63173
63174         Fix linking of some unistdio tests on FreeBSD.
63175         * modules/unistdio/u16-vsnprintf-tests
63176         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63177         * modules/unistdio/u16-vsprintf-tests
63178         (test_u16_vsnprintf1_LDADD): Likewise.
63179         * modules/unistdio/u32-vsnprintf-tests
63180         (test_u32_vsnprintf1_LDADD): Likewise.
63181         * modules/unistdio/u32-vsprintf-tests
63182         (test_u32_vsprintf1_LDADD): Likewise.
63183         * modules/unistdio/u8-vsnprintf-tests
63184         (test_u8_vsnprintf1_LDADD): Likewise.
63185         * modules/unistdio/u8-vsprintf-tests
63186         (test_u8_vsprintf1_LDADD): Likewise.
63187         * modules/unistdio/ulc-vsnprintf-tests
63188         (test_ulc_vsnprintf1_LDADD): Likewise.
63189         * modules/unistdio/ulc-vsprintf-tests
63190         (test_ulc_vsprintf1_LDADD): Likewise.
63191
63192         Fix linking of some uniconv tests on FreeBSD.
63193         * modules/uniconv/u16-conv-from-enc-tests
63194         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63195         * modules/uniconv/u16-conv-to-enc-tests
63196         (test_u16_conv_to_enc_LDADD): Likewise.
63197         * modules/uniconv/u16-strconv-from-enc-tests
63198         (test_u16_strconv_from_enc_LDADD): Likewise.
63199         * modules/uniconv/u16-strconv-to-enc-tests
63200         (test_u16_strconv_to_enc_LDADD): Likewise.
63201         * modules/uniconv/u32-conv-from-enc-tests
63202         (test_u32_conv_from_enc_LDADD): Likewise.
63203         * modules/uniconv/u32-conv-to-enc-tests
63204         (test_u32_conv_to_enc_LDADD): Likewise.
63205         * modules/uniconv/u32-strconv-from-enc-tests
63206         (test_u32_strconv_from_enc_LDADD): Likewise.
63207         * modules/uniconv/u32-strconv-to-enc-tests
63208         (test_u32_strconv_to_enc_LDADD): Likewise.
63209         * modules/uniconv/u8-conv-from-enc-tests
63210         (test_u8_conv_from_enc_LDADD): Likewise.
63211         * modules/uniconv/u8-conv-to-enc-tests
63212         (test_u8_conv_to_enc_LDADD): Likewise.
63213         * modules/uniconv/u8-strconv-from-enc-tests
63214         (test_u8_strconv_from_enc_LDADD): Likewise.
63215         * modules/uniconv/u8-strconv-to-enc-tests
63216         (test_u8_strconv_to_enc_LDADD): Likewise.
63217
63218 2007-10-22  Bruno Haible  <bruno@clisp.org>
63219
63220         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63221         size.
63222
63223 2007-10-22  Eric Blake  <ebb9@byu.net>
63224
63225         Tweak x*printf documentation.
63226         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63227         variable name and comments.
63228         Suggested by Bruno Haible.
63229
63230 2007-10-22  Bruno Haible  <bruno@clisp.org>
63231
63232         * lib/acl.c (copy_acl): Fix file name in comment.
63233
63234 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63235
63236         Fix Tru64 problem with stdbool.h.
63237         * lib/stdbool.in.h (false, true):
63238         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63239         Don't declare as an enum in this situation; it runs afoul of Tru64.
63240         Problem reported by Steven M. Schweda in
63241         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63242
63243 2007-10-22  Eric Blake  <ebb9@byu.net>
63244
63245         Also wrap vf?printf.
63246         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63247         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63248         (xvprintf, xvfprintf): New functions.
63249
63250 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63251
63252         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63253         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63254
63255         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63256         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63257
63258 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63259
63260         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63261         by Bruno Haible.
63262
63263 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63264
63265         * lib/getloadavg.c
63266         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63267         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63268
63269         * tests/test-i-ring.c: Work for C89.
63270
63271 2007-10-22  Bruno Haible  <bruno@clisp.org>
63272
63273         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63274         -1u, in preprocessor expression, so that we don't test for the bug
63275         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63277
63278 2007-10-22  Eric Blake  <ebb9@byu.net>
63279
63280         * tests/test-yesno.sh: Silence stderr during test.
63281
63282 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63283
63284         * modules/crypto/gc-camellia: New file.
63285
63286         * m4/gc-camellia.m4: New file.
63287
63288         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63289
63290         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63291
63292 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63293
63294         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63295         --help to stdout.  Reported by sms@antinode.org (Steven
63296         M. Schweda).
63297
63298 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63299
63300         * users.txt: Fix link to libksba.
63301
63302 2007-10-21  Ben Pfaff  <blp@gnu.org>
63303
63304         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63305         round.c roundf implementation that depends on floorf and ceilf to
63306         be tested unconditionally.
63307
63308 2007-10-21  Ben Pfaff  <blp@gnu.org>
63309
63310         * m4/check-libm-func.m4: Removed.
63311         * m4/check-math-lib.m4: New file.
63312         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63313         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63314         definition and lack of AC_LIBOBJ([roundf]).
63315         * m4/roundl.m4: Ditto, and similarly for roundl.
63316         * modules/round: Reference new m4 file.
63317         * modules/roundf: Ditto.
63318         * modules/roundl: Ditto.
63319         * tests/test-round2.c (main): Use ROUND instead of round.
63320         Bug report from Bruno Haible.
63321
63322 2007-10-21  Bruno Haible  <bruno@clisp.org>
63323
63324         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63325         context.
63326
63327 2007-10-21  Bruno Haible  <bruno@clisp.org>
63328
63329         * tests/test-wcwidth.c (main): Allow negative result for some control
63330         characters.
63331
63332         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63333         Needed on OSF/1 5.1.
63334
63335 2007-10-21  Bruno Haible  <bruno@clisp.org>
63336
63337         * tests/test-floorf1.c: Include isnanf.h.
63338         (main): Use isnanf() instead of isnan().
63339         * tests/test-ceilf1.c: Include isnanf.h.
63340         (main): Use isnanf() instead of isnan().
63341         * tests/test-truncf1.c: Include isnanf.h.
63342         (main): Use isnanf() instead of isnan().
63343         * tests/test-roundf1.c: Include isnanf.h.
63344         (main): Use isnanf() instead of isnan().
63345
63346 2007-10-21  Eric Blake  <ebb9@byu.net>
63347
63348         * users.txt: Update URL for m4.
63349
63350 2007-10-21  Bruno Haible  <bruno@clisp.org>
63351
63352         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63353
63354 2007-10-21  Bruno Haible  <bruno@clisp.org>
63355
63356         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63357         Git's management files if the CVS files are not present.
63358
63359 2007-10-20  Bruno Haible  <bruno@clisp.org>
63360
63361         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63362         gcc-3.4.x.
63363
63364 2007-10-20  Ben Pfaff  <blp@gnu.org>
63365
63366         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63367         implementations.
63368         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63369         * lib/round.c: New file.
63370         * lib/roundf.c: New file.
63371         * lib/roundl.c: New file.
63372         * m4/round.m4: New file.
63373         * m4/roundf.m4: New file.
63374         * m4/roundl.m4: New file.
63375         * m4/check-libm-func-m4: New file.
63376         * modules/math: Replace round, roundf, roundl related @VARS@ in
63377         math.in.h.
63378         * modules/round: New file.
63379         * modules/round-tests: New file.
63380         * modules/roundf: New file.
63381         * modules/roundf-tests: New file.
63382         * modules/roundl: New file.
63383         * modules/roundl-tests: New file.
63384         * tests/test-round1.c: New file.
63385         * tests/test-round2.c: New file.
63386         * tests/test-roundf1.c: New file.
63387         * tests/test-roundf2.c: New file.
63388         * tests/test-roundl.c: New file.
63389         * doc/functions/round.texi: Mention round module.
63390         * doc/functions/roundf.texi: Mention roundf module.
63391         * doc/functions/roundl.texi: Mention roundl module.
63392         * MODULES.html.sh: Mention new modules.
63393         Thanks to Bruno Haible for suggestions.
63394
63395 2007-10-20  Jim Meyering  <meyering@redhat.com>
63396
63397         * lib/xprintf.c: Include <config.h> unconditionally.
63398
63399         Change xprintf's license to GPL.
63400         * modules/xprintf (License): s/LGPL/GPL/, since this module
63401         depends on modules (exit and exitfail) which are GPL.
63402         Suggestion from Bruno Haible.
63403
63404         xprintf fixes.
63405         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63406         Use a clearer diagnostic.
63407         Patch from Bruno Haible.
63408
63409 2007-10-20  Bruno Haible  <bruno@clisp.org>
63410
63411         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63412         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63413         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63414
63415 2007-10-20  Bruno Haible  <bruno@clisp.org>
63416
63417         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63418         precision in the comparison result > x - 1 or similar.
63419         * tests/test-ceilf2.c (correct_result_p): Likewise.
63420         * tests/test-truncf2.c (correct_result_p): Likewise.
63421         * tests/test-trunc2.c (correct_result_p): Likewise.
63422         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63423
63424 2007-10-20  Bruno Haible  <bruno@clisp.org>
63425
63426         * modules/ceil: New file.
63427         * m4/ceil.m4: New file.
63428         * doc/functions/ceil.texi: Mention the 'ceil' module.
63429
63430 2007-10-20  Bruno Haible  <bruno@clisp.org>
63431
63432         * modules/floor: New file.
63433         * m4/floor.m4: New file.
63434         * doc/functions/floor.texi: Mention the 'floor' module.
63435
63436 2007-10-20  Bruno Haible  <bruno@clisp.org>
63437
63438         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63439         of %a.
63440         * modules/floorf-tests (Depends-on): Likewise.
63441         * modules/truncf-tests (Depends-on): Likewise.
63442         * modules/trunc-tests (Depends-on): Likewise.
63443         Reported by Ben Pfaff.
63444
63445 2007-10-19  Jim Meyering  <meyering@redhat.com>
63446
63447         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63448         Don't bother testing specific errno values.  Just test ferror.
63449
63450         New module: xprintf
63451         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63452
63453 2007-10-19  Bruno Haible  <bruno@clisp.org>
63454
63455         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63456         syntax.
63457         * modules/javaexec (Makefile.am): Likewise.
63458         * modules/relocatable-prog (Makefile.am): Likewise.
63459         Suggested by Jim Meyering.
63460
63461 2007-10-18  Bruno Haible  <bruno@clisp.org>
63462
63463         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63464         Reported by Jim Meyering.
63465
63466 2007-10-18  Eric Blake  <ebb9@byu.net>
63467
63468         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63469
63470 2007-10-18  Bruno Haible  <bruno@clisp.org>
63471
63472         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63473         the format string into writable memory. Needed in Fortify conditions.
63474
63475 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63476             Bruno Haible  <bruno@clisp.org>
63477
63478         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63479         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63480         * modules/trim (Depends-on): Add mbchar.
63481         (configure.ac): Add gl_FUNC_MBRTOWC.
63482         (Makefile.am): Augment lib_SOURCES.
63483
63484 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63485
63486         Modify glob.c to use fstatat and dirfd, to simplify it.
63487         Suggested by Eric Blake.
63488         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63489         Don't include <stdbool.h>; not used.
63490         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63491         (link_exists_p): Simplify implementation, since we can now assume
63492         dirfd and fstatat.
63493         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63494
63495 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63496
63497         * gnulib-tool (func_get_dependencies): Fix sed script to
63498         match only tests.
63499
63500 2007-10-17  Bruno Haible  <bruno@clisp.org>
63501
63502         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63503         allow locale names without encoding suffix.
63504         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63505         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63506
63507 2007-10-16  Bruno Haible  <bruno@clisp.org>
63508
63509         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63510         * lib/getgroups.c (getgroups): Likewise.
63511         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63512
63513 2007-10-16  Bruno Haible  <bruno@clisp.org>
63514
63515         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63516         * modules/malloc-posix (License): Likewise.
63517         * modules/realloc-posix (License): Likewise.
63518         * modules/calloc-posix (License): Likewise.
63519         * modules/intprops (License): Change from GPL to LGPL, with
63520         Paul Eggert's approval.
63521
63522 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63523
63524         Merge glibc changes into lib/glob.c.
63525
63526         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63527         2007-10-15 04:59:03 UTC.  Here are the changes:
63528
63529         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63530
63531         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63532
63533         * lib/glob.c: Add some branch prediction throughout.
63534
63535         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63536
63537         [BZ #5103]
63538         * lib/glob.c (glob): Recognize patterns starting \/.
63539
63540         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63541
63542         [BZ #3996]
63543         * lib/glob.c (attribute_hidden): Define if not defined.
63544         (glob): Unescape dirname, filename or username when needed and not
63545         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63546         is NULL.  Handle unescaped [ in pattern without closing ].
63547         Don't pass GLOB_CHECK down to recursive glob for directories.
63548         (__glob_pattern_type): New function.
63549         (__glob_pattern_p): Implement using __glob_pattern_type.
63550         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63551         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63552         Remove unreachable code.
63553
63554         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63555
63556         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63557         explain why there are no leaks.
63558
63559         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63560
63561         [BZ #3253]
63562         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63563         time, rather allocate increasingly bigger arrays of pointers, if
63564         possible with alloca, if too large with malloc.
63565
63566 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63567
63568         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63569         Problem reported by H.Merijn Brand in
63570         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63571         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63572         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63573
63574 2007-10-15  Bruno Haible  <bruno@clisp.org>
63575
63576         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63577         with explicit rpl_ prefix.
63578         * lib/fopen.c (fopen): Likewise.
63579         * lib/freopen.c (freopen): Likewise.
63580         * lib/iconv.c (iconv): Likewise.
63581         * lib/iconv_close.c (iconv_close): Likewise.
63582
63583 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63584
63585         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
63586
63587 2007-10-15  Bruno Haible  <bruno@clisp.org>
63588
63589         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
63590         <stddef.h> instead of <stdlib.h> since we only need NULL.
63591         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63592
63593 2007-10-15  Bruno Haible  <bruno@clisp.org>
63594
63595         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
63596         Replace paragraph talking about LIBOBJS.
63597         Reported by Colin Watson <cjwatson@debian.org>.
63598
63599 2007-10-15  Bruno Haible  <bruno@clisp.org>
63600
63601         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
63602         <stdlib.h> before using NULL.
63603
63604 2007-10-15  Simon Josefsson  <simon@josefsson.org>
63605
63606         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
63607         Reported by Albert Chin <china@thewrittenword.com>.
63608
63609 2007-10-14  Bruno Haible  <bruno@clisp.org>
63610
63611         * modules/iconv_open-utf-tests: New file.
63612         * tests/test-iconv-utf.c: New file.
63613
63614         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
63615         * modules/iconv_open-utf: New file.
63616         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
63617         (iconv, iconv_close): New declarations.
63618         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
63619         be defined.
63620         (iconv_open): Add special handling of conversion between UTF-8 and
63621         UTF-{16,32}{BE,LE}.
63622         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
63623         * lib/iconv_close.c: New file.
63624         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
63625         gl_FUNC_ICONV_OPEN.
63626         (gl_FUNC_ICONV_OPEN): Use it.
63627         (gl_FUNC_ICONV_OPEN_UTF): New macro.
63628         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
63629         and REPLACE_ICONV_UTF.
63630         * modules/iconv_open (Depends-on): Add c-strcase.
63631         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
63632         ICONV_CONST.
63633         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
63634
63635 2007-10-13  Albert Chin  <china@thewrittenword.com>
63636             Bruno Haible  <bruno@clisp.org>
63637
63638         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
63639         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
63640
63641 2007-10-13  Bruno Haible  <bruno@clisp.org>
63642
63643         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
63644         defined, use the ISO C99 inline semantics.
63645         * lib/argp.h (ARGP_EI): Likewise.
63646
63647 2007-10-13  Bruno Haible  <bruno@clisp.org>
63648
63649         Handle 'inline' change in gcc 4.3.0.
63650         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
63651         argp_fmtstream_write, argp_fmtstream_set_lmargin,
63652         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
63653         argp_fmtstream_point): Disable 'extern' declaration if the function
63654         definition is going to be provided inline.
63655         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
63656         semantics, not the ISO C99 inline semantics.
63657         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
63658         'extern' declaration if the function definition is going to be provided
63659         inline.
63660         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
63661         the GNU C inline semantics, not the ISO C99 inline semantics. With
63662         GCC 4.2, avoid a warning.
63663
63664 2007-10-13  Bruno Haible  <bruno@clisp.org>
63665
63666         * lib/freading.h (freading): Enable the use of __freading for
63667         glibc >= 2.7.
63668         * lib/freading.c (freading): Likewise.
63669
63670 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63671
63672         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
63673         "warning: C99 inline functions are not supported; using GNU89".
63674
63675 2007-10-12  Bruno Haible  <bruno@clisp.org>
63676
63677         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
63678         of 2.
63679         * tests/test-ceilf2.c: New file.
63680         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
63681
63682         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
63683         * modules/ceilf-tests: Update.
63684
63685 2007-10-12  Bruno Haible  <bruno@clisp.org>
63686
63687         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
63688         of 2.
63689         * tests/test-floorf2.c: New file.
63690         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
63691
63692         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
63693         * modules/floorf-tests: Update.
63694
63695 2007-10-12  Bruno Haible  <bruno@clisp.org>
63696
63697         * tests/test-trunc2.c: New file.
63698         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
63699
63700         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
63701         * modules/trunc-tests: Update.
63702
63703 2007-10-12  Bruno Haible  <bruno@clisp.org>
63704
63705         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
63706         of 2.
63707         * tests/test-truncf2.c: New file.
63708         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
63709
63710         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
63711         * modules/truncf-tests: Update.
63712
63713 2007-10-11  Eric Blake  <ebb9@byu.net>
63714
63715         Don't claim strerror is broken on Interix.
63716         * doc/functions/strerror.texi (strerror): Known broken systems are
63717         now Solaris 8, and not Interix.
63718         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
63719         Interix on cross-compile.
63720         Reported by Martin Koeppe in
63721         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
63722
63723 2007-10-11  Bruno Haible  <bruno@clisp.org>
63724
63725         * modules/i-ring-tests: New file.
63726         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
63727         instead of assert.
63728
63729 2007-10-11  Bruno Haible  <bruno@clisp.org>
63730
63731         * modules/filenamecat-tests: New file.
63732         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
63733         * lib/filenamecat.c: Remove test code.
63734
63735 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63736
63737         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
63738
63739         * lib/strerror.c: Include <string.h> always, to test interface,
63740         and to remove the need for the dummy.
63741         Include intprops.h to compute width instead of doing it ourselves
63742         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
63743         (strerror): Define it to return NULL if there's no system strerror.
63744         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
63745         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
63746         ancient pre-strerror Unix systems well any more.  Saying "unknown
63747         system error" is enough.
63748         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
63749         simpler strerror.c implementation.
63750         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
63751         Simplify the tests to reflect the simpler strerror implementation.
63752         * modules/strerror (Depends-on): Add intprops.
63753
63754 2007-10-09  Eric Blake  <ebb9@byu.net>
63755
63756         Silence test-fpending.
63757         * modules/fpending-tests (Files): Add wrapper script.
63758         * tests/test-fpending.sh: New file.
63759
63760 2007-10-09  Bruno Haible  <bruno@clisp.org>
63761
63762         * MODULES.html.sh (func_module): Don't create a hyperlink for
63763         function names like 'printf_frexp'.
63764         (Misc): Add crc, memxor.
63765         (Characteristics of floating types): New section.
63766         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
63767         isnanf-nolibm, signbit, trunc, truncf, truncl.
63768         (Enhancements for ISO C 99 functions): New subsection Input/output.
63769         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
63770         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
63771         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
63772         (Compatibility checks for POSIX:2001 functions): Add clock-time.
63773         (Enhancements for POSIX:2001 functions): Add chdir-long.
63774         (File system functions): Add areadlink, chdir-safer, read-file.
63775         Remove cycle-check.
63776         (File system as inode set): New section.
63777         (Date and time): Add gethrxtime.
63778         (Multithreading): Add openmp.
63779         (Internationalization functions): Add localename.
63780         (Unicode string functions): Add unistr/u*-mbsnlen.
63781         (Support for maintaining and releasing projects): Add git-version-gen.
63782         (Lone files): Remove directories.
63783
63784 2007-10-08  Ben Pfaff  <blp@gnu.org>
63785
63786         * lib/xmalloca.h: Fix typo in comment.
63787
63788 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63789
63790         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
63791         when avoiding problems with integer overflow.  Use a portable test
63792         instead.
63793
63794 2007-10-08  Simon Josefsson  <simon@josefsson.org>
63795
63796         * modules/dummy (License): Change to LGPLv2+.
63797         * modules/float (License): Likewise
63798         * modules/realloc (License): Likewise
63799         * modules/stdlib (License): Likewise
63800
63801 2007-10-07  Bruno Haible  <bruno@clisp.org>
63802
63803         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
63804         * floor.c (TWO_MANT_DIG): Likewise.
63805         * ceil.c (TWO_MANT_DIG): Likewise.
63806         Reported by Ben Pfaff.
63807
63808 2007-10-07  Bruno Haible  <bruno@clisp.org>
63809
63810         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
63811         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
63812         * lib/frexp.c (FUNC): Likewise.
63813         * lib/printf-frexp.h (printf_frexp): Likewise.
63814         * lib/printf-frexpl.h (printf_frexpl): Likewise.
63815         * lib/printf-frexp.c (FUNC): Likewise.
63816         Suggested by Jim Meyering.
63817
63818 2007-10-07  Jim Meyering  <meyering@redhat.com>
63819
63820         Make xnanosleep's integer overflow test more robust.
63821         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
63822         so that gcc-4.3.0 doesn't optimize away this test for overflow.
63823
63824 2007-10-07  Bruno Haible  <bruno@clisp.org>
63825
63826         * NEWS: Mention the license change.
63827
63828         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
63829         abbreviations in the modules files.
63830
63831         Change copyright notice from GPLv2+ to GPLv3+.
63832         * README: Change copyright notice.
63833         * MODULES.html.sh: Likewise.
63834         * build-aux/bootstrap.conf: Likewise.
63835         * build-aux/config.libpath: Likewise.
63836         * build-aux/csharpcomp.sh.in: Likewise.
63837         * build-aux/csharpexec.sh.in: Likewise.
63838         * build-aux/install-reloc: Likewise.
63839         * build-aux/javacomp.sh.in: Likewise.
63840         * build-aux/javaexec.sh.in: Likewise.
63841         * build-aux/ldd.sh.in: Likewise.
63842         * build-aux/reloc-ldflags: Likewise.
63843         * build-aux/relocatable.sh.in: Likewise.
63844         * build-aux/x-to-1.in: Likewise.
63845         * check-module: Likewise.
63846         * config/srclistvars.sh: Likewise.
63847         * gnulib-tool: Likewise.
63848         * lib/acl-internal.h: Likewise.
63849         * lib/acl.c: Likewise.
63850         * lib/acl.h: Likewise.
63851         * lib/acl_entries.c: Likewise.
63852         * lib/areadlink-with-size.c: Likewise.
63853         * lib/areadlink.c: Likewise.
63854         * lib/areadlink.h: Likewise.
63855         * lib/argmatch.c: Likewise.
63856         * lib/argmatch.h: Likewise.
63857         * lib/argp-ba.c: Likewise.
63858         * lib/argp-eexst.c: Likewise.
63859         * lib/argp-fmtstream.c: Likewise.
63860         * lib/argp-fmtstream.h: Likewise.
63861         * lib/argp-fs-xinl.c: Likewise.
63862         * lib/argp-help.c: Likewise.
63863         * lib/argp-namefrob.h: Likewise.
63864         * lib/argp-parse.c: Likewise.
63865         * lib/argp-pin.c: Likewise.
63866         * lib/argp-pv.c: Likewise.
63867         * lib/argp-pvh.c: Likewise.
63868         * lib/argp-xinl.c: Likewise.
63869         * lib/argp.h: Likewise.
63870         * lib/at-func.c: Likewise.
63871         * lib/atanl.c: Likewise.
63872         * lib/backupfile.c: Likewise.
63873         * lib/backupfile.h: Likewise.
63874         * lib/basename.c: Likewise.
63875         * lib/binary-io.h: Likewise.
63876         * lib/byteswap.in.h: Likewise.
63877         * lib/c-stack.c: Likewise.
63878         * lib/c-stack.h: Likewise.
63879         * lib/c-strcasestr.c: Likewise.
63880         * lib/c-strcasestr.h: Likewise.
63881         * lib/c-strstr.c: Likewise.
63882         * lib/c-strstr.h: Likewise.
63883         * lib/c-strtod.c: Likewise.
63884         * lib/calloc.c: Likewise.
63885         * lib/canon-host.c: Likewise.
63886         * lib/canon-host.h: Likewise.
63887         * lib/canonicalize-lgpl.c: Likewise.
63888         * lib/canonicalize.c: Likewise.
63889         * lib/canonicalize.h: Likewise.
63890         * lib/ceil.c: Likewise.
63891         * lib/ceilf.c: Likewise.
63892         * lib/ceill.c: Likewise.
63893         * lib/chdir-long.c: Likewise.
63894         * lib/chdir-long.h: Likewise.
63895         * lib/chdir-safer.c: Likewise.
63896         * lib/chdir-safer.h: Likewise.
63897         * lib/chown.c: Likewise.
63898         * lib/classpath.c: Likewise.
63899         * lib/classpath.h: Likewise.
63900         * lib/clean-temp.c: Likewise.
63901         * lib/clean-temp.h: Likewise.
63902         * lib/cloexec.c: Likewise.
63903         * lib/close-stream.c: Likewise.
63904         * lib/closein.c: Likewise.
63905         * lib/closein.h: Likewise.
63906         * lib/closeout.c: Likewise.
63907         * lib/closeout.h: Likewise.
63908         * lib/concat-filename.c: Likewise.
63909         * lib/copy-file.c: Likewise.
63910         * lib/copy-file.h: Likewise.
63911         * lib/count-one-bits.h: Likewise.
63912         * lib/crc.c: Likewise.
63913         * lib/crc.h: Likewise.
63914         * lib/creat-safer.c: Likewise.
63915         * lib/csharpcomp.c: Likewise.
63916         * lib/csharpcomp.h: Likewise.
63917         * lib/csharpexec.c: Likewise.
63918         * lib/csharpexec.h: Likewise.
63919         * lib/cycle-check.c: Likewise.
63920         * lib/cycle-check.h: Likewise.
63921         * lib/diacrit.c: Likewise.
63922         * lib/diacrit.h: Likewise.
63923         * lib/diffseq.h: Likewise.
63924         * lib/dirchownmod.c: Likewise.
63925         * lib/dirent.in.h: Likewise.
63926         * lib/dirfd.c: Likewise.
63927         * lib/dirfd.h: Likewise.
63928         * lib/dirname.c: Likewise.
63929         * lib/dirname.h: Likewise.
63930         * lib/dummy.c: Likewise.
63931         * lib/dup-safer.c: Likewise.
63932         * lib/dup2.c: Likewise.
63933         * lib/eealloc.h: Likewise.
63934         * lib/error.c: Likewise.
63935         * lib/error.h: Likewise.
63936         * lib/euidaccess.c: Likewise.
63937         * lib/exclude.c: Likewise.
63938         * lib/exclude.h: Likewise.
63939         * lib/execute.c: Likewise.
63940         * lib/execute.h: Likewise.
63941         * lib/exitfail.c: Likewise.
63942         * lib/exitfail.h: Likewise.
63943         * lib/expl.c: Likewise.
63944         * lib/fatal-signal.c: Likewise.
63945         * lib/fatal-signal.h: Likewise.
63946         * lib/fbufmode.c: Likewise.
63947         * lib/fbufmode.h: Likewise.
63948         * lib/fchdir.c: Likewise.
63949         * lib/fchmodat.c: Likewise.
63950         * lib/fchownat.c: Likewise.
63951         * lib/fcntl--.h: Likewise.
63952         * lib/fcntl-safer.h: Likewise.
63953         * lib/fcntl.in.h: Likewise.
63954         * lib/fd-safer.c: Likewise.
63955         * lib/fflush.c: Likewise.
63956         * lib/file-has-acl.c: Likewise.
63957         * lib/file-set.c: Likewise.
63958         * lib/file-type.c: Likewise.
63959         * lib/file-type.h: Likewise.
63960         * lib/fileblocks.c: Likewise.
63961         * lib/filemode.c: Likewise.
63962         * lib/filemode.h: Likewise.
63963         * lib/filename.h: Likewise.
63964         * lib/filenamecat.c: Likewise.
63965         * lib/filenamecat.h: Likewise.
63966         * lib/findprog.c: Likewise.
63967         * lib/findprog.h: Likewise.
63968         * lib/float.in.h: Likewise.
63969         * lib/floor.c: Likewise.
63970         * lib/floorf.c: Likewise.
63971         * lib/floorl.c: Likewise.
63972         * lib/fopen-safer.c: Likewise.
63973         * lib/fopen.c: Likewise.
63974         * lib/fpending.c: Likewise.
63975         * lib/fpending.h: Likewise.
63976         * lib/fprintf.c: Likewise.
63977         * lib/fprintftime.h: Likewise.
63978         * lib/fpucw.h: Likewise.
63979         * lib/fpurge.c: Likewise.
63980         * lib/fpurge.h: Likewise.
63981         * lib/freadable.c: Likewise.
63982         * lib/freadable.h: Likewise.
63983         * lib/freadahead.c: Likewise.
63984         * lib/freadahead.h: Likewise.
63985         * lib/freading.c: Likewise.
63986         * lib/freading.h: Likewise.
63987         * lib/free.c: Likewise.
63988         * lib/freopen.c: Likewise.
63989         * lib/frexp.c: Likewise.
63990         * lib/frexpl.c: Likewise.
63991         * lib/fseek.c: Likewise.
63992         * lib/fseterr.c: Likewise.
63993         * lib/fseterr.h: Likewise.
63994         * lib/fstatat.c: Likewise.
63995         * lib/fstrcmp.c: Likewise.
63996         * lib/fstrcmp.h: Likewise.
63997         * lib/fsusage.c: Likewise.
63998         * lib/fsusage.h: Likewise.
63999         * lib/ftell.c: Likewise.
64000         * lib/ftello.c: Likewise.
64001         * lib/fts-cycle.c: Likewise.
64002         * lib/fts.c: Likewise.
64003         * lib/fts_.h: Likewise.
64004         * lib/full-read.c: Likewise.
64005         * lib/full-read.h: Likewise.
64006         * lib/full-write.c: Likewise.
64007         * lib/full-write.h: Likewise.
64008         * lib/fwritable.c: Likewise.
64009         * lib/fwritable.h: Likewise.
64010         * lib/fwriteerror.c: Likewise.
64011         * lib/fwriteerror.h: Likewise.
64012         * lib/fwriting.c: Likewise.
64013         * lib/fwriting.h: Likewise.
64014         * lib/gcd.c: Likewise.
64015         * lib/gcd.h: Likewise.
64016         * lib/getcwd.c: Likewise.
64017         * lib/getdate.h: Likewise.
64018         * lib/getdate.y: Likewise.
64019         * lib/getdomainname.c: Likewise.
64020         * lib/getdomainname.h: Likewise.
64021         * lib/getgroups.c: Likewise.
64022         * lib/gethostname.c: Likewise.
64023         * lib/gethrxtime.c: Likewise.
64024         * lib/gethrxtime.h: Likewise.
64025         * lib/getloadavg.c: Likewise.
64026         * lib/getndelim2.c: Likewise.
64027         * lib/getndelim2.h: Likewise.
64028         * lib/getnline.c: Likewise.
64029         * lib/getnline.h: Likewise.
64030         * lib/getopt.c: Likewise.
64031         * lib/getopt.in.h: Likewise.
64032         * lib/getopt1.c: Likewise.
64033         * lib/getopt_int.h: Likewise.
64034         * lib/getpagesize.h: Likewise.
64035         * lib/getsubopt.c: Likewise.
64036         * lib/gettime.c: Likewise.
64037         * lib/getugroups.c: Likewise.
64038         * lib/getugroups.h: Likewise.
64039         * lib/getusershell.c: Likewise.
64040         * lib/gl_anyavltree_list1.h: Likewise.
64041         * lib/gl_anyavltree_list2.h: Likewise.
64042         * lib/gl_anyhash_list1.h: Likewise.
64043         * lib/gl_anyhash_list2.h: Likewise.
64044         * lib/gl_anylinked_list1.h: Likewise.
64045         * lib/gl_anylinked_list2.h: Likewise.
64046         * lib/gl_anyrbtree_list1.h: Likewise.
64047         * lib/gl_anyrbtree_list2.h: Likewise.
64048         * lib/gl_anytree_list1.h: Likewise.
64049         * lib/gl_anytree_list2.h: Likewise.
64050         * lib/gl_anytree_oset.h: Likewise.
64051         * lib/gl_anytreehash_list1.h: Likewise.
64052         * lib/gl_anytreehash_list2.h: Likewise.
64053         * lib/gl_array_list.c: Likewise.
64054         * lib/gl_array_list.h: Likewise.
64055         * lib/gl_array_oset.c: Likewise.
64056         * lib/gl_array_oset.h: Likewise.
64057         * lib/gl_avltree_list.c: Likewise.
64058         * lib/gl_avltree_list.h: Likewise.
64059         * lib/gl_avltree_oset.c: Likewise.
64060         * lib/gl_avltree_oset.h: Likewise.
64061         * lib/gl_avltreehash_list.c: Likewise.
64062         * lib/gl_avltreehash_list.h: Likewise.
64063         * lib/gl_carray_list.c: Likewise.
64064         * lib/gl_carray_list.h: Likewise.
64065         * lib/gl_linked_list.c: Likewise.
64066         * lib/gl_linked_list.h: Likewise.
64067         * lib/gl_linkedhash_list.c: Likewise.
64068         * lib/gl_linkedhash_list.h: Likewise.
64069         * lib/gl_list.c: Likewise.
64070         * lib/gl_list.h: Likewise.
64071         * lib/gl_oset.c: Likewise.
64072         * lib/gl_oset.h: Likewise.
64073         * lib/gl_rbtree_list.c: Likewise.
64074         * lib/gl_rbtree_list.h: Likewise.
64075         * lib/gl_rbtree_oset.c: Likewise.
64076         * lib/gl_rbtree_oset.h: Likewise.
64077         * lib/gl_rbtreehash_list.c: Likewise.
64078         * lib/gl_rbtreehash_list.h: Likewise.
64079         * lib/gl_sublist.c: Likewise.
64080         * lib/gl_sublist.h: Likewise.
64081         * lib/group-member.c: Likewise.
64082         * lib/group-member.h: Likewise.
64083         * lib/hard-locale.c: Likewise.
64084         * lib/hard-locale.h: Likewise.
64085         * lib/hash-pjw.c: Likewise.
64086         * lib/hash-pjw.h: Likewise.
64087         * lib/hash-triple.c: Likewise.
64088         * lib/hash.c: Likewise.
64089         * lib/hash.h: Likewise.
64090         * lib/human.c: Likewise.
64091         * lib/human.h: Likewise.
64092         * lib/i-ring.c: Likewise.
64093         * lib/i-ring.h: Likewise.
64094         * lib/idcache.c: Likewise.
64095         * lib/imaxabs.c: Likewise.
64096         * lib/imaxdiv.c: Likewise.
64097         * lib/inet_pton.c: Likewise.
64098         * lib/inet_pton.h: Likewise.
64099         * lib/intprops.h: Likewise.
64100         * lib/inttostr.c: Likewise.
64101         * lib/inttostr.h: Likewise.
64102         * lib/inttypes.in.h: Likewise.
64103         * lib/isapipe.c: Likewise.
64104         * lib/isdir.c: Likewise.
64105         * lib/isnan.c: Likewise.
64106         * lib/isnan.h: Likewise.
64107         * lib/isnanf.c: Likewise.
64108         * lib/isnanf.h: Likewise.
64109         * lib/isnanl-nolibm.h: Likewise.
64110         * lib/isnanl.c: Likewise.
64111         * lib/isnanl.h: Likewise.
64112         * lib/javacomp.c: Likewise.
64113         * lib/javacomp.h: Likewise.
64114         * lib/javaexec.c: Likewise.
64115         * lib/javaexec.h: Likewise.
64116         * lib/javaversion.c: Likewise.
64117         * lib/javaversion.h: Likewise.
64118         * lib/javaversion.java: Likewise.
64119         * lib/lbrkprop.h: Likewise.
64120         * lib/lchmod.h: Likewise.
64121         * lib/lchown.c: Likewise.
64122         * lib/ldexpl.c: Likewise.
64123         * lib/linebreak.c: Likewise.
64124         * lib/linebreak.h: Likewise.
64125         * lib/linebuffer.c: Likewise.
64126         * lib/linebuffer.h: Likewise.
64127         * lib/locale.in.h: Likewise.
64128         * lib/logl.c: Likewise.
64129         * lib/long-options.c: Likewise.
64130         * lib/long-options.h: Likewise.
64131         * lib/lstat.c: Likewise.
64132         * lib/lstat.h: Likewise.
64133         * lib/math.in.h: Likewise.
64134         * lib/mbchar.c: Likewise.
64135         * lib/mbchar.h: Likewise.
64136         * lib/mbfile.h: Likewise.
64137         * lib/mbiter.h: Likewise.
64138         * lib/mbscasecmp.c: Likewise.
64139         * lib/mbscasestr.c: Likewise.
64140         * lib/mbschr.c: Likewise.
64141         * lib/mbscspn.c: Likewise.
64142         * lib/mbslen.c: Likewise.
64143         * lib/mbsncasecmp.c: Likewise.
64144         * lib/mbsnlen.c: Likewise.
64145         * lib/mbspbrk.c: Likewise.
64146         * lib/mbspcasecmp.c: Likewise.
64147         * lib/mbsrchr.c: Likewise.
64148         * lib/mbssep.c: Likewise.
64149         * lib/mbsspn.c: Likewise.
64150         * lib/mbsstr.c: Likewise.
64151         * lib/mbstok_r.c: Likewise.
64152         * lib/mbswidth.c: Likewise.
64153         * lib/mbswidth.h: Likewise.
64154         * lib/mbuiter.h: Likewise.
64155         * lib/memcasecmp.c: Likewise.
64156         * lib/memcasecmp.h: Likewise.
64157         * lib/memchr.c: Likewise.
64158         * lib/memcmp.c: Likewise.
64159         * lib/memcoll.c: Likewise.
64160         * lib/memcoll.h: Likewise.
64161         * lib/memcpy.c: Likewise.
64162         * lib/memrchr.c: Likewise.
64163         * lib/mkancesdirs.c: Likewise.
64164         * lib/mkdir-p.c: Likewise.
64165         * lib/mkdir-p.h: Likewise.
64166         * lib/mkdir.c: Likewise.
64167         * lib/mkdirat.c: Likewise.
64168         * lib/mkdtemp.c: Likewise.
64169         * lib/mkstemp-safer.c: Likewise.
64170         * lib/mkstemp.c: Likewise.
64171         * lib/modechange.c: Likewise.
64172         * lib/modechange.h: Likewise.
64173         * lib/mountlist.c: Likewise.
64174         * lib/mountlist.h: Likewise.
64175         * lib/mpsort.c: Likewise.
64176         * lib/nanosleep.c: Likewise.
64177         * lib/obstack.c: Likewise.
64178         * lib/obstack.h: Likewise.
64179         * lib/open-safer.c: Likewise.
64180         * lib/open.c: Likewise.
64181         * lib/openat-die.c: Likewise.
64182         * lib/openat-priv.h: Likewise.
64183         * lib/openat-proc.c: Likewise.
64184         * lib/openat.c: Likewise.
64185         * lib/openat.h: Likewise.
64186         * lib/pagealign_alloc.c: Likewise.
64187         * lib/pagealign_alloc.h: Likewise.
64188         * lib/physmem.c: Likewise.
64189         * lib/physmem.h: Likewise.
64190         * lib/pipe-safer.c: Likewise.
64191         * lib/pipe.c: Likewise.
64192         * lib/pipe.h: Likewise.
64193         * lib/posixtm.c: Likewise.
64194         * lib/posixtm.h: Likewise.
64195         * lib/posixver.c: Likewise.
64196         * lib/printf-frexp.c: Likewise.
64197         * lib/printf-frexp.h: Likewise.
64198         * lib/printf-frexpl.c: Likewise.
64199         * lib/printf-frexpl.h: Likewise.
64200         * lib/printf.c: Likewise.
64201         * lib/progname.c: Likewise.
64202         * lib/progname.h: Likewise.
64203         * lib/progreloc.c: Likewise.
64204         * lib/putenv.c: Likewise.
64205         * lib/quote.c: Likewise.
64206         * lib/quote.h: Likewise.
64207         * lib/quotearg.c: Likewise.
64208         * lib/quotearg.h: Likewise.
64209         * lib/raise.c: Likewise.
64210         * lib/readline.c: Likewise.
64211         * lib/readline.h: Likewise.
64212         * lib/readlink.c: Likewise.
64213         * lib/readtokens.c: Likewise.
64214         * lib/readtokens.h: Likewise.
64215         * lib/readtokens0.c: Likewise.
64216         * lib/readtokens0.h: Likewise.
64217         * lib/readutmp.c: Likewise.
64218         * lib/readutmp.h: Likewise.
64219         * lib/realloc.c: Likewise.
64220         * lib/relocwrapper.c: Likewise.
64221         * lib/rename-dest-slash.c: Likewise.
64222         * lib/rename.c: Likewise.
64223         * lib/rmdir.c: Likewise.
64224         * lib/rpmatch.c: Likewise.
64225         * lib/safe-read.c: Likewise.
64226         * lib/safe-read.h: Likewise.
64227         * lib/safe-write.c: Likewise.
64228         * lib/safe-write.h: Likewise.
64229         * lib/same-inode.h: Likewise.
64230         * lib/same.c: Likewise.
64231         * lib/same.h: Likewise.
64232         * lib/save-cwd.c: Likewise.
64233         * lib/save-cwd.h: Likewise.
64234         * lib/savedir.c: Likewise.
64235         * lib/savedir.h: Likewise.
64236         * lib/savewd.c: Likewise.
64237         * lib/savewd.h: Likewise.
64238         * lib/search.in.h: Likewise.
64239         * lib/setenv.c: Likewise.
64240         * lib/setenv.h: Likewise.
64241         * lib/settime.c: Likewise.
64242         * lib/sh-quote.c: Likewise.
64243         * lib/sh-quote.h: Likewise.
64244         * lib/sig2str.c: Likewise.
64245         * lib/sig2str.h: Likewise.
64246         * lib/signal.in.h: Likewise.
64247         * lib/signbitd.c: Likewise.
64248         * lib/signbitf.c: Likewise.
64249         * lib/signbitl.c: Likewise.
64250         * lib/sigprocmask.c: Likewise.
64251         * lib/sincosl.c: Likewise.
64252         * lib/sleep.c: Likewise.
64253         * lib/sprintf.c: Likewise.
64254         * lib/sqrtl.c: Likewise.
64255         * lib/stat-time.h: Likewise.
64256         * lib/stdio--.h: Likewise.
64257         * lib/stdio-safer.h: Likewise.
64258         * lib/stdlib--.h: Likewise.
64259         * lib/stdlib-safer.h: Likewise.
64260         * lib/stdlib.in.h: Likewise.
64261         * lib/stpcpy.c: Likewise.
64262         * lib/stpncpy.c: Likewise.
64263         * lib/strchrnul.c: Likewise.
64264         * lib/strcspn.c: Likewise.
64265         * lib/strerror.c: Likewise.
64266         * lib/strftime.c: Likewise.
64267         * lib/strftime.h: Likewise.
64268         * lib/striconveh.c: Likewise.
64269         * lib/striconveh.h: Likewise.
64270         * lib/striconveha.c: Likewise.
64271         * lib/striconveha.h: Likewise.
64272         * lib/stripslash.c: Likewise.
64273         * lib/strnlen1.c: Likewise.
64274         * lib/strnlen1.h: Likewise.
64275         * lib/strtod.c: Likewise.
64276         * lib/strtoimax.c: Likewise.
64277         * lib/strtok_r.c: Likewise.
64278         * lib/strtol.c: Likewise.
64279         * lib/strtoll.c: Likewise.
64280         * lib/strtoul.c: Likewise.
64281         * lib/strtoull.c: Likewise.
64282         * lib/sysexits.in.h: Likewise.
64283         * lib/tempname.c: Likewise.
64284         * lib/tempname.h: Likewise.
64285         * lib/timespec.h: Likewise.
64286         * lib/tls.c: Likewise.
64287         * lib/tls.h: Likewise.
64288         * lib/tmpdir.c: Likewise.
64289         * lib/tmpdir.h: Likewise.
64290         * lib/tmpfile-safer.c: Likewise.
64291         * lib/tmpfile.c: Likewise.
64292         * lib/trigl.c: Likewise.
64293         * lib/trigl.h: Likewise.
64294         * lib/trim.c: Likewise.
64295         * lib/trim.h: Likewise.
64296         * lib/trunc.c: Likewise.
64297         * lib/truncf.c: Likewise.
64298         * lib/truncl.c: Likewise.
64299         * lib/tsearch.c: Likewise.
64300         * lib/unicodeio.c: Likewise.
64301         * lib/unicodeio.h: Likewise.
64302         * lib/unistd--.h: Likewise.
64303         * lib/unistd-safer.h: Likewise.
64304         * lib/unistdio/ulc-fprintf.c: Likewise.
64305         * lib/unistdio/ulc-vfprintf.c: Likewise.
64306         * lib/unlinkdir.c: Likewise.
64307         * lib/unlinkdir.h: Likewise.
64308         * lib/unlocked-io.h: Likewise.
64309         * lib/unsetenv.c: Likewise.
64310         * lib/userspec.c: Likewise.
64311         * lib/utime.c: Likewise.
64312         * lib/utimecmp.c: Likewise.
64313         * lib/utimecmp.h: Likewise.
64314         * lib/utimens.c: Likewise.
64315         * lib/verify.h: Likewise.
64316         * lib/verror.c: Likewise.
64317         * lib/verror.h: Likewise.
64318         * lib/version-etc-fsf.c: Likewise.
64319         * lib/version-etc.c: Likewise.
64320         * lib/version-etc.h: Likewise.
64321         * lib/vfprintf.c: Likewise.
64322         * lib/vprintf.c: Likewise.
64323         * lib/vsprintf.c: Likewise.
64324         * lib/w32spawn.h: Likewise.
64325         * lib/wait-process.c: Likewise.
64326         * lib/wait-process.h: Likewise.
64327         * lib/wcwidth.c: Likewise.
64328         * lib/write-any-file.c: Likewise.
64329         * lib/xalloc-die.c: Likewise.
64330         * lib/xalloc.h: Likewise.
64331         * lib/xasprintf.c: Likewise.
64332         * lib/xgetcwd.c: Likewise.
64333         * lib/xgetcwd.h: Likewise.
64334         * lib/xgetdomainname.c: Likewise.
64335         * lib/xgetdomainname.h: Likewise.
64336         * lib/xgethostname.c: Likewise.
64337         * lib/xmalloc.c: Likewise.
64338         * lib/xmalloca.c: Likewise.
64339         * lib/xmalloca.h: Likewise.
64340         * lib/xmemcoll.c: Likewise.
64341         * lib/xnanosleep.c: Likewise.
64342         * lib/xreadlink.c: Likewise.
64343         * lib/xreadlink.h: Likewise.
64344         * lib/xsetenv.c: Likewise.
64345         * lib/xsetenv.h: Likewise.
64346         * lib/xstriconv.c: Likewise.
64347         * lib/xstriconv.h: Likewise.
64348         * lib/xstrndup.c: Likewise.
64349         * lib/xstrndup.h: Likewise.
64350         * lib/xstrtod.c: Likewise.
64351         * lib/xstrtod.h: Likewise.
64352         * lib/xstrtol-error.c: Likewise.
64353         * lib/xstrtol.c: Likewise.
64354         * lib/xstrtol.h: Likewise.
64355         * lib/xtime.h: Likewise.
64356         * lib/xvasprintf.c: Likewise.
64357         * lib/xvasprintf.h: Likewise.
64358         * lib/yesno.c: Likewise.
64359         * lib/yesno.h: Likewise.
64360         * posix-modules: Likewise.
64361         * tests/test-alloca-opt.c: Likewise.
64362         * tests/test-arcfour.c: Likewise.
64363         * tests/test-arctwo.c: Likewise.
64364         * tests/test-argmatch.c: Likewise.
64365         * tests/test-argp-2.sh: Likewise.
64366         * tests/test-argp.c: Likewise.
64367         * tests/test-arpa_inet.c: Likewise.
64368         * tests/test-array_list.c: Likewise.
64369         * tests/test-array_oset.c: Likewise.
64370         * tests/test-atexit.c: Likewise.
64371         * tests/test-avltree_list.c: Likewise.
64372         * tests/test-avltree_oset.c: Likewise.
64373         * tests/test-avltreehash_list.c: Likewise.
64374         * tests/test-base64.c: Likewise.
64375         * tests/test-binary-io.c: Likewise.
64376         * tests/test-byteswap.c: Likewise.
64377         * tests/test-c-ctype.c: Likewise.
64378         * tests/test-c-strcasecmp.c: Likewise.
64379         * tests/test-c-strcasestr.c: Likewise.
64380         * tests/test-c-strncasecmp.c: Likewise.
64381         * tests/test-c-strstr.c: Likewise.
64382         * tests/test-canonicalize-lgpl.c: Likewise.
64383         * tests/test-canonicalize.c: Likewise.
64384         * tests/test-carray_list.c: Likewise.
64385         * tests/test-ceilf.c: Likewise.
64386         * tests/test-ceill.c: Likewise.
64387         * tests/test-count-one-bits.c: Likewise.
64388         * tests/test-crc.c: Likewise.
64389         * tests/test-dirname.c: Likewise.
64390         * tests/test-fbufmode.c: Likewise.
64391         * tests/test-fcntl.c: Likewise.
64392         * tests/test-fflush.c: Likewise.
64393         * tests/test-floorf.c: Likewise.
64394         * tests/test-floorl.c: Likewise.
64395         * tests/test-fopen.c: Likewise.
64396         * tests/test-fprintf-posix.c: Likewise.
64397         * tests/test-fprintf-posix.h: Likewise.
64398         * tests/test-fpurge.c: Likewise.
64399         * tests/test-freadable.c: Likewise.
64400         * tests/test-freadahead.c: Likewise.
64401         * tests/test-freading.c: Likewise.
64402         * tests/test-freopen.c: Likewise.
64403         * tests/test-frexp.c: Likewise.
64404         * tests/test-frexpl.c: Likewise.
64405         * tests/test-fseek.c: Likewise.
64406         * tests/test-fseeko.c: Likewise.
64407         * tests/test-fseterr.c: Likewise.
64408         * tests/test-fstrcmp.c: Likewise.
64409         * tests/test-ftell.c: Likewise.
64410         * tests/test-ftello.c: Likewise.
64411         * tests/test-fwritable.c: Likewise.
64412         * tests/test-fwriting.c: Likewise.
64413         * tests/test-getaddrinfo.c: Likewise.
64414         * tests/test-getpass.c: Likewise.
64415         * tests/test-gettimeofday.c: Likewise.
64416         * tests/test-hmac-md5.c: Likewise.
64417         * tests/test-hmac-sha1.c: Likewise.
64418         * tests/test-iconv.c: Likewise.
64419         * tests/test-iconvme.c: Likewise.
64420         * tests/test-inttypes.c: Likewise.
64421         * tests/test-isnan.c: Likewise.
64422         * tests/test-isnanf.c: Likewise.
64423         * tests/test-isnanl-nolibm.c: Likewise.
64424         * tests/test-isnanl.c: Likewise.
64425         * tests/test-isnanl.h: Likewise.
64426         * tests/test-ldexpl.c: Likewise.
64427         * tests/test-linked_list.c: Likewise.
64428         * tests/test-linkedhash_list.c: Likewise.
64429         * tests/test-locale.c: Likewise.
64430         * tests/test-localename.c: Likewise.
64431         * tests/test-lock.c: Likewise.
64432         * tests/test-lseek.c: Likewise.
64433         * tests/test-malloca.c: Likewise.
64434         * tests/test-math.c: Likewise.
64435         * tests/test-mbscasecmp.c: Likewise.
64436         * tests/test-mbscasestr1.c: Likewise.
64437         * tests/test-mbscasestr2.c: Likewise.
64438         * tests/test-mbscasestr3.c: Likewise.
64439         * tests/test-mbscasestr4.c: Likewise.
64440         * tests/test-mbschr.c: Likewise.
64441         * tests/test-mbscspn.c: Likewise.
64442         * tests/test-mbsncasecmp.c: Likewise.
64443         * tests/test-mbspbrk.c: Likewise.
64444         * tests/test-mbspcasecmp.c: Likewise.
64445         * tests/test-mbsrchr.c: Likewise.
64446         * tests/test-mbsspn.c: Likewise.
64447         * tests/test-mbsstr1.c: Likewise.
64448         * tests/test-mbsstr2.c: Likewise.
64449         * tests/test-mbsstr3.c: Likewise.
64450         * tests/test-md5.c: Likewise.
64451         * tests/test-memmem.c: Likewise.
64452         * tests/test-netinet_in.c: Likewise.
64453         * tests/test-open.c: Likewise.
64454         * tests/test-printf-frexp.c: Likewise.
64455         * tests/test-printf-frexpl.c: Likewise.
64456         * tests/test-printf-posix.c: Likewise.
64457         * tests/test-printf-posix.h: Likewise.
64458         * tests/test-rbtree_list.c: Likewise.
64459         * tests/test-rbtree_oset.c: Likewise.
64460         * tests/test-rbtreehash_list.c: Likewise.
64461         * tests/test-read-file.c: Likewise.
64462         * tests/test-rijndael.c: Likewise.
64463         * tests/test-search.c: Likewise.
64464         * tests/test-signbit.c: Likewise.
64465         * tests/test-sleep.c: Likewise.
64466         * tests/test-snprintf-posix.c: Likewise.
64467         * tests/test-snprintf-posix.h: Likewise.
64468         * tests/test-snprintf.c: Likewise.
64469         * tests/test-sprintf-posix.c: Likewise.
64470         * tests/test-sprintf-posix.h: Likewise.
64471         * tests/test-stat-time.c: Likewise.
64472         * tests/test-stdbool.c: Likewise.
64473         * tests/test-stdint.c: Likewise.
64474         * tests/test-stdio.c: Likewise.
64475         * tests/test-stdlib.c: Likewise.
64476         * tests/test-stpncpy.c: Likewise.
64477         * tests/test-strcasestr.c: Likewise.
64478         * tests/test-striconv.c: Likewise.
64479         * tests/test-striconveh.c: Likewise.
64480         * tests/test-striconveha.c: Likewise.
64481         * tests/test-string.c: Likewise.
64482         * tests/test-sys_select.c: Likewise.
64483         * tests/test-sys_socket.c: Likewise.
64484         * tests/test-sys_stat.c: Likewise.
64485         * tests/test-sys_time.c: Likewise.
64486         * tests/test-sysexits.c: Likewise.
64487         * tests/test-time.c: Likewise.
64488         * tests/test-tls.c: Likewise.
64489         * tests/test-trunc.c: Likewise.
64490         * tests/test-truncf.c: Likewise.
64491         * tests/test-truncl.c: Likewise.
64492         * tests/test-unistd.c: Likewise.
64493         * tests/test-vasnprintf-posix.c: Likewise.
64494         * tests/test-vasnprintf-posix2.c: Likewise.
64495         * tests/test-vasnprintf.c: Likewise.
64496         * tests/test-vasprintf-posix.c: Likewise.
64497         * tests/test-vasprintf.c: Likewise.
64498         * tests/test-verify.c: Likewise.
64499         * tests/test-vfprintf-posix.c: Likewise.
64500         * tests/test-vprintf-posix.c: Likewise.
64501         * tests/test-vsnprintf-posix.c: Likewise.
64502         * tests/test-vsnprintf.c: Likewise.
64503         * tests/test-vsprintf-posix.c: Likewise.
64504         * tests/test-wchar.c: Likewise.
64505         * tests/test-wctype.c: Likewise.
64506         * tests/test-wcwidth.c: Likewise.
64507         * tests/test-xstrtol.c: Likewise.
64508         * tests/test-xvasprintf.c: Likewise.
64509         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64510         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64511         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64512         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64513         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64514         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64515         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64516         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64517         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64518         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64519         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64520         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64521         * tests/uniname/test-uninames.c: Likewise.
64522         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64523         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64524         * tests/unistdio/test-u16-printf1.h: Likewise.
64525         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64526         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64527         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64528         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64529         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64530         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64531         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64532         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64533         * tests/unistdio/test-u32-printf1.h: Likewise.
64534         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64535         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64536         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64537         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64538         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64539         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64540         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64541         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64542         * tests/unistdio/test-u8-printf1.h: Likewise.
64543         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64544         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64545         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64546         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64547         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64548         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64549         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64550         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64551         * tests/unistdio/test-ulc-printf1.h: Likewise.
64552         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64553         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64554         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64555         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64556         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64557         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64558         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64559         * tests/uniwidth/test-u16-width.c: Likewise.
64560         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64561         * tests/uniwidth/test-u32-width.c: Likewise.
64562         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64563         * tests/uniwidth/test-u8-width.c: Likewise.
64564         * tests/uniwidth/test-uc_width.c: Likewise.
64565         * config/srclist-update: Likewise.
64566         (fixlicense): Update to GPLv3+.
64567
64568         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64569         * tests/test-tsearch.c: Change copyright notice.
64570
64571         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64572         * lib/c-strcaseeq.h: Change copyright notice.
64573         * lib/streq.h: Likewise.
64574         * lib/uniconv.h: Likewise.
64575         * lib/uniconv/u-conv-from-enc.h: Likewise.
64576         * lib/uniconv/u-conv-to-enc.h: Likewise.
64577         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64578         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64579         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64580         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64581         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64582         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64583         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64584         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
64585         * lib/uniconv/u32-conv-from-enc.c: Likewise.
64586         * lib/uniconv/u32-conv-to-enc.c: Likewise.
64587         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
64588         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
64589         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
64590         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
64591         * lib/uniconv/u8-conv-from-enc.c: Likewise.
64592         * lib/uniconv/u8-conv-to-enc.c: Likewise.
64593         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
64594         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
64595         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
64596         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
64597         * lib/uniname.h: Likewise.
64598         * lib/uniname/uniname.c: Likewise.
64599         * lib/unistdio.h: Likewise.
64600         * lib/unistdio/u-asnprintf.h: Likewise.
64601         * lib/unistdio/u-asprintf.h: Likewise.
64602         * lib/unistdio/u-printf-args.c: Likewise.
64603         * lib/unistdio/u-printf-args.h: Likewise.
64604         * lib/unistdio/u-printf-parse.h: Likewise.
64605         * lib/unistdio/u-snprintf.h: Likewise.
64606         * lib/unistdio/u-sprintf.h: Likewise.
64607         * lib/unistdio/u-vasprintf.h: Likewise.
64608         * lib/unistdio/u-vsnprintf.h: Likewise.
64609         * lib/unistdio/u-vsprintf.h: Likewise.
64610         * lib/unistdio/u16-asnprintf.c: Likewise.
64611         * lib/unistdio/u16-asprintf.c: Likewise.
64612         * lib/unistdio/u16-printf-parse.c: Likewise.
64613         * lib/unistdio/u16-snprintf.c: Likewise.
64614         * lib/unistdio/u16-sprintf.c: Likewise.
64615         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
64616         * lib/unistdio/u16-u16-asprintf.c: Likewise.
64617         * lib/unistdio/u16-u16-snprintf.c: Likewise.
64618         * lib/unistdio/u16-u16-sprintf.c: Likewise.
64619         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
64620         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
64621         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
64622         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
64623         * lib/unistdio/u16-vasnprintf.c: Likewise.
64624         * lib/unistdio/u16-vasprintf.c: Likewise.
64625         * lib/unistdio/u16-vsnprintf.c: Likewise.
64626         * lib/unistdio/u16-vsprintf.c: Likewise.
64627         * lib/unistdio/u32-asnprintf.c: Likewise.
64628         * lib/unistdio/u32-asprintf.c: Likewise.
64629         * lib/unistdio/u32-printf-parse.c: Likewise.
64630         * lib/unistdio/u32-snprintf.c: Likewise.
64631         * lib/unistdio/u32-sprintf.c: Likewise.
64632         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
64633         * lib/unistdio/u32-u32-asprintf.c: Likewise.
64634         * lib/unistdio/u32-u32-snprintf.c: Likewise.
64635         * lib/unistdio/u32-u32-sprintf.c: Likewise.
64636         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
64637         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
64638         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
64639         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
64640         * lib/unistdio/u32-vasnprintf.c: Likewise.
64641         * lib/unistdio/u32-vasprintf.c: Likewise.
64642         * lib/unistdio/u32-vsnprintf.c: Likewise.
64643         * lib/unistdio/u32-vsprintf.c: Likewise.
64644         * lib/unistdio/u8-asnprintf.c: Likewise.
64645         * lib/unistdio/u8-asprintf.c: Likewise.
64646         * lib/unistdio/u8-printf-parse.c: Likewise.
64647         * lib/unistdio/u8-snprintf.c: Likewise.
64648         * lib/unistdio/u8-sprintf.c: Likewise.
64649         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
64650         * lib/unistdio/u8-u8-asprintf.c: Likewise.
64651         * lib/unistdio/u8-u8-snprintf.c: Likewise.
64652         * lib/unistdio/u8-u8-sprintf.c: Likewise.
64653         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
64654         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
64655         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
64656         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
64657         * lib/unistdio/u8-vasnprintf.c: Likewise.
64658         * lib/unistdio/u8-vasprintf.c: Likewise.
64659         * lib/unistdio/u8-vsnprintf.c: Likewise.
64660         * lib/unistdio/u8-vsprintf.c: Likewise.
64661         * lib/unistdio/ulc-asnprintf.c: Likewise.
64662         * lib/unistdio/ulc-asprintf.c: Likewise.
64663         * lib/unistdio/ulc-printf-parse.c: Likewise.
64664         * lib/unistdio/ulc-snprintf.c: Likewise.
64665         * lib/unistdio/ulc-sprintf.c: Likewise.
64666         * lib/unistdio/ulc-vasnprintf.c: Likewise.
64667         * lib/unistdio/ulc-vasprintf.c: Likewise.
64668         * lib/unistdio/ulc-vsnprintf.c: Likewise.
64669         * lib/unistdio/ulc-vsprintf.c: Likewise.
64670         * lib/unistr.h: Likewise.
64671         * lib/unistr/u-cpy-alloc.h: Likewise.
64672         * lib/unistr/u-cpy.h: Likewise.
64673         * lib/unistr/u-endswith.h: Likewise.
64674         * lib/unistr/u-move.h: Likewise.
64675         * lib/unistr/u-set.h: Likewise.
64676         * lib/unistr/u-startswith.h: Likewise.
64677         * lib/unistr/u-stpcpy.h: Likewise.
64678         * lib/unistr/u-stpncpy.h: Likewise.
64679         * lib/unistr/u-strcat.h: Likewise.
64680         * lib/unistr/u-strcpy.h: Likewise.
64681         * lib/unistr/u-strcspn.h: Likewise.
64682         * lib/unistr/u-strdup.h: Likewise.
64683         * lib/unistr/u-strlen.h: Likewise.
64684         * lib/unistr/u-strncat.h: Likewise.
64685         * lib/unistr/u-strncpy.h: Likewise.
64686         * lib/unistr/u-strnlen.h: Likewise.
64687         * lib/unistr/u-strpbrk.h: Likewise.
64688         * lib/unistr/u-strspn.h: Likewise.
64689         * lib/unistr/u-strstr.h: Likewise.
64690         * lib/unistr/u-strtok.h: Likewise.
64691         * lib/unistr/u16-check.c: Likewise.
64692         * lib/unistr/u16-chr.c: Likewise.
64693         * lib/unistr/u16-cmp.c: Likewise.
64694         * lib/unistr/u16-cpy-alloc.c: Likewise.
64695         * lib/unistr/u16-cpy.c: Likewise.
64696         * lib/unistr/u16-endswith.c: Likewise.
64697         * lib/unistr/u16-mblen.c: Likewise.
64698         * lib/unistr/u16-mbsnlen.c: Likewise.
64699         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64700         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64701         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64702         * lib/unistr/u16-mbtouc.c: Likewise.
64703         * lib/unistr/u16-mbtoucr.c: Likewise.
64704         * lib/unistr/u16-move.c: Likewise.
64705         * lib/unistr/u16-next.c: Likewise.
64706         * lib/unistr/u16-prev.c: Likewise.
64707         * lib/unistr/u16-set.c: Likewise.
64708         * lib/unistr/u16-startswith.c: Likewise.
64709         * lib/unistr/u16-stpcpy.c: Likewise.
64710         * lib/unistr/u16-stpncpy.c: Likewise.
64711         * lib/unistr/u16-strcat.c: Likewise.
64712         * lib/unistr/u16-strchr.c: Likewise.
64713         * lib/unistr/u16-strcmp.c: Likewise.
64714         * lib/unistr/u16-strcpy.c: Likewise.
64715         * lib/unistr/u16-strcspn.c: Likewise.
64716         * lib/unistr/u16-strdup.c: Likewise.
64717         * lib/unistr/u16-strlen.c: Likewise.
64718         * lib/unistr/u16-strmblen.c: Likewise.
64719         * lib/unistr/u16-strmbtouc.c: Likewise.
64720         * lib/unistr/u16-strncat.c: Likewise.
64721         * lib/unistr/u16-strncmp.c: Likewise.
64722         * lib/unistr/u16-strncpy.c: Likewise.
64723         * lib/unistr/u16-strnlen.c: Likewise.
64724         * lib/unistr/u16-strpbrk.c: Likewise.
64725         * lib/unistr/u16-strrchr.c: Likewise.
64726         * lib/unistr/u16-strspn.c: Likewise.
64727         * lib/unistr/u16-strstr.c: Likewise.
64728         * lib/unistr/u16-strtok.c: Likewise.
64729         * lib/unistr/u16-to-u32.c: Likewise.
64730         * lib/unistr/u16-to-u8.c: Likewise.
64731         * lib/unistr/u16-uctomb-aux.c: Likewise.
64732         * lib/unistr/u16-uctomb.c: Likewise.
64733         * lib/unistr/u32-check.c: Likewise.
64734         * lib/unistr/u32-chr.c: Likewise.
64735         * lib/unistr/u32-cmp.c: Likewise.
64736         * lib/unistr/u32-cpy-alloc.c: Likewise.
64737         * lib/unistr/u32-cpy.c: Likewise.
64738         * lib/unistr/u32-endswith.c: Likewise.
64739         * lib/unistr/u32-mblen.c: Likewise.
64740         * lib/unistr/u32-mbsnlen.c: Likewise.
64741         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64742         * lib/unistr/u32-mbtouc.c: Likewise.
64743         * lib/unistr/u32-mbtoucr.c: Likewise.
64744         * lib/unistr/u32-move.c: Likewise.
64745         * lib/unistr/u32-next.c: Likewise.
64746         * lib/unistr/u32-prev.c: Likewise.
64747         * lib/unistr/u32-set.c: Likewise.
64748         * lib/unistr/u32-startswith.c: Likewise.
64749         * lib/unistr/u32-stpcpy.c: Likewise.
64750         * lib/unistr/u32-stpncpy.c: Likewise.
64751         * lib/unistr/u32-strcat.c: Likewise.
64752         * lib/unistr/u32-strchr.c: Likewise.
64753         * lib/unistr/u32-strcmp.c: Likewise.
64754         * lib/unistr/u32-strcpy.c: Likewise.
64755         * lib/unistr/u32-strcspn.c: Likewise.
64756         * lib/unistr/u32-strdup.c: Likewise.
64757         * lib/unistr/u32-strlen.c: Likewise.
64758         * lib/unistr/u32-strmblen.c: Likewise.
64759         * lib/unistr/u32-strmbtouc.c: Likewise.
64760         * lib/unistr/u32-strncat.c: Likewise.
64761         * lib/unistr/u32-strncmp.c: Likewise.
64762         * lib/unistr/u32-strncpy.c: Likewise.
64763         * lib/unistr/u32-strnlen.c: Likewise.
64764         * lib/unistr/u32-strpbrk.c: Likewise.
64765         * lib/unistr/u32-strrchr.c: Likewise.
64766         * lib/unistr/u32-strspn.c: Likewise.
64767         * lib/unistr/u32-strstr.c: Likewise.
64768         * lib/unistr/u32-strtok.c: Likewise.
64769         * lib/unistr/u32-to-u16.c: Likewise.
64770         * lib/unistr/u32-to-u8.c: Likewise.
64771         * lib/unistr/u32-uctomb.c: Likewise.
64772         * lib/unistr/u8-check.c: Likewise.
64773         * lib/unistr/u8-chr.c: Likewise.
64774         * lib/unistr/u8-cmp.c: Likewise.
64775         * lib/unistr/u8-cpy-alloc.c: Likewise.
64776         * lib/unistr/u8-cpy.c: Likewise.
64777         * lib/unistr/u8-endswith.c: Likewise.
64778         * lib/unistr/u8-mblen.c: Likewise.
64779         * lib/unistr/u8-mbsnlen.c: Likewise.
64780         * lib/unistr/u8-mbtouc-aux.c: Likewise.
64781         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64782         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64783         * lib/unistr/u8-mbtouc.c: Likewise.
64784         * lib/unistr/u8-mbtoucr.c: Likewise.
64785         * lib/unistr/u8-move.c: Likewise.
64786         * lib/unistr/u8-next.c: Likewise.
64787         * lib/unistr/u8-prev.c: Likewise.
64788         * lib/unistr/u8-set.c: Likewise.
64789         * lib/unistr/u8-startswith.c: Likewise.
64790         * lib/unistr/u8-stpcpy.c: Likewise.
64791         * lib/unistr/u8-stpncpy.c: Likewise.
64792         * lib/unistr/u8-strcat.c: Likewise.
64793         * lib/unistr/u8-strchr.c: Likewise.
64794         * lib/unistr/u8-strcmp.c: Likewise.
64795         * lib/unistr/u8-strcpy.c: Likewise.
64796         * lib/unistr/u8-strcspn.c: Likewise.
64797         * lib/unistr/u8-strdup.c: Likewise.
64798         * lib/unistr/u8-strlen.c: Likewise.
64799         * lib/unistr/u8-strmblen.c: Likewise.
64800         * lib/unistr/u8-strmbtouc.c: Likewise.
64801         * lib/unistr/u8-strncat.c: Likewise.
64802         * lib/unistr/u8-strncmp.c: Likewise.
64803         * lib/unistr/u8-strncpy.c: Likewise.
64804         * lib/unistr/u8-strnlen.c: Likewise.
64805         * lib/unistr/u8-strpbrk.c: Likewise.
64806         * lib/unistr/u8-strrchr.c: Likewise.
64807         * lib/unistr/u8-strspn.c: Likewise.
64808         * lib/unistr/u8-strstr.c: Likewise.
64809         * lib/unistr/u8-strtok.c: Likewise.
64810         * lib/unistr/u8-to-u16.c: Likewise.
64811         * lib/unistr/u8-to-u32.c: Likewise.
64812         * lib/unistr/u8-uctomb-aux.c: Likewise.
64813         * lib/unistr/u8-uctomb.c: Likewise.
64814         * lib/unitypes.h: Likewise.
64815         * lib/uniwidth.h: Likewise.
64816         * lib/uniwidth/cjk.h: Likewise.
64817         * lib/uniwidth/u16-strwidth.c: Likewise.
64818         * lib/uniwidth/u16-width.c: Likewise.
64819         * lib/uniwidth/u32-strwidth.c: Likewise.
64820         * lib/uniwidth/u32-width.c: Likewise.
64821         * lib/uniwidth/u8-strwidth.c: Likewise.
64822         * lib/uniwidth/u8-width.c: Likewise.
64823         * lib/uniwidth/width.c: Likewise.
64824
64825 2007-10-07  Bruno Haible  <bruno@clisp.org>
64826
64827         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
64828         The file is still under LGPL (see modules/inttypes).
64829
64830 2007-10-06  Bruno Haible  <bruno@clisp.org>
64831
64832         * modules/trunc (Dependencies): Add 'extensions'.
64833         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
64834         Reported by Ben Pfaff <blp@gnu.org>.
64835
64836 2007-10-06  Bruno Haible  <bruno@clisp.org>
64837
64838         * modules/freopen-tests: New file.
64839         * tests/test-freopen.c: New file.
64840
64841         * modules/fopen-tests: New file.
64842         * tests/test-fopen.c: New file.
64843
64844         * modules/fopen: New file.
64845         * lib/fopen.c: New file.
64846         * m4/fopen.m4: New file.
64847         * modules/freopen: New file.
64848         * lib/freopen.c: New file.
64849         * m4/freopen.m4: New file.
64850         * lib/stdio.in.h (fopen, freopen): New declarations.
64851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
64852         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64853         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
64854         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64855         * doc/functions/fopen.texi: Mention the 'fopen' module.
64856         * doc/functions/freopen.texi: Mention the 'freopen' module.
64857
64858 2007-10-06  Bruno Haible  <bruno@clisp.org>
64859
64860         * modules/open-tests: New file.
64861         * tests/test-open.c: New file.
64862
64863         * modules/open: New file.
64864         * lib/open.c: New file.
64865         * m4/open.m4: New file.
64866         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
64867         lib/open.c does.
64868         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
64869         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
64870         macros.
64871         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
64872         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
64873         REPLACE_OPEN.
64874         * doc/functions/open.texi: Mention the 'open' module.
64875
64876 2007-10-04  Bruno Haible  <bruno@clisp.org>
64877
64878         * modules/ceill-tests: New file.
64879         * tests/test-ceill.c: New file.
64880
64881         * modules/ceill: New file.
64882         * lib/ceill.c: Replace entire file.
64883         * m4/ceill.m4: New file.
64884         * lib/math.in.h (ceill): Replace declaration.
64885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
64886         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
64887         * doc/functions/ceill.texi: Mention the 'ceill' module.
64888         * modules/mathl (Files): Remove lib/ceill.c.
64889         (Depends-on): Add ceill.
64890
64891 2007-10-04  Bruno Haible  <bruno@clisp.org>
64892
64893         * modules/ceilf-tests: New file.
64894         * tests/test-ceilf.c: New file.
64895
64896         * modules/ceilf: New file.
64897         * lib/ceil.c: New file.
64898         * lib/ceilf.c: New file.
64899         * m4/ceilf.m4: New file.
64900         * lib/math.in.h (ceilf): New declaration.
64901         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
64902         HAVE_DECL_CEILF.
64903         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
64904         HAVE_DECL_CEILF.
64905         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
64906
64907 2007-10-04  Bruno Haible  <bruno@clisp.org>
64908
64909         * modules/floorl-tests: New file.
64910         * tests/test-floorl.c: New file.
64911
64912         * modules/floorl: New file.
64913         * lib/floorl.c: Replace entire file.
64914         * m4/floorl.m4: New file.
64915         * lib/math.in.h (floorl): Replace declaration.
64916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
64917         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
64918         * doc/functions/floorl.texi: Mention the 'floorl' module.
64919         * modules/mathl (Files): Remove lib/floorl.c.
64920         (Depends-on): Add floorl.
64921
64922 2007-10-04  Bruno Haible  <bruno@clisp.org>
64923
64924         * modules/floorf-tests: New file.
64925         * tests/test-floorf.c: New file.
64926
64927         * modules/floorf: New file.
64928         * lib/floor.c: New file.
64929         * lib/floorf.c: New file.
64930         * m4/floorf.m4: New file.
64931         * lib/math.in.h (floorf): New declaration.
64932         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
64933         HAVE_DECL_FLOORF.
64934         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
64935         HAVE_DECL_FLOORF.
64936         * doc/functions/floorf.texi: Mention the 'floorf' module.
64937
64938 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
64939             Bruno Haible  <bruno@clisp.org>
64940
64941         Advertise for the Git server instead of the CVS server.
64942         * doc/gnulib-intro.texi (Steady Development): Mention the Git
64943         repository instead of the CVS one.
64944         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
64945         about all VCS systems generically.
64946         * doc/gnulib.texi (Introduction): Capitalize `Git'.
64947
64948 2007-10-04  Bruno Haible  <bruno@clisp.org>
64949
64950         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
64951         means.
64952         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
64953
64954 2007-10-04  Bruno Haible  <bruno@clisp.org>
64955
64956         * modules/truncl-tests: New file.
64957         * tests/test-truncl.c: New file.
64958
64959         * modules/truncl: New file.
64960         * lib/truncl.c: New file.
64961         * m4/truncl.m4: New file.
64962         * lib/math.in.h (truncl): New declaration.
64963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
64964         HAVE_DECL_TRUNCL.
64965         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
64966         HAVE_DECL_TRUNCL.
64967         * doc/functions/truncl.texi: Mention the 'truncl' module.
64968
64969 2007-10-04  Bruno Haible  <bruno@clisp.org>
64970
64971         * modules/truncf-tests: New file.
64972         * tests/test-truncf.c: New file.
64973
64974         * modules/truncf: New file.
64975         * lib/trunc.c: Make paramerizable through USE_* macros.
64976         * lib/truncf.c: New file.
64977         * m4/truncf.m4: New file.
64978         * lib/math.in.h (truncf): New declaration.
64979         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
64980         HAVE_DECL_TRUNCF.
64981         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
64982         HAVE_DECL_TRUNCF.
64983         * doc/functions/truncf.texi: Mention the 'truncf' module.
64984
64985 2007-10-03  Bruno Haible  <bruno@clisp.org>
64986
64987         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
64988         augmentation also for tests modules.
64989         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
64990         * modules/atexit-tests (Makefile.am): Likewise.
64991         * modules/binary-io-tests (Makefile.am): Likewise.
64992         * modules/c-strcase-tests (Makefile.am): Likewise.
64993         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
64994         * modules/canonicalize-tests (Makefile.am): Likewise.
64995         * modules/closein-tests (Makefile.am): Likewise.
64996         * modules/fprintf-posix-tests (Makefile.am): Likewise.
64997         * modules/freadahead-tests (Makefile.am): Likewise.
64998         * modules/fseek-tests (Makefile.am): Likewise.
64999         * modules/fseeko-tests (Makefile.am): Likewise.
65000         * modules/ftell-tests (Makefile.am): Likewise.
65001         * modules/ftello-tests (Makefile.am): Likewise.
65002         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65003         * modules/isnanl-tests (Makefile.am): Likewise.
65004         * modules/lseek-tests (Makefile.am): Likewise.
65005         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65006         * modules/mbscasestr-tests (Makefile.am): Likewise.
65007         * modules/mbschr-tests (Makefile.am): Likewise.
65008         * modules/mbscspn-tests (Makefile.am): Likewise.
65009         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65010         * modules/mbspbrk-tests (Makefile.am): Likewise.
65011         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65012         * modules/mbsrchr-tests (Makefile.am): Likewise.
65013         * modules/mbsspn-tests (Makefile.am): Likewise.
65014         * modules/mbsstr-tests (Makefile.am): Likewise.
65015         * modules/printf-posix-tests (Makefile.am): Likewise.
65016         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65017         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65018         * modules/tsearch-tests (Makefile.am): Likewise.
65019         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65020         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65021         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65022         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65023         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65024         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65025         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65026         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65027         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65028         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65029         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65030         * modules/xstrtol-tests (Makefile.am): Likewise.
65031         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65032         * modules/yesno-tests (Makefile.am): Likewise.
65033
65034 2007-10-03  Bruno Haible  <bruno@clisp.org>
65035
65036         * modules/trunc-tests: New file.
65037         * tests/test-trunc.c: New file.
65038
65039         * modules/trunc: New file.
65040         * lib/trunc.c: New file.
65041         * m4/trunc.m4: New file.
65042         * lib/math.in.h (trunc): New declaration.
65043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65044         HAVE_DECL_TRUNC.
65045         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65046         HAVE_DECL_TRUNC.
65047         * doc/functions/trunc.texi: Mention the 'trunc' module.
65048
65049 2007-10-03  Bruno Haible  <bruno@clisp.org>
65050
65051         * tests/test-fpending.c: New file, mostly copied
65052         from coreutils/lib/t-fpending.c.
65053         * modules/fpending-tests: New file.
65054
65055 2007-10-03  Bruno Haible  <bruno@clisp.org>
65056
65057         Port the stdio extensions to QNX (untested).
65058         * lib/fseterr.c (fseterr): Add support for QNX.
65059         * lib/fbufmode.c (fbufmode): Likewise.
65060         * lib/freadable.c (freadable): Likewise.
65061         * lib/fwritable.c (fwritable): Likewise.
65062         * lib/freading.c (freading): Likewise.
65063         * lib/fwriting.c (fwriting): Likewise.
65064         * lib/freadahead.c (freadahed): Likewise.
65065         * lib/fpurge.c (fpurge): Likewise.
65066         * lib/fseeko.c (rpl_fseeko): Likewise.
65067
65068 2007-10-03  Bruno Haible  <bruno@clisp.org>
65069             Jim Meyering  <jim@meyering.net>
65070             Eric Blake  <ebb9@byu.net>
65071
65072         * doc/relocatable.texi: Use @command instead of @program.
65073
65074 2007-10-02  Jim Meyering  <jim@meyering.net>
65075
65076         Perform one more "_.h" -> ".in.h" substitution.
65077         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65078         instead of unistd_.h here, too.
65079
65080 2007-10-01  Bruno Haible  <bruno@clisp.org>
65081
65082         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65083         Needed for the alloca-opt module.
65084
65085 2007-09-30  Bruno Haible  <bruno@clisp.org>
65086
65087         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65088         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65089         alloca_.h.
65090         * lib/argz.in.h: Renamed from lib/argz_.h.
65091         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65092         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65093         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65094         byteswap_.h.
65095         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65096         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65097         dirent_.h.
65098         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65099         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65100         fcntl_.h.
65101         * lib/float.in.h: Renamed from lib/float_.h.
65102         * modules/float (Files, Makefile.am): Use float.in.h instead of
65103         float_.h.
65104         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65105         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65106         fnmatch_.h.
65107         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65108         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65109         getopt_.h.
65110         * lib/glob.in.h: Renamed from lib/glob_.h.
65111         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65112         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65113         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65114         iconv_.h.
65115         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65116         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65117         inttypes_.h.
65118         * lib/locale.in.h: Renamed from lib/locale_.h.
65119         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65120         locale_.h.
65121         * lib/math.in.h: Renamed from lib/math_.h.
65122         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65123         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65124         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65125         of netinet_in_.h. Add dependency.
65126         * lib/poll.in.h: Renamed from lib/poll_.h.
65127         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65128         * lib/search.in.h: Renamed from lib/search_.h.
65129         * modules/search (Files, Makefile.am): Use search.in.h instead of
65130         search_.h.
65131         * lib/signal.in.h: Renamed from lib/signal_.h.
65132         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65133         _signal.h.
65134         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65135         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65136         stdbool_.h.
65137         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65138         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65139         stdint_.h.
65140         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65141         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65142         stdio_.h.
65143         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65144         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65145         stdlib_.h.
65146         * lib/string.in.h: Renamed from lib/string_.h.
65147         * modules/string (Files, Makefile.am): Use string.in.h instead of
65148         string_.h.
65149         * doc/gnulib-tool.texi (Initial import): Update.
65150         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65151         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65152         of sys_select_.h. Add dependency.
65153         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65154         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65155         of sys_socket_.h.
65156         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65157         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65158         sys_stat_.h.
65159         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65160         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65161         sys_time_.h.
65162         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65163         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65164         sysexits_.h.
65165         * lib/time.in.h: Renamed from lib/time_.h.
65166         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65167         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65168         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65169         unistd_.h.
65170         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65171         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65172         wchar_.h.
65173         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65174         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65175         wctype_.h.
65176         * build-aux/bootstrap (slurp): Update.
65177         * lib/.cppi-disable: Update.
65178
65179 2007-09-30  Bruno Haible  <bruno@clisp.org>
65180
65181         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65182         Needed on BeOS.
65183
65184 2007-09-30  Bruno Haible  <bruno@clisp.org>
65185
65186         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65187
65188 2007-09-29  Bruno Haible  <bruno@clisp.org>
65189
65190         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65191
65192 2007-09-29  Bruno Haible  <bruno@clisp.org>
65193
65194         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65195         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65196         * build-aux/install-reloc: Compile also areadlink.c.
65197         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65198
65199 2007-09-29  Bruno Haible  <bruno@clisp.org>
65200
65201         * gnulib-tool (func_emit_initmacro_done): Indentation.
65202
65203 2007-09-29  Bruno Haible  <bruno@clisp.org>
65204
65205         * README: Add CVS checkout update instructions.
65206         Info from Bob Proulx <bob@proulx.com>.
65207
65208 2007-09-28  Eric Blake  <ebb9@byu.net>
65209
65210         Provide move-if-change.
65211         * build-aux/move-if-change: New file, based on best practice
65212         rather than any canonical upstream location.
65213
65214 2007-09-28  Jim Meyering  <jim@meyering.net>
65215
65216         Fix canonicalize loop-detection corner case.
65217         Do not attempt to stat the symlink values stored via seen_triple.
65218         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65219         on linux-2.6.18, (but not 2.6.22).
65220         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65221         triple_compare.  The former compares dev,ino,filename, while the latter
65222         would actually stat dirname(filename) when dev and ino were equal.
65223         * lib/hash-triple.c: Install <string.h>.
65224         (STREQ): Define.
65225         (triple_compare_ino_str): New function.
65226         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65227
65228 2007-09-28  Eric Blake  <ebb9@byu.net>
65229
65230         Enforce that AC_REPLACE_FUNCS files exist.
65231         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65232         override check for typos.
65233
65234         Fix test-closein on Solaris 10.
65235         * tests/test-closein.c (main): Don't assume stdin can be inherited
65236         closed on all systems.
65237         * tests/test-closein.sh: Likewise.
65238         Reported by Piotr Tarnowski.
65239
65240 2007-09-28  Jim Meyering  <jim@meyering.net>
65241
65242         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65243
65244 2007-09-27  Jim Meyering  <jim@meyering.net>
65245
65246         canonicalize: Avoid a false-positive cycle failure.
65247         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65248         Sort.  Remove cycle-check.
65249         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65250         not cycle-check.h.
65251         (seen_triple): New function.
65252         (canonicalize_filename_mode): Use it instead of cycle-check.
65253         * tests/test-canonicalize.c: Add a test for this bug.
65254         * tests/test-canonicalize.sh: Set up and run the test.
65255
65256         New module, file-set, from coreutils.
65257         * modules/file-set: Define it.
65258         * lib/file-set.c, lib/file-set.h: Implement.
65259
65260         New module, hash-triple, from coreutils.
65261         * modules/hash-triple: Define it.
65262         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65263
65264 2007-09-25  Eric Blake  <ebb9@byu.net>
65265
65266         Fix strerror on Interix.
65267         * lib/string_.h (strerror): Declare replacement.
65268         * doc/functions/strerror.texi (strerror): Document the Interix
65269         shortcoming.
65270         * modules/string (Makefile.am): Support new hooks.
65271         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65272         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65273         gl_FUNC_STRERROR_SEPARATE.
65274         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65275         * lib/strerror.c (rpl_strerror): Provide replacement.
65276         * modules/strerror (Depends-on): Add string.
65277         (configure.ac): Detect use of module.
65278         * tests/test-strerror.c: New file.
65279         * modules/strerror-tests: New test module.
65280         * modules/argp (Depends-on): Add strerror.
65281         * modules/error (Depends-on): Likewise.
65282         Reported by Martin Koeppe.
65283
65284 2007-09-24  Bruno Haible  <bruno@clisp.org>
65285
65286         * README: Update git instructions.
65287
65288 2007-09-24  Eric Blake  <ebb9@byu.net>
65289
65290         Revert fpending breakage from 2007-09-08.
65291         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65292         __fpending.c.
65293
65294 2007-09-24  Jim Meyering  <jim@meyering.net>
65295
65296         filenamecat.c: Add a test.
65297         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65298         showing how the function works when DIR is the empty string.
65299
65300 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65301
65302         * tests/test-canonicalize.sh: Turn on executable bit.
65303
65304 2007-09-19  Eric Blake  <ebb9@byu.net>
65305
65306         * README: Update CVS instructions.
65307
65308 2007-09-18  Bruno Haible  <bruno@clisp.org>
65309
65310         * modules/areadlink: New file.
65311         * lib/areadlink.h (areadlink): New declaration.
65312         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65313
65314 2007-09-17  Jim Meyering  <jim@meyering.net>
65315
65316         * lib/savewd.c (ESTALE) [!defined]: Define.
65317         Reported to be required on Interix by Martin Koeppe.
65318
65319 2007-09-17  Bruno Haible  <bruno@clisp.org>
65320
65321         * gnulib-tool (func_version): Use $version.
65322
65323 2007-09-16  Bruno Haible  <bruno@clisp.org>
65324
65325         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65326         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65327         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65328         Reported by Greg Schafer <gschafer@zip.com.au>.
65329
65330 2007-09-15  Bruno Haible  <bruno@clisp.org>
65331
65332         * gnulib-tool (sed): Try a little harder to make bash understand the
65333         alias.
65334         Reported by Bruce Korb <bruce.korb@gmail.com>.
65335
65336 2007-09-13  Eric Blake  <ebb9@byu.net>
65337
65338         * ChangeLog: Remove conflict markers.
65339
65340 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65341
65342         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65343         Reported by Bruno Haible <bruno@clisp.org>.
65344
65345 2007-09-12  Bruno Haible  <bruno@clisp.org>
65346
65347         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65348         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65349         is not defined.
65350
65351 2007-09-12  Eric Blake  <ebb9@byu.net>
65352
65353         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65354         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65355         Autoconf definition.
65356         * modules/euidaccess (Depends-on): Add extensions, for
65357         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65358         * modules/fnmatch (Depends-on): Likewise.
65359         * modules/getaddrinfo (Depends-on): Likewise.
65360         * modules/getdelim (Depends-on): Likewise.
65361         * modules/getline (Depends-on): Likewise.
65362         * modules/getsubopt (Depends-on): Likewise.
65363         * modules/gettext (Depends-on): Likewise.
65364         * modules/group-member (Depends-on): Likewise.
65365         * modules/mbchar (Depends-on): Likewise.
65366         * modules/memmem (Depends-on): Likewise.
65367         * modules/mempcpy (Depends-on): Likewise.
65368         * modules/memrchr (Depends-on): Likewise.
65369         * modules/pagealign_alloc (Depends-on): Likewise.
65370         * modules/readutmp (Depends-on): Likewise.
65371         * modules/stpcpy (Depends-on): Likewise.
65372         * modules/stpncpy (Depends-on): Likewise.
65373         * modules/strchrnul (Depends-on): Likewise.
65374         * modules/strndup (Depends-on): Likewise.
65375         * modules/strsep (Depends-on): Likewise.
65376         * modules/strverscmp (Depends-on): Likewise.
65377         * modules/vasprintf (Depends-on): Likewise.
65378         * modules/wcwidth (Depends-on): Likewise.
65379         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65380         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65381         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65382         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65383         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65384         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65385         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65386         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65387         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65388         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65389         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65390         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65391         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65392         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65393         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65394         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65395         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65396         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65397         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65398         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65399         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65400         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65401         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65402         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65403         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65405         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65406         so that lock.m4 can be used in gettext without extensions module.
65407
65408 2007-09-11  Bruno Haible  <bruno@clisp.org>
65409
65410         * m4/isc-posix.m4: Remove file.
65411         Suggested by Eric Blake.
65412
65413 2007-09-11  Eric Blake  <ebb9@byu.net>
65414
65415         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65416
65417 2007-09-10  Bruno Haible  <bruno@clisp.org>
65418
65419         * posix-modules: Fix typo in error message.
65420         Reported by Matt <mkraai@beckman.com>.
65421
65422 2007-09-09  Bruno Haible  <bruno@clisp.org>
65423
65424         * doc/functions/getdelim.texi: Update list of platforms lacking the
65425         function.
65426         * doc/functions/getline.texi: Likewise.
65427
65428 2007-09-09  Jim Meyering  <jim@meyering.net>
65429
65430         * lib/hash.c (hash_initialize): Detect calloc failure.
65431         Reported by Bruno Haible.
65432
65433 2007-09-09  Bruno Haible  <bruno@clisp.org>
65434
65435         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65436         malloc or realloc fails.
65437
65438 2007-09-09  Bruno Haible  <bruno@clisp.org>
65439
65440         * modules/getcwd (Depends-on): Add malloc-posix.
65441         * modules/glob (Depends-on): Likewise.
65442         * modules/putenv (Depends-on): Likewise.
65443         * modules/strdup (Depends-on): Likewise.
65444         * modules/getdelim (Depends-on): Add realloc-posix.
65445         * modules/read-file (Depends-on): Likewise.
65446
65447 2007-09-09  Bruno Haible  <bruno@clisp.org>
65448
65449         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65450         (gl_FUNC_MALLOC_POSIX): Require it.
65451         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65452         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65453         * modules/realloc (Files): Add m4/malloc.m4.
65454         * modules/calloc (Files): Likewise.
65455
65456 2007-09-09  Bruno Haible  <bruno@clisp.org>
65457
65458         * modules/malloc-posix: New file.
65459         * modules/malloc (Depends-on): Add malloc-posix.
65460         * lib/malloc.c: Include errno.h.
65461         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65462         and a POSIX-compatible malloc into a single function. Set ENOMEM
65463         when returning NULL.
65464         * m4/malloc.m4: New file.
65465         * doc/functions/malloc.texi: Mention the malloc-posix module.
65466         * lib/stdlib_.h (malloc): New declaration.
65467         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65468         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65469         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65470         and HAVE_MALLOC_POSIX.
65471
65472 2007-09-09  Bruno Haible  <bruno@clisp.org>
65473
65474         * modules/realloc-posix: New file.
65475         * modules/realloc (Depends-on): Add realloc-posix.
65476         * lib/realloc.c: Include errno.h.
65477         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65478         and a POSIX-compatible realloc into a single function. Set ENOMEM
65479         when returning NULL.
65480         * m4/realloc.m4: New file.
65481         * doc/functions/realloc.texi: Mention the realloc-posix module.
65482         * lib/stdlib_.h (realloc): New declaration.
65483         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65484         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65485         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65486         and HAVE_REALLOC_POSIX.
65487
65488 2007-09-09  Bruno Haible  <bruno@clisp.org>
65489
65490         * modules/calloc-posix: New file.
65491         * modules/calloc (Depends-on): Add calloc-posix.
65492         * lib/calloc.c: Include errno.h.
65493         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65494         and a POSIX-compatible calloc into a single function. Set ENOMEM
65495         when returning NULL.
65496         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65497         * doc/functions/calloc.texi: Mention the calloc-posix module.
65498         * lib/stdlib_.h (calloc): New declaration.
65499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65500         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65501         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65502         and HAVE_CALLOC_POSIX.
65503
65504 2007-09-09  Bruno Haible  <bruno@clisp.org>
65505
65506         Allow for modules to show an arbitrary notice.
65507         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65508         * gnulib-tool: New option --extract-notice.
65509         (func_usage): Document it.
65510         (sed_extract_prog): Update.
65511         (func_get_notice): New function.
65512         (func_modules_notice): New function.
65513         (func_import, func_create_testdir): Invoke it.
65514         Suggested by Jim Meyering.
65515
65516 2007-09-09  Bruno Haible  <bruno@clisp.org>
65517
65518         * gnulib-tool: New options --verbose, --quiet.
65519         (func_usage): Document them.
65520         (verbose): New variable.
65521         (func_execute_command): New function.
65522         (func_import): Don't show the module list and the file list if
65523         $verbose < 0.
65524         (func_create_testdir): Likewise. Use func_execute_command.
65525         (func_create_megatestdir): Use func_execute_command.
65526
65527 2007-09-08  Bruno Haible  <bruno@clisp.org>
65528
65529         * gnulib-tool (func_import): Prefer rsync over wget when available,
65530         for fetching the PO files.
65531
65532 2007-09-08  Bruno Haible  <bruno@clisp.org>
65533
65534         * posix-modules: New file. Portions copied from gnulib-tool.
65535         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65536
65537 2007-09-08  Jim Meyering  <jim@meyering.net>
65538
65539         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65540         * lib/fpending.h: Rename from __fpending.h.
65541         * lib/fpending.c: Rename from __fpending.c.
65542         Include "fpending.h", not "__fpending.h".
65543         * lib/__fpending.h, lib/__fpending.c: Remove files.
65544         * modules/fpending (Files): Reflect new file names.
65545         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65546
65547 2007-09-08  Bruno Haible  <bruno@clisp.org>
65548
65549         * m4/inttypes-h.m4: Remove stub file.
65550
65551 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65552
65553         * doc/headers/stdint.texi: Discuss #include_next issue.
65554
65555 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65556
65557         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65558
65559 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65560
65561         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65562         in variable name.
65563
65564 2007-09-03  Jim Meyering  <jim@meyering.net>
65565
65566         New module: git-version-gen.
65567         * modules/git-version-gen: New file.
65568
65569         Import changes from coreutils for bootstrap script.
65570
65571         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65572
65573         bootstrap: uses rsync to download the .po files
65574         * build-aux/bootstrap (po_download_command_format): New global.
65575         (download_po_files): Use rsync.
65576         (update_po_files): Don't remove .po files after download,
65577         so future rsync runs can take advantage of the copies.
65578
65579         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65580
65581         Solve the unnecessary-.po-file-regeneration problem once and for all.
65582         * build-aux/bootstrap (download_po_files): New function, renamed from
65583         get_translations.  Now, downloads, but doesn't update LINGUAS.
65584         (update_po_files): New function.
65585
65586         bootstrap: Ignore more.
65587         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
65588         uniwidth to e.g., lib/.gitignore.
65589         (slurp): Handle the sys_stat_.h -> sys mapping, too.
65590
65591         * build-aux/bootstrap: New setting: vc_ignore.
65592         (insert_sorted_if_absent): Create $file if absent.
65593         Adapt to new, possibly empty, list: $vc_ignore.
65594
65595         bootstrap: generate more ignorable names
65596         * build-aux/bootstrap (slurp): When generating ignorable names,
65597         also map .sin to .sed, .gperf to .c, and .y to .c.
65598
65599 2007-09-03  Jim Meyering  <jim@meyering.net>
65600
65601         * build-aux/git-version-gen: New file, from coreutils.  For details, see
65602         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
65603
65604 2007-09-02  Bruno Haible  <bruno@clisp.org>
65605
65606         Fix mis-recognition of 'mcs' on QNX 6.
65607         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
65608         output contains the string "Mono".
65609         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
65610         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
65611
65612 2007-09-01  Bruno Haible  <bruno@clisp.org>
65613
65614         Fix collision between uniwidth/* and linebreak modules.
65615         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
65616         u32_width): Remove declarations.
65617         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
65618         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
65619         streq3, streq2, streq1, streq0): Remove functions.
65620         (STREQ): Remove macro.
65621         (is_cjk_encoding): Remove function.
65622         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
65623         (uc_width, u8_width, u16_width, u32_width): Remove functions.
65624         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
65625         * NEWS: Document the change.
65626
65627 2007-09-01  Bruno Haible  <bruno@clisp.org>
65628
65629         * lib/streq.h: Add double-inclusion guard.
65630
65631 2007-09-01  Karl Berry  <karl@gnu.org>
65632
65633         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
65634
65635 2007-08-28  Jim Meyering  <jim@meyering.net>
65636
65637         Rename mreadlink_with_size to areadlink_with_size.
65638         * NEWS: Document the change.
65639         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
65640         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
65641         * lib/mreadlink.h: Rename this to...
65642         * lib/areadlink.h: ...this.
65643         * modules/mreadlink-with-size: Rename this to...
65644         * modules/areadlink-with-size: ...this.
65645         * lib/canonicalize.c: Reflect the renaming.
65646         * modules/canonicalize: Likewise.
65647
65648 2007-08-26  Bruno Haible  <bruno@clisp.org>
65649
65650         * gnulib-tool (func_import): When deciding which files to remove,
65651         consider also dangling symbolic links.
65652         Reported by Eric Blake.
65653
65654 2007-08-26  Bruno Haible  <bruno@clisp.org>
65655
65656         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
65657
65658 2007-08-23  Simon Josefsson  <simon@josefsson.org>
65659
65660         * lib/readline.c: Don't include getline.h, the prototype is now
65661         found in stdio.h.
65662
65663 2007-08-23  Jim Meyering  <jim@meyering.net>
65664
65665         Getdelim touchup.
65666         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
65667         around the funlockfile call, since funlockfile never sets errno.
65668         Don't set errno upon failed realloc.
65669
65670 2007-08-22  Eric Blake  <ebb9@byu.net>
65671
65672         Getline touchups.
65673         * lib/getdelim.c (getdelim): Revert regression that required *n to
65674         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
65675         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
65676         getdelim, rather than whether implementation is missing.
65677         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
65678         * lib/stdio_.h (getline): Also declare if replacement is
65679         required.
65680         * doc/functions/getdelim.texi: New file.
65681         * doc/functions/getline.texi: Likewise.
65682         * doc/gnulib.texi (Function Substitutes): Add new files.
65683         Reported by Bruno Haible.
65684
65685 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
65686
65687         * users.txt: Add Guile.
65688
65689 2007-08-22  Eric Blake  <ebb9@byu.net>
65690
65691         * tests/test-getdelim.c (main): Use remove, not unlink.
65692         * tests/test-getline.c (main): Likewise.
65693
65694         Move getline and getdelim into stdio.h, per POSIX 200x.
65695         * modules/getline (Files): Remove getline.h.
65696         (Depends-on): Add stdio.
65697         (configure.ac): Add module indicator.
65698         * modules/getdelim (Files): Remove getdelim.h.
65699         (Depends-on): Add stdio.
65700         (configure.ac): Add module indicator.
65701         * modules/stdio (Makefile.am): Work with new indicators.
65702         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
65703         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
65704         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65705         * lib/getdelim.h: Delete.
65706         * lib/getline.h: Delete.
65707         * lib/stdio_.h (getdelim, getline): Declare.
65708         * modules/getdelim-tests: New module.
65709         * modules/getline-tests: Likewise.
65710         * tests/test-getdelim.c: New file.
65711         * tests/test-getline.c: Likewise.
65712         * NEWS: Document the change.
65713         * lib/getline.c: Update choice of header.
65714         * lib/csharpcomp.c: Likewise.
65715         * lib/getpass.c: Likewise.
65716         * lib/javacomp.c: Likewise.
65717         * lib/javaversion.c: Likewise.
65718         * lib/yesno.c: Likewise.
65719         * lib/getdelim.c: Likewise.
65720         (getdelim): Set errno on failure, and avoid memory leak.
65721
65722 2007-08-19  Bruno Haible  <bruno@clisp.org>
65723
65724         * modules/closein (Depends-on): Add freadahead.
65725         * lib/closein.c: Include freadahead.h.
65726         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
65727         is zero.
65728
65729 2007-08-19  Bruno Haible  <bruno@clisp.org>
65730
65731         * modules/freadahead-tests: New file.
65732         * tests/test-freadahead.sh: New file.
65733         * tests/test-freadahead.c: New file.
65734
65735         * modules/freadahead: New file.
65736         * lib/freadahead.h: New file.
65737         * lib/freadahead.c: New file.
65738         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
65739         fbufmode, fpurge, freadable, fwritable.
65740
65741 2007-08-19  Eric Blake  <ebb9@byu.net>
65742
65743         Test yesno in combination with closein.
65744         * lib/yesno.c (yesno): Document use of stdin.
65745         * modules/yesno-tests (Files): New module.
65746         * tests/test-yesno.c (main): New file.
65747         * tests/test-yesno.sh: Likewise.
65748
65749 2007-08-19  Bruno Haible  <bruno@clisp.org>
65750
65751         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
65752         * lib/fseeko.c (rpl_fseeko): Likewise.
65753         * lib/fseterr.c (fseterr): Likewise.
65754
65755 2007-08-19  Bruno Haible  <bruno@clisp.org>
65756
65757         * tests/test-lseek.c (main): Disable a test for BeOS.
65758         * doc/functions/lseek.texi: Document the BeOS bug.
65759
65760 2007-08-19  Bruno Haible  <bruno@clisp.org>
65761             Eric Blake  <ebb9@byu.net>
65762
65763         * lib/lseek.c: Include <sys/stat.h>.
65764         (rpl_lseek): Add workaround code also for Unix platforms.
65765         Needed for BeOS.
65766         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
65767         * doc/functions/lseek.texi: Document BeOS definiency.
65768
65769 2007-08-18  Bruno Haible  <bruno@clisp.org>
65770
65771         * modules/fstrcmp-tests: New file.
65772         * tests/test-fstrcmp.c: New file.
65773
65774 2007-08-18  Bruno Haible  <bruno@clisp.org>
65775
65776         * modules/fstrcmp: New file, from GNU gettext with modifications.
65777         * lib/fstrcmp.h: New file, from GNU gettext.
65778         * lib/fstrcmp.c: New file, from GNU gettext.
65779         * MODULES.html.sh (String handling): Add fstrcmp.
65780
65781 2007-08-18  Bruno Haible  <bruno@clisp.org>
65782
65783         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
65784         'bool'.
65785         (diag, compareseq): Remove const from the ctxt argument.
65786         (USE_HEURISTIC): Undefine at the end.
65787
65788 2007-08-18  Jim Meyering  <jim@meyering.net>
65789
65790         New file: lib/idcache.h
65791         * NEWS: Mention the addition.
65792         * modules/idcache (Files): Add lib/idcache.h
65793         * lib/idcache.c: Include "idcache.h".
65794         Don't include <sys/types.h>.
65795         Add a FIXME comment.
65796         Move file-scoped "static" declarations to the top.
65797         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
65798
65799 2007-08-17  Bruno Haible  <bruno@clisp.org>
65800         and Paul Eggert  <eggert@cs.ucla.edu>
65801
65802         * MODULES.html.sh: Add diffseq.
65803         * modules/diffseq: New file.
65804         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
65805         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
65806
65807 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65808
65809         Import changes from coreutils for bootstrap script.
65810
65811         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
65812
65813         * build-aux/bootstrap (slurp): Work even in environments where
65814         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
65815         current code does not slurp files whose names start with ".", and
65816         this looks like it might be a troublesome area.
65817
65818         2007-07-11  Jim Meyering  <jim@meyering.net>
65819
65820         If there's a GPL vN copyright comment, require that N == 3.
65821
65822         2007-07-08  Jim Meyering  <jim@meyering.net>
65823
65824         Run the coreutils-specific code only if tests/Makefile.am.in exists.
65825         * build-aux/bootstrap (mam_template): Move definition out of loop.
65826
65827         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
65828
65829         * build-aux/bootstrap (symlink_to_dir): Rename function from
65830         symlink_to_gnulib.  Add a directory parameter.  Update all
65831         callers.
65832         (cp_mark_as_generated): Also check for -- and link to -- files in
65833         gl/.
65834
65835         2007-07-08  Jim Meyering  <jim@meyering.net>
65836
65837         Adapt to deeper hierarchy in gnulib.
65838         * build-aux/bootstrap (symlink_to_dir): If the destination
65839         directory doesn't exist, create it. This is required at least for
65840         "lib/uniwidth/cjk.h".
65841
65842         2007-05-15  Jim Meyering  <jim@meyering.net>
65843
65844         * build-aux/bootstrap: Now that generated Makefile.am files
65845         are no longer under version control, they must be created at
65846         bootstrap time.
65847
65848 2007-08-14  Ben Pfaff  <blp@gnu.org>
65849
65850         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
65851
65852 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65853
65854         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
65855         given the changes below.
65856         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
65857         even on hosts that have padding bits beyond the supported 64.
65858
65859 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65860
65861         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
65862         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
65863         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
65864         depends on it.
65865         (xstrtol_error): Remove.
65866         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
65867         but with a different signature.
65868         (ATTRIBUTE_NORETURN, __attribute__): New macros.
65869         * lib/xstrtol-error.c: Include exitfail.h.
65870         (xstrtol_fatal): New function, with a different signature from the
65871         old xstrtol_error, so that the caller need not worry about passing
65872         in an exit status, or about storage management of the option argument.
65873         (xstrtol_error): Now a static function.  Redo signature to
65874         implement xstrtol_fatal.  Output the correct number of hyphens in
65875         front of the option so that the caller need not worry about
65876         storage management.
65877         (N_): New macro.
65878         (_): Remove; not used now.
65879         * modules/xstrtol: Depend on getopt.
65880         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
65881         of old STRTOL_FATAL_ERROR macro.
65882         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
65883         of test program.
65884         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
65885         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
65886
65887 2007-08-08  Eric Blake  <ebb9@byu.net>
65888
65889         * lib/xstrtol-error.c: Add missing include.
65890
65891         Move xstrtol messages into gnulib domain, when --pobase is used.
65892         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
65893         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
65894         * modules/xstrtol (Files): Distribute new file.
65895         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
65896         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
65897         * tests/test-xstrtol.c: ...into new file.
65898         * tests/test-xstrtoul.c: Also test xstrtoul.
65899         * tests/test-xstrtoimax.c: Also test xstrtoimax.
65900         * tests/test-xstrtoumax.c: Also test xstrtoumax.
65901         * tests/test-xstrtol.sh: Drive the tests.
65902         * tests/test-xstrtoimax.sh: Likewise.
65903         * tests/test-xstrtoumax.sh: Likewise.
65904         * modules/xstrtol-tests: New module.
65905         * modules/xstrtoimax-tests: Likewise.
65906         * modules/xstrtoumax-tests: Likewise.
65907
65908 2007-08-08  Jim Meyering  <jim@meyering.net>
65909
65910         New function: mfile_name_concat.
65911         * lib/filenamecat.c (mfile_name_concat): New function, just like
65912         file_name_concat, but return NULL upon failure rather than exiting
65913         with a diagnostic.
65914         * lib/filenamecat.h: Declare it.
65915
65916 2007-08-07  Bruno Haible  <bruno@clisp.org>
65917
65918         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
65919         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
65920         warning from gcc.
65921         Reported by Eric Blake.
65922
65923 2007-08-07  Simon Josefsson  <simon@josefsson.org>
65924
65925         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
65926         * modules/crypto/arcfour (License): Likewise.
65927         * modules/crypto/des-tests (License): Likewise.
65928         * modules/crypto/gc-arctwo-tests (License): Likewise.
65929         * modules/crypto/gc-des-tests (License): Likewise.
65930         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
65931         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
65932         * modules/crypto/gc-md2-tests (License): Likewise.
65933         * modules/crypto/gc-md4-tests (License): Likewise.
65934         * modules/crypto/gc-md5-tests (License): Likewise.
65935         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
65936         * modules/crypto/gc-rijndael-tests (License): Likewise.
65937         * modules/crypto/gc-sha1-tests (License): Likewise.
65938         * modules/crypto/gc-tests (License): Likewise.
65939         * modules/crypto/hmac-md5 (License): Likewise.
65940         * modules/crypto/hmac-sha1 (License): Likewise.
65941         * modules/crypto/md2-tests (License): Likewise.
65942         * modules/crypto/md4-tests (License): Likewise.
65943         * modules/crypto/md5 (License): Likewise.
65944         * modules/crypto/rijndael (License): Likewise.
65945         * modules/crypto/sha1 (License): Likewise.
65946         * modules/memxor (License): Likewise.
65947
65948 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65949         and Bruno Haible  <bruno@clisp.org>
65950
65951         * NEWS: Describe interface changes to human, xstrtol.
65952         * lib/human.h: Include <xstrtol.h>.
65953         (human_options): Return enum strtol_error, not int.  Remove
65954         bool arg; take int * instead.
65955         * lib/human.c: Don't include "gettext.h".
65956         (_): Remove; no longer used.
65957         Don't include <xstrtol.h>, since human.h does it.
65958         (human_options): Adjust to abovementioned interface changes.
65959         Do not report error to stderr; that's now the caller's
65960         responsibility.
65961         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
65962         interface change.
65963         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
65964         Str, Argument_type_string.  All uses changed.  Put " argument"
65965         in diagnostics to make them clearer.  Change wording of suffix
65966         message for clarity.
65967         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
65968         Argument_type_string.
65969         (STRTOL_FATAL_WARN): Remove; no longer used.
65970         * modules/human (Depends-on): Remove gettext-h.
65971
65972 2007-08-06  Simon Josefsson  <simon@josefsson.org>
65973
65974         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
65975
65976 2007-07-31  Bruno Haible  <bruno@clisp.org>
65977
65978         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
65979         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
65980         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
65981
65982 2007-07-31  Bruno Haible  <bruno@clisp.org>
65983
65984         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
65985         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
65986
65987 2007-07-30  Bruno Haible  <bruno@clisp.org>
65988
65989         * modules/base64 (License): Use the synonymous term "LGPLv2+".
65990         * modules/c-ctype (License): Likewise.
65991         * modules/c-strcase (License): Likewise.
65992         * modules/check-version (License): Likewise.
65993         * modules/iconv (License): Likewise.
65994         * modules/iconv_open (License): Likewise.
65995         * modules/read-file (License): Likewise.
65996         * modules/striconv (License): Likewise.
65997         * modules/strverscmp (License): Likewise.
65998         * modules/vasprintf (License): Likewise.
65999         * modules/crypto/des (License): Likewise.
66000         * modules/crypto/gc (License): Likewise.
66001         * modules/crypto/gc-arcfour (License): Likewise.
66002         * modules/crypto/gc-arctwo (License): Likewise.
66003         * modules/crypto/gc-des (License): Likewise.
66004         * modules/crypto/gc-hmac-md5 (License): Likewise.
66005         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66006         * modules/crypto/gc-md2 (License): Likewise.
66007         * modules/crypto/gc-md4 (License): Likewise.
66008         * modules/crypto/gc-md5 (License): Likewise.
66009         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66010         * modules/crypto/gc-random (License): Likewise.
66011         * modules/crypto/gc-rijndael (License): Likewise.
66012         * modules/crypto/gc-sha1 (License): Likewise.
66013         * modules/crypto/md2 (License): Likewise.
66014         * modules/crypto/md4 (License): Likewise.
66015
66016 2007-07-30  Jim Meyering  <jim@meyering.net>
66017
66018         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66019         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66020         it has valid stat data.  This bug would cause du not to count the
66021         sizes of inaccessible directories.
66022         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66023         in <http://bugzilla.redhat.com/250077>.
66024
66025 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66026             Bruno Haible  <bruno@clisp.org>
66027
66028         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66029         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66030         #include_next, gives a diagnostic about it, but reports no error in
66031         the exit code.
66032         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66033
66034 2007-07-24  Ben Pfaff  <blp@gnu.org>
66035
66036         Improve name: "count-one-bits" is better than "popcount".
66037         * MODULES.html.sh: Update name.
66038         * lib/popcount.h: Renamed lib/count-one-bits.h.
66039         (popcount): Renamed count_one_bits.
66040         (popcountl): Renamed count_one_bits_l.
66041         (popcountll): Renamed count_one_bits_ll.
66042         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66043         * modules/popcount: Renamed module/count-one-bits.
66044         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66045         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66046
66047 2007-07-23  Ben Pfaff  <blp@gnu.org>
66048
66049         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66050         better code generation, and add U to large constants to avoid
66051         warnings, in non-GCC case.
66052         Suggested by Bruno Haible.
66053
66054 2007-07-23  Ben Pfaff  <blp@gnu.org>
66055
66056         * lib/popcount.h: Use verify_true instead of if...abort.
66057         * modules/popcount: Depend on verify module.
66058         Suggested by Jim Meyering.
66059
66060 2007-07-23  Bruno Haible  <bruno@clisp.org>
66061
66062         * gnulib-tool (func_import): Create a .cvsignore file also when the
66063         directory is not yet in CVS but the toplevel directory is. When
66064         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66065         Reported by Karl Berry.
66066
66067 2007-07-22  Ben Pfaff  <blp@gnu.org>
66068
66069         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66070         case.
66071         Suggested by Eric Blake.
66072
66073 2007-07-22  Ben Pfaff  <blp@gnu.org>
66074
66075         New module: popcount.
66076         * MODULES.html.sh: Add popcount.
66077         * modules/popcount: New file.
66078         * modules/popcount-tests: New file.
66079         * tests/test-popcount.c: New file.
66080         * lib/popcount.h: New file.
66081         * m4/popcount.m4: New file.
66082
66083 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66084
66085         * build-aux/announce-gen: Update to GPLv3.
66086
66087         * build-aux/config.guess: Update from config.
66088
66089 2007-07-21  Bruno Haible  <bruno@clisp.org>
66090
66091         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66092         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66093
66094 2007-07-20  Jim Meyering  <jim@meyering.net>
66095
66096         * check-module: Diagnose a self-dependency.
66097
66098 2007-07-19  Bruno Haible  <bruno@clisp.org>
66099
66100         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66101         empty.
66102         Reported by Eric Blake.
66103
66104 2007-07-18  Bruno Haible  <bruno@clisp.org>
66105
66106         * gnulib-tool: New options --po-base, --po-domain.
66107         (func_usage): Document them.
66108         (pobase, po_domain): New variables.
66109         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66110         DEFAULT_TEXT_DOMAIN.
66111         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66112         (func_import): Consider pobase and po_domain. Create a po/ directory.
66113         (func_create_testdir): Set pobase and po_domain to empty.
66114         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66115         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66116
66117 2007-07-18  Bruno Haible  <bruno@clisp.org>
66118
66119         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66120         EXTRA_DIST augmentation for files in build-aux/.
66121
66122 2007-07-16  Bruno Haible  <bruno@clisp.org>
66123
66124         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66125         * modules/getdelim (License): Likewise.
66126
66127 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66128
66129         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66130         * modules/d-type (License): Likewise.
66131         * modules/extensions (License): Likewise.
66132         * modules/fnmatch (License): Likewise.
66133         * modules/fseeko (License): Likewise.
66134         * modules/getaddrinfo (License): Likewise.
66135         * modules/getline (License): Likewise.
66136         * modules/getlogin_r (License): Likewise.
66137         * modules/getpass (License): Likewise.
66138         * modules/gettimeofday (License): Likewise.
66139         * modules/glob (License): Likewise.
66140         * modules/inet_ntop (License): Likewise.
66141         * modules/malloc (License): Likewise.
66142         * modules/malloca (License): Likewise.
66143         * modules/memmem (License): Likewise.
66144         * modules/mempcpy (License): Likewise.
66145         * modules/memset (License): Likewise.
66146         * modules/minmax (License): Likewise.
66147         * modules/mktime (License): Likewise.
66148         * modules/netinet_in (License): Likewise.
66149         * modules/pathmax (License): Likewise.
66150         * modules/poll (License): Likewise.
66151         * modules/regex (License): Likewise.
66152         * modules/snprintf (License): Likewise.
66153         * modules/stdbool (License): Likewise.
66154         * modules/stdint (License): Likewise.
66155         * modules/stdio (License): Likewise.
66156         * modules/strcase (License): Likewise.
66157         * modules/strcasestr (License): Likewise.
66158         * modules/strdup (License): Likewise.
66159         * modules/string (License): Likewise.
66160         * modules/strndup (License): Likewise.
66161         * modules/strnlen (License): Likewise.
66162         * modules/strpbrk (License): Likewise.
66163         * modules/strptime (License): Likewise.
66164         * modules/strsep (License): Likewise.
66165         * modules/sys_select (License): Likewise.
66166         * modules/sys_socket (License): Likewise.
66167         * modules/sys_stat (License): Likewise.
66168         * modules/sys_time (License): Likewise.
66169         * modules/time (License): Likewise.
66170         * modules/time_r (License): Likewise.
66171         * modules/timegm (License): Likewise.
66172         * modules/unistd (License): Likewise.
66173         * modules/vsnprintf (License): Likewise.
66174         * modules/wctype (License): Likewise.
66175
66176 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66177
66178         * modules/argz (License): LGPLv2+.
66179
66180 2007-07-15  Karl Berry  <karl@gnu.org>
66181
66182         * doc/gnulib.texi: revise node structure per new fdl.texi.
66183
66184 2007-07-14  Bruno Haible  <bruno@clisp.org>
66185
66186         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66187         the output file.
66188         * lib/uniname/uninames.h: Regenerated.
66189
66190 2007-07-14  Karl Berry  <karl@gnu.org>
66191
66192         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66193         omitting sectioning and index commands.
66194
66195 2007-07-13  Bruno Haible  <bruno@clisp.org>
66196
66197         New gnulib-tool option --more-symlinks.
66198         * gnulib-tool (func_usage): Document --more-symlinks.
66199         (do_copyrights): New variable.
66200         Recognize option --more-symlinks.
66201         (func_import): Don't add a copyright notice transform to
66202         sed_transform_lib_file if do_copyrights is empty.
66203
66204 2007-07-13  Bruno Haible  <bruno@clisp.org>
66205
66206         * lib/vasnprintf.c (decimal_point_char): Define also if
66207         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66208         && !NEED_PRINTF_DIRECTIVE_A.
66209         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66210         Gary V. Vaughan <gary@gnu.org>.
66211
66212 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66213
66214         * lib/inttypes_.h: Undo previous change, since it was fixed
66215         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66216
66217 2007-07-13  Bruno Haible  <bruno@clisp.org>
66218
66219         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66220         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66221
66222 2007-07-13  Jim Meyering  <jim@meyering.net>
66223
66224         df: Don't fail for Tru64's "file-on-file mount".
66225         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66226         so we fall through and use statfs instead.  Details here:
66227         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66228         Reported by Albert Chin.
66229
66230 2007-07-13  Bruno Haible  <bruno@clisp.org>
66231
66232         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66233         * modules/configmake (License): Likewise.
66234         * modules/gettext (License): Likewise.
66235         * modules/gettext-h (License): Likewise.
66236         * modules/include_next (License): Likewise.
66237         * modules/link-warning (License): Likewise.
66238         * modules/localcharset (License): Likewise.
66239         * modules/localename (License): Likewise.
66240         * modules/lock (License): Likewise.
66241         * modules/relocatable-lib-lgpl (License): Likewise.
66242         * modules/size_max (License): Likewise.
66243         * modules/vasnprintf (License): Likewise.
66244         * modules/wchar (License): Likewise.
66245         * modules/xsize (License): Likewise.
66246
66247 2007-07-13  Bruno Haible  <bruno@clisp.org>
66248
66249         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66250         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66251
66252 2007-07-12  Bruno Haible  <bruno@clisp.org>
66253
66254         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66255         in the modules files.
66256
66257 2007-07-11  Karl Berry  <karl@gnu.org>
66258
66259         * MODULES.html.sh (func_module): use
66260          sed -e '\|^'"${includefile}"'$|d'
66261          instead of /.../d, to avoid errors on $includefile's containing /.
66262
66263 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66264
66265         * gnulib-tool (func_import): Avoid duplication of --avoid
66266         statements
66267         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66268         names to `_' in variable names.
66269
66270 2007-07-10  Eric Blake  <ebb9@byu.net>
66271
66272         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66273         * NEWS: Document this change.
66274
66275 2007-07-08  Bruno Haible  <bruno@clisp.org>
66276
66277         Update to Unicode 5.0.
66278         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66279         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66280         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66281         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66282         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66283         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66284         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66285         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66286         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66287         U+10A3F, U+1D242..U+1D244.
66288         (nonspacing_table_ind): Update.
66289         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66290         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66291
66292 2007-07-08  Bruno Haible  <bruno@clisp.org>
66293
66294         Update to Unicode 5.0.
66295         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66296         code transform. Extend the name index field of unicode_name_to_code and
66297         unicode_code_to_name from 16 to 24 bits.
66298         * lib/uniname/uniname.c (unicode_character_name,
66299         unicode_name_character): Add the range 0x12xxx to the code transform.
66300         * lib/uniname/uninames.h: Regenerated.
66301         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66302
66303 2007-07-07  Bruno Haible  <bruno@clisp.org>
66304
66305         * modules/wcwidth-tests: New file.
66306         * tests/test-wcwidth.c: New file.
66307
66308         Work around MacOS X wcwidth() bug.
66309         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66310         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66311         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66312         original wcwidth in non-UTF-8 locales.
66313         * modules/wcwidth (Depends-on): Add localcharset, streq,
66314         uniwidth/width.
66315         * doc/functions/wcwidth.texi: Update.
66316
66317 2007-07-07  Bruno Haible  <bruno@clisp.org>
66318
66319         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66320         (wcwidth): New declaration.
66321         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66322         macros.
66323         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66324         here. Prepare for creating <wchar.h> unconditionally.
66325         * modules/wchar (Depends-on): Add link-warning.
66326         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66327         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66328         * lib/wcwidth.h: Remove file.
66329         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66330         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66331         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66332         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66333         (Include): Replace wcwidth.h with <wchar.h>.
66334         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66335         * lib/mbchar.h: Don't include wcwidth.h.
66336         * lib/mbswidth.c: Likewise.
66337         * NEWS: Mention the change.
66338
66339 2007-07-07  Bruno Haible  <bruno@clisp.org>
66340
66341         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66342         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66343         definition with an external declaration.
66344         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66345         defined as a function. Remove AC_C_INLINE requirement.
66346         * modules/wcwidth (Files): Add lib/wcwidth.c.
66347         (Makefile.am): Remove redundant statement.
66348
66349 2007-07-07  Bruno Haible  <bruno@clisp.org>
66350
66351         * MODULES.html.sh (Unicode string functions): Add the new modules.
66352
66353         * tests/uniwidth/test-u32-strwidth.c: New file.
66354         * modules/uniwidth/u32-strwidth-tests: New file.
66355
66356         * lib/uniwidth/u32-strwidth.c: New file.
66357         * modules/uniwidth/u32-strwidth: New file.
66358
66359         * tests/uniwidth/test-u16-strwidth.c: New file.
66360         * modules/uniwidth/u16-strwidth-tests: New file.
66361
66362         * lib/uniwidth/u16-strwidth.c: New file.
66363         * modules/uniwidth/u16-strwidth: New file.
66364
66365         * tests/uniwidth/test-u8-strwidth.c: New file.
66366         * modules/uniwidth/u8-strwidth-tests: New file.
66367
66368         * lib/uniwidth/u8-strwidth.c: New file.
66369         * modules/uniwidth/u8-strwidth: New file.
66370
66371         * tests/uniwidth/test-u32-width.c: New file.
66372         * modules/uniwidth/u32-width-tests: New file.
66373
66374         * lib/uniwidth/u32-width.c: New file.
66375         * modules/uniwidth/u32-width: New file.
66376
66377         * tests/uniwidth/test-u16-width.c: New file.
66378         * modules/uniwidth/u16-width-tests: New file.
66379
66380         * lib/uniwidth/u16-width.c: New file.
66381         * modules/uniwidth/u16-width: New file.
66382
66383         * tests/uniwidth/test-u8-width.c: New file.
66384         * modules/uniwidth/u8-width-tests: New file.
66385
66386         * lib/uniwidth/u8-width.c: New file.
66387         * modules/uniwidth/u8-width: New file.
66388
66389         * tests/uniwidth/test-uc_width.c: New file.
66390         * modules/uniwidth/width-tests: New file.
66391
66392         * lib/uniwidth/width.c: New file, from GNU libiconv.
66393         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66394         * modules/uniwidth/width: New file.
66395
66396         * lib/uniwidth.h: New file, from GNU libiconv.
66397         * modules/uniwidth/base: New file.
66398
66399 2007-07-07  Bruno Haible  <bruno@clisp.org>
66400
66401         * lib/uniname.h: New file, from GNU gettext.
66402         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66403         * lib/uniname/uninames.h: New file, from GNU gettext.
66404         * lib/uniname/uniname.c: New file, from GNU gettext.
66405         * tests/uniname/test-uninames.sh: New file.
66406         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66407         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66408         * modules/uniname/base: New file.
66409         * modules/uniname/uniname: New file.
66410         * modules/uniname/uniname-tests: New file.
66411         * MODULES.html.sh (Unicode string functions): Add the new modules.
66412
66413 2007-07-06  Bruno Haible  <bruno@clisp.org>
66414
66415         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66416
66417 2007-07-06  Bruno Haible  <bruno@clisp.org>
66418
66419         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66420         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66421         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66422         include <sys/time.h>.
66423         Reported by Eric Blake.
66424
66425 2007-07-06  Eric Blake  <ebb9@byu.net>
66426
66427         Fix testing canonicalize on cygwin.
66428         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66429         Revert patch from 2007-06-19.
66430         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66431         canonicalize module is also in use.
66432         * tests/test-canonicalize.c: New file.
66433         * tests/test-canonicalize.sh: Likewise.
66434         * modules/canonicalize-tests: Likewise.
66435
66436 2007-07-06  Jim Meyering  <jim@meyering.net>
66437
66438         * lib/getugroups.c (getugroups): Detect getgrent failure.
66439         Adjust comment to reflect reality: this function may return -1.
66440
66441 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66442
66443         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66444         the new TP address.
66445         (usage): Fix typo
66446         (gnulib_mk): New variable.
66447
66448 2007-07-05  Jim Meyering  <jim@meyering.net>
66449
66450         Don't let endgrent clobber errno, no matter how improbable.
66451         * lib/getugroups.c (getugroups): Save and restore errno around
66452         endgrent call.
66453
66454         Close the group DB even when failing with 2^31 or more members.
66455         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66456
66457 2007-07-04  Jim Meyering  <jim@meyering.net>
66458
66459         * lib/getugroups.h: New file.
66460         * lib/getugroups.c: Include "getugroups.h".
66461         Remove uses of "register" keyword.
66462         Move local variable, "cp", down into scope where used.
66463         Give "username" parameter the "const" attribute.
66464         * modules/getugroups (Files): Add lib/getugroups.h
66465
66466 2007-07-04  Karl Berry  <karl@gnu.org>
66467
66468         * MODULES.html.sh (func_all_modules): Complete rename of
66469         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66470
66471 2007-07-02  Bruno Haible  <bruno@clisp.org>
66472
66473         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66474         mode, when inttypes.h comes from gnulib.
66475         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66476
66477 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66478
66479         * NEWS: Mention lgpl module name change.
66480
66481         * modules/lgpl-2.1: Renamed from lgpl.
66482
66483         * NEWS: Mention gpl module name change.
66484
66485         * modules/gpl-3.0: New file, based on gpl-2.0.
66486
66487         * modules/gpl-2.0: Renamed from gpl.
66488
66489         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66490         doc/gpl-2.0.texi.
66491
66492 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66493
66494         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66495         #define __STDC_LIMIT_MACROS temporarily while including
66496         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66497         Problem reported by Joel E. Denny in
66498         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66499
66500 2007-07-01  Bruno Haible  <bruno@clisp.org>
66501
66502         * lib/unistdio.h: New file.
66503         * lib/unistdio/u-asnprintf.h: New file.
66504         * lib/unistdio/u-asprintf.h: New file.
66505         * lib/unistdio/u-printf-args.c: New file.
66506         * lib/unistdio/u-printf-args.h: New file.
66507         * lib/unistdio/u-printf-parse.h: New file.
66508         * lib/unistdio/u-snprintf.h: New file.
66509         * lib/unistdio/u-sprintf.h: New file.
66510         * lib/unistdio/u-vasprintf.h: New file.
66511         * lib/unistdio/u-vsnprintf.h: New file.
66512         * lib/unistdio/u-vsprintf.h: New file.
66513         * lib/unistdio/ulc-asnprintf.c: New file.
66514         * lib/unistdio/ulc-asprintf.c: New file.
66515         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66516         * lib/unistdio/ulc-printf-parse.c: New file.
66517         * lib/unistdio/ulc-snprintf.c: New file.
66518         * lib/unistdio/ulc-sprintf.c: New file.
66519         * lib/unistdio/ulc-vasnprintf.c: New file.
66520         * lib/unistdio/ulc-vasprintf.c: New file.
66521         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66522         * lib/unistdio/ulc-vsnprintf.c: New file.
66523         * lib/unistdio/ulc-vsprintf.c: New file.
66524         * lib/unistdio/u8-asnprintf.c: New file.
66525         * lib/unistdio/u8-asprintf.c: New file.
66526         * lib/unistdio/u8-printf-parse.c: New file.
66527         * lib/unistdio/u8-snprintf.c: New file.
66528         * lib/unistdio/u8-sprintf.c: New file.
66529         * lib/unistdio/u8-vasnprintf.c: New file.
66530         * lib/unistdio/u8-vasprintf.c: New file.
66531         * lib/unistdio/u8-vsnprintf.c: New file.
66532         * lib/unistdio/u8-vsprintf.c: New file.
66533         * lib/unistdio/u8-u8-asnprintf.c: New file.
66534         * lib/unistdio/u8-u8-asprintf.c: New file.
66535         * lib/unistdio/u8-u8-snprintf.c: New file.
66536         * lib/unistdio/u8-u8-sprintf.c: New file.
66537         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66538         * lib/unistdio/u8-u8-vasprintf.c: New file.
66539         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66540         * lib/unistdio/u8-u8-vsprintf.c: New file.
66541         * lib/unistdio/u16-asnprintf.c: New file.
66542         * lib/unistdio/u16-asprintf.c: New file.
66543         * lib/unistdio/u16-printf-parse.c: New file.
66544         * lib/unistdio/u16-snprintf.c: New file.
66545         * lib/unistdio/u16-sprintf.c: New file.
66546         * lib/unistdio/u16-vasnprintf.c: New file.
66547         * lib/unistdio/u16-vasprintf.c: New file.
66548         * lib/unistdio/u16-vsnprintf.c: New file.
66549         * lib/unistdio/u16-vsprintf.c: New file.
66550         * lib/unistdio/u16-u16-asnprintf.c: New file.
66551         * lib/unistdio/u16-u16-asprintf.c: New file.
66552         * lib/unistdio/u16-u16-snprintf.c: New file.
66553         * lib/unistdio/u16-u16-sprintf.c: New file.
66554         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66555         * lib/unistdio/u16-u16-vasprintf.c: New file.
66556         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66557         * lib/unistdio/u16-u16-vsprintf.c: New file.
66558         * lib/unistdio/u32-asnprintf.c: New file.
66559         * lib/unistdio/u32-asprintf.c: New file.
66560         * lib/unistdio/u32-printf-parse.c: New file.
66561         * lib/unistdio/u32-snprintf.c: New file.
66562         * lib/unistdio/u32-sprintf.c: New file.
66563         * lib/unistdio/u32-vasnprintf.c: New file.
66564         * lib/unistdio/u32-vasprintf.c: New file.
66565         * lib/unistdio/u32-vsnprintf.c: New file.
66566         * lib/unistdio/u32-vsprintf.c: New file.
66567         * lib/unistdio/u32-u32-asnprintf.c: New file.
66568         * lib/unistdio/u32-u32-asprintf.c: New file.
66569         * lib/unistdio/u32-u32-snprintf.c: New file.
66570         * lib/unistdio/u32-u32-sprintf.c: New file.
66571         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66572         * lib/unistdio/u32-u32-vasprintf.c: New file.
66573         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66574         * lib/unistdio/u32-u32-vsprintf.c: New file.
66575         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66576         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66577         * tests/unistdio/test-ulc-printf1.h: New file.
66578         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66579         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66580         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66581         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66582         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66583         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66584         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
66585         * tests/unistdio/test-ulc-vsprintf1.c: New file.
66586         * tests/unistdio/test-u8-asnprintf1.c: New file.
66587         * tests/unistdio/test-u8-asnprintf1.h: New file.
66588         * tests/unistdio/test-u8-printf1.h: New file.
66589         * tests/unistdio/test-u8-vasnprintf1.c: New file.
66590         * tests/unistdio/test-u8-vasnprintf2.c: New file.
66591         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
66592         * tests/unistdio/test-u8-vasnprintf3.c: New file.
66593         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
66594         * tests/unistdio/test-u8-vasprintf1.c: New file.
66595         * tests/unistdio/test-u8-vsnprintf1.c: New file.
66596         * tests/unistdio/test-u8-vsprintf1.c: New file.
66597         * tests/unistdio/test-u16-asnprintf1.c: New file.
66598         * tests/unistdio/test-u16-asnprintf1.h: New file.
66599         * tests/unistdio/test-u16-printf1.h: New file.
66600         * tests/unistdio/test-u16-vasnprintf1.c: New file.
66601         * tests/unistdio/test-u16-vasnprintf2.c: New file.
66602         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
66603         * tests/unistdio/test-u16-vasnprintf3.c: New file.
66604         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
66605         * tests/unistdio/test-u16-vasprintf1.c: New file.
66606         * tests/unistdio/test-u16-vsnprintf1.c: New file.
66607         * tests/unistdio/test-u16-vsprintf1.c: New file.
66608         * tests/unistdio/test-u32-asnprintf1.c: New file.
66609         * tests/unistdio/test-u32-asnprintf1.h: New file.
66610         * tests/unistdio/test-u32-printf1.h: New file.
66611         * tests/unistdio/test-u32-vasnprintf1.c: New file.
66612         * tests/unistdio/test-u32-vasnprintf2.c: New file.
66613         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
66614         * tests/unistdio/test-u32-vasnprintf3.c: New file.
66615         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
66616         * tests/unistdio/test-u32-vasprintf1.c: New file.
66617         * tests/unistdio/test-u32-vsnprintf1.c: New file.
66618         * tests/unistdio/test-u32-vsprintf1.c: New file.
66619         * modules/unistdio/base: New file.
66620         * modules/unistdio/u-printf-args: New file.
66621         * modules/unistdio/ulc-asnprintf: New file.
66622         * modules/unistdio/ulc-asprintf: New file.
66623         * modules/unistdio/ulc-fprintf: New file.
66624         * modules/unistdio/ulc-printf-parse: New file.
66625         * modules/unistdio/ulc-snprintf: New file.
66626         * modules/unistdio/ulc-sprintf: New file.
66627         * modules/unistdio/ulc-vasnprintf: New file.
66628         * modules/unistdio/ulc-vasprintf: New file.
66629         * modules/unistdio/ulc-vfprintf: New file.
66630         * modules/unistdio/ulc-vsnprintf: New file.
66631         * modules/unistdio/ulc-vsprintf: New file.
66632         * modules/unistdio/u8-asnprintf: New file.
66633         * modules/unistdio/u8-asprintf: New file.
66634         * modules/unistdio/u8-printf-parse: New file.
66635         * modules/unistdio/u8-snprintf: New file.
66636         * modules/unistdio/u8-sprintf: New file.
66637         * modules/unistdio/u8-vasnprintf: New file.
66638         * modules/unistdio/u8-vasprintf: New file.
66639         * modules/unistdio/u8-vsnprintf: New file.
66640         * modules/unistdio/u8-vsprintf: New file.
66641         * modules/unistdio/u8-u8-asnprintf: New file.
66642         * modules/unistdio/u8-u8-asprintf: New file.
66643         * modules/unistdio/u8-u8-snprintf: New file.
66644         * modules/unistdio/u8-u8-sprintf: New file.
66645         * modules/unistdio/u8-u8-vasnprintf: New file.
66646         * modules/unistdio/u8-u8-vasprintf: New file.
66647         * modules/unistdio/u8-u8-vsnprintf: New file.
66648         * modules/unistdio/u8-u8-vsprintf: New file.
66649         * modules/unistdio/u16-asnprintf: New file.
66650         * modules/unistdio/u16-asprintf: New file.
66651         * modules/unistdio/u16-printf-parse: New file.
66652         * modules/unistdio/u16-snprintf: New file.
66653         * modules/unistdio/u16-sprintf: New file.
66654         * modules/unistdio/u16-vasnprintf: New file.
66655         * modules/unistdio/u16-vasprintf: New file.
66656         * modules/unistdio/u16-vsnprintf: New file.
66657         * modules/unistdio/u16-vsprintf: New file.
66658         * modules/unistdio/u16-u16-asnprintf: New file.
66659         * modules/unistdio/u16-u16-asprintf: New file.
66660         * modules/unistdio/u16-u16-snprintf: New file.
66661         * modules/unistdio/u16-u16-sprintf: New file.
66662         * modules/unistdio/u16-u16-vasnprintf: New file.
66663         * modules/unistdio/u16-u16-vasprintf: New file.
66664         * modules/unistdio/u16-u16-vsnprintf: New file.
66665         * modules/unistdio/u16-u16-vsprintf: New file.
66666         * modules/unistdio/u32-asnprintf: New file.
66667         * modules/unistdio/u32-asprintf: New file.
66668         * modules/unistdio/u32-printf-parse: New file.
66669         * modules/unistdio/u32-snprintf: New file.
66670         * modules/unistdio/u32-sprintf: New file.
66671         * modules/unistdio/u32-vasnprintf: New file.
66672         * modules/unistdio/u32-vasprintf: New file.
66673         * modules/unistdio/u32-vsnprintf: New file.
66674         * modules/unistdio/u32-vsprintf: New file.
66675         * modules/unistdio/u32-u32-asnprintf: New file.
66676         * modules/unistdio/u32-u32-asprintf: New file.
66677         * modules/unistdio/u32-u32-snprintf: New file.
66678         * modules/unistdio/u32-u32-sprintf: New file.
66679         * modules/unistdio/u32-u32-vasnprintf: New file.
66680         * modules/unistdio/u32-u32-vasprintf: New file.
66681         * modules/unistdio/u32-u32-vsnprintf: New file.
66682         * modules/unistdio/u32-u32-vsprintf: New file.
66683         * modules/unistdio/ulc-asnprintf-tests: New file.
66684         * modules/unistdio/ulc-vasnprintf-tests: New file.
66685         * modules/unistdio/ulc-vasprintf-tests: New file.
66686         * modules/unistdio/ulc-vsnprintf-tests: New file.
66687         * modules/unistdio/ulc-vsprintf-tests: New file.
66688         * modules/unistdio/u8-asnprintf-tests: New file.
66689         * modules/unistdio/u8-vasnprintf-tests: New file.
66690         * modules/unistdio/u8-vasprintf-tests: New file.
66691         * modules/unistdio/u8-vsnprintf-tests: New file.
66692         * modules/unistdio/u8-vsprintf-tests: New file.
66693         * modules/unistdio/u16-asnprintf-tests: New file.
66694         * modules/unistdio/u16-vasnprintf-tests: New file.
66695         * modules/unistdio/u16-vasprintf-tests: New file.
66696         * modules/unistdio/u16-vsnprintf-tests: New file.
66697         * modules/unistdio/u16-vsprintf-tests: New file.
66698         * modules/unistdio/u32-asnprintf-tests: New file.
66699         * modules/unistdio/u32-vasnprintf-tests: New file.
66700         * modules/unistdio/u32-vasprintf-tests: New file.
66701         * modules/unistdio/u32-vsnprintf-tests: New file.
66702         * modules/unistdio/u32-vsprintf-tests: New file.
66703         * MODULES.html.sh (Unicode string functions): Add the new modules.
66704
66705 2007-07-01  Bruno Haible  <bruno@clisp.org>
66706
66707         * lib/sprintf.c (sprintf): Limit the available length estimation,
66708         to avoid address wraparound.
66709         * lib/vsprintf.c (vsprintf): Likewise.
66710         * modules/sprintf-posix (Dependencies): Add stdint.
66711         * modules/vsprintf-posix (Dependencies): Likewise.
66712
66713 2007-07-01  Bruno Haible  <bruno@clisp.org>
66714
66715         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
66716         Windows PATH as well. Conservative double-quoting. Comments.
66717
66718 2007-07-01  Bruno Haible  <bruno@clisp.org>
66719             Eric Blake  <ebb9@byu.net>
66720             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66721
66722         * gnulib-tool (self_abspathname): Fix algorithm to cope with
66723         empty components in $PATH, denoting '.'.
66724
66725 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66726
66727         * gnulib-tool: Fix indentation.
66728         (func_create_megatestdir): Likewise.
66729         Report by Bruno Haible.
66730
66731 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66732
66733         Sync from Automake.
66734         * build-aux/gnupload: Fix shell portability issues with for loops.
66735         Report by Karl Berry.
66736
66737 2007-06-29  Simon Josefsson  <simon@josefsson.org>
66738
66739         * build-aux/maint.mk (POURL): Use translationproject.org.
66740
66741 2007-06-27  Simon Josefsson  <simon@josefsson.org>
66742             Bruno Haible  <bruno@clisp.org>
66743
66744         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
66745         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
66746         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
66747         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
66748         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
66749
66750 2007-06-27  Bruno Haible  <bruno@clisp.org>
66751
66752         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
66753         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
66754
66755 2007-06-26  Karl Berry  <karl@gnu.org>
66756
66757         * MODULES.html.sh: remove xreadlink-with-size.
66758
66759 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66760
66761         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
66762         method that I hope also handles the double-include problem noted
66763         by Bruno Haible in
66764         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
66765
66766 2007-06-23  Bruno Haible  <bruno@clisp.org>
66767
66768         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66769         Don't let the 'mostlyclean' target fail if the last subdirectory could
66770         not be removed.
66771         Reported by Karl Berry.
66772
66773 2007-06-23  Bruno Haible  <bruno@clisp.org>
66774
66775         * gnulib-tool (echo): Add a speedier workaround for ksh.
66776         * tests/test-echo.sh: Likewise.
66777
66778 2007-06-23  Bruno Haible  <bruno@clisp.org>
66779
66780         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
66781         * tests/test-echo.sh: Likewise.
66782
66783 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66784
66785         * gnulib-tool (IFS): Initialize early, so we don't set it to
66786         empty later.
66787         (self_abspathname): Rewrite algorithm to set it, reindent.
66788         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
66789         (func_create_megatestdir): Merge some sed scripts.
66790
66791 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66792
66793         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
66794         exposed by Sun Studio 11 cc on Solaris 8.
66795
66796 2007-06-22  Bruno Haible  <bruno@clisp.org>
66797
66798         * gnulib-tool (echo): Ensure the echo primitive does not interpret
66799         backslashes.
66800         * tests/test-echo.sh: New file.
66801
66802 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66803
66804         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
66805         simplify `sed_replace_build_aux' scripts, they are portable but
66806         echoing them with `echo' is not.
66807         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
66808
66809 2007-06-21  Karl Berry  <karl@gnu.org>
66810
66811         * config/srclist.txt: guess we can't handle the licenses via
66812         srclist at the moment.
66813
66814 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66815
66816         * MODULES.html.sh: Add include_next.
66817         * modules/include_next: New file.
66818
66819 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66820
66821         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
66822         INCLUDE_NEXT.
66823         (gl_CHECK_NEXT_HEADERS): New macro.
66824         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
66825         the obsolescent gl_ABSOLUTE_HEADER.
66826         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
66827         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
66828         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
66829         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66830         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66831         * m4/math_h.m4 (gl_MATH_H): Likewise.
66832         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
66833         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
66834         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
66835         * m4/stdint.m4 (gl_STDINT_H): Likewise.
66836         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
66837         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
66838         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
66839         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66840         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
66841         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
66842         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
66843         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
66844         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
66845         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
66846         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66847         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66848         * m4/inttypes.m4 (gl_INTTYPES_H): Define
66849         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
66850         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
66851         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
66852         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
66853         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
66854         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
66855         * lib/float_.h: Likewise.
66856         * lib/inttypes_.h: Likewise.
66857         * lib/math_.h: Likewise.
66858         * lib/search_.h: Likewise.
66859         * lib/signal_.h: Likewise.
66860         * lib/stdint_.h: Likewise.
66861         * lib/stdio_.h: Likewise.
66862         * lib/stdlib_.h: Likewise.
66863         * lib/string_.h: Likewise.
66864         * lib/sys_stat_.h: Likewise.
66865         * lib/sys_time_.h: Likewise.
66866         * lib/time_.h: Likewise.
66867         * lib/unistd_.h: Likewise.
66868         * lib/wchar_.h: Likewise.
66869         * lib/wctype_.h: Likewise.
66870         * lib/dirent_.h: Likewise.
66871         * lib/iconv_.h: Likewise.
66872         * lib/locale_.h: Likewise.
66873         * lib/netinet_in_.h: Likewise.
66874         * lib/sys_select_.h: Likewise.
66875         * lib/sys_socket_.h: Likewise.
66876         * lib/sysexits_.h: Likewise.
66877         * modules/fcntl (Depends-on): Depend on include_next, not
66878         absolute_header.
66879         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
66880         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
66881         * modules/fchdir: Likewise.
66882         * modules/float: Likewise.
66883         * modules/iconv_open: Likewise.
66884         * modules/inttypes: Likewise.
66885         * modules/locale: Likewise.
66886         * modules/math: Likewise.
66887         * modules/netinet_in: Likewise.
66888         * modules/search: Likewise.
66889         * modules/signal: Likewise.
66890         * modules/stdint: Likewise.
66891         * modules/stdio: Likewise.
66892         * modules/stdlib: Likewise.
66893         * modules/string: Likewise.
66894         * modules/sys_select: Likewise.
66895         * modules/sys_socket: Likewise.
66896         * modules/sys_stat: Likewise.
66897         * modules/sys_time: Likewise.
66898         * modules/sysexits: Likewise.
66899         * modules/time: Likewise.
66900         * modules/unistd: Likewise.
66901         * modules/wchar: Likewise.
66902         * modules/wctype: Likewise.
66903         * modules/sys_stat: Change maintainer to "all".
66904         * modules/unistd: Likewise.
66905
66906 2007-06-20  Karl Berry  <karl@gnu.org>
66907
66908         * config/srclist.txt: track www changes in license files.
66909
66910 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
66911
66912         * build-aux/bootstrap: Remove stray dot.
66913         Make sure build_aux settings are honored when linking
66914         gnulib_extra_files.
66915
66916 2007-06-19  Eric Blake  <ebb9@byu.net>
66917
66918         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66919         Allow compilation on cygwin.
66920
66921 2007-06-19  Jim Meyering  <jim@meyering.net>
66922
66923         xreadlink-with-size: Remove module.  No longer used.
66924         Ex-callers now use xreadlink or mreadlink-with-size.
66925         * modules/xreadlink-with-size: Remove module.
66926         * lib/xreadlink-with-size.c: Remove file.
66927         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
66928         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
66929         just before the function definition *is* accurate.
66930
66931         Eliminate one way canonicalize_filename_mode could exit.
66932         * lib/canonicalize.c (canonicalize_filename_mode):
66933         Use mreadlink_with_size, not xreadlink_with_size.
66934
66935 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
66936
66937         Detect porting problems to FreeBSD/arm, which has time_t wider than
66938         long int.  Original problem reported for GNU diff by Xin Li in
66939         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
66940         * modules/getdate (Depends-on): Add intprops, verify.
66941         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
66942         is an integer type no wider than long int.
66943
66944 2007-06-18  Jim Meyering  <jim@meyering.net>
66945
66946         New module: mreadlink-with-size.
66947         * MODULES.html.sh: Add mreadlink-with-size.
66948         * modules/mreadlink-with-size: New module
66949         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
66950         not xreadlink-with-size.
66951         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
66952
66953 2007-06-16  Bruno Haible  <bruno@clisp.org>
66954
66955         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
66956         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
66957         Reported by Gary V. Vaughan <gary@gnu.org>.
66958
66959 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
66960
66961         Revamp lchown so that it lives in unistd.h where it belongs.
66962         * lib/lchown.h: Remove.
66963         * lib/dirchownmod.c: Don't include lib/lchown.h.
66964         * lib/fchownat.c: Likewise.
66965         * lib/openat.c: Likewise.
66966         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
66967         does not follow symlinks.
66968         (EOPNOTSUPP): Define if not defined.
66969         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
66970         is defined to 0.
66971         (lchown): New decl.
66972         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
66973         Do not check for lchown decl.
66974         Set REPLACE_LCHOWN.
66975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
66976         REPLACE_LCHOWN.
66977         * modules/chown: Make it clear it follows symlinks.
66978         * modules/lchown: Make it clear it doesn't follow symlinks.
66979         (Files): Remove lib/lchown.h
66980         (Depends-on): Add unistd.
66981         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
66982         (Include): Include <unistd.h>, not "lchown.h".
66983         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
66984         REPLACE_LCHOWN.
66985
66986 2007-06-15  Jim Meyering  <jim@meyering.net>
66987
66988         Change license (GPL to LGPL) of fsusage and dependents.
66989         * modules/fsusage (License): Change to LGPL.
66990         * modules/full-read (License): Likewise.
66991         * modules/full-write (License): Likewise.
66992         * modules/safe-read (License): Likewise.
66993         * modules/safe-write (License): Likewise.
66994
66995 2007-06-14  Ben Pfaff  <blp@gnu.org>
66996
66997         Missing part of allocsa -> malloca transition.
66998         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
66999         gl_MALLOCA.
67000
67001 2007-06-12  Bruno Haible  <bruno@clisp.org>
67002
67003         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67004         to ia64, x86_64, i386.
67005         Reported by Eric Blake.
67006
67007 2007-06-12  Bruno Haible  <bruno@clisp.org>
67008
67009         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67010         cross-compiling to x86_64.
67011
67012 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67013
67014         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67015         glitch reported by Ralf Wildenhues in
67016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67017
67018         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67019         Vin Shelton.
67020
67021 2007-06-11  Bruno Haible  <bruno@clisp.org>
67022
67023         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67024         replacement string.
67025         Reported by Eric Blake.
67026
67027 2007-06-10  Bruno Haible  <bruno@clisp.org>
67028
67029         Prepare vasnprintf code for use with Unicode strings.
67030         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67031         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67032         TYPE_U32_STRING.
67033         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67034         a_u32_string variants.
67035         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67036         * lib/printf-args.c: Don't include config.h and the specification
67037         header if PRINTF_FETCHARGS is already defined.
67038         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67039         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67040         TYPE_U16_STRING, TYPE_U32_STRING.
67041         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67042         u16_directive, u16_directives, u32_directive, u32_directives): New
67043         types.
67044         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67045         New declarations.
67046         * lib/printf-parse.c: Don't include config.h and the specification
67047         header if PRINTF_PARSE is already defined. Eliminate the set of
67048         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67049         them now. Include c-ctype.h.
67050         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67051         directive and CHAR_T_ONLY_ASCII.
67052         * lib/vasnprintf.c: Don't include config.h and the specification header
67053         if VASNPRINTF is already defined.
67054         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67055         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67056         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67057         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67058         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67059         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67060         code accordingly.
67061         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67062         pad_ourselves also in this case, with the 'c' and 's' directives, and
67063         with a different notion of "width".
67064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67065
67066 2007-06-10  Bruno Haible  <bruno@clisp.org>
67067
67068         * modules/unistr/u32-mbsnlen: New file.
67069         * lib/unistr/u32-mbsnlen.c: New file.
67070
67071         * modules/unistr/u16-mbsnlen: New file.
67072         * lib/unistr/u16-mbsnlen.c: New file.
67073
67074         * modules/unistr/u8-mbsnlen: New file.
67075         * lib/unistr/u8-mbsnlen.c: New file.
67076
67077         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67078         declarations.
67079
67080 2007-06-10  Bruno Haible  <bruno@clisp.org>
67081
67082         * lib/string_.h (mbsnlen): New declaration.
67083         * lib/mbsnlen.c: New file.
67084         * m4/mbsnlen.m4: New file.
67085         * modules/mbsnlen: New file.
67086         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67087         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67088         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67089
67090 2007-06-10  Bruno Haible  <bruno@clisp.org>
67091
67092         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67093
67094 2007-06-10  Bruno Haible  <bruno@clisp.org>
67095
67096         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67097         * lib/mbuiter.h: Likewise.
67098
67099 2007-06-10  Bruno Haible  <bruno@clisp.org>
67100
67101         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67102         declaration.
67103
67104 2007-06-10  Karl Berry  <karl@gnu.org>
67105
67106         * config/srclist.txt: remove gettext entries, Bruno prefers
67107         to update individually.
67108
67109 2007-06-10  Bruno Haible  <bruno@clisp.org>
67110
67111         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67112         'maxlen'. Ensure only length + width bytes are allocated, not
67113         length + 1 + width.
67114
67115 2007-06-09  Bruno Haible  <bruno@clisp.org>
67116
67117         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67118         (CHAR_T): Remove macro.
67119         (VASNPRINTF): Update.
67120
67121 2007-06-09  Bruno Haible  <bruno@clisp.org>
67122
67123         * MODULES.html.sh (Unicode string functions): Add the new modules.
67124
67125         * modules/uniconv/u32-conv-to-enc: New file.
67126         * lib/uniconv/u32-conv-to-enc.c: New file.
67127         * modules/uniconv/u32-conv-to-enc-tests: New file.
67128         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67129
67130         * modules/uniconv/u16-conv-to-enc: New file.
67131         * lib/uniconv/u16-conv-to-enc.c: New file.
67132         * lib/uniconv/u-conv-to-enc.h: New file.
67133         * modules/uniconv/u16-conv-to-enc-tests: New file.
67134         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67135
67136         * modules/uniconv/u8-conv-to-enc: New file.
67137         * lib/uniconv/u8-conv-to-enc.c: New file.
67138         * modules/uniconv/u8-conv-to-enc-tests: New file.
67139         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67140
67141         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67142         u32_conv_to_encoding): New declarations.
67143
67144 2007-06-09  Bruno Haible  <bruno@clisp.org>
67145
67146         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67147
67148 2007-06-09  Bruno Haible  <bruno@clisp.org>
67149
67150         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67151         * modules/malloca: Renamed from modules/allocsa, updated.
67152         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67153         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67154         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67155         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67156         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67157         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67158         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67159         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67160         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67161         * modules/c-strcasestr (Depends-on): Update.
67162         * lib/c-strcasestr.c: Update.
67163         * modules/c-strstr (Depends-on): Update.
67164         * lib/c-strstr.c: Update.
67165         * modules/canonicalize-lgpl (Depends-on): Update.
67166         * lib/canonicalize-lgpl.c: Update.
67167         * modules/clean-temp (Depends-on): Update.
67168         * lib/clean-temp.c: Update.
67169         * modules/csharpcomp (Depends-on): Update.
67170         * lib/csharpcomp.c: Update.
67171         * modules/csharpexec (Depends-on): Update.
67172         * lib/csharpexec.c: Update.
67173         * modules/javacomp (Depends-on): Update.
67174         * lib/javacomp.c: Update.
67175         * modules/javaexec (Depends-on): Update.
67176         * lib/javaexec.c: Update.
67177         * modules/mbscasestr (Depends-on): Update.
67178         * lib/mbscasestr.c: Update.
67179         * modules/mbsstr (Depends-on): Update.
67180         * lib/mbsstr.c: Update.
67181         * modules/setenv (Depends-on): Update.
67182         * lib/setenv.c: Update.
67183         * modules/strcasestr (Depends-on): Update.
67184         * lib/strcasestr.c: Update.
67185         * modules/striconveha (Depends-on): Update.
67186         * lib/striconveha.c: Update.
67187         * modules/relocatable-prog-wrapper (Files): Update.
67188         * lib/relocwrapper.c: Update.
67189         * build-aux/install-reloc: Update.
67190         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67191
67192 2007-06-08  Bruno Haible  <bruno@clisp.org>
67193
67194         Port to uClibc.
67195         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67196         * lib/fpurge.c (fpurge): Likewise.
67197         * lib/freading.c (freading): Likewise.
67198         * lib/fseeko.c (rpl_fseeko): Likewise.
67199         * lib/fseterr.c (fseterr): Likewise.
67200         * lib/fwriting.c (fwriting): Likewise.
67201         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67202
67203 2007-06-08  Bruno Haible  <bruno@clisp.org>
67204
67205         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67206         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67207         * modules/gettext (Files): Add m4/intlmacosx.m4.
67208
67209 2007-06-07  Bruno Haible  <bruno@clisp.org>
67210
67211         * modules/localename-tests: New file.
67212         * tests/test-localename.c: New file.
67213
67214         New module 'localename'.
67215         * lib/localename.h: New file.
67216         * lib/localename.c: New file, from GNU gettext.
67217         * m4/localename.m4: New file.
67218         * modules/localename: New file.
67219
67220 2007-06-07  Bruno Haible  <bruno@clisp.org>
67221
67222         Work around the lack of <wchar.h> on some builds of uClibc.
67223         * doc/headers/wchar.texi: Update.
67224         * lib/wchar_.h: Include <wchar.h> only if it exists.
67225         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67226         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67227         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67228         doesn't exist.
67229         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67230         * modules/mbfile (Depends-on): Add wchar.
67231         * modules/mbiter (Depends-on): Likewise.
67232         * modules/mbuiter (Depends-on): Likewise.
67233         Reported by Simon Josefsson.
67234
67235 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67236
67237         Work around problem reported by Steven M. Schweda in
67238         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67239         Tru64 5.1B with the Compaq compiler environment installed declares
67240         an 'isblank' function but does not define it in the C library.
67241         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67242         * lib/regex_internal.h (isblank): Likewise.
67243         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67244         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67245
67246 2007-06-05  Bruno Haible  <bruno@clisp.org>
67247
67248         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67249         ia64.
67250         * modules/printf-safe: New file.
67251         * modules/fprintf-posix (Depends-on): Add printf-safe.
67252         * modules/printf-posix (Depends-on): Likewise.
67253         * modules/snprintf-posix (Depends-on): Likewise.
67254         * modules/sprintf-posix (Depends-on): Likewise.
67255         * modules/vasnprintf-posix (Depends-on): Likewise.
67256         * modules/vasprintf-posix (Depends-on): Likewise.
67257         * modules/vfprintf-posix (Depends-on): Likewise.
67258         * modules/vprintf-posix (Depends-on): Likewise.
67259         * modules/vsnprintf-posix (Depends-on): Likewise.
67260         * modules/vsprintf-posix (Depends-on): Likewise.
67261         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67262         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67263         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67264         "no" on i386, x86_64, ia64.
67265         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67266         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67267         on i386, x86_64, ia64.
67268         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67269         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67270         on i386, x86_64, ia64.
67271         * tests/test-vasnprintf-posix.c: Include float.h.
67272         (LDBL80_WORDS): New macro.
67273         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67274         on i386, x86_64, ia64.
67275         * tests/test-vasprintf-posix.c: Include float.h.
67276         (LDBL80_WORDS): New macro.
67277         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67278         on i386, x86_64, ia64.
67279         * tests/test-snprintf-posix.c: Include float.h.
67280         * tests/test-sprintf-posix.c: Likewise.
67281         * tests/test-vsnprintf-posix.c: Likewise.
67282         * tests/test-vsprintf-posix.c: Likewise.
67283
67284 2007-06-05  Bruno Haible  <bruno@clisp.org>
67285
67286         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67287         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67288         non-IEEE numbers on i386, x86_64, ia64.
67289         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67290         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67291         * tests/test-isnanl.h: Include float.h.
67292         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67293
67294 2007-06-05  Bruno Haible  <bruno@clisp.org>
67295
67296         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67297         also the %a / %A. Handle the %a / %A code before this extra handling.
67298
67299 2007-06-05  Bruno Haible  <bruno@clisp.org>
67300
67301         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67302         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67303
67304 2007-06-05  Bruno Haible  <bruno@clisp.org>
67305
67306         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67307         typo in variable name.
67308
67309 2007-06-05  Eric Blake  <ebb9@byu.net>
67310
67311         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67312         Reported by Simon Josefsson.
67313
67314 2007-06-04  Bruno Haible  <bruno@clisp.org>
67315
67316         Avoid test failures on some PowerPC platforms.
67317         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67318         Define differently for PowerPC.
67319         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67320         Reported by Gary V. Vaughan <gary@gnu.org>.
67321
67322 2007-06-02  Bruno Haible  <bruno@clisp.org>
67323
67324         Fix test-stdint failure on FreeBSD/ia64.
67325         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67326         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67327         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67328         * doc/headers/stdint.texi: Update.
67329
67330 2007-06-01  Bruno Haible  <bruno@clisp.org>
67331
67332         * tests/test-binary-io.c (main): Pass a third argument to open().
67333         Reported by Gary V. Vaughan <gary@gnu.org>.
67334
67335 2007-06-01  Bruno Haible  <bruno@clisp.org>
67336
67337         * doc/functions/frexpl.texi: Update for mingw.
67338
67339 2007-06-01  Bruno Haible  <bruno@clisp.org>
67340
67341         * tests/test-lseek.c (main): Disable test of errno for invalid third
67342         argument.
67343         * doc/functions/lseek.texi: Update.
67344         Reported by Gary V. Vaughan <gary@gnu.org>.
67345
67346 2007-05-28  Bruno Haible  <bruno@clisp.org>
67347
67348         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67349
67350 2007-05-31  Eric Blake  <ebb9@byu.net>
67351
67352         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67353         cross compiling.
67354
67355 2007-05-30  Eric Blake  <ebb9@byu.net>
67356         and Bruno Haible  <bruno@clisp.org>
67357
67358         Work around mingw test failures exposed by m4-1.4.9b.
67359         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67360         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67361         moment.
67362
67363 2007-05-30  Bruno Haible  <bruno@clisp.org>
67364
67365         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67366         assuming that they are closed. Needed on HP-UX 11.
67367
67368 2007-05-29  Bruno Haible  <bruno@clisp.org>
67369
67370         Fix a problem with #include_next.
67371         * lib/dirent_.h: Split the double-inclusion guard.
67372         * lib/fcntl_.h: Likewise.
67373         * lib/float_.h: Likewise.
67374         * lib/iconv_.h: Likewise.
67375         * lib/inttypes_.h: Likewise.
67376         * lib/locale_.h: Likewise.
67377         * lib/math_.h: Likewise.
67378         * lib/netinet_in_.h: Likewise.
67379         * lib/search_.h: Likewise.
67380         * lib/signal_.h: Likewise.
67381         * lib/stdint_.h: Likewise.
67382         * lib/stdio_.h: Likewise.
67383         * lib/stdlib_.h: Likewise.
67384         * lib/string_.h: Likewise.
67385         * lib/sys_select_.h: Likewise.
67386         * lib/sys_socket_.h: Likewise.
67387         * lib/sys_stat_.h: Likewise.
67388         * lib/sys_time_.h: Likewise.
67389         * lib/sysexits_.h: Likewise.
67390         * lib/time_.h: Likewise.
67391         * lib/unistd_.h: Likewise.
67392         * lib/wchar_.h: Likewise.
67393         * lib/wctype_.h: Likewise.
67394
67395 2007-05-29  Bruno Haible  <bruno@clisp.org>
67396
67397         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67398         for the moment.
67399
67400 2007-05-29  Bruno Haible  <bruno@clisp.org>
67401
67402         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67403         invocation.
67404         Reported by Eric Blake.
67405
67406 2007-05-29  Bruno Haible  <bruno@clisp.org>
67407
67408         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67409         compiling case.
67410
67411 2007-05-29  Eric Blake  <ebb9@byu.net>
67412             Bruno Haible  <bruno@clisp.org>
67413
67414         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67415         cross compiles.
67416
67417 2007-05-28  Eric Blake  <ebb9@byu.net>
67418
67419         * modules/closein-tests (test_closein_LDADD): Support test on
67420         cygwin with libtool.
67421
67422 2007-05-28  Bruno Haible  <bruno@clisp.org>
67423
67424         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67425         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67426         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67427         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67428         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67429         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67430         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67431         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67432         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67433
67434 2007-05-28  Eric Blake  <ebb9@byu.net>
67435
67436         Unconditionally include <config.h> in unit tests.
67437         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67438         * tests/test-allocsa.c, tests/test-arcfour.c,
67439         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67440         tests/test-array_list.c, tests/test-array_oset.c,
67441         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67442         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67443         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67444         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67445         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67446         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67447         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67448         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67449         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67450         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67451         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67452         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67453         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67454         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67455         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67456         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67457         test-md5.c, test-memmem.c, test-printf-posix.c,
67458         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67459         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67460         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67461         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67462         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67463         test-vasnprintf-posix2.c, test-vasnprintf.c,
67464         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67465         test-vfprintf-posix.c, test-vprintf-posix.c,
67466         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67467         test-xvasprintf.c: Likewise.
67468
67469 2007-05-28  Bruno Haible  <bruno@clisp.org>
67470
67471         * gnulib-tool (func_import): Remember the --with-tests command-line
67472         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67473         Reported by Eric Blake.
67474
67475 2007-05-28  Bruno Haible  <bruno@clisp.org>
67476
67477         * modules/ftell-tests: New file.
67478         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67479         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67480
67481         * lib/ftell.c: New file.
67482         * modules/ftell: New file.
67483         * m4/ftell.m4: New file.
67484         * doc/functions/ftell.texi: Update.
67485         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67486         REPLACE_FTELL.
67487         * lib/stdio_.h (rpl_ftell): New declaration.
67488         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67489         REPLACE_FTELL.
67490
67491 2007-05-28  Eric Blake  <ebb9@byu.net>
67492
67493         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67494
67495 2007-05-28  Bruno Haible  <bruno@clisp.org>
67496
67497         * modules/fseek-tests: New file.
67498         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67499         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67500
67501         * lib/fseek.c: New file.
67502         * modules/fseek: New file.
67503         * m4/fseek.m4: New file.
67504         * doc/functions/fseek.texi: Update.
67505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67506         REPLACE_FSEEK.
67507         * lib/stdio_.h (rpl_fseek): New declaration.
67508         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67509         REPLACE_FSEEK.
67510
67511 2007-05-28  Bruno Haible  <bruno@clisp.org>
67512
67513         * lib/stdio_.h (fflush): More comments.
67514
67515 2007-05-28  Bruno Haible  <bruno@clisp.org>
67516
67517         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67518         runtime test.
67519
67520 2007-05-28  Eric Blake  <ebb9@byu.net>
67521
67522         Improve lseek module.
67523         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67524         * lib/unistd_.h (lseek): Scale back link warning message.
67525         * tests/test-lseek.c: Beef up test.
67526         * tests/test-lseek.sh: Exercise more facets of lseek.
67527         Reported by Bruno Haible.
67528
67529 2007-05-28  Bruno Haible  <bruno@clisp.org>
67530
67531         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67532         to define.
67533
67534 2007-05-27  Bruno Haible  <bruno@clisp.org>
67535
67536         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67537
67538 2007-05-27  Bruno Haible  <bruno@clisp.org>
67539
67540         * modules/openmp: New file.
67541         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67542         Noah Misch.
67543
67544 2007-05-26  Bruno Haible  <bruno@clisp.org>
67545
67546         * modules/chdir-long (Depends-on): Add fchdir.
67547         * modules/chdir-safer (Depends-on): Likewise.
67548         * modules/fts (Depends-on): Likewise.
67549         * modules/fts-lgpl (Depends-on): Likewise.
67550         * modules/openat (Depends-on): Likewise.
67551         * modules/savewd (Depends-on): Likewise.
67552
67553 2007-05-24  Eric Blake  <ebb9@byu.net>
67554
67555         Fix lseek on mingw.
67556         * modules/lseek: New module.
67557         * m4/lseek.m4: New file.
67558         * lib/lseek.c: New file.
67559         * modules/lseek-tests: New file.
67560         * tests/test-lseek.c: New file.
67561         * tests/test-lseek.sh: New file.
67562         * MODULES.html.sh: Document lseek module.
67563         * modules/fflush (Depends-on): Add lseek, fseeko.
67564         * modules/fseeko (Depends-on): Likewise.
67565         * modules/ftello (Depends-on): Likewise.
67566         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67567         broken.
67568         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67569         broken.
67570         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67571         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67572         * lib/ftello.c (rpl_ftello): Likewise.
67573         * tests/test-fseeko.c (main): Test this.
67574         * tests/test-fseeko.sh: Likewise.
67575         * tests/test-ftello.c (main): Likewise.
67576         * tests/test-ftello.sh: Likewise.
67577         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67578         implies replacing fseek.
67579         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67580         HAVE_FTELLO.
67581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67582         * modules/unistd (Makefile.am): Likewise.
67583         * lib/unistd_.h (lseek): Declare a replacement.
67584         * doc/functions/lseek.texi (lseek): Document this fix.
67585         * doc/functions/fseek.texi (fseek): Likewise.
67586         * doc/functions/ftell.texi (ftell): Likewise.
67587
67588 2007-05-24  Bruno Haible  <bruno@clisp.org>
67589
67590         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
67591         in the printed representation of a NaN.
67592         * tests/test-vasprintf-posix.c (test_function): Likewise.
67593         * tests/test-snprintf-posix.h (test_function): Likewise.
67594         * tests/test-sprintf-posix.h (test_function): Likewise.
67595         Reported by Eric Blake.
67596
67597 2007-05-23  Eric Blake  <ebb9@byu.net>
67598
67599         Fix fseeko/ftello on cygwin 1.5.24.
67600         * doc/functions/fseeko.texi (fseeko): Document the fix.
67601         * doc/functions/ftello.texi (ftello): Document the fix.
67602         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
67603         * doc/functions/stdout.text (stdout): New file.
67604         * doc/functions/stderr.text (stderr): New file.
67605         * doc/gnulib.texi (Function Substitutes): Use new files.
67606         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
67607         prior to 1.7.0.
67608         * tests/test-ftello.c (main): Likewise for ftello.
67609         * tests/test-fseeko.sh: New file.
67610         * tests/test-ftello.sh: New file.
67611         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
67612         with seekable stdin.
67613         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
67614         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
67615         (gl_REPLACE_FSEEKO): New macro.
67616         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
67617         * modules/fseeko (Files): Distribute fseeko.c.
67618         * modules/ftello (Files): Distribute ftello.c.
67619         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
67620         mode.
67621         * lib/ftello.c (rpl_ftello): New file.
67622         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
67623         fseeko, ftello.
67624         (gl_STDIN_LARGE_OFFSET): New macro.
67625         * modules/stdio (Makefile.am): Perform the replacement.
67626         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
67627
67628 2007-05-23  Bruno Haible  <bruno@clisp.org>
67629
67630         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
67631         GNULIB_POSIXCHECK is defined.
67632
67633 2007-05-21  Bruno Haible  <bruno@clisp.org>
67634
67635         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
67636         Check also the output for NaN arguments. When cross-compiling, guess
67637         no on IRIX.
67638         * lib/vasnprintf.c: Update comments.
67639         * tests/test-vasnprintf-posix.c (strisnan): New function.
67640         (test_function): Use it.
67641         * tests/test-vasprintf-posix.c (strisnan): New function.
67642         (test_function): Use it.
67643         * tests/test-snprintf-posix.h (strisnan): New function.
67644         (test_function): Use it.
67645         * tests/test-sprintf-posix.h (strisnan): New function.
67646         (test_function): Use it.
67647         Reported by Eric Blake.
67648
67649 2007-05-20  Bruno Haible  <bruno@clisp.org>
67650
67651         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
67652         numbers that fails on BeOS.
67653         * doc/functions/frexpl.texi: Update.
67654
67655 2007-05-20  Jim Meyering  <jim@meyering.net>
67656
67657         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
67658         forced upon us by glibc-2.6.
67659
67660 2007-05-20  Bruno Haible  <bruno@clisp.org>
67661
67662         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
67663         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
67664         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
67665         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
67666         NEED_PRINTF_INFINITE.
67667         (is_infinitel): New function.
67668         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
67669         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
67670         gl_PREREQ_VASNPRINTF_INFINITE.
67671         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
67672         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67673         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
67674         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
67675         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
67676         gl_PREREQ_VASNPRINTF_INFINITE.
67677         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67678         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67679         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67680         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67681         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67682         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67683         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67684         * doc/functions/fprintf.texi: Update.
67685         * doc/functions/printf.texi: Update.
67686         * doc/functions/snprintf.texi: Update.
67687         * doc/functions/sprintf.texi: Update.
67688         * doc/functions/vfprintf.texi: Update.
67689         * doc/functions/vprintf.texi: Update.
67690         * doc/functions/vsnprintf.texi: Update.
67691         * doc/functions/vsprintf.texi: Update.
67692
67693 2007-05-20  Bruno Haible  <bruno@clisp.org>
67694
67695         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
67696         was not found in libc.
67697         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67698
67699 2007-05-20  Bruno Haible  <bruno@clisp.org>
67700
67701         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67702         printed as "-nan" instead of "nan".
67703         * tests/test-vasprintf-posix.c (test_function): Likewise.
67704         * tests/test-snprintf-posix.h (test_function): Likewise.
67705         * tests/test-sprintf-posix.h (test_function): Likewise.
67706         Needed for HP-UX 11.
67707
67708 2007-05-20  Jim Meyering  <jim@meyering.net>
67709
67710         Fix buggy test for the fchownat-deref bug.
67711         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
67712         symlink required for the run-test.  Without it, this test would
67713         always declare that fchownat doesn't work, and client code would
67714         unnecessarily use the replacement function with fixed libc.
67715         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
67716         Reported by Greg Schafer.
67717
67718 2007-05-19  Bruno Haible  <bruno@clisp.org>
67719
67720         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
67721         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
67722         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
67723         Needed for IRIX 6.5 and Solaris 2.5.1.
67724
67725 2007-05-19  Bruno Haible  <bruno@clisp.org>
67726
67727         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
67728         (test_function): Skip tests involving -0.0 on platforms where
67729         -0.0 = 0.0.
67730         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
67731         (test_function): Skip tests involving -0.0 on platforms where
67732         -0.0 = 0.0.
67733         * tests/test-snprintf-posix.h (have_minus_zero): New function.
67734         (test_function): Skip tests involving -0.0 on platforms where
67735         -0.0 = 0.0.
67736         * tests/test-sprintf-posix.h (have_minus_zero): New function.
67737         (test_function): Skip tests involving -0.0 on platforms where
67738         -0.0 = 0.0.
67739         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
67740         tests.
67741         * tests/test-printf-posix.h (test_function): Likewise.
67742         * tests/test-printf-posix.output: Remove all -0.0 related results.
67743         Needed for IRIX 6.5.
67744
67745 2007-05-19  Bruno Haible  <bruno@clisp.org>
67746
67747         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67748         printed as "nan0x7fffffff" instead of "nan".
67749         * tests/test-vasprintf-posix.c (test_function): Likewise.
67750         * tests/test-snprintf-posix.h (test_function): Likewise.
67751         * tests/test-sprintf-posix.h (test_function): Likewise.
67752         * tests/test-fprintf-posix.h (NaN): Remove macro.
67753         (test_function): Remove all NaN related tests.
67754         * tests/test-printf-posix.h (NaN): Remove macro.
67755         (test_function): Remove all NaN related tests.
67756         * tests/test-printf-posix.output: Remove all NaN related results.
67757         Needed for IRIX 6.5.
67758
67759 2007-05-19  Bruno Haible  <bruno@clisp.org>
67760
67761         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
67762         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
67763
67764 2007-05-19  Bruno Haible  <bruno@clisp.org>
67765
67766         * lib/float_.h: New file.
67767         * m4/float_h.m4: New file.
67768         * modules/float: New file.
67769         * modules/isnanl (Dependencies): Add float.
67770         * modules/isnanl-nolibm (Dependencies): Likewise.
67771         * modules/mathl (Dependencies): Likewise.
67772         * modules/printf-frexpl (Dependencies): Likewise.
67773         * modules/signbit (Dependencies): Likewise.
67774         * modules/vasnprintf (Dependencies): Likewise.
67775         * doc/headers/float.texi: Update.
67776
67777 2007-05-19  Jim Meyering  <jim@meyering.net>
67778
67779         * lib/utimens.c (gl_futimens): Rename from futimens,
67780         now that glibc-2.6 declares futimens.
67781         * lib/utimens.h: Likewise.
67782
67783 2007-05-19  Bruno Haible  <bruno@clisp.org>
67784
67785         Avoid test failures on mingw.
67786         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
67787         * tests/test-printf-posix.sh: Likewise.
67788         * tests/test-vfprintf-posix.sh: Likewise.
67789         * tests/test-vprintf-posix.sh: Likewise.
67790
67791 2007-05-19  Bruno Haible  <bruno@clisp.org>
67792
67793         Fix *printf result for NaN, Inf, -0.0 on mingw.
67794         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
67795         * lib/vasnprintf.c: Include math.h and isnan.h.
67796         (is_infinite_or_zero): New function.
67797         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
67798         values in the %f, %F, %e, %E, %g, %G directives.
67799         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
67800         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67801         gl_PRINTF_INFINITE and test its result. Invoke
67802         gl_PREREQ_VASNPRINTF_INFINITE.
67803         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67804         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67805         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67806         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67807         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67808         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67809         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67810         * doc/functions/fprintf.texi: Update.
67811         * doc/functions/printf.texi: Update.
67812         * doc/functions/snprintf.texi: Update.
67813         * doc/functions/sprintf.texi: Update.
67814         * doc/functions/vfprintf.texi: Update.
67815         * doc/functions/vprintf.texi: Update.
67816         * doc/functions/vsnprintf.texi: Update.
67817         * doc/functions/vsprintf.texi: Update.
67818
67819 2007-05-19  Bruno Haible  <bruno@clisp.org>
67820
67821         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
67822         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
67823         Instead of multiplying with 10^k, set extra_zeroes to k.
67824         (scale10_round_long_double): Remove function.
67825
67826 2007-05-18  Bruno Haible  <bruno@clisp.org>
67827
67828         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
67829         introduced on 2007-05-06.
67830
67831 2007-05-18  Bruno Haible  <bruno@clisp.org>
67832
67833         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
67834         %g directives.
67835         * tests/test-vasprintf-posix.c (test_function): Likewise.
67836         * tests/test-snprintf-posix.h (test_function): Likewise.
67837         * tests/test-sprintf-posix.h (test_function): Likewise.
67838
67839 2007-05-18  Bruno Haible  <bruno@clisp.org>
67840
67841         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
67842         (strmatch): New function.
67843         (test_function): Test the %f directive on numbers of various exponents.
67844         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
67845         (strmatch): New function.
67846         (test_function): Test the %f directive on numbers of various exponents.
67847         * tests/test-snprintf-posix.h (strmatch): New function.
67848         (test_function): Test the %f directive on numbers of various exponents.
67849         * tests/test-sprintf-posix.h (strmatch): New function.
67850         (test_function): Test the %f directive on numbers of various exponents.
67851         * tests/test-snprintf-posix.c (SIZEOF): New macro.
67852         * tests/test-sprintf-posix.c (SIZEOF): New macro.
67853         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
67854         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
67855
67856 2007-05-18  Bruno Haible  <bruno@clisp.org>
67857
67858         Add support for 'long double' number output.
67859         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
67860         * lib/vasnprintf.c: Include math.h and float+.h.
67861         (mp_limb_t): New type.
67862         (GMP_LIMB_BITS): New macro.
67863         (mp_twolimb_t): New type.
67864         (GMP_TWOLIMB_BITS): New macro.
67865         (mpn_t): New type.
67866         (multiply, divide, convert_to_decimal, decode_long_double,
67867         scale10_round_long_double, scale10_round_decimal_long_double,
67868         floorlog10l): New functions.
67869         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
67870         for the %f, %F, %e, %E, %g, %G directives.
67871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
67872         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67873         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
67874         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
67875         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67876         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67877         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67878         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67879         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67880         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67881         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67882         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
67883         * modules/snprintf-posix (Depends-on): Likewise.
67884         * modules/sprintf-posix (Depends-on): Likewise.
67885         * modules/vasnprintf-posix (Depends-on): Likewise.
67886         * modules/vasprintf-posix (Depends-on): Likewise.
67887         * modules/vfprintf-posix (Depends-on): Likewise.
67888         * modules/vsnprintf-posix (Depends-on): Likewise.
67889         * modules/vsprintf-posix (Depends-on): Likewise.
67890         * modules/vasnprintf (Files): Add lib/float+.h.
67891         * doc/functions/fprintf.texi: Update.
67892         * doc/functions/printf.texi: Update.
67893         * doc/functions/snprintf.texi: Update.
67894         * doc/functions/sprintf.texi: Update.
67895         * doc/functions/vfprintf.texi: Update.
67896         * doc/functions/vprintf.texi: Update.
67897         * doc/functions/vsnprintf.texi: Update.
67898         * doc/functions/vsprintf.texi: Update.
67899
67900 2007-05-18  Bruno Haible  <bruno@clisp.org>
67901
67902         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
67903
67904 2007-05-18  Bruno Haible  <bruno@clisp.org>
67905
67906         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
67907         for printing 64-bit integers. Needed for mingw.
67908
67909 2007-05-18  Bruno Haible  <bruno@clisp.org>
67910
67911         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67912         gl_FUNC_FREXPL_WORKS.
67913         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
67914
67915 2007-05-18  Bruno Haible  <bruno@clisp.org>
67916
67917         * modules/frexpl-nolibm-tests: New file.
67918
67919         * modules/frexpl-nolibm: New file.
67920         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
67921
67922 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67923
67924         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
67925         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67926         GCC 4.2, which otherwise issues a lot of warnings.
67927         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
67928         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
67929         Likewise.
67930         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
67931         * modules/iconv_open (iconv.h): Likewise.
67932         * modules/locale (locale.h): Likewise.
67933         * modules/netinet_in (netinet/in.h): Likewise.
67934         * modules/sys_select (sys_select.h): Likewise.
67935         * modules/sys_socket (sys/socket.h): Likewise.
67936         * modules/sys_stat (sys/stat.h): Likewise.
67937         * modules/sysexits (sysexits.h): Likewise.
67938         * modules/unistd (unistd.h): Likewise.
67939
67940 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67941
67942         * modules/closein-tests (Makefile.am): Distribute
67943         `test-closein.sh'.
67944
67945 2007-05-17  Bruno Haible  <bruno@clisp.org>
67946
67947         * tests/test-printf-posix.output: Renamed from
67948         tests/test-fprintf-posix.out.
67949         * modules/fprintf-posix-tests: Update.
67950         * modules/printf-posix-tests: Update.
67951         * modules/vfprintf-posix-tests: Update.
67952         * modules/vprintf-posix-tests: Update.
67953         * tests/test-fprintf-posix.sh: Update.
67954         * tests/test-printf-posix.sh: Update.
67955         * tests/test-vfprintf-posix.sh: Update.
67956         * tests/test-vprintf-posix.sh: Update.
67957         Reported by Ralf Wildenhues.
67958
67959 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67960
67961         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
67962         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67963         GCC 4.2, which otherwise issues a lot of warnings.
67964         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
67965         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
67966         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
67967         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
67968         it should no longer be needed.
67969         * lib/string_.h: Likewise.
67970         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
67971         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
67972         * modules/inttypes (inttypes.h): Likewise.
67973         * modules/math (math.h): Likewise.
67974         * modules/search (search.h): Likewise.
67975         * modules/signal (signal.h): Likewise.
67976         * modules/stdint (stdint.h): Likewise.
67977         * modules/stdio (stdio.h): Likewise.
67978         * modules/stdlib (stdlib.h): Likewise.
67979         * modules/string (string.h): Likewise.
67980         * modules/sys_time (sys/time.h): Likewise.
67981         * modules/time (time.h): Likewise.
67982         * modules/wchar (wchar.h): Likewise.
67983         * modules/wctype (wtype.h): Likewise.
67984
67985 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67986
67987         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
67988
67989 2007-05-13  Bruno Haible  <bruno@clisp.org>
67990
67991         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
67992         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67993         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
67994         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67995         (gl_PREREQ_STRTOK_R): Don't require it here.
67996
67997 2007-05-13  Bruno Haible  <bruno@clisp.org>
67998
67999         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68000         when used in C++ mode.
68001
68002 2007-05-12  Bruno Haible  <bruno@clisp.org>
68003
68004         * lib/linebuffer.h: Tweak doc.
68005         * lib/linebuffer.c: Likewise.
68006
68007 2007-05-12  James Youngman  <jay@gnu.org>
68008
68009         * lib/linebuffer.c (readlinebuffer_delim): New function,
68010         like readlinebuffer, but use a caller-specified delimiter.
68011         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68012         as the delimiter.
68013         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68014
68015 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68016
68017         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68018         * modules/openat (Files): Remove openat-die.c.
68019         (Depends-on): Add openat-die.
68020         * modules/openat-die: New module.
68021
68022 2007-05-06  Bruno Haible  <bruno@clisp.org>
68023
68024         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68025         Update with info about Cygwin.
68026         * doc/functions/fprintf.texi: Update.
68027         * doc/functions/printf.texi: Update.
68028         * doc/functions/snprintf.texi: Update.
68029         * doc/functions/sprintf.texi: Update.
68030         * doc/functions/vfprintf.texi: Update.
68031         * doc/functions/vprintf.texi: Update.
68032         * doc/functions/vsnprintf.texi: Update.
68033         * doc/functions/vsprintf.texi: Update.
68034         Reported by Eric Blake.
68035
68036 2007-05-06  Bruno Haible  <bruno@clisp.org>
68037
68038         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68039         padding ourselves for the floating-point directives.
68040         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68042         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68043         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68044         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68045         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68046         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68047         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68048         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68049         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68050         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68051         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68052         * tests/test-snprintf-posix.h (test_function): Also check the width
68053         and some flags in the %f directive.
68054         * tests/test-sprintf-posix.h (test_function): Likewise.
68055         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68056         * tests/test-vasprintf-posix.c (test_function): Likewise.
68057         * doc/functions/fprintf.texi: Update.
68058         * doc/functions/printf.texi: Update.
68059         * doc/functions/snprintf.texi: Update.
68060         * doc/functions/sprintf.texi: Update.
68061         * doc/functions/vfprintf.texi: Update.
68062         * doc/functions/vprintf.texi: Update.
68063         * doc/functions/vsnprintf.texi: Update.
68064         * doc/functions/vsprintf.texi: Update.
68065
68066 2007-05-06  Bruno Haible  <bruno@clisp.org>
68067
68068         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68069         pass the ' flag character to sprintf or snprintf.
68070         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68071         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68072         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68073         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68074         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68075         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68076         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68077         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68078         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68079         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68080         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68081         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68082         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68083         flag.
68084         * tests/test-sprintf-posix.h (test_function): Likewise.
68085         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68086         * tests/test-vasprintf-posix.c (test_function): Likewise.
68087         * doc/functions/fprintf.texi: Update.
68088         * doc/functions/printf.texi: Update.
68089         * doc/functions/snprintf.texi: Update.
68090         * doc/functions/sprintf.texi: Update.
68091         * doc/functions/vfprintf.texi: Update.
68092         * doc/functions/vprintf.texi: Update.
68093         * doc/functions/vsnprintf.texi: Update.
68094         * doc/functions/vsprintf.texi: Update.
68095
68096 2007-05-01  Bruno Haible  <bruno@clisp.org>
68097
68098         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68099
68100 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68101
68102         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68103         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68104
68105 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68106
68107         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68108         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68109         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68110
68111 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68112
68113         * lib/argp-help.c (struct hol_entry): New member `ord'.
68114         (HOL_ENTRY_PTRCMP): Use ord for comparison
68115         (hol_sort): Initialize ord.
68116
68117 2007-05-01  Bruno Haible  <bruno@clisp.org>
68118
68119         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68120         Reported by Eric Blake.
68121         * doc/gnulib.texi (Function Substitutes): Update.
68122
68123 2007-05-01  Bruno Haible  <bruno@clisp.org>
68124
68125         * doc/functions.texi: Remove file, now redundant through
68126         doc/functions/*.texi.
68127
68128 2007-05-01  Bruno Haible  <bruno@clisp.org>
68129
68130         * modules/argp (Depends-on): Add sleep.
68131
68132 2007-05-01  Bruno Haible  <bruno@clisp.org>
68133
68134         * modules/sleep-tests: New file.
68135         * tests/test-sleep.c: New file.
68136
68137         * modules/sleep: New file.
68138         * lib/sleep.c: New file.
68139         * m4/sleep.m4: New file.
68140         * lib/unistd_.h (sleep): New declaration.
68141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68142         HAVE_SLEEP.
68143         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68144         * doc/functions/sleep.texi: Document the sleep module.
68145
68146 2007-05-01  Bruno Haible  <bruno@clisp.org>
68147
68148         * lib/sigprocmask.h: Remove file.
68149         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68150         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68151         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68152         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68153         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68154         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68155         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68156         HAVE_SIGSET_T as a shell variable.
68157         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68158         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68159         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68160         (Depends-on): Add signal. Remove verify.
68161         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68162         (Include): Mention <signal.h> instead of sigprocmask.h.
68163         * NEWS: Mention the change.
68164         * lib/fatal-signal.c: Don't include sigprocmask.h.
68165
68166 2007-05-01  Bruno Haible  <bruno@clisp.org>
68167
68168         * modules/signal: New file.
68169         * lib/signal_.h: New file.
68170         * m4/signal_h.m4: New file.
68171
68172 2007-05-01  Bruno Haible  <bruno@clisp.org>
68173
68174         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68175         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68176         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68177         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68178
68179 2007-05-01  Bruno Haible  <bruno@clisp.org>
68180
68181         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68182         configure time.
68183         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68184         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68185         * modules/sys_stat (Makefile.am): Substitute their values into
68186         sys/stat.h.
68187
68188 2007-05-01  Bruno Haible  <bruno@clisp.org>
68189
68190         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68191         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68192         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68193
68194 2007-05-01  Bruno Haible  <bruno@clisp.org>
68195
68196         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68197         'assert' module here.
68198
68199 2007-05-01  Bruno Haible  <bruno@clisp.org>
68200
68201         * doc/functions/*.texi: New files.
68202         * doc/functions/google-ranking.txt: New file.
68203         * doc/gnulib.texi (Function Substitutes): New chapter.
68204         (ctime, inet_ntoa): Remove sections.
68205         * doc/ctime.texi: Remove file.
68206         * doc/inet_ntoa.texi: Remove file.
68207         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68208         dependencies.
68209         (%.info): New rule, specifying a --reference-limit.
68210
68211 2007-05-01  Bruno Haible  <bruno@clisp.org>
68212
68213         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68214
68215 2007-05-01  Bruno Haible  <bruno@clisp.org>
68216
68217         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68218         the portability of 'mkdir' to mingw systems.
68219
68220 2007-05-01  Bruno Haible  <bruno@clisp.org>
68221
68222         * doc/headers/google-ranking.txt: New file.
68223
68224 2007-04-30  Eric Blake  <ebb9@byu.net>
68225
68226         Prefer fseeko to fseek.
68227         * modules/getpass (Depends-on): Add fseeko.
68228         * lib/getpass.c (getpass): Use fseeko, not fseek.
68229
68230 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68231
68232         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68233         assumes the sorting is stable, while most qsort implementations
68234         are not.  Use argument addresses to ensure they never compare as
68235         equal.
68236
68237         * tests/test-argp-2.sh (usage-indent test): Fix output
68238         (func_compare): Restore diff options
68239         * tests/test-argp.c: Restore #include "progname.h"
68240
68241 2007-04-29  Bruno Haible  <bruno@clisp.org>
68242
68243         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68244         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68245         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68246         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68247         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68248         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68249         (TESTS, check_PROGRAMS): Add test-snprintf.
68250         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68251         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68252         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68253         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68254         assertions that fail on HP-UX, OSF/1, or IRIX.
68255         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68256
68257 2007-04-29  Bruno Haible  <bruno@clisp.org>
68258
68259         * MODULES.html.sh (posix_functions): Remove 'contents'.
68260
68261 2007-04-29  Karl Berry  <karl@gnu.org>
68262
68263         * config/srclist.txt (gendocs_template_min): new entry.
68264
68265 2007-04-29  Bruno Haible  <bruno@clisp.org>
68266
68267         Work around fpurge bug on BSD systems.
68268         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68269         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68270         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68271         fpurge to rpl_fpurge if the system already has this function.
68272         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68273         the case where the system already has this function. Correct invariants
68274         on BSD systems.
68275         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68276         BSD systems.
68277
68278 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68279
68280         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68281         proposed by Sven Verdoolaege.
68282
68283         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68284         options.
68285         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68286         (usage and help tests): Update
68287
68288 2007-04-29  Bruno Haible  <bruno@clisp.org>
68289
68290         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68291         Print more information in case of failure. Disable a test on BeOS.
68292
68293 2007-04-29  Bruno Haible  <bruno@clisp.org>
68294
68295         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68296         This helps debugging on systems on which no gdb is available.
68297
68298 2007-04-29  Bruno Haible  <bruno@clisp.org>
68299
68300         * lib/freading.h: Improve comments.
68301         * lib/fwriting.h: Likewise.
68302         * tests/test-freading.c (main): Don't check freading immediately after
68303         repositioning. Needed for glibc.
68304
68305 2007-04-29  Bruno Haible  <bruno@clisp.org>
68306
68307         * lib/freading.c (freading): Trivial simplification.
68308
68309 2007-04-28  Bruno Haible  <bruno@clisp.org>
68310
68311         * tests/test-fwriting.c (main): Also test the interaction between
68312         fflush and fwriting.
68313         * modules/fwriting-tests (Depends-on): Add fflush.
68314
68315         * tests/test-freading.c (main): Also test the interaction between
68316         fflush and freading.
68317         * modules/freading-tests (Depends-on): Add fflush.
68318
68319 2007-04-28  Bruno Haible  <bruno@clisp.org>
68320
68321         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68322         fseeko and ftello.
68323         Suggested by Eric Blake.
68324
68325 2007-04-28  Jim Meyering  <jim@meyering.net>
68326
68327         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68328         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68329         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68330
68331 2007-04-27  Eric Blake  <ebb9@byu.net>
68332
68333         * doc/headers/assert.texi (assert.h): Document assert module use.
68334
68335 2007-04-27  Bruno Haible  <bruno@clisp.org>
68336
68337         * doc/headers/*.texi: New files.
68338         * doc/gnulib.texi (Header File Substitutes): New chapter.
68339         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68340         dependencies.
68341         (standards.info ,standards.html, standards.dvi): Update dependencies.
68342         (mostlyclean, clean): New targets.
68343
68344 2007-04-27  Bruno Haible  <bruno@clisp.org>
68345
68346         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68347         * modules/sysexits (Files, Makefile.am): Update.
68348
68349         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68350         * modules/sys_socket (Files, Makefile.am): Update.
68351
68352         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68353         * modules/sys_stat (Files, Makefile.am): Update.
68354
68355 2007-04-27  Eric Blake  <ebb9@byu.net>
68356
68357         * lib/freading.h: Improve comments.
68358         * lib/fwriting.h: Likewise.
68359         * lib/fflush.c: Likewise.
68360
68361         Fix closein for mingw.
68362         * modules/closein-tests: Add tests for closein.
68363         * tests/test-closein.c: New file.
68364         * tests/test-closein.sh: Likewise.
68365         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68366         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68367
68368 2007-04-27  Bruno Haible  <bruno@clisp.org>
68369
68370         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68371         version is < 6.
68372         * lib/math_.h [__DECC]: Likewise.
68373         * lib/stdio_.h [__DECC]: Likewise.
68374         * lib/stdlib_.h [__DECC]: Likewise.
68375         * lib/string_.h [__DECC]: Likewise.
68376         * lib/time_.h [__DECC]: Likewise.
68377         * lib/wchar_.h [__DECC]: Likewise.
68378         * lib/wctype_.h [__DECC]: Likewise.
68379
68380 2007-04-27  Bruno Haible  <bruno@clisp.org>
68381
68382         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68383
68384 2007-04-27  Bruno Haible  <bruno@clisp.org>
68385
68386         * lib/fflush.c: Add comments.
68387         * modules/fpurge-tests (Depends-on): Add fflush.
68388         * modules/freadable-tests (Depends-on): Likewise.
68389         * modules/fwritable-tests (Depends-on): Likewise.
68390
68391 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68392
68393         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68394         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68395         Report by Bruno Haible <bruno@clisp.org>.
68396
68397 2007-04-26  Eric Blake  <ebb9@byu.net>
68398
68399         Fix fflush on mingw.
68400         * modules/fflush (Depends-on): Add freading.
68401         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68402         but unread data.
68403
68404 2007-04-26  Eric Blake  <ebb9@byu.net>
68405         and Bruno Haible  <bruno@clisp.org>
68406
68407         Implement freading and fwriting.
68408         * lib/freading.c: New file.
68409         * lib/freading.h: Likewise.
68410         * m4/freading.m4: Likewise.
68411         * modules/freading: Likewise.
68412         * modules/freading-tests: Likewise.
68413         * tests/test-freading.c: Likewise.
68414         * lib/fwriting.c: New file.
68415         * lib/fwriting.h: Likewise.
68416         * m4/fwriting.m4: Likewise.
68417         * modules/fwriting: Likewise.
68418         * modules/fwriting-tests: Likewise.
68419         * tests/test-fwriting.c: Likewise.
68420         * MODULES.html.sh (File stream based Input/Output): Mention them.
68421
68422 2007-04-26  Bruno Haible  <bruno@clisp.org>
68423
68424         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68425         'long' when we assume it.
68426         Suggested by Eric Blake.
68427
68428 2007-04-26  Bruno Haible  <bruno@clisp.org>
68429
68430         Ensure fseeko, ftello are declared on glibc systems.
68431         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68432         * modules/fseeko (configure.ac-early): Likewise.
68433         * modules/ftello (configure.ac-early): Likewise.
68434         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68435         AC_FUNC_FSEEKO for this.
68436         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68437         (gl_CHECK_FSEEKO): Remove macro.
68438
68439 2007-04-26  Bruno Haible  <bruno@clisp.org>
68440
68441         * tests/test-fflush.c (main): Also check the ftell result after
68442         fflush and fseek/fseeko.
68443         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68444         file descriptor position cache in the stream.
68445         * lib/fseeko.c (rpl_fseeko): Likewise.
68446
68447 2007-04-26  Bruno Haible  <bruno@clisp.org>
68448
68449         * modules/fflush-tests (Depends-on): Add fseeko.
68450
68451 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68452             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68453
68454         * lib/argz_.h: ensure error_t definition is obtained in same
68455         mechanism system argz.h would have.
68456         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68457         argz facilities are known bad.  Err on the side of caution if
68458         cross-compiling.
68459
68460 2007-04-25  Eric Blake  <ebb9@byu.net>
68461
68462         * lib/fpurge.c (includes): Use stdlib.h for free.
68463         * tests/test-fflush.c (main): Also test fflush-fseeko.
68464
68465 2007-04-25  Bruno Haible  <bruno@clisp.org>
68466
68467         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68468         * lib/fseeko.c: New file.
68469         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68470         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68471         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68472         gl_FUNC_FSEEKO.
68473         (gl_FUNC_FSEEKO): Invoke it.
68474         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68475         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68476         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68477
68478 2007-04-25  Bruno Haible  <bruno@clisp.org>
68479
68480         * modules/fflush (Depends-on): Add ftello.
68481
68482 2007-04-25  Bruno Haible  <bruno@clisp.org>
68483
68484         * modules/ftello-tests: New file.
68485         * tests/test-ftello.c: New file.
68486
68487         * modules/ftello: New file.
68488         * m4/ftello.m4: New file.
68489         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68490         HAVE_FTELLO.
68491         * lib/stdio_.h (ftello): New declaration.
68492         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68493         HAVE_FTELLO.
68494
68495 2007-04-25  Bruno Haible  <bruno@clisp.org>
68496
68497         * modules/fseeko-tests: New file.
68498         * tests/test-fseeko.c: New file.
68499
68500         * modules/fseeko: New file.
68501         * m4/fseeko.m4: New file.
68502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68503         HAVE_FSEEKO.
68504         * lib/stdio_.h (fseeko): New declaration.
68505         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68506         HAVE_FSEEKO.
68507
68508 2007-04-25  Bruno Haible  <bruno@clisp.org>
68509
68510         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68511
68512 2007-04-25  Bruno Haible  <bruno@clisp.org>
68513
68514         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68515         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68516         * tests/test-unistd.c: Likewise.
68517         * tests/test-fcntl.c: Likewise.
68518
68519 2007-04-23  Eric Blake  <ebb9@byu.net>
68520
68521         * lib/fflush.c: Fix missing include.
68522         Reported by Bruno Haible.
68523
68524 2007-04-23  Bruno Haible  <bruno@clisp.org>
68525
68526         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68527         Reported by Eric Blake.
68528
68529 2007-04-23  Bruno Haible  <bruno@clisp.org>
68530
68531         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68532
68533 2007-04-23  Bruno Haible  <bruno@clisp.org>
68534
68535         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68536
68537 2007-04-23  Bruno Haible  <bruno@clisp.org>
68538
68539         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68540         Needed on HP-UX 11.
68541
68542 2007-04-16  Eric Blake  <ebb9@byu.net>
68543
68544         Make fflush rely on fpurge.
68545         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68546         open coding all variants.
68547         * modules/fflush (Depends-on): Add fpurge and unistd.
68548         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68549         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68550
68551         Fix --with-tests compilation on cygwin.
68552         * modules/argmatch-tests (Makefile.am): List gnulib library first
68553         in LDADD.
68554         * modules/argp-tests (Makefile.am): Likewise.
68555         * modules/array-list-tests (Makefile.am): Likewise.
68556         * modules/array-oset-tests (Makefile.am): Likewise.
68557         * modules/avltree-list-tests (Makefile.am): Likewise.
68558         * modules/avltree-oset-tests (Makefile.am): Likewise.
68559         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68560         * modules/carray-list-tests (Makefile.am): Likewise.
68561         * modules/dirname-tests (Makefile.am): Likewise.
68562         * modules/frexp-tests (Makefile.am): Likewise.
68563         * modules/isnanl-tests (Makefile.am): Likewise.
68564         * modules/linked-list-tests (Makefile.am): Likewise.
68565         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68566         * modules/lock-tests (Makefile.am): Likewise.
68567         * modules/rbtree-list-tests (Makefile.am): Likewise.
68568         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68569         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68570         * modules/tls-tests (Makefile.am): Likewise.
68571         * modules/tsearch-tests (Makefile.am): Likewise.
68572         * modules/xvasprintf-tests (Makefile.am): Likewise.
68573
68574         Fix fpurge for cygwin.
68575         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68576         value.
68577         * modules/fpurge-tests (Depends-on): Clean up trash.
68578
68579 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68580
68581         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68582
68583         * m4/autobuild.m4: Re-indent.
68584
68585 2007-04-13  Bruno Haible  <bruno@clisp.org>
68586
68587         * modules/fpurge-tests: New file.
68588         * tests/test-fpurge.c: New file.
68589
68590         * modules/fpurge: New file.
68591         * lib/fpurge.h: New file.
68592         * lib/fpurge.c: New file.
68593         * m4/fpurge.m4: New file.
68594
68595 2007-04-13  Bruno Haible  <bruno@clisp.org>
68596
68597         * modules/fbufmode-tests: New file.
68598         * tests/test-fbufmode.c: New file.
68599
68600         * modules/fbufmode: New file.
68601         * lib/fbufmode.h: New file.
68602         * lib/fbufmode.c: New file.
68603         * m4/fbufmode.m4: New file.
68604
68605 2007-04-13  Bruno Haible  <bruno@clisp.org>
68606
68607         * modules/fwritable-tests: New file.
68608         * tests/test-fwritable.c: New file.
68609
68610         * modules/fwritable: New file.
68611         * lib/fwritable.h: New file.
68612         * lib/fwritable.c: New file.
68613         * m4/fwritable.m4: New file.
68614
68615 2007-04-13  Bruno Haible  <bruno@clisp.org>
68616
68617         * modules/freadable-tests: New file.
68618         * tests/test-freadable.c: New file.
68619
68620         * modules/freadable: New file.
68621         * lib/freadable.h: New file.
68622         * lib/freadable.c: New file.
68623         * m4/freadable.m4: New file.
68624
68625 2007-04-13  Bruno Haible  <bruno@clisp.org>
68626
68627         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
68628         MOSTLYCLEANFILES.
68629
68630 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68631
68632         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
68633         gzip bootstrap.conf to avoid dragging in i18n machinery.
68634         (gnulib_tool_option): Use it.
68635
68636 2007-04-13  Bruno Haible  <bruno@clisp.org>
68637
68638         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
68639         %F directives.
68640         * tests/test-vasprintf-posix.c (test_function): Likewise.
68641         * tests/test-snprintf-posix.h (test_function): Likewise.
68642         * tests/test-sprintf-posix.h (test_function): Likewise.
68643         * tests/test-fprintf-posix.h (test_function): Likewise.
68644         * tests/test-printf-posix.h (test_function): Likewise.
68645         * tests/test-fprintf-posix.out: Likewise.
68646
68647 2007-04-13  Bruno Haible  <bruno@clisp.org>
68648
68649         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
68650         * modules/tls-tests (configure.ac): Likewise.
68651         Reported by Arto C. Nirkko <anirkko@insel.ch>.
68652
68653 2007-04-13  Bruno Haible  <bruno@clisp.org>
68654
68655         * lib/tls.c (glthread_tls_get): Fix return type.
68656         Patch by Arto C. Nirkko <anirkko@insel.ch>.
68657
68658 2007-04-12  Eric Blake  <ebb9@byu.net>
68659
68660         * modules/gettime (Depends-on): Remove gettime.
68661         Reported by Dmitry V. Levin.
68662
68663 2007-04-12  Bruno Haible  <bruno@clisp.org>
68664
68665         * modules/fflush (Include): Mention <stdio.h>.
68666         * modules/strtoimax (Include): Mention <inttypes.h>.
68667         * modules/strtoumax (Include): Likewise.
68668
68669 2007-04-12  Eric Blake  <ebb9@byu.net>
68670
68671         * .cvsignore: New file.
68672         * .gitignore: Likewise.
68673
68674 2007-04-12  Bruno Haible  <bruno@clisp.org>
68675
68676         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
68677         not before, since $(LDADD) often contains libgnu.a.
68678         * modules/striconv-tests (test_striconv_LDADD): Likewise.
68679         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
68680         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
68681         Needed on Cygwin.
68682
68683 2007-04-12  Eric Blake  <ebb9@byu.net>
68684
68685         Work around glibc's failure to flush stdin on fclose.
68686         * lib/closein.c (close_stdin): Flush stdin before closing.
68687
68688         Work around glibc's failure to reset seekable stdin on exit.
68689         * modules/closein: New module.
68690         * lib/closein.c: New file.
68691         * lib/closein.h: Likewise.
68692         * m4/closein.m4: Likewise.
68693         * MODULES.html.sh (File stream based Input/Output): Document it.
68694
68695 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68696
68697         * gnulib-tool: Rename generated 'autobuild' script to
68698         'do-autobuild' in --create-megatestdir output.
68699
68700         * doc/gnulib.texi (Build robot for gnulib): Fix.
68701
68702 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68703
68704         * modules/sysexits (Depends-on): Add absolute-header.
68705
68706 2007-04-12  Eric Blake  <ebb9@byu.net>
68707
68708         No need to preserve errno on success.
68709         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
68710         Reported by Bruno Haible.
68711
68712 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68713
68714         * MODULES.html.sh (Support for maintaining and releasing
68715         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
68716
68717 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68718
68719         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
68720
68721 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68722
68723         * modules/autobuild: New module.
68724
68725         * m4/autobuild.m4: New file.
68726
68727 2007-04-11  Bruno Haible  <bruno@clisp.org>
68728
68729         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
68730         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
68731         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
68732         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
68733         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68734         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68735         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68736         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68737         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68738         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68739         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
68740         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68741         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68742         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
68743         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68744         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68745         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
68746         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68747         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68748         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_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/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_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/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_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         Reported by Eric Blake.
68758
68759 2007-04-11  Bruno Haible  <bruno@clisp.org>
68760
68761         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
68762
68763 2007-04-10  Bruno Haible  <bruno@clisp.org>
68764
68765         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
68766         for NaN and Infinity. Needed on FreeBSD 6.1.
68767         * tests/test-vasnprintf-posix.c (test_function): Undo last change
68768         regarding results for "%010a" of Infinity and NaN.
68769         * tests/test-vasprintf-posix.c (test_function): Likewise.
68770         * tests/test-snprintf-posix.h (test_function): Likewise.
68771         * tests/test-sprintf-posix.h (test_function): Likewise.
68772         * tests/test-fprintf-posix.h (test_function): Likewise.
68773         * tests/test-printf-posix.h (test_function): Likewise.
68774         * tests/test-fprintf-posix.out: Likewise.
68775
68776 2007-04-10  Bruno Haible  <bruno@clisp.org>
68777
68778         * modules/locale-tests: New file.
68779         * tests/test-locale.c: New file.
68780
68781         * modules/locale: New file.
68782         * lib/locale_.h: New file.
68783         * m4/locale_h.m4: New file.
68784
68785 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
68786             Bruno Haible  <bruno@clisp.org>
68787
68788         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
68789         be determined, test for availability of the copysignf, copysign,
68790         copysignl functions.
68791         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
68792         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
68793         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
68794
68795 2007-04-09  Eric Blake  <ebb9@byu.net>
68796
68797         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
68798         * modules/stdio (Makefile.am): Support fflush.
68799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68800         * modules/fflush: New file.
68801         * lib/fflush.c: Likewise.
68802         * m4/fflush.m4: Likewise.
68803         * modules/fflush-tests: New test.
68804         * tests/test-fflush.c: Likewise.
68805         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
68806
68807 2007-04-06  Bruno Haible  <bruno@clisp.org>
68808
68809         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
68810         (VASNPRINTF): Use signbit for faster determination whether to print a
68811         minus sign.
68812         * modules/vasnprintf (Files): Remove lib/float+.h.
68813         * modules/fprintf-posix (Depends-on): Add signbit.
68814         * modules/snprintf-posix (Depends-on): Likewise.
68815         * modules/sprintf-posix (Depends-on): Likewise.
68816         * modules/vasnprintf-posix (Depends-on): Likewise.
68817         * modules/vasprintf-posix (Depends-on): Likewise.
68818         * modules/vfprintf-posix (Depends-on): Likewise.
68819         * modules/vsnprintf-posix (Depends-on): Likewise.
68820         * modules/vsprintf-posix (Depends-on): Likewise.
68821
68822 2007-04-06  Bruno Haible  <bruno@clisp.org>
68823
68824         * tests/test-frexp.c (main): Test also the sign bit of zero results.
68825         * tests/test-frexpl.c (main): Likewise.
68826         * tests/test-ldexpl.c (main): Likewise.
68827         * modules/frexp-tests (Depends-on): Add signbit.
68828         * modules/frexpl-tests (Depdends-on): Likewise.
68829         * modules/ldexpl-tests (Depdends-on): Likewise.
68830
68831 2007-04-06  Bruno Haible  <bruno@clisp.org>
68832
68833         * modules/signbit-tests: New file.
68834         * tests/test-signbit.c: New file.
68835
68836         * modules/signbit: New file.
68837         * lib/signbitf.c: New file.
68838         * lib/signbitd.c: New file.
68839         * lib/signbitl.c: New file.
68840         * m4/signbit.m4: New file.
68841         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
68842         (signbit): New macro.
68843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
68844         REPLACE_SIGNBIT.
68845         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
68846         REPLACE_FREXPL into math.h.
68847
68848 2007-04-06  Bruno Haible  <bruno@clisp.org>
68849
68850         * modules/isnanf-nolibm-tests: New file.
68851         * tests/test-isnanf.c: New file.
68852
68853         * modules/isnanf-nolibm: New file.
68854         * lib/isnanf.h: New file.
68855         * lib/isnanf.c: New file.
68856         * lib/isnan.c: Consider the USE_FLOAT macro.
68857         * m4/isnanf.m4: New file.
68858
68859 2007-04-06  Bruno Haible  <bruno@clisp.org>
68860
68861         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
68862         (Link): New section.
68863
68864         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
68865
68866 2007-04-06  Bruno Haible  <bruno@clisp.org>
68867
68868         Assume the 'long double' type.
68869         * m4/longdouble.m4: Remove file.
68870         * config/srclist.txt: Don't mention longdouble.m4.
68871         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
68872         * lib/float+.h: Likewise.
68873         * lib/frexp.c: Likewise.
68874         * lib/printf-args.h: Likewise.
68875         * lib/printf-args.c: Likewise.
68876         * lib/printf-frexp.c: Likewise.
68877         * lib/printf-parse.c: Likewise.
68878         * lib/vasnprintf.c: Likewise.
68879         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
68880         * m4/intl.m4: Likewise.
68881         * m4/isnanl.m4: Likewise.
68882         * m4/printf.m4: Likewise.
68883         * m4/printf-frexpl.m4: Likewise.
68884         * m4/vasnprintf.m4: Likewise.
68885         * modules/allocsa (Files): Remove m4/longdouble.m4.
68886         * modules/gettext (Files): Likewise.
68887         * modules/relocatable-prog-wrapper (Files): Likewise.
68888         * modules/vasnprintf (Files): Likewise.
68889         * modules/isnanl (Files): Likewise.
68890         (Include): Simplify.
68891         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
68892         (Include): Simplify.
68893         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
68894         (Include): Simplify.
68895         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
68896         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68897         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
68898         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68899         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68900         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68901         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
68902         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68903         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68904         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68905         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
68906         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68907         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
68908         * tests/test-isnanl.c: Likewise.
68909         * tests/test-snprintf-posix.h: Likewise.
68910         * tests/test-sprintf-posix.h: Likewise.
68911         * tests/test-vasnprintf-posix.c: Likewise.
68912         * tests/test-vasnprintf-posix2.c: Likewise.
68913         * tests/test-vasprintf-posix.c: Likewise.
68914
68915 2007-04-06  Bruno Haible  <bruno@clisp.org>
68916
68917         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
68918         * lib/math_.h [__DECC]: Include the overridden include file through
68919         #include_next, outside the double-inclusion guard.
68920         * lib/stdio_.h [__DECC]: Likewise.
68921         * lib/stdlib_.h [__DECC]: Likewise.
68922         * lib/string_.h [__DECC]: Likewise.
68923         * lib/time_.h [__DECC]: Likewise.
68924         * lib/wchar_.h [__DECC]: Likewise.
68925         * lib/wctype_.h [__DECC]: Likewise.
68926         * lib/inttypes_.h [__DECC]: Likewise.
68927         Reported by Albert Chin <china@thewrittenword.com> in
68928         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
68929
68930 2007-04-04  Eric Blake  <ebb9@byu.net>
68931
68932         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
68933         1.5.x.
68934
68935 2007-04-04  Bruno Haible  <bruno@clisp.org>
68936
68937         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
68938         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
68939
68940 2007-04-04  Bruno Haible  <bruno@clisp.org>
68941
68942         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
68943         results for "%010a" of Infinity and NaN.
68944         * tests/test-vasprintf-posix.c (test_function): Likewise.
68945         * tests/test-snprintf-posix.h (test_function): Likewise.
68946         * tests/test-sprintf-posix.h (test_function): Likewise.
68947         * tests/test-fprintf-posix.h (test_function): Remove these tests.
68948         * tests/test-printf-posix.h (test_function): Likewise.
68949         * tests/test-fprintf-posix.out: Update.
68950         Needed for FreeBSD 6.1.
68951
68952 2007-04-04  Bruno Haible  <bruno@clisp.org>
68953
68954         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
68955         directly used by the gnulib modules nor by gnulib-tool.
68956
68957 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68958
68959         * DEPENDENCIES: Give overall description of version dependency
68960         desirability.  Use more-typical names for apps.
68961         Add shell, coreutils, diffutils, grep, tar, gzip.
68962
68963 2007-04-04  Simon Josefsson  <simon@josefsson.org>
68964
68965         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
68966
68967 2007-04-04  Karl Berry  <karl@gnu.org>
68968
68969         * MODULES.html.sh (func_module): missing '.
68970
68971 2007-04-03  Bruno Haible  <bruno@clisp.org>
68972
68973         * modules/argmatch-tests (Makefile.am): New variable
68974         test_argmatch_LDADD.
68975         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
68976         * modules/array-list-tests (Makefile.am): New variable
68977         test_array_list_LDADD.
68978         * modules/array-oset-tests (Makefile.am): New variable
68979         test_array_oset_LDADD.
68980         * modules/avltree-list-tests (Makefile.am): New variable
68981         test_avltree_list_LDADD.
68982         * modules/avltree-oset-tests (Makefile.am): New variable
68983         test_avltree_oset_LDADD.
68984         * modules/avltreehash-list-tests (Makefile.am): New variable
68985         test_avltreehash_list_LDADD.
68986         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
68987         test_canonicalize_lgpl_LDADD.
68988         * modules/carray-list-tests (Makefile.am): New variable
68989         test_carray_list_LDADD.
68990         * modules/dirname-tests (Makefile.am): New variable
68991         test_dirname_LDADD.
68992         * modules/linked-list-tests (Makefile.am): New variable
68993         test_linked_list_LDADD.
68994         * modules/linkedhash-list-tests (Makefile.am): New variable
68995         test_linkedhash_list_LDADD.
68996         * modules/rbtree-list-tests (Makefile.am): New variable
68997         test_rbtree_list_LDADD.
68998         * modules/rbtree-oset-tests (Makefile.am): New variable
68999         test_rbtree_oset_LDADD.
69000         * modules/rbtreehash-list-tests (Makefile.am): New variable
69001         test_rbtreehash_list_LDADD.
69002         * modules/xvasprintf-tests (Makefile.am): New variable
69003         test_xvasprintf_LDADD.
69004         Reported by Eric Blake.
69005
69006 2007-04-03  Eric Blake  <ebb9@byu.net>
69007
69008         * DEPENDENCIES: Weaken m4 requirements.
69009
69010 2007-04-03  Bruno Haible  <bruno@clisp.org>
69011
69012         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69013         * modules/isnanl-tests (configure.ac): Likewise.
69014
69015 2007-04-03  Ben Pfaff  <blp@gnu.org>
69016
69017         * modules/iconv_open: Add $(srcdir)/ to source directory
69018         references in Makefile fragments that call gperf, to fix VPATH
69019         builds.
69020
69021 2007-04-03  Bruno Haible  <bruno@clisp.org>
69022
69023         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69024         * lib/ldexpl.c: Undo last change.
69025
69026 2007-04-03  Bruno Haible  <bruno@clisp.org>
69027
69028         * modules/printf-frexpl (Depends-on): Undo last change.
69029         (Files): Add m4/ldexpl.m4.
69030
69031 2007-04-03  Bruno Haible  <bruno@clisp.org>
69032
69033         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69034         * modules/isnanl (Link): New section.
69035
69036         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69037         * modules/frexp (Link): New section.
69038
69039         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69040         * modules/frexpl (Link): New section.
69041
69042         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69043         * modules/ldexpl (Link): New section.
69044
69045 2007-04-03  Bruno Haible  <bruno@clisp.org>
69046
69047         * modules/TEMPLATE-EXTENDED: New file.
69048         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69049
69050 2007-04-03  Bruno Haible  <bruno@clisp.org>
69051
69052         * DEPENDENCIES: New file.
69053         Suggested by Simon Josefsson.
69054
69055 2007-04-03  Bruno Haible  <bruno@clisp.org>
69056
69057         * doc/gnulib.texi: Escape @.
69058
69059 2007-04-03  James Youngman  <jay@gnu.org>
69060         and Paul Eggert  <eggert@cs.ucla.edu>
69061
69062         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69063         birthtime on all systems that have birthtime, not just those which
69064         use st_birthtimensec rather than st_birthtim.  Putting zero in
69065         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69066         that the birth time is not available for files on an NFS mount.
69067
69068 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69069
69070         * modules/memxor: Move back from crypto/, suggested by Bruno.
69071         * modules/crypto/hmac-sha1: Fix memxor dependency.
69072
69073         * modules/crypto/gc: Moved from ../.
69074
69075 2007-04-02  Eric Blake  <ebb9@byu.net>
69076
69077         * lib/ldexpl.c (includes): Avoid libm.
69078
69079         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69080
69081 2007-04-02  Bruno Haible  <bruno@clisp.org>
69082
69083         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69084         on IRIX.
69085
69086 2007-04-02  Bruno Haible  <bruno@clisp.org>
69087
69088         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69089         x86 or x86_64 platforms running MacOS X.
69090         Reported by Ryan Schmidt <@ryandesign.com>.
69091
69092 2007-04-02  Bruno Haible  <bruno@clisp.org>
69093
69094         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69095         i386.
69096
69097 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69098
69099         * modules/crypto/arcfour: Moved from ../.
69100         * modules/crypto/arcfour-tests: Moved from ../.
69101         * modules/crypto/arctwo: Moved from ../.
69102         * modules/crypto/arctwo-tests: Moved from ../.
69103         * modules/crypto/des: Moved from ../.
69104         * modules/crypto/des-tests: Moved from ../.
69105         * modules/crypto/gc-arcfour: Moved from ../.
69106         * modules/crypto/gc-arcfour-tests: Moved from ../.
69107         * modules/crypto/gc-arctwo: Moved from ../.
69108         * modules/crypto/gc-arctwo-tests: Moved from ../.
69109         * modules/crypto/gc-des: Moved from ../.
69110         * modules/crypto/gc-des-tests: Moved from ../.
69111         * modules/crypto/gc-hmac-md5: Moved from ../.
69112         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69113         * modules/crypto/gc-hmac-sha1: Moved from ../.
69114         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69115         * modules/crypto/gc-md2: Moved from ../.
69116         * modules/crypto/gc-md2-tests: Moved from ../.
69117         * modules/crypto/gc-md4: Moved from ../.
69118         * modules/crypto/gc-md4-tests: Moved from ../.
69119         * modules/crypto/gc-md5: Moved from ../.
69120         * modules/crypto/gc-md5-tests: Moved from ../.
69121         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69122         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69123         * modules/crypto/gc-random: Moved from ../.
69124         * modules/crypto/gc-rijndael: Moved from ../.
69125         * modules/crypto/gc-rijndael-tests: Moved from ../.
69126         * modules/crypto/gc-sha1: Moved from ../.
69127         * modules/crypto/gc-sha1-tests: Moved from ../.
69128         * modules/crypto/gc-tests: Moved from ../.
69129         * modules/crypto/hmac-md5: Moved from ../.
69130         * modules/crypto/hmac-md5-tests: Moved from ../.
69131         * modules/crypto/hmac-sha1: Moved from ../.
69132         * modules/crypto/hmac-sha1-tests: Moved from ../.
69133         * modules/crypto/md2: Moved from ../.
69134         * modules/crypto/md2-tests: Moved from ../.
69135         * modules/crypto/md4: Moved from ../.
69136         * modules/crypto/md4-tests: Moved from ../.
69137         * modules/crypto/md5: Moved from ../.
69138         * modules/crypto/md5-tests: Moved from ../.
69139         * modules/crypto/memxor: Moved from ../.
69140         * modules/crypto/rijndael: Moved from ../.
69141         * modules/crypto/rijndael-tests: Moved from ../.
69142         * modules/crypto/sha1: Moved from ../.
69143
69144 2007-03-30  James Youngman  <jay@gnu.org>
69145
69146         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69147         rename() to change the ctime of a file (because ctime is unaffected
69148         by rename on jfs2 on AIX 5.1).
69149         (main): Start by doing cleanup, in case a previous run failed leaving
69150         test files behind.
69151
69152 2007-03-31  Bruno Haible  <bruno@clisp.org>
69153
69154         Support old proprietary implementations of iconv.
69155         * modules/iconv_open: New file.
69156         * lib/iconv_.h: New file.
69157         * m4/iconv_h.m4: New file.
69158         * lib/iconv_open.c: New file.
69159         * lib/iconv_open-aix.gperf: New file.
69160         * lib/iconv_open-hpux.gperf: New file.
69161         * lib/iconv_open-irix.gperf: New file.
69162         * lib/iconv_open-osf.gperf: New file.
69163         * m4/iconv_open.m4: New file.
69164         * modules/linebreak (Depends-on): Add iconv_open.
69165         * modules/striconv (Depends-on): Likewise.
69166         * modules/striconveh (Depends-on): Likewise.
69167         * modules/unicodeio (Depends-on): Likewise.
69168         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69169         (iconv_t)(-1).
69170         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69171         conversion if cd is (iconv_t)(-1).
69172         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69173         is not possible.
69174
69175 2007-03-31  Bruno Haible  <bruno@clisp.org>
69176
69177         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69178         work on Solaris either. Protect also second use of "autodetect_jp".
69179
69180 2007-03-31  Bruno Haible  <bruno@clisp.org>
69181
69182         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69183         the function is not present.
69184
69185 2007-03-31  Bruno Haible  <bruno@clisp.org>
69186
69187         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69188         the function is not present.
69189
69190 2007-03-31  Bruno Haible  <bruno@clisp.org>
69191
69192         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69193         a bug in HP-UX iconv_open().
69194
69195 2007-03-31  Bruno Haible  <bruno@clisp.org>
69196
69197         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69198         (Mathematics <math.h>): New section, add fpieee.
69199         (Input/output <stdio.h>): Add fseterr.
69200         (Mathematics <math.h>): New section, add printf-frexp.
69201         (Container data structures): Add sublist.
69202         (Core language properties): Add fpucw, inline.
69203         (Functions for greatest-width integer types <inttypes.h>): Add
69204         imaxabs, imaxdiv, inttypes.
69205         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69206         isnanl-nolibm, ldexp.
69207         (Mathematics <math.h>): New section, add printf-frexpl.
69208         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69209         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69210         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69211         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69212         (Unicode string functions): Add unistr/u*-mbtoucr.
69213         (Java): Add javacomp-script, javaexec-script.
69214         (C#): Add csharpcomp-script, csharpexec-script.
69215         (Support for building libraries and executables): Add havelib,
69216         relocatable-*.
69217         (Support for maintaining and releasing projects): Renamed from
69218         'Support for maintaining and release projects'. Add announce-gen.
69219
69220 2007-03-31  Bruno Haible  <bruno@clisp.org>
69221
69222         * README: Talk primarily about git.
69223         (git and CVS): Renamed from CVS.
69224         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69225         gnulib is available through git.
69226         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69227
69228 2007-03-30  Bruno Haible  <bruno@clisp.org>
69229
69230         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69231         * lib/poll_.h: Likewise.
69232         * lib/stat_.h: Likewise.
69233         * lib/sys_time_.h: Likewise.
69234         * lib/sysexit_.h: Likewise.
69235         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69236         * lib/stdbool_.h: Likewise.
69237         * lib/byteswap_.h: Add double-inclusion guard.
69238
69239 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69240
69241         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69242
69243 2007-03-30  Karl Berry  <karl@gnu.org>
69244
69245         * config/srclist-update: double space after USA in the license
69246         substitution, since that's how it's usually (?) written.
69247
69248 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69249
69250         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69251         reported by Bruno Haible.
69252
69253 2007-03-29  Bruno Haible  <bruno@clisp.org>
69254
69255         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69256         a bug in AIX iconv().
69257
69258 2007-03-29  Bruno Haible  <bruno@clisp.org>
69259
69260         * modules/ldexpl-tests: New file.
69261         * tests/test-ldexpl.c: New file.
69262
69263 2007-03-29  Bruno Haible  <bruno@clisp.org>
69264
69265         * lib/ldexpl.c: Include fpucw.h.
69266         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69267         multiplication.
69268         * modules/ldexpl (Depends-on): Add fpucw.
69269
69270 2007-03-29  Bruno Haible  <bruno@clisp.org>
69271
69272         * modules/ldexpl: New file.
69273         * m4/ldexpl.m4: New file.
69274         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69275         set.
69276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69277         REPLACE_LDEXPL.
69278         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69279         REPLACE_LDEXPL.
69280         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69281         gl_FUNC_LDEXPL_WORKS.
69282         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69283         * modules/mathl (Files): Remove lib/ldexpl.c.
69284         (Depends-on): Add ldexpl.
69285
69286 2007-03-29  Bruno Haible  <bruno@clisp.org>
69287
69288         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69289
69290 2007-03-29  Bruno Haible  <bruno@clisp.org>
69291
69292         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69293         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69294         and possibly also HP-UX.
69295         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69296         work on AIX, IRIX, HP-UX, OSF/1.
69297         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69298         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69299         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69300         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69301         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69302         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69303
69304 2007-03-29  Bruno Haible  <bruno@clisp.org>
69305
69306         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69307
69308 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69309
69310         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69311         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69312
69313 2007-03-29  Eric Blake  <ebb9@byu.net>
69314
69315         * lib/acl-internal.h: Remove redundant include.
69316         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69317         Cygwin when a file is locked.
69318
69319 2007-03-29  Bruno Haible  <bruno@clisp.org>
69320
69321         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69322         file.
69323         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69324
69325 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69326
69327         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69328         try to remove a parent directory if the child couldn't be removed
69329         (except for the first rmdir, which could fail because the child
69330         doesn't exist).  Problem reported by Jeff Blaine in
69331         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69332
69333 2007-03-28  Bruno Haible  <bruno@clisp.org>
69334
69335         * lib/striconveh.c (utf8conv_carefully): New function.
69336         (mem_cd_iconveh_internal): Invoke it.
69337
69338 2007-03-28  Bruno Haible  <bruno@clisp.org>
69339
69340         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69341         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69342         input.
69343         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69344         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69345         unistr/u8-uctomb.
69346
69347 2007-03-28  Bruno Haible  <bruno@clisp.org>
69348
69349         * modules/unistr/u8-mbtoucr: New file.
69350         * lib/unistr/u8-mbtoucr.c: New file.
69351         * modules/unistr/u16-mbtoucr: New file.
69352         * lib/unistr/u16-mbtoucr.c: New file.
69353         * modules/unistr/u16-mbtoucr: New file.
69354         * lib/unistr/u16-mbtoucr.c: New file.
69355         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69356
69357 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69358             Bruno Haible  <bruno@clisp.org>
69359
69360         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69361         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69362         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69363
69364         * m4/stdio_h.m4: Add stubs for vasprintf too.
69365
69366         * modules/stdio: Support vasprintf in sed command.
69367
69368         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69369         vasprintf.h.  Add stdio module indicator.
69370
69371         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69372         vasprintf.h.
69373
69374         * lib/vasprintf.h: File removed.
69375
69376         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69377         * lib/vasprintf.c: Ditto.
69378         * lib/xvasprintf.c: Ditto.
69379         * tests/test-vasprintf-posix.c: Ditto.
69380         * tests/test-vasprintf.c: Ditto.
69381
69382 2007-03-27  Bruno Haible  <bruno@clisp.org>
69383
69384         Make vasnprintf multithread-safe.
69385         * lib/vasnprintf.c (decimal_point_char): New function.
69386         (VASNPRINTF): Use it.
69387         Suggested by Simon Josefsson.
69388
69389 2007-03-27  Eric Blake  <ebb9@byu.net>
69390
69391         Support sub-second birthtime on cygwin.
69392         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69393         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69394         (get_stat_birthtime): Also work with st_birthtim.
69395
69396 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69397
69398         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69399         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69400         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69401         (get_stat_birthtime_ns): Simplify compile-time tests.
69402         (get_stat_birthtime): Change the API to look like
69403         get_stat_mtime etc., except return a negative tv_nsec on error.
69404         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69405         Don't check for "spare" fields.
69406         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69407         or for struct stat.st_birthtime, as these tests aren't used.
69408         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69409
69410 2007-03-27  Bruno Haible  <bruno@clisp.org>
69411
69412         * lib/stat-time.h: Include <sys/stat.h>.
69413
69414 2007-03-27  James Youngman  <jay@gnu.org>
69415
69416         * lib/stat-time.h (get_stat_birthtime): New function for
69417           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69418         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69419           and its variants.
69420         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69421         * modules/stat-time-test: New file.
69422         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69423
69424 2007-03-26  Bruno Haible  <bruno@clisp.org>
69425
69426         Better support of signalling NaNs.
69427         * lib/atanl.c: Include isnanl.h.
69428         (atanl): Perform test for NaN at the beginning of the function and
69429         through a call to isnanl.
69430         * lib/cosl.c: Include isnanl.h.
69431         (cosl): Perform test for NaN at the beginning of the function and
69432         through a call to isnanl.
69433         * lib/ldexpl.c: Include isnanl.h.
69434         (ldexpl): Perform test for NaN through a call to isnanl.
69435         * lib/logl.c: Include isnanl.h.
69436         (logl): Perform test for NaN at the beginning of the function and
69437         through a call to isnanl.
69438         * lib/sinl.c: Include isnanl.h.
69439         (sinl): Perform test for NaN at the beginning of the function and
69440         through a call to isnanl.
69441         * lib/sqrtl.c: Include isnanl.h.
69442         (sqrtl): Perform test for NaN at the beginning of the function and
69443         through a call to isnanl.
69444         * lib/tanl.c: Include isnanl.h.
69445         (tanl): Perform test for NaN at the beginning of the function and
69446         through a call to isnanl.
69447         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69448         * modules/mathl (Depends-on): Add isnanl.
69449
69450 2007-03-26  Eric Blake  <ebb9@byu.net>
69451
69452         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69453         regression in logic sense of previous patch.
69454
69455 2007-03-26  Bruno Haible  <bruno@clisp.org>
69456
69457         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69458         unportable shell command "if ! ...".
69459         Reported by Ralf Wildenhues.
69460
69461 2007-03-25  Bruno Haible  <bruno@clisp.org>
69462
69463         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69464         <sysexits.h> file, and only add EX_CONFIG.
69465         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69466         absolute file name and whether it is sufficient. Substitute also
69467         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69468         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69469         ABSOLUTE_SYSEXITS_H into sysexits.h.
69470
69471 2007-03-25  Bruno Haible  <bruno@clisp.org>
69472
69473         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69474         hints is NULL.
69475
69476 2007-03-25  Bruno Haible  <bruno@clisp.org>
69477
69478         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69479         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69480
69481 2007-03-25  Bruno Haible  <bruno@clisp.org>
69482
69483         * lib/vasnprintf.c: Include langinfo.h.
69484         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69485         multithread-safe.
69486         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69487         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69488         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69489         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69490         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69491         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69492         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69493         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69494         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69495         Reported by Simon Josefsson.
69496
69497 2007-03-25  Bruno Haible  <bruno@clisp.org>
69498
69499         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69500         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69501         * modules/vasnprintf (Depends-on): Add stdint.
69502
69503 2007-03-25  Bruno Haible  <bruno@clisp.org>
69504
69505         * modules/fpieee: New file.
69506         * m4/fpieee.m4: New file.
69507         * modules/isnan-nolibm (Depends-on): Add fpieee.
69508         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69509         * modules/isnanl (Depends-on): Add fpieee.
69510
69511 2007-03-25  Bruno Haible  <bruno@clisp.org>
69512
69513         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69514
69515 2007-03-25  Bruno Haible  <bruno@clisp.org>
69516
69517         Avoid test failures on IRIX 6.5.
69518         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69519         (main): Use it.
69520         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69521         macros.
69522         (main): Use them.
69523
69524 2007-03-25  Bruno Haible  <bruno@clisp.org>
69525
69526         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69527         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69528         exists but doesn't work.
69529         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69530         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69531         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69532         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69533         math.h.
69534
69535 2007-03-25  Bruno Haible  <bruno@clisp.org>
69536
69537         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69538         returns inf. Needed on IRIX 6.5.
69539
69540 2007-03-25  Bruno Haible  <bruno@clisp.org>
69541
69542         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69543         (main): Use isnanl instead of x != x idiom.
69544         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69545
69546         * tests/test-frexp.c: Include isnan.h.
69547         (main): Use isnan instead of x != x idiom.
69548         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69549
69550 2007-03-25  Bruno Haible  <bruno@clisp.org>
69551
69552         * tests/test-frexp.c (NaN): New function/macro.
69553         (main): Use it instead of 0.0 / 0.0.
69554         * tests/test-isnan.c (NaN): New function/macro.
69555         (main): Use it instead of 0.0 / 0.0.
69556         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69557         (test_function): Use it instead of 0.0 / 0.0.
69558         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69559         (test_function): Use it instead of 0.0 / 0.0.
69560         * tests/test-snprintf-posix.h (NaN): New function/macro.
69561         (test_function): Use it instead of 0.0 / 0.0.
69562         * tests/test-sprintf-posix.h (NaN): New function/macro.
69563         (test_function): Use it instead of 0.0 / 0.0.
69564         * tests/test-fprintf-posix.h (NaN): New function/macro.
69565         (test_function): Use it instead of 0.0 / 0.0.
69566         * tests/test-printf-posix.h (NaN): New function/macro.
69567         (test_function): Use it instead of 0.0 / 0.0.
69568
69569         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69570
69571 2007-03-25  Bruno Haible  <bruno@clisp.org>
69572
69573         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69574
69575 2007-03-25  Bruno Haible  <bruno@clisp.org>
69576
69577         * lib/regexec.c (merge_state_with_log): Make static.
69578
69579 2007-03-25  Bruno Haible  <bruno@clisp.org>
69580
69581         * lib/trigl.c (kernel_rem_pio2): Make static.
69582
69583 2007-03-25  Bruno Haible  <bruno@clisp.org>
69584
69585         * lib/sincosl.c (sincosl_table): Make static.
69586
69587 2007-03-25  Bruno Haible  <bruno@clisp.org>
69588
69589         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
69590         if the compiler does not support C99.
69591
69592 2007-03-25  Bruno Haible  <bruno@clisp.org>
69593
69594         * modules/time (Makefile.am): Ensure all rule action lines start with a
69595         tab.
69596
69597 2007-03-24  Bruno Haible  <bruno@clisp.org>
69598
69599         * modules/tsearch-tests: New file.
69600         * tests/test-tsearch.sh: New file.
69601         * tests/test-tsearch.c: New file, mostly copied from glibc.
69602
69603         * modules/search-tests: New file.
69604         * tests/test-search.c: New file.
69605
69606         * modules/search: New file.
69607         * lib/search_.h: New file, incorporating lib/tsearch.h.
69608         * m4/search_h.m4: New file.
69609         * lib/tsearch.h: Remove file.
69610         * lib/tsearch.c: Include search.h instead of tsearch.h.
69611         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
69612         HAVE_TSEARCH.
69613         * modules/tsearch (Files): Remove lib/tsearch.h.
69614         (Depends-on): Add search.
69615         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
69616         (Include): Change tsearch.h into search.h.
69617
69618 2007-03-24  Bruno Haible  <bruno@clisp.org>
69619
69620         * modules/fpucw: New file.
69621         * lib/fpucw.h: New file.
69622         * lib/frexp.c: Include fpucw.h.
69623         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69624         (FUNC): Use them.
69625         * lib/printf-frexp.c: Include fpucw.h.
69626         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69627         (FUNC): Use them.
69628         * lib/vasnprintf.c: Include fpucw.h.
69629         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
69630         'long double' calculations.
69631         * tests/test-frexpl.c: Include fpucw.h.
69632         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69633         * tests/test-printf-frexpl.c: Include fpucw.h.
69634         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69635         * modules/frexpl (Depends-on): Add fpucw.
69636         * modules/printf-frexpl (Depends-on): Likewise.
69637         * modules/fprintf-posix (Depends-on): Likewise.
69638         * modules/snprintf-posix (Depends-on): Likewise.
69639         * modules/sprintf-posix (Depends-on): Likewise.
69640         * modules/vasnprintf-posix (Depends-on): Likewise.
69641         * modules/vasprintf-posix (Depends-on): Likewise.
69642         * modules/vfprintf-posix (Depends-on): Likewise.
69643         * modules/vsnprintf-posix (Depends-on): Likewise.
69644         * modules/vsprintf-posix (Depends-on): Likewise.
69645         * modules/frexpl-tests (Depends-on): Likewise.
69646         * modules/printf-frexpl-tests (Depends-on): Likewise.
69647
69648 2007-03-24  Bruno Haible  <bruno@clisp.org>
69649
69650         * lib/float+.h: New file.
69651         * lib/isnan.c: Include float+.h.
69652         (SIZE): New macro.
69653         (FUNC): Compare only SIZE bytes of the value.
69654         * lib/vasnprintf.c: Include float+.h.
69655         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
69656         SIZEOF_LDBL or SIZEOF_DBL bytes.
69657         * modules/isnan-nolibm (Files): Add lib/float+.h.
69658         * modules/isnanl-nolibm (Files): Add lib/float+.h.
69659         * modules/isnanl (Files): Add lib/float+.h.
69660         * modules/vasnprintf (Files): Add lib/float+.h.
69661
69662 2007-03-24  Bruno Haible  <bruno@clisp.org>
69663
69664         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
69665         include isnanl-nolibm.h.
69666
69667 2007-03-24  Bruno Haible  <bruno@clisp.org>
69668
69669         * tests/test-read-file.c (main): Don't produce spurious output for
69670         expected situations. Make the test fail if it encountered unexpected
69671         results.
69672
69673 2007-03-24  Bruno Haible  <bruno@clisp.org>
69674
69675         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
69676         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
69677
69678 2007-03-24  Bruno Haible  <bruno@clisp.org>
69679
69680         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
69681
69682 2007-03-24  Bruno Haible  <bruno@clisp.org>
69683
69684         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
69685         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
69686
69687         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
69688         * modules/utf8-ucs4: Turn into a symbolic link to module
69689         unistr/u8-mbtouc.
69690
69691         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
69692         utf8-ucs4-unsafe.
69693         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
69694         unistr/u8-mbtouc-unsafe.
69695
69696         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
69697         * modules/utf16-ucs4: Turn into a symbolic link to module
69698         unistr/u16-mbtouc.
69699
69700         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
69701         utf16-ucs4-unsafe.
69702         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
69703         unistr/u16-mbtouc-unsafe.
69704
69705         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
69706         * modules/ucs4-utf8: Turn into a symbolic link to module
69707         unistr/u8-ubtomb.
69708
69709         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
69710         * modules/ucs4-utf16: Turn into a symbolic link to module
69711         unistr/u16-ubtomb.
69712
69713 2007-03-24  Bruno Haible  <bruno@clisp.org>
69714
69715         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
69716         Enable the function only if HAVE_INLINE.
69717         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
69718         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69719         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
69720         Enable the function only if HAVE_INLINE.
69721         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
69722         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69723         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
69724         Enable the function only if HAVE_INLINE.
69725         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
69726         Enable the function only if HAVE_INLINE.
69727         * modules/utf8-ucs4: Update.
69728         * modules/utf8-ucs4-unsafe: Update.
69729         * modules/utf16-ucs4: Update.
69730         * modules/utf16-ucs4-unsafe: Update.
69731         * modules/ucs4-utf8: Update.
69732         * modules/ucs4-utf16: Update.
69733
69734 2007-03-24  Bruno Haible  <bruno@clisp.org>
69735
69736         * lib/utf8-ucs4.h: Remove file.
69737         * lib/utf8-ucs4-unsafe.h: Remove file.
69738         * lib/utf16-ucs4.h: Remove file.
69739         * lib/utf16-ucs4-unsafe.h: Remove file.
69740         * lib/ucs4-utf8.h: Remove file.
69741         * lib/ucs4-utf16.h: Remove file.
69742         * lib/unistr.h: Include their previous contents.
69743         * m4/utf-ucs4.m4: Remove file.
69744         * m4/ucs4-utf.m4: Remove file.
69745         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
69746         (Depends-on): Add unistr/base.
69747         (configure.ac): Remove gl_UTF_UCS4.
69748         (Makefile.am): Update.
69749         (Include): Change to unistr.h.
69750         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
69751         (Depends-on): Add unistr/base.
69752         (configure.ac): Remove gl_UTF_UCS4.
69753         (Makefile.am): Update.
69754         (Include): Change to unistr.h.
69755         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
69756         (Depends-on): Add unistr/base.
69757         (configure.ac): Remove gl_UTF_UCS4.
69758         (Makefile.am): Update.
69759         (Include): Change to unistr.h.
69760         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.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/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
69766         (Depends-on): Add unistr/base.
69767         (configure.ac): Remove gl_UCS4_UTF.
69768         (Makefile.am): Update.
69769         (Include): Change to unistr.h.
69770         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
69771         (Depends-on): Add unistr/base.
69772         (configure.ac): Remove gl_UCS4_UTF.
69773         (Makefile.am): Update.
69774         (Include): Change to unistr.h.
69775         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
69776         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
69777         utf8-ucs4-unsafe.h.
69778         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
69779         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
69780         utf16-ucs4-unsafe.h.
69781         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
69782         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
69783         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
69784         * lib/unistr/u8-strchr.c: Likewise.
69785         * lib/unistr/u8-strrchr.c: Likewise.
69786         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
69787         * lib/unistr/u16-strchr.c: Likewise.
69788         * lib/unistr/u16-strrchr.c: Likewise.
69789         * lib/striconveh.c: Update.
69790         * lib/linebreak.c: Update.
69791
69792 2007-03-24  Bruno Haible  <bruno@clisp.org>
69793
69794         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
69795         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
69796
69797 2007-03-22  Bruno Haible  <bruno@clisp.org>
69798
69799         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
69800
69801 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69802
69803         * MODULES.html.sh (File system functions): New module write-any-file.
69804         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
69805         * m4/write-any-file.m4: New files.
69806
69807 2007-03-23  Eric Blake  <ebb9@byu.net>
69808
69809         * gnulib-tool: Rearrange space-tab sequences, since some editors
69810         like to eat them.
69811
69812 2007-03-23  Eric Blake  <ebb9@byu.net>
69813
69814         * lib/version-etc.c (version_etc_va): Update license wording to
69815         be more concise.  Recommended by Richard Stallman.
69816
69817 2007-03-22  Bruno Haible  <bruno@clisp.org>
69818
69819         * lib/poll.c (MSG_PEEK): New fallback definition.
69820
69821 2007-03-22  Bruno Haible  <bruno@clisp.org>
69822
69823         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
69824         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
69825         (main): Update.
69826         Fixes a compilation error on BeOS.
69827
69828 2007-03-22  Bruno Haible  <bruno@clisp.org>
69829
69830         * modules/frexpl-tests: New file.
69831         * tests/test-frexpl.c: New file.
69832
69833         * modules/frexpl: New file.
69834         * m4/frexpl.m4: New file.
69835         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
69836         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
69837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
69838         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
69839         (Depends-on): Add frexpl. Remove isnanl-nolibm.
69840         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
69841
69842 2007-03-22  Bruno Haible  <bruno@clisp.org>
69843
69844         * lib/frexpl.c: Share code with lib/frexp.c.
69845         * modules/mathl (Files): Add lib/frexp.c.
69846         (Depends-on): Add isnanl-nolibm.
69847
69848 2007-03-22  Bruno Haible  <bruno@clisp.org>
69849
69850         * modules/printf-frexp (Files): Add m4/frexp.m4.
69851         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
69852         only if the found frexp function actually works.
69853
69854 2007-03-22  Bruno Haible  <bruno@clisp.org>
69855
69856         * lib/frexp.c: Remove older implementation that uses divisions.
69857
69858 2007-03-21  Bruno Haible  <bruno@clisp.org>
69859
69860         * modules/frexp-tests: New file.
69861         * tests/test-frexp.c: New file.
69862
69863         * modules/frexp: New file.
69864         * lib/frexp.c: New file.
69865         * m4/frexp.m4: New file.
69866         * lib/math_.h (frexp): New declaration.
69867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
69868         REPLACE_FREXP.
69869         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
69870
69871 2007-03-21  Bruno Haible  <bruno@clisp.org>
69872
69873         * modules/isnanl-tests: New file.
69874         * tests/test-isnanl.c: New file.
69875
69876         * modules/isnanl: New file.
69877         * lib/isnanl.h: New file.
69878         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
69879         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
69880         gl_FUNC_ISNANL_WORKS.
69881         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
69882         New macros.
69883
69884 2007-03-21  Bruno Haible  <bruno@clisp.org>
69885
69886         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
69887         lib/isnanl.h.
69888         (Include): Update.
69889         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
69890         * lib/vasnprintf.c: Update.
69891         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
69892         tests/test-isnanl.h, remove tests/test-isnanl.c.
69893         (Makefile.am): Update.
69894         * tests/test-isnanl-nolibm.c: New file.
69895         * tests/test-isnanl.h: New file.
69896         * tests/test-isnanl.c: Remove file.
69897
69898 2007-03-21  Jim Meyering  <jim@meyering.net>
69899
69900         When trying to open ".", treat ESTALE like EACCES.
69901         * lib/savewd.c (savewd_save): Resort to forking not just upon
69902         failure with EACCES, but also when errno is ESTALE.
69903
69904 2007-03-20  Bruno Haible  <bruno@clisp.org>
69905
69906         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
69907         Needed on AIX 5.1. Reported by Matthew Woehlke.
69908
69909 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69910
69911         Suggestions by Bruno Haible:
69912         * lib/acl-internal.h: Include "gettext.h" rather than rolling
69913         our own.
69914         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
69915         * modules/acl (Depends-on): Add gettext.
69916
69917 2007-03-19  Bruno Haible  <bruno@clisp.org>
69918
69919         * modules/iconvme: Remove file.
69920         * lib/iconvme.h: Remove file.
69921         * lib/iconvme.c: Remove file.
69922         * m4/iconvme.m4: Remove file.
69923
69924 2007-03-19  Bruno Haible  <bruno@clisp.org>
69925
69926         * doc/relocatable-maint.texi: Break long shell script line.
69927         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69928
69929 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69930
69931         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
69932         handle file_has_acl.
69933         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
69934         * lib/acl.c: Move header inclusions and related macro defns into
69935         lib/acl-internal.h.
69936         (S_ISLNK): Remove defn, since that's now done for us.
69937         (file_has_acl): Move to lib/file-has-acl.c.
69938         Call acl_trivial if available.  This is the crucial part of the fix.
69939         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
69940         shared within the library.  Rewrite a bit, partly to make it compatible
69941         with the GNU coding style.
69942         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
69943         Remove unnecessary double-quotes.
69944         Don't test for acl_to_text; the build will catch that.
69945         Replace acl_entries if it doesn't exist and it is needed.
69946         Check for -lsec and acl_trivial (as used on Solaris 10).
69947         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
69948         lib/file-has-acl.c.
69949         (Depends-on): Add sys_stat, for S_ISLNK.
69950
69951 2007-03-19  Ben Pfaff  <blp@gnu.org>
69952
69953         * doc/gnulib.texi: Fix typos.
69954         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69955
69956 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69957
69958         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
69959         If size is zero here, buf must be zero.
69960
69961 2007-03-19  Simon Josefsson  <simon@josefsson.org>
69962
69963         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
69964         <bruno@clisp.org>.
69965
69966 2007-03-18  Bruno Haible  <bruno@clisp.org>
69967
69968         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
69969         Suggested by Eric Blake.
69970
69971 2007-03-18  Ben Pfaff  <blp@gnu.org>
69972
69973         * doc/relocatable.texi: Recommend using as prefix a directory
69974         that does not exist and will never be created.  Based on
69975         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
69976         and others.
69977
69978 2007-03-17  Bruno Haible  <bruno@clisp.org>
69979
69980         * lib/fchownat.c: Include lchown.h.
69981
69982 2007-03-17  Bruno Haible  <bruno@clisp.org>
69983
69984         Fix endless loop when the given allocated size was > INT_MAX.
69985         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
69986         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
69987         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
69988         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
69989         * lib/sprintf.c (sprintf): Likewise.
69990
69991 2007-03-17  Bruno Haible  <bruno@clisp.org>
69992
69993         * tests/test-argp-2.sh (func_compare): Output a context diff.
69994
69995 2007-03-17  Bruno Haible  <bruno@clisp.org>
69996
69997         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
69998         locale's decimal-point character.
69999
70000 2007-03-17  Bruno Haible  <bruno@clisp.org>
70001
70002         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70003         before comparing it. Needed because on some platforms (e.g. x86) a
70004         'long double' occupies less bytes than sizeof (long double).
70005
70006 2007-03-17  Bruno Haible  <bruno@clisp.org>
70007
70008         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70009         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70010         * tests/test-getaddrinfo.c (simple): Likewise.
70011         * tests/test-read-file.c (main): Likewise.
70012
70013 2007-03-17  Bruno Haible  <bruno@clisp.org>
70014
70015         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70016
70017 2007-03-17  Bruno Haible  <bruno@clisp.org>
70018
70019         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70020         unused variable.
70021
70022 2007-03-17  Bruno Haible  <bruno@clisp.org>
70023
70024         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70025         * tests/test-c-strncasecmp.c: Likewise.
70026
70027 2007-03-17  Bruno Haible  <bruno@clisp.org>
70028
70029         * modules/stdlib (Depends-on): Add unistd.
70030         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70031         Needed for MacOS X 10.3.
70032
70033 2007-03-17  Bruno Haible  <bruno@clisp.org>
70034
70035         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70036
70037 2007-03-17  Bruno Haible  <bruno@clisp.org>
70038
70039         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70040
70041 2007-03-17  Bruno Haible  <bruno@clisp.org>
70042
70043         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70044         to reflect files copied from gnulib (with or without modifications).
70045         Suggested by Jim Meyering.
70046
70047 2007-03-17  Eric Blake  <ebb9@byu.net>
70048
70049         * NEWS: Document stdlib change from 2007-02-18.
70050
70051 2007-03-17  Jim Meyering  <jim@meyering.net>
70052
70053         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70054         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70055         someone uses a name containing shell meta-characters.
70056         Reported by Alfred M. Szmidt.
70057
70058         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70059
70060 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70061
70062         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70063         and copy gettext configuration files only if configure.ac contains
70064         a use of AM_GNU_GETTEXT_VERSION.
70065
70066 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70067
70068         * build-aux/bootstrap (gnulib_name): New variable.
70069         (gnulib_tool_options): Use it.
70070
70071 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70072
70073         * tests/test-des.c: Use new namespace.
70074
70075 2007-03-15  Bruno Haible  <bruno@clisp.org>
70076
70077         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70078         Reported by James Youngman <jay@gnu.org>.
70079
70080 2007-03-15  Bruno Haible  <bruno@clisp.org>
70081
70082         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70083         declared prototype. Needed with cc on OSF/1 5.1.
70084
70085 2007-03-15  Bruno Haible  <bruno@clisp.org>
70086
70087         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70088         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70089         (struct gl_list_implementation): Add dispose_fn argument to the
70090         'create_empty', 'create' methods.
70091         (struct gl_list_impl_base): Add field 'dispose_fn'.
70092         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70093         argument.
70094         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70095         dispose_fn argument.
70096         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70097         dispose_fn on the dropped values.
70098         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70099         dispose_fn argument.
70100         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70101         dropped values.
70102         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70103         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70104         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70105         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70106         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70107         argument.
70108         (gl_tree_list_free): Call dispose_fn on the dropped values.
70109         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70110         the dropped values.
70111         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70112         Add dispose_fn argument.
70113         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70114         Call dispose_fn on the dropped values.
70115         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70116         Add dispose_fn argument.
70117         (gl_sublist_create): Initialize the 'dispose_fn' field.
70118         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70119         * tests/test-array_list.c (main): Update.
70120         * tests/test-carray_list.c (main): Update.
70121         * tests/test-avltree_list.c (main): Update.
70122         * tests/test-rbtree_list.c (main): Update.
70123         * tests/test-avltreehash_list.c (main): Update.
70124         * tests/test-rbtreehash_list.c (main): Update.
70125         * tests/test-linked_list.c (main): Update.
70126         * tests/test-linkedhash_list.c (main): Update.
70127         * tests/test-array_oset.c (main): Update.
70128
70129 2007-03-15  Bruno Haible  <bruno@clisp.org>
70130
70131         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70132         (gl_oset_create_empty): Add dispose_fn argument.
70133         (struct gl_oset_implementation): Add dispose_fn argument to
70134         'create_empty' method.
70135         (struct gl_oset_impl_base): Add dispose_fn field.
70136         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70137         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70138         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70139         values.
70140         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70141         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70142         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70143         dropped value.
70144         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70145         dropped value.
70146         * tests/test-array_oset.c (main): Update.
70147         * tests/test-avltree_oset.c (main): Update.
70148         * tests/test-rbtree_oset.c (main): Update.
70149         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70150
70151 2007-03-13  Bruno Haible  <bruno@clisp.org>
70152
70153         * tests/test-stdbool.c (i): Update after last patch.
70154
70155 2007-03-12  Bruno Haible  <bruno@clisp.org>
70156
70157         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70158         the iswprint macro. Needed on Solaris 2.5.1.
70159
70160 2007-03-12  Bruno Haible  <bruno@clisp.org>
70161
70162         * tests/test-printf-frexp.c (main): Declare x as volatile.
70163
70164 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70165
70166         * doc/gnulib.texi (Build robot for gnulib): New section.
70167
70168 2007-03-12  Jim Meyering  <jim@meyering.net>
70169
70170         * build-aux/bootstrap: New file.
70171         * build-aux/bootstrap.conf: New file, from coreutils.
70172
70173 2007-03-11  Bruno Haible  <bruno@clisp.org>
70174
70175         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70176
70177 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70178
70179         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70180         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70181         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70182
70183 2007-03-11  Bruno Haible  <bruno@clisp.org>
70184
70185         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70186         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70187
70188 2007-03-11  Bruno Haible  <bruno@clisp.org>
70189
70190         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70191         formula. Needed for SunPRO C 5.0.
70192
70193 2007-03-11  Bruno Haible  <bruno@clisp.org>
70194
70195         * modules/long-options (Depends-on): Add getopt.
70196
70197 2007-03-11  Bruno Haible  <bruno@clisp.org>
70198
70199         * modules/modechange (Depends-on): Add stdbool.
70200
70201 2007-03-11  Bruno Haible  <bruno@clisp.org>
70202
70203         * modules/i-ring (Depends-on): Add stdbool.
70204
70205 2007-03-11  Bruno Haible  <bruno@clisp.org>
70206
70207         * modules/gc-des (Depends-on): Add stdbool.
70208
70209 2007-03-11  Bruno Haible  <bruno@clisp.org>
70210
70211         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70212
70213 2007-03-11  Bruno Haible  <bruno@clisp.org>
70214
70215         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70216
70217 2007-03-11  Bruno Haible  <bruno@clisp.org>
70218
70219         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70220
70221 2007-03-11  Bruno Haible  <bruno@clisp.org>
70222
70223         * lib/vasnprintf.c (sprintf): Undefine.
70224
70225 2007-03-11  Bruno Haible  <bruno@clisp.org>
70226
70227         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70228         initializers in SunPRO C and Compaq C compilers.
70229
70230 2007-03-11  Bruno Haible  <bruno@clisp.org>
70231
70232         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70233         decrementing code ANSI C compliant.
70234
70235 2007-03-11  Bruno Haible  <bruno@clisp.org>
70236
70237         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70238         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70239
70240 2007-03-11  Bruno Haible  <bruno@clisp.org>
70241
70242         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70243         <stdbool.h> substitute doesn't pass.
70244
70245 2007-03-11  Bruno Haible  <bruno@clisp.org>
70246
70247         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70248
70249 2007-03-11  Bruno Haible  <bruno@clisp.org>
70250
70251         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70252         script, for submission to autobuild.josefsson.org.
70253
70254 2007-03-10  Bruno Haible  <bruno@clisp.org>
70255
70256         * modules/canonicalize-lgpl-tests: New file.
70257         * tests/test-canonicalize-lgpl.sh: New file.
70258         * tests/test-canonicalize-lgpl.c: New file.
70259
70260         * modules/c-strcase-tests: New file.
70261         * tests/test-c-strcase.sh: New file.
70262         * tests/test-c-strcasecmp.c: New file.
70263         * tests/test-c-strncasecmp.c: New file.
70264
70265         * modules/atexit-tests: New file.
70266         * tests/test-atexit.sh: New file.
70267         * tests/test-atexit.c: New file.
70268
70269 2007-03-10  Bruno Haible  <bruno@clisp.org>
70270
70271         * tests/test-binary-io.sh: Use temporary filenames that are not so
70272         likely to clash with those of other tests (in a parallel make).
70273         * tests/test-binary-io.c: Likewise.
70274
70275 2007-03-10  Bruno Haible  <bruno@clisp.org>
70276
70277         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70278         fallback; use #error instead.
70279         Suggested by Simon Josefsson.
70280
70281 2007-03-10  Bruno Haible  <bruno@clisp.org>
70282
70283         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70284         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70285         first and the last.
70286
70287 2007-03-10  Bruno Haible  <bruno@clisp.org>
70288
70289         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70290
70291 2007-03-10  Bruno Haible  <bruno@clisp.org>
70292
70293         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70294         "make distcheck".
70295         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70296         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70297         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70298
70299 2007-03-10  Bruno Haible  <bruno@clisp.org>
70300
70301         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70302         variable.
70303         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70304         variable.
70305
70306 2007-03-09  Eric Blake  <ebb9@byu.net>
70307         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70308
70309         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70310         types are not being provided by gnulib.
70311         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70312         types are supported.
70313
70314 2007-03-10  Bruno Haible  <bruno@clisp.org>
70315
70316         * lib/stdio_.h (__attribute__): New macro.
70317         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70318         vsprintf): Specify __attribute__ __format__ for GCC.
70319         Suggested by Eric Blake.
70320
70321 2007-03-09  Bruno Haible  <bruno@clisp.org>
70322
70323         * modules/printf-posix-tests: New file.
70324         * tests/test-printf-posix.sh: New file.
70325         * tests/test-printf-posix.c: New file.
70326
70327         * modules/printf-posix: New file.
70328         * lib/printf.c: New file.
70329         * m4/printf-posix-rpl.m4: New file.
70330         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70331         REPLACE_PRINTF.
70332         * lib/stdio_.h (printf): New declaration.
70333         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70334         ____strfmon____): New macros.
70335         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70336         REPLACE_PRINTF.
70337
70338 2007-03-09  Bruno Haible  <bruno@clisp.org>
70339
70340         * tests/test-vasnprintf-posix2.sh: New file.
70341         * tests/test-vasnprintf-posix2.c: New file.
70342         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70343         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70344         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70345
70346         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70347         a locale dependent decimal point, rather than always '.'.
70348
70349 2007-03-09  Eric Blake  <ebb9@byu.net>
70350
70351         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70352         spite of platforms like Tandem/NSK that define it to -1.
70353
70354 2007-03-08  Bruno Haible  <bruno@clisp.org>
70355
70356         * modules/vprintf-posix-tests: New file.
70357         * tests/test-vprintf-posix.sh: New file.
70358         * tests/test-vprintf-posix.c: New file.
70359         * tests/test-printf-posix.h: New file.
70360
70361         * modules/vprintf-posix: New file.
70362         * lib/vprintf.c: New file.
70363         * m4/vprintf-posix.m4: New file.
70364         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70365         REPLACE_VPRINTF.
70366         * lib/stdio_.h (vprintf): New declaration.
70367         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70368         REPLACE_VPRINTF.
70369
70370 2007-03-08  Bruno Haible  <bruno@clisp.org>
70371
70372         * modules/fprintf-posix-tests: New file.
70373         * tests/test-fprintf-posix.sh: New file.
70374         * tests/test-fprintf-posix.c: New file.
70375
70376         * modules/fprintf-posix: New file.
70377         * lib/fprintf.c: New file.
70378         * m4/fprintf-posix.m4: New file.
70379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70380         REPLACE_FPRINTF.
70381         * lib/stdio_.h (fprintf): New declaration.
70382         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70383         REPLACE_FPRINTF.
70384
70385 2007-03-08  Bruno Haible  <bruno@clisp.org>
70386
70387         * modules/vfprintf-posix-tests: New file.
70388         * tests/test-vfprintf-posix.sh: New file.
70389         * tests/test-vfprintf-posix.c: New file.
70390         * tests/test-fprintf-posix.h: New file.
70391         * tests/test-fprintf-posix.out: New file.
70392
70393         * modules/vfprintf-posix: New file.
70394         * lib/vfprintf.c: New file.
70395         * m4/vfprintf-posix.m4: New file.
70396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70397         REPLACE_VFPRINTF.
70398         * lib/stdio_.h (vfprintf): New declaration.
70399         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70400         REPLACE_VFPRINTF.
70401
70402 2007-03-08  Bruno Haible  <bruno@clisp.org>
70403
70404         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70405
70406 2007-03-08  Bruno Haible  <bruno@clisp.org>
70407
70408         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70409         instead of 'expr' invocations.
70410         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70411         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70412         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70413         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70414         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70415         Suggested by Paul Eggert.
70416
70417 2007-03-08  Bruno Haible  <bruno@clisp.org>
70418
70419         * modules/fseterr-tests: New file.
70420         * tests/test-fseterr.c: New file.
70421
70422         * modules/fseterr: New file.
70423         * lib/fseterr.h: New file.
70424         * lib/fseterr.c: New file.
70425
70426 2007-03-08  Bruno Haible  <bruno@clisp.org>
70427
70428         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70429         * lib/getopt_.h: Likewise.
70430         * lib/mbswidth.h: Likewise.
70431         * lib/setenv.h: Likewise.
70432         * lib/vasnprintf.h: Likewise.
70433         * lib/vasprintf.h: Likewise.
70434         * lib/verror.h: Likewise.
70435         * lib/xsetenv.h: Likewise.
70436         * lib/xvasprintf.h: Likewise.
70437
70438 2007-03-08  Jim Meyering  <jim@meyering.net>
70439
70440         * users.txt: Add parted.
70441
70442         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70443
70444 2007-03-07  Bruno Haible  <bruno@clisp.org>
70445
70446         * m4/printf.m4: Make the shell script snippets copy&pastable.
70447
70448 2007-03-02  Bruno Haible  <bruno@clisp.org>
70449
70450         * lib/netinet_in_.h: New file.
70451         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70452         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70453         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70454         (Depends-on): Add absolute-header.
70455         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70456         into netinet/in.h.
70457
70458 2007-03-03  Bruno Haible  <bruno@clisp.org>
70459
70460         * lib/sys_select_.h: New file.
70461         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70462         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70463         * modules/sys_select (Files): Add lib/sys_select_.h.
70464         (Depends-on): Add absolute-header.
70465         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70466         into sys/select.h.
70467
70468 2007-03-02  Bruno Haible  <bruno@clisp.org>
70469
70470         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70471         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70472         values.
70473         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70474         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70475         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70476         * modules/sys_socket (Depends-on): Add absolute-header.
70477         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70478         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70479         (Include): Remove requirement of inclusion of <sys/types.h>.
70480
70481 2007-03-02  Bruno Haible  <bruno@clisp.org>
70482
70483         * lib/byteswap_.h (bswap_32): Fix formula.
70484
70485 2007-03-06  Bruno Haible  <bruno@clisp.org>
70486
70487         * modules/sprintf-posix-tests: New file.
70488         * tests/test-sprintf-posix.c: New file.
70489
70490         * modules/sprintf-posix: New file.
70491         * lib/sprintf.c: New file.
70492         * m4/sprintf-posix.m4: New file.
70493         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70494         REPLACE_SPRINTF.
70495         * lib/stdio_.h (sprintf): New declaration.
70496         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70497         REPLACE_SPRINTF.
70498
70499 2007-03-06  Bruno Haible  <bruno@clisp.org>
70500
70501         * modules/vsprintf-posix-tests: New file.
70502         * tests/test-vsprintf-posix.c: New file.
70503         * tests/test-sprintf-posix.h: New file.
70504
70505         * modules/vsprintf-posix: New file.
70506         * lib/vsprintf.c: New file.
70507         * m4/vsprintf-posix.m4: New file.
70508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70509         REPLACE_VSPRINTF.
70510         * lib/stdio_.h (vsprintf): New declaration.
70511         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70512         REPLACE_VSPRINTF.
70513
70514 2007-03-06  Bruno Haible  <bruno@clisp.org>
70515
70516         * modules/vsnprintf (Depend-on): Remove minmax.
70517
70518 2007-03-06  Bruno Haible  <bruno@clisp.org>
70519
70520         * modules/snprintf-posix-tests: New file.
70521         * tests/test-snprintf-posix.c: New file.
70522
70523         * modules/snprintf-posix: New file.
70524         * m4/snprintf-posix.m4: New file.
70525         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70526         gl_FUNC_SNPRINTF.
70527         (gl_FUNC_SNPRINTF): Invoke it.
70528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70529         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70530         is set.
70531         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70532
70533 2007-03-06  Bruno Haible  <bruno@clisp.org>
70534
70535         * modules/vsnprintf-posix-tests: New file.
70536         * tests/test-vsnprintf-posix.c: New file.
70537         * tests/test-snprintf-posix.h: New file.
70538
70539         * modules/vsnprintf-posix: New file.
70540         * m4/vsnprintf-posix.m4: New file.
70541         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70542         gl_FUNC_VSNPRINTF.
70543         (gl_FUNC_VSNPRINTF): Invoke it.
70544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70545         * lib/stdio_.h (vsnprintf): Define as a replacement if
70546         REPLACE_VSNPRINTF is set.
70547         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70548
70549 2007-03-06  Bruno Haible  <bruno@clisp.org>
70550
70551         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70552         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70553
70554 2007-03-06  Bruno Haible  <bruno@clisp.org>
70555
70556         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70557         (asinl): Declare also if HAVE_DECL_ASINL is set.
70558         (atanl): Declare also if HAVE_DECL_ATANL is set.
70559         (ceill): Declare also if HAVE_DECL_CEILL is set.
70560         (cosl): Declare also if HAVE_DECL_COSL is set.
70561         (expl): Declare also if HAVE_DECL_EXPL is set.
70562         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70563         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70564         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70565         (logl): Declare also if HAVE_DECL_LOGL is set.
70566         (sinl): Declare also if HAVE_DECL_SINL is set.
70567         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70568         (tanl): Declare also if HAVE_DECL_TANL is set.
70569         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70571         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70572         declaration of frexpl, ldexpl.
70573         * modules/printf-frexpl (Depends-on): Add math.
70574         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70575
70576 2007-03-05  Bruno Haible  <bruno@clisp.org>
70577
70578         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70579         frexpl and ldexpl are declared.
70580         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70581
70582 2007-03-05  Bruno Haible  <bruno@clisp.org>
70583
70584         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
70585         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
70586
70587 2007-03-05  Bruno Haible  <bruno@clisp.org>
70588
70589         * lib/stdio_.h: Include <stddef.h>.
70590
70591 2007-03-05  Bruno Haible  <bruno@clisp.org>
70592
70593         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
70594
70595 2007-03-05  Bruno Haible  <bruno@clisp.org>
70596
70597         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
70598         NetBSD 4, from Ralf Wildenhues.
70599
70600 2007-03-04  Bruno Haible  <bruno@clisp.org>
70601
70602         * lib/vasprintf.h: Update #if logic for the case when the functions
70603         exist but are overridden.
70604
70605 2007-03-04  Bruno Haible  <bruno@clisp.org>
70606
70607         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
70608         implementations: glibc-2.4 and MacOS X 10.3.
70609         * tests/test-vasnprintf-posix.c (test_function): Test also the case
70610         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
70611         * tests/test-vasprintf-posix.c (test_function): Likewise.
70612
70613 2007-03-04  Bruno Haible  <bruno@clisp.org>
70614
70615         * modules/vasprintf-posix-tests: New file.
70616         * tests/test-vasprintf-posix.c: New file.
70617
70618         * modules/vasprintf-posix: New file.
70619         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
70620         defined.
70621         * m4/vasprintf-posix.m4: New file.
70622         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
70623         gl_FUNC_VASPRINTF.
70624         (gl_FUNC_VASPRINTF): Invoke it.
70625         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
70626         here.
70627         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
70628
70629 2007-03-04  Bruno Haible  <bruno@clisp.org>
70630
70631         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
70632         REPLACE_GETTIMEOFDAY.
70633         * modules/sys_time (Makefile.am): Likewise.
70634         * m4/sys_time_h.m4: Likewise.
70635         * m4/gettimeofday.m4: Likewise.
70636
70637 2007-03-04  Bruno Haible  <bruno@clisp.org>
70638
70639         * modules/vasnprintf-posix-tests: New file.
70640         * tests/test-vasnprintf-posix.c: New file.
70641
70642         * modules/vasnprintf-posix: New file.
70643         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
70644         printf-frexpl.h.
70645         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
70646         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
70647         REPLACE_VASNPRINTF is defined.
70648         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
70649         gl_FUNC_VASNPRINTF.
70650         (gl_FUNC_VASNPRINTF): Invoke it.
70651         * m4/vasnprintf-posix.m4: New file.
70652         * m4/printf.m4: New file.
70653
70654 2007-03-04  Bruno Haible  <bruno@clisp.org>
70655
70656         Compile progreloc.c only if --enable-relocatable is specified.
70657         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
70658         if --enable-relocatable was specified.
70659         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
70660         lib_SOURCES.
70661
70662 2007-03-04  Jim Meyering  <jim@meyering.net>
70663
70664         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
70665         Use it consistently, rather than enumerating errno constants.
70666
70667 2007-03-04  Bruno Haible  <bruno@clisp.org>
70668
70669         * modules/xvasprintf-tests: New file.
70670         * tests/test-xvasprintf.c: New file.
70671
70672         * modules/vasprintf-tests: New file.
70673         * tests/test-vasprintf.c: New file.
70674
70675         * modules/vasnprintf-tests: New file.
70676         * tests/test-vasnprintf.c: New file.
70677
70678         * modules/vsnprintf-tests: New file.
70679         * tests/test-vsnprintf.c: New file.
70680
70681         * modules/snprintf-tests: New file.
70682         * tests/test-snprintf.c: New file.
70683
70684 2007-03-04  Bruno Haible  <bruno@clisp.org>
70685
70686         Compile relocatable.c only if --enable-relocatable is specified.
70687         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
70688         gl_RELOCATABLE_LIBRARY.
70689         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
70690         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
70691         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
70692         gl_RELOCATABLE_LIBRARY.
70693         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
70694         (Makefile.am): Remove lib_SOURCES.
70695         * modules/relocatable-lib-lgpl (configure.ac): Invoke
70696         gl_RELOCATABLE_LIBRARY.
70697         (Makefile.am): Remove lib_SOURCES.
70698         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
70699         always.
70700         * modules/relocatable-prog-wrapper (configure.ac): Invoke
70701         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
70702
70703 2007-03-04  Bruno Haible  <bruno@clisp.org>
70704
70705         * modules/argmatch-tests: New file.
70706         * tests/test-argmatch.c: New file.
70707
70708         * tests/test-allocsa.c (main): Halve the number of loop runs.
70709
70710         * modules/alloca-opt-tests: New file.
70711         * tests/test-alloca-opt.c: New file.
70712
70713 2007-03-04  Jim Meyering  <jim@meyering.net>
70714
70715         Work around difference between Linux ACLs and Solaris 10 ZFS.
70716         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
70717         for EINVAL.
70718
70719 2007-03-03  Bruno Haible  <bruno@clisp.org>
70720
70721         * modules/relocatable-prog (Depends-on): Add back progreloc's
70722         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
70723
70724 2007-03-03  Bruno Haible  <bruno@clisp.org>
70725
70726         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
70727         * modules/relocatable-lib: New file.
70728
70729 2007-03-03  Bruno Haible  <bruno@clisp.org>
70730
70731         * modules/relocatable-prog: Renamed from modules/relocatable.
70732         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
70733
70734 2007-03-03  Bruno Haible  <bruno@clisp.org>
70735
70736         * modules/relocatable-script (Files): Add doc/relocatable.texi,
70737         m4/relocatable-lib.m4.
70738         (Depends-on): Remove 'relocatable'.
70739         (configure.ac): Add gl_RELOCATABLE_NOP.
70740
70741 2007-03-03  Bruno Haible  <bruno@clisp.org>
70742
70743         * modules/relocatable-prog-wrapper: New file.
70744         * modules/relocatable (Depends-on): Add it. Remove all other
70745         dependencies except progname.
70746         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
70747
70748         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
70749         (gl_FUNC_STRERROR): Nop.
70750         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
70751
70752         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
70753         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
70754
70755         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
70756         (gl_FUNC_READLINK): Update.
70757
70758         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
70759
70760 2007-03-03  Bruno Haible  <bruno@clisp.org>
70761
70762         * lib/xreadlink.c: Include <unistd.h> unconditionally.
70763         * modules/xreadlink (Depends-on): Add unistd.
70764         * modules/xreadlink-with-size (Depends-on): Likewise.
70765
70766 2007-03-03  Bruno Haible  <bruno@clisp.org>
70767
70768         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
70769         extracted from gt_FUNC_SETENV.
70770         (gt_FUNC_SETENV): Remove macro.
70771         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
70772         remove gt_FUNC_SETENV.
70773
70774 2007-03-03  Bruno Haible  <bruno@clisp.org>
70775
70776         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
70777         ENABLE_RELOCATABLE here.
70778         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
70779
70780 2007-03-03  Bruno Haible  <bruno@clisp.org>
70781
70782         * modules/rbtreehash-list-tests (Depends-on): Add progname.
70783         * tests/test-rbtreehash_list.c: Include progname.h.
70784         (main): Call set_program_name.
70785
70786         * modules/rbtree-oset-tests (Depends-on): Add progname.
70787         * tests/test-rbtree_oset.c: Include progname.h.
70788         (main): Call set_program_name.
70789
70790         * modules/rbtree-list-tests (Depends-on): Add progname.
70791         * tests/test-rbtree_list.c: Include progname.h.
70792         (main): Call set_program_name.
70793
70794         * modules/linked-list-tests (Depends-on): Add progname.
70795         * tests/test-linked_list.c: Include progname.h.
70796         (main): Call set_program_name.
70797
70798 2007-03-03  Bruno Haible  <bruno@clisp.org>
70799
70800         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
70801         All uses of __restrict changed to _Restrict_.
70802         * lib/glob_.h (__restrict): Remove macro.
70803
70804 2007-03-02  Bruno Haible  <bruno@clisp.org>
70805
70806         * modules/gettext (configure.ac): Require gettext infrastructure
70807         from version 0.16.1.
70808
70809 2007-03-02  Bruno Haible  <bruno@clisp.org>
70810
70811         * modules/linkedhash-list-tests (Depends-on): Add progname.
70812         * tests/test-linkedhash_list.c: Include progname.h.
70813         (main): Call set_program_name.
70814
70815         * modules/carray-list-tests (Depends-on): Add progname.
70816         * tests/test-carray_list.c: Include progname.h.
70817         (main): Call set_program_name.
70818
70819         * modules/avltreehash-list-tests (Depends-on): Add progname.
70820         * tests/test-avltreehash_list.c: Include progname.h.
70821         (main): Call set_program_name.
70822
70823         * modules/avltree-oset-tests (Depends-on): Add progname.
70824         * tests/test-avltree_oset.c: Include progname.h.
70825         (main): Call set_program_name.
70826
70827         * modules/avltree-list-tests (Depends-on): Add progname.
70828         * tests/test-avltree_list.c: Include progname.h.
70829         (main): Call set_program_name.
70830
70831         * modules/array-oset-tests (Depends-on): Add progname.
70832         * tests/test-array_oset.c: Include progname.h.
70833         (main): Call set_program_name.
70834
70835         * modules/array-list-tests (Depends-on): Add progname.
70836         * tests/test-array_list.c: Include progname.h.
70837         (main): Call set_program_name.
70838
70839         * modules/argp-tests (Depends-on): Add progname.
70840         * tests/test-argp.c: Include argp.h first. Include progname.h.
70841         (main): Call set_program_name.
70842
70843 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
70844
70845         * doc/gnulib-tool.texi (Initial import): Reword description of
70846         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
70847         limited effect even if defined after the first system include.
70848
70849 2007-03-01  Bruno Haible  <bruno@clisp.org>
70850
70851         * build-aux/config.libpath: Update to libtool-1.5.22.
70852         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70853
70854 2007-03-01  Bruno Haible  <bruno@clisp.org>
70855
70856         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
70857         foo_CFLAGS.
70858         Reported by Ralf Wildenhues.
70859
70860 2007-03-01  Bruno Haible  <bruno@clisp.org>
70861
70862         * build-aux/install-reloc: Remove object files left over by some
70863         compilers.
70864         Reported by Ralf Wildenhues.
70865
70866 2007-03-01  Bruno Haible  <bruno@clisp.org>
70867
70868         * build-aux/install-reloc: Break long lines.
70869
70870 2007-03-01  Bruno Haible  <bruno@clisp.org>
70871
70872         * doc/relocatable.texi: Document that it may not work on OpenBSD.
70873         Reported by Ralf Wildenhues.
70874
70875 2007-03-01  Bruno Haible  <bruno@clisp.org>
70876
70877         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
70878         include ordering constraints.
70879
70880 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70881
70882         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
70883         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
70884         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
70885         as another example.
70886         * lib/time_.h: Fix misspelling.
70887         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70888         Require gl_HEADER_TIME_H_DEFAULTS.
70889         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
70890         * m4/time_r.m4 (gl_TIME_R): Likewise.
70891         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
70892
70893 2007-03-01  Bruno Haible  <bruno@clisp.org>
70894
70895         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
70896         * m4/utimens.m4 (gl_UTIMENS): Likewise.
70897
70898 2007-03-01  Jim Meyering  <jim@meyering.net>
70899
70900         * modules/xreadlink (Maintainer): Add my name.
70901         * modules/xreadlink-with-size (Depends-on): Alphabetize.
70902
70903 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
70904             Bruno Haible  <bruno@clisp.org>
70905
70906         * build-aux/install-reloc: Compile also c-ctype.c.
70907         * build-aux/relocatable.sh.in: New file.
70908         * doc/relocatable.texi: New file.
70909         * doc/relocatable-maint.texi: New file.
70910         * doc/gnulib.texi: Include relocatable-maint.texi.
70911         * lib/progreloc.c: Include unistd.h unconditionally.
70912         * lib/relocwrapper.c: Include unistd.h unconditionally.
70913         Include c-ctype.h.
70914         (add_dotbin): Use c_tolower.
70915         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
70916         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
70917         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
70918         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
70919         to m4/relocatable-lib.m4.
70920         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
70921         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
70922         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
70923         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
70924         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
70925         * modules/relocatable: New file.
70926         * modules/relocatable-lib: New file.
70927         * modules/relocatable-script: New file.
70928
70929 2007-02-28  Bruno Haible  <bruno@clisp.org>
70930
70931         Import --enable-relocatable infrastructure.
70932         * build-aux/config.libpath: New file, from GNU gettext.
70933         * build-aux/install-reloc: New file, from GNU gettext.
70934         * build-aux/reloc-ldflags: New file, from GNU gettext.
70935         * lib/relocatable.h: New file, from GNU gettext.
70936         * lib/relocatable.c: New file, from GNU gettext.
70937         * lib/relocwrapper.c: New file, from GNU gettext.
70938         * m4/relocatable.m4: New file, from GNU gettext.
70939
70940 2007-02-28  Bruno Haible  <bruno@clisp.org>
70941
70942         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
70943
70944         * modules/xreadlink: New file, from GNU gettext with modifications.
70945         * lib/xreadlink.c: New file, from GNU gettext.
70946         * lib/xreadlink.h: Add comments.
70947         (xreadlink): New declaration.
70948
70949         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
70950         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
70951         lib/xreadlink-with-size.c.
70952         (configure.ac): Remove gl_XREADLINK invocation.
70953         (Makefile.am): Augment lib_SOURCES.
70954         * m4/xreadlink.m4: Remove file.
70955         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
70956         (xreadlink_with_size): Renamed from xreadink.
70957         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
70958         * modules/canonicalize (Depends-on): Replace xreadlink with
70959         xreadlink-with-size.
70960         * lib/canonicalize.c (canonicalize_filename_mode): Update.
70961
70962 2007-02-25  Jim Meyering  <jim@meyering.net>
70963
70964         * build-aux/announce-gen: When complaining about excess arguments,
70965         list them.
70966
70967 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70968
70969         * README: Document signed integer overflow situation more
70970         accurately.
70971
70972 2007-02-25  Bruno Haible  <bruno@clisp.org>
70973
70974         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
70975         'a' or 'A' conversion.
70976
70977 2007-02-25  Bruno Haible  <bruno@clisp.org>
70978
70979         * modules/filename: Renamed from modules/pathname.
70980         (Files): Replace lib/pathname.h with lib/filename.h. Replace
70981         lib/concatpath.c with lib/concat-filename.c.
70982         (Makefile.am): Update.
70983         (Include): Replace pathname.h with filename.h.
70984         * lib/filename.h: Renamed from lib/pathname.h.
70985         (concatenated_filename): Renamed from concatenated_pathname.
70986         * lib/concat-filename.c: Renamed from lib/concatpath.c.
70987         (concatenated_filename): Renamed from concatenated_pathname.
70988         * lib/findprog.c: Include filename.h instead of pathname.h.
70989         (find_in_path): Update.
70990         * lib/javacomp.c: Include filename.h instead of pathname.h.
70991         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
70992         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
70993         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
70994         is_oldgcj_14_13_usable, is_javac_usable): Update.
70995         * lib/javaexec.c: Include filename.h instead of pathname.h.
70996         (execute_java_class): Update.
70997         * modules/findprog: Update.
70998         * modules/javacomp: Update.
70999         * modules/javaexec: Update.
71000         * MODULES.html.sh (File system functions): Add 'filename', remove
71001         'pathname'.
71002
71003 2007-02-25  Bruno Haible  <bruno@clisp.org>
71004
71005         * modules/printf-frexpl-tests: New file.
71006         * tests/test-printf-frexpl.c: New file.
71007
71008         * modules/printf-frexpl: New file.
71009         * lib/printf-frexpl.h: New file.
71010         * lib/printf-frexpl.c: New file.
71011         * m4/printf-frexpl.m4: New file.
71012
71013 2007-02-25  Bruno Haible  <bruno@clisp.org>
71014
71015         * modules/printf-frexp-tests: New file.
71016         * tests/test-printf-frexp.c: New file.
71017
71018         * modules/printf-frexp: New file.
71019         * lib/printf-frexp.h: New file.
71020         * lib/printf-frexp.c: New file.
71021         * m4/printf-frexp.m4: New file.
71022
71023 2007-02-25  Bruno Haible  <bruno@clisp.org>
71024
71025         Assume automake >= 1.10 for the tests.
71026         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71027         * modules/arctwo-tests: Likewise.
71028         * modules/argp-tests: Likewise.
71029         * modules/avltree-list-tests: Likewise.
71030         * modules/avltree-oset-tests: Likewise.
71031         * modules/avltreehash-list-tests: Likewise.
71032         * modules/carray-list-tests: Likewise.
71033         * modules/crc-tests: Likewise.
71034         * modules/des-tests: Likewise.
71035         * modules/gc-arcfour-tests: Likewise.
71036         * modules/gc-arctwo-tests: Likewise.
71037         * modules/gc-des-tests: Likewise.
71038         * modules/gc-hmac-md5-tests: Likewise.
71039         * modules/gc-hmac-sha1-tests: Likewise.
71040         * modules/gc-md2-tests: Likewise.
71041         * modules/gc-md4-tests: Likewise.
71042         * modules/gc-md5-tests: Likewise.
71043         * modules/gc-pbkdf2-sha1-tests: Likewise.
71044         * modules/gc-rijndael-tests: Likewise.
71045         * modules/gc-sha1-tests: Likewise.
71046         * modules/gc-tests: Likewise.
71047         * modules/getaddrinfo-tests: Likewise.
71048         * modules/hmac-md5-tests: Likewise.
71049         * modules/hmac-sha1-tests: Likewise.
71050         * modules/linked-list-tests: Likewise.
71051         * modules/linkedhash-list-tests: Likewise.
71052         * modules/lock-tests: Likewise.
71053         * modules/md2-tests: Likewise.
71054         * modules/md4-tests: Likewise.
71055         * modules/md5-tests: Likewise.
71056         * modules/rbtree-list-tests: Likewise.
71057         * modules/rbtree-oset-tests: Likewise.
71058         * modules/rbtreehash-list-tests: Likewise.
71059         * modules/read-file-tests: Likewise.
71060         * modules/rijndael-tests: Likewise.
71061         * modules/stdint-tests: Likewise.
71062         * modules/tls-tests: Likewise.
71063
71064 2007-02-24  Bruno Haible  <bruno@clisp.org>
71065
71066         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71067         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71068         function; instead check whether isnan with a double argument links.
71069         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71070         function; instead check whether isnan with a 'long double' argument
71071         links.
71072         Reported by Eric Blake <ebb9@byu.net>.
71073
71074 2007-02-24  Bruno Haible  <bruno@clisp.org>
71075
71076         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71077         defined.
71078         * lib/isnanl.c: Remove all code. Just include isnan.c.
71079         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71080
71081 2007-02-25  Jim Meyering  <jim@meyering.net>
71082
71083         Avoid conflicting types for 'unsetenv' on FreeBSD.
71084         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71085         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71086         in stdlib.h.
71087
71088 2007-02-24  Bruno Haible  <bruno@clisp.org>
71089
71090         * modules/isnanl-nolibm-tests: New file.
71091         * tests/test-isnanl.c: New file.
71092
71093         * modules/isnanl-nolibm: New file.
71094         * lib/isnanl.h: New file.
71095         * lib/isnanl.c: New file.
71096         * m4/isnanl.m4: New file.
71097
71098 2007-02-24  Bruno Haible  <bruno@clisp.org>
71099
71100         * modules/isnan-nolibm-tests: New file.
71101         * tests/test-isnan.c: New file.
71102
71103         * modules/isnan-nolibm: New file.
71104         * lib/isnan.h: New file.
71105         * lib/isnan.c: New file.
71106         * m4/isnan.m4: New file.
71107
71108 2007-02-24  Bruno Haible  <bruno@clisp.org>
71109
71110         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71111         assume that an exponent fits in 20 bits.
71112
71113 2007-02-24  Jim Meyering  <jim@meyering.net>
71114
71115         * m4/regex.m4: Update the description of the configure-time option,
71116         --without-included-regex, to state accurately what the defaults are,
71117         and perhaps to give people an idea why using this option is risky.
71118
71119 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71120
71121         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71122         loops on small arguments.  This attempts to avoid the problem
71123         Bruno Haible reported for AIX 4.3.2 in
71124         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71125
71126 2007-02-23  Bruno Haible  <bruno@clisp.org>
71127
71128         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71129         Needed for help2man.
71130
71131 2007-02-23  Karl Berry  <karl@gnu.org>
71132
71133         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71134         exists, foo.h should be cvs-ignored, not committed.
71135
71136 2007-02-23  Eric Blake  <ebb9@byu.net>
71137
71138         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71139         * lib/stat-time.h (includes): Likewise.
71140         * lib/utimecmp.c (includes): Likewise.
71141         * lib/utimens.h (includes): Likewise.
71142         * lib/getdate.y (includes): Also include "timespec.h" for use
71143         internal to the module.
71144         * modules/utimens (Depends-on): Revert yesterday's patch.
71145         * modules/nanosleep (Depends-on): Add missing dependency.
71146
71147 2007-02-22  Bruno Haible  <bruno@clisp.org>
71148
71149         * lib/glob.c: Don't include getlogin_r.h.
71150
71151 2007-02-22  Jim Meyering  <jim@meyering.net>
71152
71153         * modules/utimens (Depends-on): Add timespec, required for
71154         utimens.h's inclusion of timespec.h.
71155
71156 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71157
71158         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71159         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71160         Schwab in
71161         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71162         I'll try to think of a better way to fix the Solaris problem.
71163
71164         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71165         like glibc; on Solaris 10, it fails with errno == EINVAL.
71166         POSIX says the behavior is unspecified if the first argument is NULL,
71167         so play it safe and never pass NULL to the system getcwd.
71168
71169 2007-02-21  Jim Meyering  <jim@meyering.net>
71170
71171         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71172         of gettimeofday.  It would conflict with the one now always
71173         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71174         an IRIX 6.5 build failure.
71175
71176 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71177
71178         Minor fixups to port to Solaris 10 with Sun C 5.8.
71179         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71180         * modules/getcwd (Depends-on): Add dirfd.
71181         * lib/putenv.c (putenv): #undef it.
71182         (rpl_putenv): New decl.
71183         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71184
71185 2007-02-20  Bruno Haible  <bruno@clisp.org>
71186
71187         * modules/stdio-tests: New file.
71188         * tests/test-stdio.c: New file.
71189
71190         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71191         (Depends-on): Add stdio.
71192         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71193         (Include): Use <stdio.h> instead of vsnprintf.h.
71194         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71195         HAVE_DECL_VSNPRINTF.
71196         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71197
71198         * modules/snprintf (Files): Remove lib/snprintf.h.
71199         (Depends-on): Add stdio.
71200         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71201         (Include): Use <stdio.h> instead of snprintf.h.
71202         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71203         HAVE_DECL_SNPRINTF.
71204         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71205         * lib/getaddrinfo.c: Likewise.
71206
71207         * modules/stdio: New file.
71208         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71209         * lib/snprintf.h: Remove file.
71210         * lib/vsnprintf.h: Remove file.
71211         * lib/.cppi-disable: Remove snprintf.h.
71212         * m4/stdio_h.m4: New file.
71213         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71214
71215 2007-02-20  Jim Meyering  <jim@meyering.net>
71216
71217         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71218         used by e.g., mingw.  From Bruno Haible.
71219
71220 2007-02-19  Bruno Haible  <bruno@clisp.org>
71221
71222         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71223         warnings.
71224         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71225
71226 2007-02-19  Bruno Haible  <bruno@clisp.org>
71227
71228         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71229         from mingw users.
71230
71231 2007-02-19  Bruno Haible  <bruno@clisp.org>
71232
71233         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71234         warnings.
71235         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71236
71237 2007-02-19  Jim Meyering  <jim@meyering.net>
71238
71239         Don't use FD after a successful "fdopendir (fd)".
71240         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71241         Reset it by calling dirfd on the just-obtained DIR*.
71242
71243         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71244         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71245
71246 2007-02-18  Bruno Haible  <bruno@clisp.org>
71247
71248         * lib/readlink.c: Include <unistd.h>.
71249         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71250         HAVE_READLINK.
71251         * modules/readlink (Depends-on): Add unistd.
71252         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71253         (Include): Add <unistd.h>.
71254
71255         * lib/getlogin_r.h: Remove file.
71256         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71257         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71258         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71259         HAVE_DECL_GETLOGIN_R.
71260         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71261         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71262         (Include): Use <unistd.h> instead of getlogin_r.h.
71263
71264         * lib/getcwd.h: Remove file.
71265         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71266         * lib/xgetcwd.c: Likewise.
71267         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71268         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71269         * modules/getcwd (Files): Remove lib/getcwd.h.
71270         (Depends-on): Add unistd.
71271         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71272         (Include): Use <unistd.h> instad of getcwd.h.
71273
71274         * lib/ftruncate.c: Include <unistd.h> first.
71275         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71276         Set HAVE_FTRUNCATE.
71277         * modules/ftruncate (Depends-on): Add unistd.
71278         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71279
71280         * lib/fchdir.c: Include <unistd.h> first.
71281         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71283         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71284         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71285         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71286
71287         * lib/dup2.c: Include <unistd.h> first.
71288         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71289         HAVE_DUP2.
71290         * modules/dup2 (Depends-on): Add unistd.
71291         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71292
71293         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71294         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71295         REPLACE_CHOWN. Don't define chown as a macro here.
71296         * modules/chown (Depends-on): Add unistd.
71297         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71298
71299         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71300         Add definition for GL_LINK_WARNING.
71301         (chown, dup2): New declarations.
71302         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71303         link warning.
71304         (ftruncate): New declaration.
71305         (getcwd): New declaration, taken from old getcwd.h.
71306         (getlogin_r): New declaration, taken from old getlogin_r.h.
71307         (readlink): New declaration.
71308         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71309         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71310         (gl_PREREQ_UNISTD): Remove macro.
71311         (gl_UNISTD_MODULE_INDICATOR): New macro.
71312         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71313         many new variables. Don't set UNISTD_H.
71314         * modules/unistd (Description): Change.
71315         (Depends-on): Add link-warning.
71316         (configure.ac): Update.
71317         (Makefile.am): Create unistd.h always. Substitute many new variables
71318         into it.
71319
71320 2007-02-18  Bruno Haible  <bruno@clisp.org>
71321
71322         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71323         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71324         HAVE_GETSUBOPT.
71325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71326         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71327         * lib/getsubopt.h: Remove file.
71328         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71329         (Depends-on): Add stdlib.
71330         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71331         (Includes): Use <stdlib.h> instead of getsubopt.h.
71332         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71333         Set HAVE_GETSUBOPT.
71334         * lib/getsubopt.c: Don't include getsubopt.h.
71335
71336 2007-02-18  Bruno Haible  <bruno@clisp.org>
71337
71338         * modules/fchdir (Depends-on): Add dup2.
71339
71340 2007-02-18  Bruno Haible  <bruno@clisp.org>
71341
71342         * lib/stdlib_.h: Handle glibc's special invocation convention
71343         specially.
71344
71345 2007-02-18  Bruno Haible  <bruno@clisp.org>
71346
71347         * modules/stdlib-tests: New file.
71348         * tests/test-stdlib.c: New file.
71349
71350         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71351         (Depends-on): Add stdlib.
71352         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71353         (Includes): Use <stdlib.h> instead of mkstemp.h.
71354         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71355         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71356         * lib/mkstemp.c: Don't include mkstemp.h.
71357         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71358         * lib/stdlib--.h: Don't include mkstemp.h.
71359
71360         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71361         (Depends-on): Add stdlib.
71362         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71363         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71364         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71365         HAVE_MKDTEMP.
71366         * lib/mkdtemp.c: Don't include mkdtemp.h.
71367         * lib/clean-temp.c: Don't include mkdtemp.h.
71368
71369         * modules/exit (Files): Remove lib/exit.h.
71370         (Depends-on): Add stdlib.
71371         (Makefile.am): Remove lib_SOURCES.
71372         (Include): Use <stdlib.h> instead of exit.h.
71373         * lib/argmatch.c: Don't include exit.h.
71374         * lib/execute.c: Likewise.
71375         * lib/pagealign_alloc.c: Likewise.
71376         * lib/pipe.c: Likewise.
71377         * lib/wait-process.c: Likewise.
71378         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71379         * lib/exitfail.c: Likewise.
71380         * lib/savewd.c: Likewise.
71381         * lib/xsetenv.c: Likewise.
71382
71383         * modules/stdlib: New file.
71384         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71385         and extra comments about mkstemp().
71386         * lib/exit.h: Remove file.
71387         * lib/mkdtemp.h: Remove file.
71388         * lib/mkstemp.h: Remove file.
71389         * m4/stdlib_h.m4: New file.
71390         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71391
71392 2007-02-18  Bruno Haible  <bruno@clisp.org>
71393
71394         * modules/math-tests: New file.
71395         * tests/test-math.c: New file.
71396
71397         * modules/math: New file.
71398         * modules/mathl (Files): Remove lib/mathl.h.
71399         (Depends-on): Add math.
71400         (Makefile.am): Don't mention mathl.h.
71401         (Include): Use <math.h> instead of mathl.h.
71402         * lib/math_.h: New file.
71403         * lib/mathl.h: Remove file.
71404         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71405         mathl.h.
71406         * lib/asinl.c: Likewise.
71407         * lib/atanl.c: Likewise.
71408         * lib/ceill.c: Likewise.
71409         * lib/cosl.c: Likewise.
71410         * lib/expl.c: Likewise.
71411         * lib/floorl.c: Likewise.
71412         * lib/frexpl.c: Likewise.
71413         * lib/ldexpl.c: Likewise.
71414         * lib/logl.c: Likewise.
71415         * lib/sincosl.c: Likewise.
71416         * lib/sinl.c: Likewise.
71417         * lib/sqrtl.c: Likewise.
71418         * lib/tanl.c: Likewise.
71419         * lib/trigl.c: Likewise.
71420         * m4/math_h.m4: New file.
71421         * MODULES.html.sh (Mathematics): Add math.
71422
71423 2007-02-17  Bruno Haible  <bruno@clisp.org>
71424
71425         * modules/wctype-tests: New file.
71426         * tests/test-wctype.c: New file.
71427
71428         * modules/wchar-tests: New file.
71429         * tests/test-wchar.c: New file.
71430
71431         * modules/unistd-tests: New file.
71432         * tests/test-unistd.c: New file.
71433
71434         * modules/time-tests: New file.
71435         * tests/test-time.c: New file.
71436
71437         * modules/sysexits-tests: New file.
71438         * tests/test-sysexits.c: New file.
71439
71440         * modules/sys_time-tests: New file.
71441         * tests/test-sys_time.c: New file.
71442
71443         * modules/sys_stat-tests: New file.
71444         * tests/test-sys_stat.c: New file.
71445
71446         * modules/sys_socket-tests: New file.
71447         * tests/test-sys_socket.c: New file.
71448
71449         * modules/sys_select-tests: New file.
71450         * tests/test-sys_select.c: New file.
71451
71452         * modules/string-tests: New file.
71453         * tests/test-string.c: New file.
71454
71455         * modules/stdbool-tests: New file.
71456         * tests/test-stdbool.c: New file.
71457
71458         * modules/netinet_in-tests: New file.
71459         * tests/test-netinet_in.c: New file.
71460
71461         * modules/inttypes-tests: New file.
71462         * tests/test-inttypes.c: New file.
71463
71464         * modules/fcntl-tests: New file.
71465         * tests/test-fcntl.c: New file.
71466
71467         * modules/byteswap-tests: New file.
71468         * tests/test-byteswap.c: New file.
71469
71470         * modules/arpa_inet-tests: New file.
71471         * tests/test-arpa_inet.c: New file.
71472
71473 2007-02-17  Bruno Haible  <bruno@clisp.org>
71474
71475         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71476         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71477         if the corresponding module is not enabled. Emit link warnings if
71478         the function is used nevertheless.
71479         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71480         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71481         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71482         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71483         * modules/inttypes (Depends-on): Add link-warning.
71484         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71485         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71486         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71487         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71488         * modules/imaxdiv (configure.ac): Likewise.
71489         * modules/strtoimax (configure.ac): Likewise.
71490         * modules/strtoumax (configure.ac): Likewise.
71491
71492 2007-02-17  Bruno Haible  <bruno@clisp.org>
71493
71494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71495         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71496         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71497         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71498
71499 2007-02-17  Bruno Haible  <bruno@clisp.org>
71500
71501         * modules/link-warning: New file.
71502         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71503         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71504         * modules/string (Depends-on): Add link-warning.
71505         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71506         string.h.
71507         * MODULES.html.sh (Support for building libraries and executables): Add
71508         link-warning.
71509
71510 2007-02-17  Bruno Haible  <bruno@clisp.org>
71511
71512         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71513         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71514         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71515         long lines.
71516
71517 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71518             Bruno Haible  <bruno@clisp.org>
71519
71520         * modules/tmpfile: New file.
71521         * lib/tmpfile.c: New file.
71522         * m4/tmpfile.m4: New file.
71523         * MODULES.html.sh (func_all_modules): New section "Input/output".
71524
71525 2007-02-15  Bruno Haible  <bruno@clisp.org>
71526
71527         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71528         (supports_delete_on_close): New function.
71529         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71530
71531 2007-02-14  Bruno Haible  <bruno@clisp.org>
71532
71533         * modules/mbspcasecmp-tests: New file.
71534         * tests/test-mbspcasecmp.sh: New file.
71535         * tests/test-mbspcasecmp.c: New file.
71536
71537         New module mbspcasecmp.
71538         * modules/mbspcasecmp: New file.
71539         * lib/mbspcasecmp.c: New file.
71540         * lib/string_.h (strncasecmp): Change warning message.
71541         (mbspcasecmp): New declaration.
71542         * m4/mbspcasecmp.m4: New file.
71543         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71544         GNULIB_MBSPCASECMP.
71545         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71546         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71547
71548 2007-02-14  Bruno Haible  <bruno@clisp.org>
71549
71550         * modules/mbsncasecmp-tests: New file.
71551         * tests/test-mbsncasecmp.sh: New file.
71552         * tests/test-mbsncasecmp.c: New file.
71553
71554         New module mbsncasecmp.
71555         * modules/mbsncasecmp: New file.
71556         * lib/mbsncasecmp.c: New file.
71557         * lib/string_.h (mbsncasecmp): New declaration.
71558         * m4/mbsncasecmp.m4: New file.
71559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71560         GNULIB_MBSNCASECMP.
71561         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71562         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71563
71564 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71565
71566         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71567         Verify that it doesn't overlap with our flags.
71568         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71569         do not have the desired effect in multibyte locales; instead, use
71570         mbscasecmp.
71571         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71572         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71573         we don't require GNU fnmatch ourselves (if our users require it, they
71574         should do so explicitly).
71575
71576         Fix regex code so it doesn't rely on strcasecmp.
71577         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71578         Otherwise, include gnulib's langinfo.h.
71579         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71580         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71581         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71582         * modules/regex (FILES): Remove m4/codeset.m4.
71583         (Depends-on): Add localcharset.  Remove strcase.
71584
71585 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71586
71587         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
71588         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
71589
71590 2007-02-13  Bruno Haible  <bruno@clisp.org>
71591
71592         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
71593         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71594
71595 2007-02-12  Bruno Haible  <bruno@clisp.org>
71596
71597         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71598         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
71599         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
71600         time warning rather than a link error.
71601
71602 2007-02-12  Bruno Haible  <bruno@clisp.org>
71603
71604         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
71605         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
71606         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71607
71608 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71609
71610         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
71611         args, not 2.
71612
71613 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71614
71615         New module 'time', so that apps can include <time.h> as per
71616         POSIX and GNU instead of separate include files like time_r.h
71617         and timegm.h.  This implementation tries out a simpler approach
71618         for replacing decls in standard include files (as compared to
71619         the string module), somewhat as an experiment.
71620
71621         * config/srclist.txt: Comment out mktime.c for now.
71622         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
71623         since it doesn't apply any more.  Use generic wording instead.
71624         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
71625         'time'.
71626         * lib/time_.h, m4/time_h.m4, modules/time: New files.
71627         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
71628         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
71629         Don't include <sys/types.h>; no longer needed since we assume C89.
71630         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
71631         * lib/strftime.c: Likewise.
71632         * lib/time_r.c: Likewise.
71633         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
71634         * lib/nanosleep.c: Include <time.h> first, to check interface.
71635         * lib/strptime.c: Likewise.
71636         * lib/time_r.c: Likewise.
71637         * lib/timegm.c: Likewise.
71638         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
71639         needed.
71640         * lib/timegm.c: Don't include timegm.h; no longer needed.
71641         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
71642         time.h now handles any problems in that area.
71643         (struct timespec, nanosleep): Remove; time.h now arranges for these.
71644         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
71645         that time.h defines struct timespec.
71646         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
71647         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
71648         handles that.
71649         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
71650         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
71651         needed.  Set REPLACE_LOCALTIME.
71652         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
71653         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
71654         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
71655         nanosleep; time_h.m4 now does that.  Don't require
71656         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
71657         module handles this now.
71658         * modules/getdate (Depends-on): Remove timespec.  Add time.
71659         * modules/nanosleep (Depends-on): Likewise.
71660         * modules/stat-time (Depends-on): Likewise.
71661         * modules/nanosleep (Include): Include time.h, not timespec.h.
71662         * modules/strptime (Files): Remove lib/strptime.h.
71663         (Depends-on): Add extensions, time.
71664         (Include): Include time.h, not strptime.h.
71665         * modules/time_r (Files): Remove lib/time_r.h.
71666         (Depends-on): Add time.
71667         (Include): Include time.h, not time_r.h.
71668         * modules/timegm: Likewise.
71669         * modules/timespec (Description): Now does timespec-related decls
71670         of our own, instead of struct timespec itself.
71671         (Depends-on): Add time; remove extensions.
71672         (Maintainer): Add self.
71673         * modules/utimecmp (Depends-on): Add time; remove timespec.
71674         * modules/utimens (Depends-on): Likewise.
71675         * modules/xnanosleep (Depends-on): Likewise.
71676
71677 2007-02-11  Bruno Haible  <bruno@clisp.org>
71678
71679         * lib/c-strstr.c: Include allocsa.h.
71680         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71681         * lib/c-strcasestr.c: Include allocsa.h.
71682         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71683         * lib/strcasestr.c: Include allocsa.h.
71684         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71685         * lib/mbsstr.c: Include allocsa.h.
71686         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71687         allocsa/freesa instead of malloc/free.
71688         * lib/mbscasestr.c: Include allocsa.h.
71689         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71690         allocsa/freesa instead of malloc/free.
71691         * modules/c-strstr (Depends-on): Add allocsa.
71692         * modules/c-strcasestr (Depends-on): Likewise.
71693         * modules/strcasestr (Depends-on): Likewise.
71694         * modules/mbsstr (Depends-on): Likewise.
71695         * modules/mbscasestr (Depends-on): Likewise.
71696
71697 2007-02-11  Bruno Haible  <bruno@clisp.org>
71698
71699         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
71700
71701         * modules/mbsspn-tests: New file.
71702         * tests/test-mbsspn.sh: New file.
71703         * tests/test-mbsspn.c: New file.
71704
71705 2007-02-11  Bruno Haible  <bruno@clisp.org>
71706
71707         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
71708
71709         * modules/mbspbrk-tests: New file.
71710         * tests/test-mbspbrk.sh: New file.
71711         * tests/test-mbspbrk.c: New file.
71712
71713 2007-02-11  Bruno Haible  <bruno@clisp.org>
71714
71715         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
71716         unneeded cast.
71717
71718         * modules/mbscspn-tests: New file.
71719         * tests/test-mbscspn.sh: New file.
71720         * tests/test-mbscspn.c: New file.
71721
71722 2007-02-11  Bruno Haible  <bruno@clisp.org>
71723
71724         * modules/mbscasecmp-tests: New file.
71725         * tests/test-mbscasecmp.sh: New file.
71726         * tests/test-mbscasecmp.c: New file.
71727
71728 2007-02-11  Bruno Haible  <bruno@clisp.org>
71729
71730         Ensure O(n) worst-case complexity of mbscasestr.
71731         * lib/mbscasestr.c: Include stdbool.h.
71732         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71733         functions.
71734         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
71735         the bookkeeping indicates that it's worth it.
71736         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
71737
71738         * modules/mbscasestr-tests: New file.
71739         * tests/test-mbscasestr1.c: New file.
71740         * tests/test-mbscasestr2.sh: New file.
71741         * tests/test-mbscasestr2.c: New file.
71742         * tests/test-mbscasestr3.sh: New file.
71743         * tests/test-mbscasestr3.c: New file.
71744         * tests/test-mbscasestr4.sh: New file.
71745         * tests/test-mbscasestr4.c: New file.
71746         * m4/locale-tr.m4: New file.
71747
71748 2007-02-11  Bruno Haible  <bruno@clisp.org>
71749
71750         Ensure O(n) worst-case complexity of mbsstr.
71751         * lib/mbsstr.c: Include stdbool.h.
71752         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71753         functions.
71754         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
71755         bookkeeping indicates that it's worth it.
71756         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
71757
71758         * modules/mbsstr-tests: New file.
71759         * tests/test-mbsstr1.c: New file.
71760         * tests/test-mbsstr2.sh: New file.
71761         * tests/test-mbsstr2.c: New file.
71762         * tests/test-mbsstr3.sh: New file.
71763         * tests/test-mbsstr3.c: New file.
71764         * m4/locale-fr.m4: New file.
71765
71766 2007-02-11  Bruno Haible  <bruno@clisp.org>
71767
71768         * lib/mbsrchr.c (mbsrchr): Fix bug.
71769
71770         * modules/mbsrchr-tests: New file.
71771         * tests/test-mbsrchr.sh: New file.
71772         * tests/test-mbsrchr.c: New file.
71773
71774 2007-02-11  Bruno Haible  <bruno@clisp.org>
71775
71776         * lib/mbschr.c (mbschr): Fix bug.
71777
71778         * modules/mbschr-tests: New file.
71779         * tests/test-mbschr.sh: New file.
71780         * tests/test-mbschr.c: New file.
71781         * m4/locale-zh.m4: New file.
71782
71783 2007-02-11  Bruno Haible  <bruno@clisp.org>
71784
71785         Support for copying multibyte string iterators.
71786         * lib/mbiter.h: Include <string.h>.
71787         (mbiter_multi_copy): New function.
71788         (mbi_copy): New macro.
71789         * lib/mbuiter.h: Include <string.h>.
71790         (mbuiter_multi_copy): New function.
71791         (mbui_copy): New macro.
71792
71793 2007-02-11  Bruno Haible  <bruno@clisp.org>
71794
71795         New module mbslen.
71796         * modules/mbslen: New file.
71797         * lib/mbslen.c: New file.
71798         * lib/string_.h (mbslen): New declaration.
71799         * m4/mbslen.m4: New file.
71800         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71801         GNULIB_MBSLEN.
71802         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
71803         * MODULES.html.sh (Internationalization functions): Add mbslen.
71804
71805 2007-02-11  Bruno Haible  <bruno@clisp.org>
71806
71807         Ensure O(n) worst-case complexity of strcasestr substitute.
71808         * lib/strcasestr.c: Include stdbool.h.
71809         (knuth_morris_pratt): New function.
71810         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71811         bookkeeping indicates that it's worth it.
71812         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
71813
71814         * modules/strcasestr-tests: New file.
71815         * tests/test-strcasestr.c: New file.
71816
71817 2007-02-11  Bruno Haible  <bruno@clisp.org>
71818
71819         Ensure O(n) worst-case complexity of c_strcasestr.
71820         * lib/c-strcasestr.c: Include stdbool.h, string.h.
71821         (knuth_morris_pratt): New function.
71822         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
71823         the bookkeeping indicates that it's worth it.
71824         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
71825
71826         * modules/c-strcasestr-tests: New file.
71827         * tests/test-c-strcasestr.c: New file.
71828
71829 2007-02-11  Bruno Haible  <bruno@clisp.org>
71830
71831         Ensure O(n) worst-case complexity of c_strstr.
71832         * lib/c-strstr.c: Include stdbool.h, string.h.
71833         (knuth_morris_pratt): New function.
71834         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71835         bookkeeping indicates that it's worth it.
71836         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
71837
71838         * lib/c-strstr.c: Complete rewrite for maintainability.
71839
71840         * modules/c-strstr-tests: New file.
71841         * tests/test-c-strstr.c: New file.
71842
71843 2007-02-11  Bruno Haible  <bruno@clisp.org>
71844
71845         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
71846         5.2.1 and earlier, whereby \055 was treated just like the range
71847         delimiter '-'.
71848         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71849
71850 2007-02-08  Bruno Haible  <bruno@clisp.org>
71851
71852         * modules/regex (Depends-on): Add stdbool.
71853         Reported by Dalibor Topic <robilad@kaffe.org>.
71854
71855 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71856
71857         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
71858         Prefer returning from main to exiting from it.
71859         Remove unnecessary parens after sizeof.
71860
71861 2007-02-05  Bruno Haible  <bruno@clisp.org>
71862
71863         New module mbssep.
71864         * modules/mbssep: New file.
71865         * lib/mbssep.c: New file.
71866         * lib/string_.h (strsep): Add a conditional link warning.
71867         (mbssep): New declaration.
71868         * m4/mbssep.m4: New file.
71869         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71870         GNULIB_MBSSEP.
71871         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
71872         * MODULES.html.sh (Internationalization functions): Add mbssep.
71873
71874 2007-02-05  Bruno Haible  <bruno@clisp.org>
71875
71876         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
71877         Optimize search in case of 1 delimiter.
71878
71879 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71880
71881         * lib/acl.h: Include sys/types.h before sys/acl.h.
71882
71883 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71884
71885         Merge upstream fix for glibc bugzilla #3957:
71886
71887         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
71888
71889         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
71890         bit for RE_HAT_LISTS_NOT_NEWLINE.
71891         (build_charclass_op): Remove bogus comment.
71892
71893 2007-02-05  Simon Josefsson  <simon@josefsson.org>
71894
71895         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
71896
71897 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71898
71899         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
71900         * lib/memmem.c [!defined _LIBC]: Include config.h.
71901
71902 2007-02-04  Bruno Haible  <bruno@clisp.org>
71903
71904         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
71905         warning message.
71906
71907 2007-02-04  Bruno Haible  <bruno@clisp.org>
71908
71909         New module mbstok_r.
71910         * modules/mbstok_r: New file.
71911         * lib/mbstok_r.c: New file.
71912         * lib/string_.h (strtok_r): Change argument names to match the
71913         comments. Add a conditional link warning.
71914         (mbstok_r): New declaration.
71915         * m4/mbstok_r.m4: New file.
71916         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71917         GNULIB_MBSTOK_R.
71918         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
71919         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
71920
71921 2007-02-04  Bruno Haible  <bruno@clisp.org>
71922
71923         New module mbsspn.
71924         * modules/mbsspn: New file.
71925         * lib/mbsspn.c: New file.
71926         * lib/string_.h (strspn): Add a conditional link warning.
71927         (mbsspn): New declaration.
71928         * m4/mbsspn.m4: New file.
71929         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71930         GNULIB_MBSSPN.
71931         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
71932         * MODULES.html.sh (Internationalization functions): Add mbsspn.
71933
71934 2007-02-04  Bruno Haible  <bruno@clisp.org>
71935
71936         New module mbspbrk.
71937         * modules/mbspbrk: New file.
71938         * lib/mbspbrk.c: New file.
71939         * lib/string_.h (strpbrk): Add a conditional link warning.
71940         (mbspbrk): New declaration.
71941         * m4/mbspbrk.m4: New file.
71942         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71943         GNULIB_MBSPBRK.
71944         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
71945         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
71946
71947 2007-02-04  Bruno Haible  <bruno@clisp.org>
71948
71949         New module mbscspn.
71950         * modules/mbscspn: New file.
71951         * lib/mbscspn.c: New file.
71952         * lib/string_.h (strcspn): Add a conditional link warning.
71953         (mbscspn): New declaration.
71954         * m4/mbscspn.m4: New file.
71955         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71956         GNULIB_MBSCSPN.
71957         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
71958         * MODULES.html.sh (Internationalization functions): Add mbscspn.
71959
71960 2007-02-04  Bruno Haible  <bruno@clisp.org>
71961
71962         New module mbscasestr, reduced goal of strcasestr.
71963         * modules/mbscasestr: New file.
71964         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
71965         (mbscasestr): Renamed from strcasestr.
71966         * lib/strcasestr.c: Don't include mbuiter.h.
71967         (strcasestr): Remove support for multibyte locales.
71968         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
71969         Change the conditional link warning.
71970         (mbscasestr): New declaration.
71971         * m4/mbscasestr.m4: New file.
71972         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
71973         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
71974         REPLACE_STRCASESTR.
71975         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
71976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71977         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71978         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
71979         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
71980         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71981         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
71982         (Depends-on): Remove mbuiter.
71983         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
71984
71985 2007-02-04  Bruno Haible  <bruno@clisp.org>
71986
71987         Simplify handling of strncasecmp.
71988         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
71989         the conditional link warning.
71990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71991         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
71992         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
71993         * modules/strcase (configure.ac): Don't invoke
71994         gl_STRING_MODULE_INDICATOR.
71995         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
71996
71997 2007-02-04  Bruno Haible  <bruno@clisp.org>
71998
71999         New module mbscasecmp, reduced goal of strcasecmp.
72000         * modules/mbscasecmp: New file.
72001         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72002         (mbscasecmp): Renamed from strcasecmp.
72003         * lib/strcasecmp.c: Don't include mbuiter.h.
72004         (strcasecmp): Remove support for multibyte locales.
72005         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72006         Change the conditional link warning.
72007         (mbscasecmp): New declaration.
72008         * m4/mbscasecmp.m4: New file.
72009         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72010         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72011         REPLACE_STRCASECMP.
72012         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72013         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72014         GNULIB_MBSCASECMP.
72015         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72016         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72017         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72018         (Depends-on): Remove mbuiter.
72019         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72020
72021 2007-02-04  Bruno Haible  <bruno@clisp.org>
72022
72023         New module mbsstr. Remove module strstr.
72024         * modules/mbsstr: New file.
72025         * modules/strstr: Remove file.
72026         * lib/mbsstr.c: Renamed from lib/strstr.c.
72027         (mbsstr): Renamed from strstr.
72028         * lib/string_.h (strstr): Remove declaration. Change the conditional
72029         link warning.
72030         (mbsstr): New declaration.
72031         * m4/mbsstr.m4: New file.
72032         * m4/strstr.m4: Remove file.
72033         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72034         REPLACE_STRSTR.
72035         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72036         Don't initialize GNULIB_STRSTR.
72037         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72038         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72039         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72040         (Support for systems lacking ANSI C 89): Remove strstr.
72041
72042 2007-02-04  Bruno Haible  <bruno@clisp.org>
72043
72044         New module mbsrchr.
72045         * modules/mbsrchr: New file.
72046         * lib/mbsrchr.c: New file.
72047         * lib/string_.h (strrchr): Add a conditional link warning.
72048         (mbsrchr): New declaration.
72049         * m4/mbsrchr.m4: New file.
72050         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72051         GNULIB_MBSRCHR.
72052         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72053         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72054
72055 2007-02-04  Bruno Haible  <bruno@clisp.org>
72056
72057         New module mbschr.
72058         * modules/mbschr: New file.
72059         * lib/mbschr.c: New file.
72060         * lib/string_.h (strchr): Add a conditional link warning.
72061         (mbschr): New declaration.
72062         * m4/mbschr.m4: New file.
72063         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72064         GNULIB_MBSCHR.
72065         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72066         * MODULES.html.sh (Internationalization functions): Add mbschr.
72067
72068 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72069
72070         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72071
72072         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72073
72074 2007-02-04  Bruno Haible  <bruno@clisp.org>
72075
72076         New module description section 'configure.ac-early'.
72077         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72078         (func_get_autoconf_early_snippet): New function.
72079         (func_import, func_create_testdir): Use it. Remove special cases for
72080         modules 'extensions' and 'lock'.
72081         * modules/extensions (configure.ac-early): Require
72082         gl_USE_SYSTEM_EXTENSIONS.
72083         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72084
72085 2007-02-04  Bruno Haible  <bruno@clisp.org>
72086
72087         Make use of gcj-4.3's -fsource and -ftarget option.
72088         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72089         and if so try the options -fsource and -ftarget.
72090         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72091         source_version, ftarget_option, target_version arguments.
72092         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72093         (is_envjavac_oldgcj_14_14_usable): Renamed from
72094         is_envjavac_gcj_14_14_usable.
72095         (is_envjavac_oldgcj_14_13_usable): Renamed from
72096         is_envjavac_gcj_14_13_usable.
72097         (is_gcj_present): Update.
72098         (is_gcj_43, is_gcj43_usable): New functions.
72099         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72100         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72101         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72102         try the options -fsource and -ftarget.
72103
72104 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72105
72106         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72107         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72108         larger value.
72109
72110 2007-02-03  Jim Meyering  <jim@meyering.net>
72111
72112         Give tools a better chance to allocate space for very large buffers.
72113         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72114
72115         Make pwd and readlink work also when run with an unreadable parent dir
72116         on systems with openat support.
72117         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72118         provided getcwd function, even when we have openat support.
72119         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72120
72121 2007-02-02  Bruno Haible  <bruno@clisp.org>
72122
72123         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72124         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72125         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72126         portability problems if one of these functions is only used on specific
72127         platforms.
72128         Reported by Paul Eggert.
72129
72130 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72131
72132         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72133         is causing more trouble than it's curing.
72134         * lib/regex_internal.h (__mempcpy): Remove.
72135         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72136         (and make the code a tad smaller to boot).
72137         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72138
72139 2007-02-02  Jim Meyering  <jim@meyering.net>
72140
72141         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72142         section, not in the Makefile.am: one.
72143
72144 2007-02-02  Eric Blake  <ebb9@byu.net>
72145
72146         * lib/strchrnul.c: Always include config.h first.
72147
72148         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72149         gnulib strstr is not necessary here.
72150
72151 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72152
72153         * m4/socklen.m4: Fix typo.
72154
72155 2007-02-02  Eric Blake  <ebb9@byu.net>
72156
72157         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72158         * modules/netinet_in (Makefile.am): Likewise.
72159
72160 2007-02-01  Bruno Haible  <bruno@clisp.org>
72161
72162         * lib/string_.h (GL_LINK_WARNING): New macro.
72163         (strcasecmp, strstr, strcasestr): If provided by the system,
72164         conditionally define as a macro that leads to a warning instead of to
72165         an error.
72166         (strncasecmp): Conditionally define as a macro that leads to a warning.
72167
72168 2007-02-01  Karl Berry  <karl@gnu.org>
72169
72170         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72171
72172 2007-02-01  Bruno Haible  <bruno@clisp.org>
72173
72174         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72175         renamings.
72176
72177 2007-02-01  Eric Blake  <ebb9@byu.net>
72178
72179         * modules/regex (Depends-on): Revert dependence on mempcpy.
72180         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72181         module's definition of mempcpy.
72182         Reported by Paul Eggert.
72183
72184 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72185
72186         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72187         the symbol XYZ before redefining it.  This fixes a problem with
72188         programs that don't use XYZ, when compiled on systems that define
72189         XYZ to something else.
72190
72191 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72192
72193         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72194         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72195         writeable to group or other and (2) is intended to have a special
72196         mode bit that is set or cleared.  In such a case, the directory
72197         should be neither group- nor other-writeable until the special
72198         mode bits are right.
72199
72200 2007-01-31  Eric Blake  <ebb9@byu.net>
72201
72202         * modules/mountlist (Depends-on): Add strstr.
72203
72204         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72205         bug.
72206         * modules/string (Makefile.am): Remove redundant replacement.
72207         * modules/regex (Depends-on): Add mempcpy.
72208
72209 2007-01-31  Bruno Haible  <bruno@clisp.org>
72210
72211         New module description field 'Link'.
72212         * gnulib-tool (func_usage): Document --extract-link-directive.
72213         (sed_extract_prog): Recognize 'Link' directive.
72214         (func_get_link_directive): New function.
72215         (func_import): Show summary of link directives.
72216         Handle --extract-link-directive option.
72217         * modules/acl (Link): New section.
72218         * modules/clock-time (Link): New section.
72219         * modules/euidaccess (Link): New section.
72220         * modules/gettext (Link): New section.
72221         * modules/iconv (Link): New section.
72222         * modules/lock (Link): New section.
72223         * modules/nanosleep (Link): New section.
72224         * modules/readline (Link): New section.
72225
72226 2007-01-27  Bruno Haible  <bruno@clisp.org>
72227
72228         Enforce the use of gnulib modules for unportable <string.h> functions.
72229         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72230         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72231         (gl_HEADER_STRING_H_BODY): Require it.
72232         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72233         the symbol XYZ to one that gives a link error.
72234         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72235         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72236         * modules/mempcpy (configure.ac): Likewise.
72237         * modules/memrchr (configure.ac): Likewise.
72238         * modules/stpcpy (configure.ac): Likewise.
72239         * modules/stpncpy (configure.ac): Likewise.
72240         * modules/strcase (configure.ac): Likewise.
72241         * modules/strcasestr (configure.ac): Likewise.
72242         * modules/strchrnul (configure.ac): Likewise.
72243         * modules/strdup (configure.ac): Likewise.
72244         * modules/strndup (configure.ac): Likewise.
72245         * modules/strnlen (configure.ac): Likewise.
72246         * modules/strpbrk (configure.ac): Likewise.
72247         * modules/strsep (configure.ac): Likewise.
72248         * modules/strstr (configure.ac): Likewise.
72249         * modules/strtok_r (configure.ac): Likewise.
72250
72251 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72252
72253         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72254
72255 2007-01-30  Jim Meyering  <jim@meyering.net>
72256
72257         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72258
72259 2007-01-29  Bruno Haible  <bruno@clisp.org>
72260
72261         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72262         * lib/execute.c: Likewise.
72263         * lib/pipe.c: Likewise.
72264         * lib/printf-args.h: Likewise.
72265         * lib/printf-args.c: Likewise.
72266         * lib/printf-parse.c: Likewise.
72267         * lib/vasnprintf.c: Likewise.
72268
72269 2007-01-29  Eric Blake  <ebb9@byu.net>
72270
72271         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72272         declaration.
72273
72274 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72275
72276         * lib/strptime.h (strptime): Use 'restrict' for args where
72277         POSIX requires this.
72278         * lib/strptime.c (strptime): Likewise.
72279         Change license notice from LGPL to GPL, since gnulib-tool will
72280         change this as needed.
72281         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72282         defined.
72283         Include "strptime.h" first, to check interface.
72284         Do not #undef _LIBC and _NL_CURRENT.
72285         Do not include <stdlib.h>; no longer needed.
72286         Include "time_r.h" and declare ptime_locale_status
72287         only if _LIBC is not defined.
72288         (__P): Remove unused macro.
72289         (match_string): Bring back glibc version, but use it only if _LIBC
72290         is defined.
72291         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72292         Remove unnecessary assertion and abort() call.
72293         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72294         * m4/strptime.m4: Fix serial number comment.
72295         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72296         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72297         (Depends-on): Add time_r.
72298
72299 2007-01-29  Bruno Haible  <bruno@clisp.org>
72300
72301         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72302         strptime.
72303         * modules/strptime (Depends-on): Add stdbool.
72304         * lib/strptime.h: Include <time.h> always. Add comments.
72305
72306 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72307
72308         * modules/strptime: New file.
72309         * lib/strptime.h: New file.
72310         * lib/strptime.c: New file.
72311         * m4/strptime.m4: New file.
72312
72313 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72314
72315         * MODULES.html.sh: New module mpsort.
72316         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72317
72318         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72319         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72320         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72321         All uses changed.
72322         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72323         All uses changed.
72324         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72325         to _Restrict_.
72326         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72327         the parameter matches the prototype.
72328
72329 2007-01-28  Jim Meyering  <jim@meyering.net>
72330
72331         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72332         sys/time.h here, reverting that part of the previous patch:
72333         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72334
72335 2007-01-28  Bruno Haible  <bruno@clisp.org>
72336
72337         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72338         value of $(SYS_TIME_H).
72339         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72340         remove it conditionally, too. [added by Jim Meyering]
72341         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72342         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72343         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72344         GETTIMEOFDAY_REPLACEMENT to 1.
72345
72346 2007-01-28  Bruno Haible  <bruno@clisp.org>
72347
72348         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72349         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72351         Set UNISTD_H instead of UNISTD_H2.
72352         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72353
72354 2007-01-28  Bruno Haible  <bruno@clisp.org>
72355
72356         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72357         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72358
72359 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72360
72361         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72362         (func_create_testdir): Ensure C locale for `grep' and `tr'
72363         character ranges.
72364         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72365         ACLOCAL_AMFLAGS parsing state machine.
72366
72367 2007-01-27  Bruno Haible  <bruno@clisp.org>
72368
72369         * modules/unistr/base: Update.
72370
72371 2007-01-27  Bruno Haible  <bruno@clisp.org>
72372
72373         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72374         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72375         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72376         modules/unistr/u32-mbtouc.
72377         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72378         * lib/unistr.h: Update.
72379         * lib/linebreak.c: Update.
72380         * modules/unistr/u32-mbtouc: Renamed from
72381         modules/unistr/u32-mbtouc-safe.
72382         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72383         * lib/unistr.h: Update.
72384         * lib/unistr/u32-to-u8.c: Update.
72385         * lib/unistr/u32-to-u16.c: Update.
72386
72387 2007-01-27  Bruno Haible  <bruno@clisp.org>
72388
72389         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72390         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72391         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72392         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72393         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72394         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72395         modules/unistr/u16-mbtouc.
72396         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72397         * lib/unistr.h: Update.
72398         * lib/linebreak.c: Update.
72399         * modules/linebreak: Update.
72400         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72401         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72402         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72403         * modules/unistr/u16-mbtouc: Renamed from
72404         modules/unistr/u16-mbtouc-safe.
72405         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72406         * lib/unistr.h: Update.
72407         * lib/unistr/u16-to-u8.c: Update.
72408         * modules/unistr/u16-to-u8: Update.
72409         * lib/unistr/u16-to-u32.c: Update.
72410         * modules/unistr/u16-to-u32: Update.
72411
72412 2007-01-27  Bruno Haible  <bruno@clisp.org>
72413
72414         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72415         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72416         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72417         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72418         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72419         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72420         modules/unistr/u8-mbtouc.
72421         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72422         * lib/unistr.h: Update.
72423         * lib/striconveh.c: Update.
72424         * modules/striconveh: Update.
72425         * lib/linebreak.c: Update.
72426         * modules/linebreak: Update.
72427         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72428         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72429         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72430         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72431         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72432         * lib/unistr.h: Update.
72433         * lib/striconveh.c: Update.
72434         * modules/striconveh: Update.
72435         * lib/unistr/u8-to-u16.c: Update.
72436         * modules/unistr/u8-to-u16: Update.
72437         * lib/unistr/u8-to-u32.c: Update.
72438         * modules/unistr/u8-to-u32: Update.
72439
72440 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72441
72442         Sync from Libtool.
72443         * lib/argz.c: Do not include strings.h nor memory.h, include
72444         string.h unconditionally.  Patch by Simon Josefsson.
72445
72446 2007-01-27  Bruno Haible  <bruno@clisp.org>
72447
72448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72449         from gl_HEADER_STRING_H_BODY.
72450         (gl_HEADER_STRING_H_BODY): Require it.
72451         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72452         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72453         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72454         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72455         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72456         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72457         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72458         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72459         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72460         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72461         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72462         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72463         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72464         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72465         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72466
72467 2007-01-27  Bruno Haible  <bruno@clisp.org>
72468
72469         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72470         check_PROGRAMS into noinst_PROGRAMS.
72471         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72472         check_PROGRAMS in this case.
72473         (func_import): Set for_test to false.
72474         (func_create_testdir): Set for_test to true.
72475
72476 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72477             Bruno Haible  <bruno@clisp.org>
72478
72479         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72480         (Depends-on): Add string.
72481         (Includes): Use <string.h> instead of strcasestr.h.
72482         * modules/string (Makefile.am): Also substitute the value of
72483         REPLACE_STRCASESTR.
72484         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72485         assume strcasestr is declared in <string.h> not <strings.h>. Also
72486         set REPLACE_STRCASESTR.
72487         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72488         REPLACE_STRCASESTR.
72489         * lib/strcasestr.h: Remove file.
72490         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72491         * lib/string_.h (strcasestr): New declaration.
72492
72493 2007-01-27  Bruno Haible  <bruno@clisp.org>
72494
72495         * lib/string_.h: Use 'extern'.
72496
72497 2007-01-27  Jim Meyering  <jim@meyering.net>
72498
72499         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72500         of set-but-not-used local, "q".
72501
72502         * lib/mempcpy.c: Include <config.h> before <string.h>.
72503         This fixes a compilation error on HP-UX, due to the system's
72504         "restrict"-using mempcpy prototype.
72505
72506 2007-01-26  Bruno Haible  <bruno@clisp.org>
72507
72508         Small optimization.
72509         * lib/javacomp.c: Include c-strstr.h.
72510          (is_envjavac_gcj): Use c_strstr instead of strstr.
72511         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72512
72513 2007-01-26  Bruno Haible  <bruno@clisp.org>
72514
72515         * MODULES.html.sh (Unicode string functions): Add the new modules.
72516
72517         * modules/uniconv/u32-strconv-to-locale: New file.
72518         * lib/uniconv/u32-strconv-to-locale.c: New file.
72519
72520         * modules/uniconv/u16-strconv-to-locale: New file.
72521         * lib/uniconv/u16-strconv-to-locale.c: New file.
72522
72523         * modules/uniconv/u8-strconv-to-locale: New file.
72524         * lib/uniconv/u8-strconv-to-locale.c: New file.
72525
72526         * modules/uniconv/u32-strconv-from-locale: New file.
72527         * lib/uniconv/u32-strconv-from-locale.c: New file.
72528
72529         * modules/uniconv/u16-strconv-from-locale: New file.
72530         * lib/uniconv/u16-strconv-from-locale.c: New file.
72531
72532         * modules/uniconv/u8-strconv-from-locale: New file.
72533         * lib/uniconv/u8-strconv-from-locale.c: New file.
72534
72535         * modules/uniconv/u32-strconv-to-enc: New file.
72536         * lib/uniconv/u32-strconv-to-enc.c: New file.
72537         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72538         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72539
72540         * modules/uniconv/u16-strconv-to-enc: New file.
72541         * lib/uniconv/u16-strconv-to-enc.c: New file.
72542         * lib/uniconv/u-strconv-to-enc.h: New file.
72543         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72544         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72545
72546         * modules/uniconv/u8-strconv-to-enc: New file.
72547         * lib/uniconv/u8-strconv-to-enc.c: New file.
72548         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72549         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72550
72551         * modules/uniconv/u32-strconv-from-enc: New file.
72552         * lib/uniconv/u32-strconv-from-enc.c: New file.
72553         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72554         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72555
72556         * modules/uniconv/u16-strconv-from-enc: New file.
72557         * lib/uniconv/u16-strconv-from-enc.c: New file.
72558         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72559         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72560
72561         * modules/uniconv/u8-strconv-from-enc: New file.
72562         * lib/uniconv/u8-strconv-from-enc.c: New file.
72563         * lib/uniconv/u-strconv-from-enc.h: New file.
72564         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72565         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72566
72567         * modules/uniconv/u32-conv-from-enc: New file.
72568         * lib/uniconv/u32-conv-from-enc.c: New file.
72569         * modules/uniconv/u32-conv-from-enc-tests: New file.
72570         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72571
72572         * modules/uniconv/u16-conv-from-enc: New file.
72573         * lib/uniconv/u16-conv-from-enc.c: New file.
72574         * lib/uniconv/u-conv-from-enc.h: New file.
72575         * modules/uniconv/u16-conv-from-enc-tests: New file.
72576         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72577
72578         * modules/uniconv/u8-conv-from-enc: New file.
72579         * lib/uniconv/u8-conv-from-enc.c: New file.
72580         * modules/uniconv/u8-conv-from-enc-tests: New file.
72581         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72582
72583         * modules/uniconv/base: New file.
72584         * lib/uniconv.h: New file.
72585
72586 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72587
72588         * doc/gnulib-tool.texi (Initial import): Update to match current
72589         behavior with strdup module.
72590         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
72591         * lib/memmem.h: Remove; all uses removed.  This is now done
72592         by <string.h>.
72593         * lib/mempcpy.h: Likewise.
72594         * lib/memrchr.h: Likewise.
72595         * lib/stpcpy.h: Likewise.
72596         * lib/stpncpy.h: Likewise.
72597         * lib/strcase.h: Likewise.
72598         * lib/strchrnul.h: Likewise.
72599         * lib/strdup.h: Likewise.
72600         * lib/strndup.h: Likewise.
72601         * lib/strnlen.h: Likewise.
72602         * lib/strpbrk.h: Likewise.
72603         * lib/strsep.h: Likewise.
72604         * lib/strstr.h: Likewise.
72605         * lib/strtok_r.h: Likewise.
72606         * lib/string_.h: New file.
72607         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
72608         Rely on <string.h> instead.
72609         * lib/canon-host.c: Likewise.
72610         * lib/chdir-long.c: Likewise.
72611         * lib/concatpath.c: Likewise.
72612         * lib/exclude.c: Likewise.
72613         * lib/fchdir.c: Likewise.
72614         * lib/getaddrinfo.c: Likewise.
72615         * lib/getcwd.c: Likewise.
72616         * lib/getsubopt.c: Likewise.
72617         * lib/glob.c: Likewise.
72618         * lib/hard-locale.c: Likewise.
72619         * lib/iconvme.c: Likewise.
72620         * lib/javacomp.c: Likewise.
72621         * lib/mempcpy.c: Likewise.
72622         * lib/memrchr.c: Likewise.
72623         * lib/regex_internal.h: Likewise.
72624         * lib/stpncpy.c: Likewise.
72625         * lib/strcasecmp.c: Likewise.
72626         * lib/strchrnul.c: Likewise.
72627         * lib/strdup.c: Likewise.
72628         * lib/striconv.c: Likewise.
72629         * lib/striconveh.c: Likewise.
72630         * lib/striconveha.c: Likewise.
72631         * lib/strncasecmp.c: Likewise.
72632         * lib/strndup.c: Likewise.
72633         * lib/strnlen.c: Likewise.
72634         * lib/strsep.c: Likewise.
72635         * lib/strstr.c: Likewise.
72636         * lib/strtok_r.c: Likewise.
72637         * lib/userspec.c: Likewise.
72638         * lib/w32spawn.h: Likewise.
72639         * lib/xstrndup.c: Likewise.
72640         * lib/mountlist.c (strstr): Remove decl.
72641         * m4/string_h.m4: New file.
72642         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
72643         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
72644         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
72645         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
72646         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
72647         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
72648         Set REPLACE_STRCASECMP if necessary.
72649         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
72650         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
72651         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
72652         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
72653         HAVE_DECL_STRDUP if necessary.
72654         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
72655         since gl_FUNC_STRNDUP does that now.
72656         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
72657         Check for decl here...
72658         (gl_PREREQ_STRNLEN): ... not here.
72659         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
72660         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
72661         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
72662         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
72663         necessary.
72664         * modules/string: New file.
72665         * modules/memmem (Files): Remove special-purpose include file.
72666         (Depends-on): Add string.
72667         (Include): Include <string.h>, not the removed file.
72668         * modules/mempcpy: Likewise.
72669         * modules/memrchr: Likewise.
72670         * modules/stpcpy: Likewise.
72671         * modules/stpncpy: Likewise.
72672         * modules/strcase: Likewise.
72673         * modules/strchrnul: Likewise.
72674         * modules/strdup: Likewise.
72675         * modules/strndup: Likewise.
72676         * modules/strnlen: Likewise.
72677         * modules/strpbrk: Likewise.
72678         * modules/strsep: Likewise.
72679         * modules/strstr: Likewise.
72680         * modules/strtok_r: Likewise.
72681         * tests/test-dirname.c: Don't include "strdup.h", since
72682         <string.h> now suffices.
72683         * tests/test-memmem.c: Don't include "memmem.h", since
72684         <string.h> now suffices.
72685
72686 2007-01-25  Bruno Haible  <bruno@clisp.org>
72687
72688         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
72689         *resultp is 0.
72690
72691         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
72692         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
72693         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
72694         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
72695
72696         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
72697         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
72698         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
72699         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
72700         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
72701         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
72702
72703 2007-01-24  Bruno Haible  <bruno@clisp.org>
72704
72705         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
72706         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
72707         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
72708         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
72709         gl_FUNC_FTS_CORE.
72710         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
72711         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
72712         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72713         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
72714         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
72715         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
72716         gl_FUNC_FCHOWNAT.
72717         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
72718         gl_FUNC_STRFTIME.
72719         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
72720         Reported by Ralf Wildenhues.
72721
72722 2007-01-24  Bruno Haible  <bruno@clisp.org>
72723
72724         Drop AC_REQUIRE calls that are redundant with the module dependencies.
72725         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
72726         gl_GETADDRINFO.
72727         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
72728         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
72729         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
72730
72731 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
72732
72733         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
72734         Don't use 'exit'; just return from 'main'.
72735         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
72736
72737         * lib/fnmatch_.h: Readjust white space and comments to match
72738         glibc, to avoid spurious diffs.
72739
72740 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72741
72742         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
72743         2004-12-01 change by Jakub Jelinek, since this code won't compile
72744         if !LIBC.  Problem reported by Bob Proulx.
72745
72746 2007-01-23  Bruno Haible  <bruno@clisp.org>
72747
72748         * lib/striconveh.c: Include c-strcaseeq.h.
72749         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
72750         * modules/striconveh (Depends-on): Add c-strcaseeq.
72751
72752 2007-01-23  Bruno Haible  <bruno@clisp.org>
72753
72754         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
72755
72756         * modules/c-strcaseeq: New file.
72757         * lib/c-strcaseeq.h: New file.
72758
72759         * modules/streq: New file.
72760         * lib/streq.h: New file.
72761
72762 2007-01-23  Bruno Haible  <bruno@clisp.org>
72763
72764         * modules/striconveha-tests: New file.
72765         * tests/test-striconveha.c: New file.
72766
72767         * lib/striconveha.h: Include <stdbool.h>.
72768         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
72769         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
72770         (mem_iconveha_notranslit): Renamed from mem_iconveha.
72771         (mem_iconveha): New function.
72772         (str_iconveha_notranslit): Renamed from str_iconveha.
72773         (str_iconveha): New function.
72774         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
72775         c-strcase.
72776
72777 2007-01-23  Bruno Haible  <bruno@clisp.org>
72778
72779         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
72780         encodings without forgiving before trying any encoding with handler.
72781         (str_iconveha): Try all encodings without forgiving before trying any
72782         encoding with handler.
72783
72784 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72785
72786         Import the following changes from libc.
72787
72788         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72789
72790         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
72791
72792         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72793
72794         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
72795         normal_bracket label.
72796
72797         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
72798
72799         [BZ #361]
72800         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
72801         to normal_bracket after fetching the next character.
72802
72803 2007-01-22  Bruno Haible  <bruno@clisp.org>
72804
72805         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
72806         argument.
72807         * lib/striconveh.c (iconv_carefully_1): New function.
72808         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
72809         argument.
72810         (str_cd_iconveh): Update.
72811         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
72812         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
72813         * tests/test-striconveh.c (MAGIC): New macro.
72814         (new_offsets): New function.
72815         (main): Test call with and without offsets.
72816
72817 2007-01-22  Bruno Haible  <bruno@clisp.org>
72818
72819         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
72820         * modules/sys_select (Makefile.am): Likewise.
72821         * modules/sys_socket (Makefile.am): Likewise.
72822         * modules/sys_time (Makefile.am): Likewise.
72823
72824 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72825
72826         * modules/gettimeofday (License): Change from GPL to LGPL, since
72827         gettimeofday is a library function.
72828
72829 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72830
72831         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
72832
72833 2007-01-21  Bruno Haible  <bruno@clisp.org>
72834
72835         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
72836
72837 2007-01-21  Bruno Haible  <bruno@clisp.org>
72838
72839         * modules/striconveha: New file.
72840         * lib/striconveha.h: New file.
72841         * lib/striconveha.c: New file.
72842         * MODULES.html.sh (Internationalization functions): Add striconveha.
72843         * lib/striconv.c (str_iconv): Optimize the case of an empty input
72844         string.
72845         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
72846
72847 2007-01-21  Bruno Haible  <bruno@clisp.org>
72848
72849         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
72850         * lib/striconveh.c (str_iconveh): Likewise.
72851
72852 2007-01-21  Bruno Haible  <bruno@clisp.org>
72853
72854         * lib/striconveh.h (mem_iconveh): New declaration.
72855         * lib/striconveh.c (mem_iconveh): New function.
72856         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
72857
72858 2007-01-21  Bruno Haible  <bruno@clisp.org>
72859
72860         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
72861
72862         * lib/striconveh.h (mem_cd_iconveh): Change specification.
72863         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
72864         original result buffer.
72865         (str_cd_iconveh): Update.
72866         * tests/test-striconveh.c (main): Update.
72867
72868         * lib/striconv.h (mem_cd_iconv): Change specification.
72869         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
72870         result buffer.
72871         (str_cd_iconv): Update.
72872         * tests/test-striconv.c (main): Update.
72873
72874 2007-01-21  Bruno Haible  <bruno@clisp.org>
72875
72876         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
72877
72878 2007-01-20  Jim Meyering  <jim@meyering.net>
72879
72880         * lib/userspec.c (parse_with_separator): If a user or group string
72881         starts with "+", skip the corresponding name-to-ID look-up, since
72882         such a look-up must fail: user and group names may not include "+".
72883
72884 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72885
72886         * lib/poll.c: Include sys/time.h and time.h unconditionally,
72887         since we now assume the sys_time module.
72888         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
72889         check for sys/time.h; no longer needed.
72890         * modules/poll (Depends-on): Depend on sys_time.
72891
72892 2007-01-18  Bruno Haible  <bruno@clisp.org>
72893
72894         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
72895         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72896
72897         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
72898         gettimeofday.
72899
72900         * tests/test-gettimeofday.c: Include <time.h>.
72901         (dummy): Remove variable.
72902
72903         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
72904         gl_HEADER_SYS_TIME_H.
72905         (gl_HEADER_SYS_TIME_H): New macro.
72906
72907         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
72908         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72909         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
72910         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
72911         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72912         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
72913         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
72914         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72915         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
72916         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
72917         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72918
72919         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
72920         last change; it caused a compilation error when cross-compiling to
72921         Cygwin.
72922
72923 2007-01-18  Jim Meyering  <jim@meyering.net>
72924
72925         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
72926         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
72927         than the race-prone "test -d sys || mkdir sys".
72928         (configure.ac): Use AC_PROG_MKDIR_P.
72929         * modules/sys_select: Likewise.
72930         * modules/sys_socket: Likewise.
72931         * modules/sys_time: Likewise.
72932
72933 2007-01-18  Eric Blake  <ebb9@byu.net>
72934
72935         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
72936         replace gettimeofday.
72937         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
72938         name, to avoid infinite recursion.
72939
72940 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
72941
72942         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
72943         module sys_time.
72944         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
72945         assume timespec.h defines struct timeval.
72946         * lib/settime.c: Likewise.
72947         * lib/utimens.c: Likewise.
72948         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
72949         since we now assume the gettimeofday module.
72950         * lib/tempname.c (__gen_tempname): Likewise.
72951         * lib/gettimeofday.h: Remove.
72952         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
72953         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
72954         Include <time.h>, for 'time()'.
72955         (localtime_buffer_addr): Also use this workaround if
72956         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
72957         to simplify the uses.  All uses changed.
72958         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
72959         that #undef is inside {}, and 'const' follows type name consistently.
72960         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
72961         (gettimeofday): Do not use the maximum possible value for
72962         tv->tv_usec, since that might break usages other than ls.c.
72963         Instead, we'll leave ls.c alone.  This undoes today's patch
72964         by Bruno.  Add a compile-time warning for 1s-clock resolution;
72965         we've never observed the problem but might as well keep the
72966         canary.
72967         * lib/nanosleep.c: Include timespec.h first, for interface check.
72968         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
72969         now assume the sys_time module.
72970         * lib/tempname.c: Likewise.
72971         * lib/timespec.h: Likewise.
72972         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
72973         needed.
72974         * lib/strftime.c: Likewise.
72975         * lib/timespec.h: Likewise.
72976         * lib/posixtm.c: Include posixtm.h first, for interface check.
72977         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
72978         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
72979         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
72980         * lib/sys_time_.h: New file.
72981         * lib/timespec.h (struct timespec): Use long int, not long.
72982         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72983         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
72984         Remove obsolescent call to AC_HEADER_TIME.
72985         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
72986         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72987         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72988         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
72989         Likewise.
72990         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
72991         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
72992         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
72993         into the sys_time module.  Check for gettimeofday just once.
72994         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
72995         for gettimeofday signature to just check the signature.  Merely
72996         compile it, since linking doesn't test signature.  Improve test for
72997         whether gettimeofday.o is actually needed.
72998         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
72999         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73000         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73001         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73002         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73003         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73004         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73005         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73006         than worrying about sys/time.h.
73007         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73008         Don't bother worrying about TIME_WITH_SYS_TIME.
73009         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73010         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73011         * m4/sys_time_h.m4: New file.
73012         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73013         Don't include sys/time.h.  Return from main rather than exiting.
73014         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73015         all uses changed.
73016         * modules/gethrxtime (Depends-on): Add sys_time.
73017         * modules/gettime (Depends-on): Likewise.
73018         * modules/gettimeofday (Depends-on): Likewise.
73019         * modules/nanosleep (Depends-on): Likewise.
73020         * modules/settime (Depends-on): Likewise.
73021         * modules/tempname (Depends-on): Likewise.
73022         * modules/utimens (Depends-on): Likewise.
73023         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73024         (Include): Change back to <sys/time.h>.
73025         (Maintainer): Add self.
73026         * modules/sys_time: New file.
73027         * modules/tempname (Depends-on): Add gettimeofday.
73028         * tests/test-gettimeofday.c: Include <sys/time.h>
73029         rather than gettimeofday.h.
73030
73031 2007-01-17  Bruno Haible  <bruno@clisp.org>
73032
73033         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73034         the license default to GPL.
73035         (func_create_testdir): Don't complain if a module is LGPL and its
73036         tests module depends on GPLed modules.
73037
73038 2007-01-17  Bruno Haible  <bruno@clisp.org>
73039
73040         * lib/gettimeofday.c (gettimeofday): Add code for the case
73041         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73042         maximum possible value for tv->tv_usec, rather than the minimum one.
73043
73044 2005-10-08  Martin Lambers  <marlam@marlam.de>
73045 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73046 2007-01-16  Bruno Haible  <bruno@clisp.org>
73047
73048         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73049         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73050         gl_FUNC_GETTIMEOFDAY.
73051         (Include): Add gettimeofday.h.
73052         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73053         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73054         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73055         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73056         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73057         * lib/gettimeofday.h: New file.
73058         * lib/gettimeofday.c: Include <sys/timeb.h>.
73059         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73060         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73061         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73062         fall back on time().
73063
73064         * tests/test-gettimeofday.c: New file.
73065         * modules/gettimeofday-tests: New file.
73066
73067 2007-01-16  Eric Blake  <ebb9@byu.net>
73068
73069         * modules/fnmatch (Depends-on): Depend on wchar.
73070         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73071         * m4/fnmatch.m4: Likewise.
73072         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73073         * m4/mbchar.m4: Likewise.
73074         * modules/mbswidth (Depends-on): Depend on wchar.
73075         * lib/mbswidth.c: Assume <wchar.h>.
73076         * m4/mbswidth.m4: Likewise.
73077         * modules/quotearg (Depends-on): Depend on wchar.
73078         * lib/quotearg.c: Assume <wchar.h>.
73079         * m4/quotearg.m4: Likewise.
73080         * modules/regex (Depends-on): Depend on wchar.
73081         * lib/regex_internal.h: Assume <wchar.h>.
73082         * m4/regex.m4: Likewise.
73083         * modules/stdint (Depends-on): Depend on wchar.
73084         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73085         * m4/stdint.m4: Likewise.
73086         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73087         * modules/strftime (Depends-on): Depend on wchar.
73088         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73089         * modules/strtol (Depends-on): Depend on wchar.
73090         * lib/strtol.c: Assume <wchar.h>.
73091         * modules/wcwidth (Depends-on): Depend on wchar.
73092         * lib/wcwidth.h: Assume <wchar.h>.
73093         * m4/wcwidth.m4: Likewise.
73094
73095 2007-01-16  Bruno Haible  <bruno@clisp.org>
73096
73097         * modules/csharpexec-script: New, created from...
73098         * modules/csharpexec: ... this.
73099
73100 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73101
73102         * modules/javaexec-script: New, created from...
73103         * modules/javaexec: ... this.
73104
73105 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73106
73107         * modules/poll (Dependencies): Add sys_select.
73108
73109 2007-01-15  Jim Meyering  <jim@meyering.net>
73110
73111         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73112         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73113         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73114         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73115
73116 2007-01-15  Bruno Haible  <bruno@clisp.org>
73117
73118         * modules/striconveh: New file.
73119         * lib/striconveh.h: New file.
73120         * lib/striconveh.c: New file.
73121         * MODULES.html.sh (Internationalization functions): Add striconveh.
73122
73123         * modules/striconveh-tests: New file.
73124         * tests/test-striconveh.c: New file.
73125
73126 2007-01-15  Bruno Haible  <bruno@clisp.org>
73127
73128         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73129         not from GNU libiconv or GNU libc.
73130
73131 2007-01-15  Bruno Haible  <bruno@clisp.org>
73132
73133         * doc/gnulib-intro.texi (Copyright): Explain the different license
73134         terms for module descriptions, autoconf macros, tests, documentation.
73135
73136 2007-01-14  Bruno Haible  <bruno@clisp.org>
73137
73138         * modules/striconv-tests: New file.
73139         * tests/test-striconv.c: New file.
73140
73141 2007-01-14  Bruno Haible  <bruno@clisp.org>
73142
73143         * modules/iconv-tests: New file.
73144         * tests/test-iconv.c: New file.
73145
73146 2007-01-14  Bruno Haible  <bruno@clisp.org>
73147
73148         * gnulib-tool (func_get_license): For test modules, use the license of
73149         the main module.
73150
73151 2007-01-14  Bruno Haible  <bruno@clisp.org>
73152
73153         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73154         if iconv is found to exist.
73155
73156 2007-01-14  Bruno Haible  <bruno@clisp.org>
73157
73158         * modules/c-ctype-tests: New file.
73159         * tests/test-c-ctype.c: New file.
73160
73161 2007-01-14  Bruno Haible  <bruno@clisp.org>
73162
73163         * modules/binary-io-tests: New file.
73164         * tests/test-binary-io.sh: New file.
73165         * tests/test-binary-io.c: New file.
73166
73167 2007-01-14  Bruno Haible  <bruno@clisp.org>
73168
73169         * modules/array-oset-tests: New file.
73170         * tests/test-array_oset.c: New file.
73171
73172 2007-01-14  Bruno Haible  <bruno@clisp.org>
73173
73174         * modules/array-list-tests: New file.
73175         * tests/test-array_list.c: New file.
73176
73177 2007-01-14  Bruno Haible  <bruno@clisp.org>
73178
73179         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73180         and make.
73181         Reported by Simon Josefsson in
73182         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73183
73184 2007-01-14  Bruno Haible  <bruno@clisp.org>
73185
73186         * modules/allocsa-tests: New file.
73187         * tests/test-allocsa.c: New file.
73188
73189 2007-01-14  Bruno Haible  <bruno@clisp.org>
73190
73191         * modules/fchdir (Depends-on): Add absolute-header.
73192         * modules/unistd (Depends-on): Likewise.
73193
73194 2006-12-30  Bruno Haible  <bruno@clisp.org>
73195
73196         * modules/fchdir: New file.
73197         * modules/unistd (Files): Add lib/unistd_.h.
73198         (Makefile.am): Generate unistd.h from unistd_.h.
73199         * lib/fchdir.c: New file.
73200         * lib/dirent_.h: New file.
73201         * lib/unistd_.h: New file.
73202         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73203         * m4/fchdir.m4: New file.
73204         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73205         (gl_HEADER_UNISTD): Invoke it.
73206         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73207         function.
73208         * lib/backupfile.c (opendir, closedir): Undefine.
73209         * lib/chown.c (open, close): Undefine.
73210         * lib/clean-temp.c (open, close): Undefine.
73211         * lib/copy-file.c (open, close): Undefine.
73212         * lib/execute.c (open, close): Undefine.
73213         * lib/fsusage.c (open, close): Undefine.
73214         * lib/gc-gnulib.c (open, close): Undefine.
73215         * lib/getcwd.c (opendir, closedir): Undefine.
73216         * lib/glob.c (opendir, closedir): Undefine.
73217         * lib/javacomp.c (open, close): Undefine.
73218         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73219         * lib/openat-proc.c (open, close): Undefine.
73220         * lib/pagealign_alloc.c (open, close): Undefine.
73221         * lib/pipe.c (open, close): Undefine.
73222         * lib/progreloc.c (open, close): Undefine.
73223         * lib/savedir.c (opendir, closedir): Undefine.
73224         * lib/utime.c (open, close): Undefine.
73225         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73226
73227 2007-01-10  Bruno Haible  <bruno@clisp.org>
73228
73229         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73230
73231 2007-01-12  Eric Blake  <ebb9@byu.net>
73232
73233         Provide a robust <wchar.h>.  Further simplifications are now
73234         possible in other modules, but not included here.
73235         * modules/wchar: New module.
73236         * m4/wchar.m4: New file.
73237         * lib/wchar_.h: Likewise.
73238         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73239         of the new module.
73240         * MODULES.html.sh (Extended multibyte and wide character utilities):
73241         New section.
73242
73243 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73244
73245         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73246         to a reasonable default for memory allocation.
73247         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73248         file system that reports garbage st_size values for symlinks.
73249         Problem reported by Liyang Hu.
73250
73251 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73252
73253         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73254         Emacs .#* auto-save files).
73255
73256 2007-01-11  Bruno Haible  <bruno@clisp.org>
73257
73258         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73259         directory.
73260
73261 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73262
73263         Use @...@ consistently in lib/wctype_.h.
73264         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73265         on it being set to 1 or 0.
73266         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73267         go back to AC_SUBSTing it.
73268         * modules/wctype (Makefile.am): Undo previous change.
73269
73270 2007-01-10  Eric Blake  <ebb9@byu.net>
73271
73272         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73273         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73274         * modules/wctype (Makefile.am): Likewise.
73275         Reported by Chris McGuire.
73276
73277 2007-01-10  Jim Meyering  <jim@meyering.net>
73278
73279         fts.c: a small readability/maintainability improvement
73280         * lib/fts.c (fts_read): Make this code slightly more readable and
73281         maintainable by hoisting the "sp->fts_cur = p" assignments to
73282         immediately follow the statements that set P.  Derived from
73283         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73284
73285 2007-01-10  Eric Blake  <ebb9@byu.net>
73286
73287         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73288         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73289         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73290         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73291         Reported by Chris McGuire.
73292
73293 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73294
73295         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73296         in sed script.
73297
73298 2007-01-09  Bruno Haible  <bruno@clisp.org>
73299
73300         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73301         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73302         variables.
73303         (func_module): Use them.
73304
73305 2007-01-09  Bruno Haible  <bruno@clisp.org>
73306
73307         * modules/unistr/base: New file.
73308         * lib/unistr.h: New file.
73309
73310         * modules/unistr/u8-to-u16: New file.
73311         * lib/unistr/u8-to-u16.c: New file.
73312
73313         * modules/unistr/u8-to-u32: New file.
73314         * lib/unistr/u8-to-u32.c: New file.
73315
73316         * modules/unistr/u16-to-u8: New file.
73317         * lib/unistr/u16-to-u8.c: New file.
73318
73319         * modules/unistr/u16-to-u32: New file.
73320         * lib/unistr/u16-to-u32.c: New file.
73321
73322         * modules/unistr/u32-to-u8: New file.
73323         * lib/unistr/u32-to-u8.c: New file.
73324
73325         * modules/unistr/u32-to-u16: New file.
73326         * lib/unistr/u32-to-u16.c: New file.
73327
73328         * modules/unistr/u8-check: New file.
73329         * modules/unistr/u16-check: New file.
73330         * modules/unistr/u32-check: New file.
73331         * lib/unistr/u8-check.c: New file.
73332         * lib/unistr/u16-check.c: New file.
73333         * lib/unistr/u32-check.c: New file.
73334
73335         * modules/unistr/u8-chr: New file.
73336         * modules/unistr/u16-chr: New file.
73337         * modules/unistr/u32-chr: New file.
73338         * lib/unistr/u8-chr.c: New file.
73339         * lib/unistr/u16-chr.c: New file.
73340         * lib/unistr/u32-chr.c: New file.
73341
73342         * modules/unistr/u8-cmp: New file.
73343         * modules/unistr/u16-cmp: New file.
73344         * modules/unistr/u32-cmp: New file.
73345         * lib/unistr/u8-cmp.c: New file.
73346         * lib/unistr/u16-cmp.c: New file.
73347         * lib/unistr/u32-cmp.c: New file.
73348
73349         * modules/unistr/u8-cpy: New file.
73350         * modules/unistr/u16-cpy: New file.
73351         * modules/unistr/u32-cpy: New file.
73352         * lib/unistr/u8-cpy.c: New file.
73353         * lib/unistr/u16-cpy.c: New file.
73354         * lib/unistr/u32-cpy.c: New file.
73355         * lib/unistr/u-cpy.h: New file.
73356
73357         * modules/unistr/u8-cpy-alloc: New file.
73358         * modules/unistr/u16-cpy-alloc: New file.
73359         * modules/unistr/u32-cpy-alloc: New file.
73360         * lib/unistr/u8-cpy-alloc.c: New file.
73361         * lib/unistr/u16-cpy-alloc.c: New file.
73362         * lib/unistr/u32-cpy-alloc.c: New file.
73363         * lib/unistr/u-cpy-alloc.h: New file.
73364
73365         * modules/unistr/u8-endswith: New file.
73366         * modules/unistr/u16-endswith: New file.
73367         * modules/unistr/u32-endswith: New file.
73368         * lib/unistr/u8-endswith.c: New file.
73369         * lib/unistr/u16-endswith.c: New file.
73370         * lib/unistr/u32-endswith.c: New file.
73371         * lib/unistr/u-endswith.h: New file.
73372
73373         * modules/unistr/u8-mblen: New file.
73374         * modules/unistr/u16-mblen: New file.
73375         * modules/unistr/u32-mblen: New file.
73376         * lib/unistr/u8-mblen.c: New file.
73377         * lib/unistr/u16-mblen.c: New file.
73378         * lib/unistr/u32-mblen.c: New file.
73379
73380         * modules/unistr/u8-mbtouc: New file.
73381         * modules/unistr/u16-mbtouc: New file.
73382         * modules/unistr/u32-mbtouc: New file.
73383         * lib/unistr/u8-mbtouc.c: New file.
73384         * lib/unistr/u16-mbtouc.c: New file.
73385         * lib/unistr/u32-mbtouc.c: New file.
73386
73387         * modules/unistr/u8-mbtouc-safe: New file.
73388         * modules/unistr/u16-mbtouc-safe: New file.
73389         * modules/unistr/u32-mbtouc-safe: New file.
73390         * lib/unistr/u8-mbtouc-safe.c: New file.
73391         * lib/unistr/u16-mbtouc-safe.c: New file.
73392         * lib/unistr/u32-mbtouc-safe.c: New file.
73393
73394         * modules/unistr/u8-move: New file.
73395         * modules/unistr/u16-move: New file.
73396         * modules/unistr/u32-move: New file.
73397         * lib/unistr/u8-move.c: New file.
73398         * lib/unistr/u16-move.c: New file.
73399         * lib/unistr/u32-move.c: New file.
73400         * lib/unistr/u-move.h: New file.
73401
73402         * modules/unistr/u8-next: New file.
73403         * modules/unistr/u16-next: New file.
73404         * modules/unistr/u32-next: New file.
73405         * lib/unistr/u8-next.c: New file.
73406         * lib/unistr/u16-next.c: New file.
73407         * lib/unistr/u32-next.c: New file.
73408
73409         * modules/unistr/u8-prev: New file.
73410         * modules/unistr/u16-prev: New file.
73411         * modules/unistr/u32-prev: New file.
73412         * lib/unistr/u8-prev.c: New file.
73413         * lib/unistr/u16-prev.c: New file.
73414         * lib/unistr/u32-prev.c: New file.
73415
73416         * modules/unistr/u8-set: New file.
73417         * modules/unistr/u16-set: New file.
73418         * modules/unistr/u32-set: New file.
73419         * lib/unistr/u8-set.c: New file.
73420         * lib/unistr/u16-set.c: New file.
73421         * lib/unistr/u32-set.c: New file.
73422         * lib/unistr/u-set.h: New file.
73423
73424         * modules/unistr/u8-startswith: New file.
73425         * modules/unistr/u16-startswith: New file.
73426         * modules/unistr/u32-startswith: New file.
73427         * lib/unistr/u8-startswith.c: New file.
73428         * lib/unistr/u16-startswith.c: New file.
73429         * lib/unistr/u32-startswith.c: New file.
73430         * lib/unistr/u-startswith.h: New file.
73431
73432         * modules/unistr/u8-stpcpy: New file.
73433         * modules/unistr/u16-stpcpy: New file.
73434         * modules/unistr/u32-stpcpy: New file.
73435         * lib/unistr/u8-stpcpy.c: New file.
73436         * lib/unistr/u16-stpcpy.c: New file.
73437         * lib/unistr/u32-stpcpy.c: New file.
73438         * lib/unistr/u-stpcpy.h: New file.
73439
73440         * modules/unistr/u8-stpncpy: New file.
73441         * modules/unistr/u16-stpncpy: New file.
73442         * modules/unistr/u32-stpncpy: New file.
73443         * lib/unistr/u8-stpncpy.c: New file.
73444         * lib/unistr/u16-stpncpy.c: New file.
73445         * lib/unistr/u32-stpncpy.c: New file.
73446         * lib/unistr/u-stpncpy.h: New file.
73447
73448         * modules/unistr/u8-strcat: New file.
73449         * modules/unistr/u16-strcat: New file.
73450         * modules/unistr/u32-strcat: New file.
73451         * lib/unistr/u8-strcat.c: New file.
73452         * lib/unistr/u16-strcat.c: New file.
73453         * lib/unistr/u32-strcat.c: New file.
73454         * lib/unistr/u-strcat.h: New file.
73455
73456         * modules/unistr/u8-strchr: New file.
73457         * modules/unistr/u16-strchr: New file.
73458         * modules/unistr/u32-strchr: New file.
73459         * lib/unistr/u8-strchr.c: New file.
73460         * lib/unistr/u16-strchr.c: New file.
73461         * lib/unistr/u32-strchr.c: New file.
73462
73463         * modules/unistr/u8-strcmp: New file.
73464         * modules/unistr/u16-strcmp: New file.
73465         * modules/unistr/u32-strcmp: New file.
73466         * lib/unistr/u8-strcmp.c: New file.
73467         * lib/unistr/u16-strcmp.c: New file.
73468         * lib/unistr/u32-strcmp.c: New file.
73469
73470         * modules/unistr/u8-strcpy: New file.
73471         * modules/unistr/u16-strcpy: New file.
73472         * modules/unistr/u32-strcpy: New file.
73473         * lib/unistr/u8-strcpy.c: New file.
73474         * lib/unistr/u16-strcpy.c: New file.
73475         * lib/unistr/u32-strcpy.c: New file.
73476         * lib/unistr/u-strcpy.h: New file.
73477
73478         * modules/unistr/u8-strcspn: New file.
73479         * modules/unistr/u16-strcspn: New file.
73480         * modules/unistr/u32-strcspn: New file.
73481         * lib/unistr/u8-strcspn.c: New file.
73482         * lib/unistr/u16-strcspn.c: New file.
73483         * lib/unistr/u32-strcspn.c: New file.
73484         * lib/unistr/u-strcspn.h: New file.
73485
73486         * modules/unistr/u8-strdup: New file.
73487         * modules/unistr/u16-strdup: New file.
73488         * modules/unistr/u32-strdup: New file.
73489         * lib/unistr/u8-strdup.c: New file.
73490         * lib/unistr/u16-strdup.c: New file.
73491         * lib/unistr/u32-strdup.c: New file.
73492         * lib/unistr/u-strdup.h: New file.
73493
73494         * modules/unistr/u8-strlen: New file.
73495         * modules/unistr/u16-strlen: New file.
73496         * modules/unistr/u32-strlen: New file.
73497         * lib/unistr/u8-strlen.c: New file.
73498         * lib/unistr/u16-strlen.c: New file.
73499         * lib/unistr/u32-strlen.c: New file.
73500         * lib/unistr/u-strlen.h: New file.
73501
73502         * modules/unistr/u8-strmblen: New file.
73503         * modules/unistr/u16-strmblen: New file.
73504         * modules/unistr/u32-strmblen: New file.
73505         * lib/unistr/u8-strmblen.c: New file.
73506         * lib/unistr/u16-strmblen.c: New file.
73507         * lib/unistr/u32-strmblen.c: New file.
73508
73509         * modules/unistr/u8-strmbtouc: New file.
73510         * modules/unistr/u16-strmbtouc: New file.
73511         * modules/unistr/u32-strmbtouc: New file.
73512         * lib/unistr/u8-strmbtouc.c: New file.
73513         * lib/unistr/u16-strmbtouc.c: New file.
73514         * lib/unistr/u32-strmbtouc.c: New file.
73515
73516         * modules/unistr/u8-strncat: New file.
73517         * modules/unistr/u16-strncat: New file.
73518         * modules/unistr/u32-strncat: New file.
73519         * lib/unistr/u8-strncat.c: New file.
73520         * lib/unistr/u16-strncat.c: New file.
73521         * lib/unistr/u32-strncat.c: New file.
73522         * lib/unistr/u-strncat.h: New file.
73523
73524         * modules/unistr/u8-strncmp: New file.
73525         * modules/unistr/u16-strncmp: New file.
73526         * modules/unistr/u32-strncmp: New file.
73527         * lib/unistr/u8-strncmp.c: New file.
73528         * lib/unistr/u16-strncmp.c: New file.
73529         * lib/unistr/u32-strncmp.c: New file.
73530
73531         * modules/unistr/u8-strncpy: New file.
73532         * modules/unistr/u16-strncpy: New file.
73533         * modules/unistr/u32-strncpy: New file.
73534         * lib/unistr/u8-strncpy.c: New file.
73535         * lib/unistr/u16-strncpy.c: New file.
73536         * lib/unistr/u32-strncpy.c: New file.
73537         * lib/unistr/u-strncpy.h: New file.
73538
73539         * modules/unistr/u8-strnlen: New file.
73540         * modules/unistr/u16-strnlen: New file.
73541         * modules/unistr/u32-strnlen: New file.
73542         * lib/unistr/u8-strnlen.c: New file.
73543         * lib/unistr/u16-strnlen.c: New file.
73544         * lib/unistr/u32-strnlen.c: New file.
73545         * lib/unistr/u-strnlen.h: New file.
73546
73547         * modules/unistr/u8-strpbrk: New file.
73548         * modules/unistr/u16-strpbrk: New file.
73549         * modules/unistr/u32-strpbrk: New file.
73550         * lib/unistr/u8-strpbrk.c: New file.
73551         * lib/unistr/u16-strpbrk.c: New file.
73552         * lib/unistr/u32-strpbrk.c: New file.
73553         * lib/unistr/u-strpbrk.h: New file.
73554
73555         * modules/unistr/u8-strrchr: New file.
73556         * modules/unistr/u16-strrchr: New file.
73557         * modules/unistr/u32-strrchr: New file.
73558         * lib/unistr/u8-strrchr.c: New file.
73559         * lib/unistr/u16-strrchr.c: New file.
73560         * lib/unistr/u32-strrchr.c: New file.
73561
73562         * modules/unistr/u8-strspn: New file.
73563         * modules/unistr/u16-strspn: New file.
73564         * modules/unistr/u32-strspn: New file.
73565         * lib/unistr/u8-strspn.c: New file.
73566         * lib/unistr/u16-strspn.c: New file.
73567         * lib/unistr/u32-strspn.c: New file.
73568         * lib/unistr/u-strspn.h: New file.
73569
73570         * modules/unistr/u8-strstr: New file.
73571         * modules/unistr/u16-strstr: New file.
73572         * modules/unistr/u32-strstr: New file.
73573         * lib/unistr/u8-strstr.c: New file.
73574         * lib/unistr/u16-strstr.c: New file.
73575         * lib/unistr/u32-strstr.c: New file.
73576         * lib/unistr/u-strstr.h: New file.
73577
73578         * modules/unistr/u8-strtok: New file.
73579         * modules/unistr/u16-strtok: New file.
73580         * modules/unistr/u32-strtok: New file.
73581         * lib/unistr/u8-strtok.c: New file.
73582         * lib/unistr/u16-strtok.c: New file.
73583         * lib/unistr/u32-strtok.c: New file.
73584         * lib/unistr/u-strtok.h: New file.
73585
73586         * modules/unistr/u8-uctomb: New file.
73587         * modules/unistr/u16-uctomb: New file.
73588         * modules/unistr/u32-uctomb: New file.
73589         * lib/unistr/u8-uctomb.c: New file.
73590         * lib/unistr/u16-uctomb.c: New file.
73591         * lib/unistr/u32-uctomb.c: New file.
73592
73593         * MODULES.html.sh (Unicode string functions): Add the new modules.
73594
73595 2007-01-08  Bruno Haible  <bruno@clisp.org>
73596
73597         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
73598         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
73599         subdirectories.
73600
73601 2007-01-08  Karl Berry  <karl@gnu.org>
73602
73603         * doc/error.texi: mention that main() fns must set program_name
73604         when progname is used.
73605
73606 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
73607
73608         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
73609         WCTYPE_H is empty, for the benefit of builds from non-distclean
73610         directories.  Problem reported by Eric Blake in
73611         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
73612
73613 2007-01-08  Bruno Haible  <bruno@clisp.org>
73614
73615         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
73616         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
73617         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
73618         PROVIDE_CANONICALIZE_FILENAME_MODE.
73619         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
73620
73621 2007-01-08  Bruno Haible  <bruno@clisp.org>
73622
73623         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
73624         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
73625         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
73626         * lib/fts.c: Likewise.
73627         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
73628
73629 2006-12-25  Bruno Haible  <bruno@clisp.org>
73630
73631         * modules/utf8-ucs4-safe: New file.
73632         * lib/utf8-ucs4-safe.h: New file.
73633         * lib/unistr/utf8-ucs4-safe.c: New file.
73634
73635         * modules/utf16-ucs4-safe: New file.
73636         * lib/utf16-ucs4-safe.h: New file.
73637         * lib/unistr/utf16-ucs4-safe.c: New file.
73638
73639         * MODULES.html.sh (Unicode string functions): Add the new modules.
73640
73641 2007-01-08  Bruno Haible  <bruno@clisp.org>
73642
73643         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
73644         (Depends-on): Add unitypes.
73645         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73646         (u8_mbtouc_aux): Move out to separate file.
73647         (u8_mbtouc): Use ucs4_t, uint8_t types.
73648         * lib/unistr/utf8-ucs4.c: New file.
73649
73650         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
73651         (Depends-on): Add unitypes.
73652         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73653         (u16_mbtouc_aux): Move out to separate file.
73654         (u16_mbtouc): Use ucs4_t, uint16_t types.
73655         * lib/unistr/utf16-ucs4.c: New file.
73656
73657         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
73658         (Depends-on): Add unitypes.
73659         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
73660         (u8_uctomb_aux): Move out to separate file.
73661         (u8_uctomb): Use ucs4_t, uint8_t types.
73662         * lib/unistr/ucs4-utf8.c: New file.
73663
73664         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
73665         (Depends-on): Add unitypes.
73666         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
73667         (u16_uctomb_aux): Move out to separate file.
73668         (u16_uctomb): Use ucs4_t, uint16_t types.
73669         * lib/unistr/ucs4-utf16.c: New file.
73670
73671 2006-12-25  Bruno Haible  <bruno@clisp.org>
73672
73673         * modules/unitypes: New file.
73674         * lib/unitypes.h: New file.
73675         * MODULES.html.sh (func_all_modules): New section "Unicode string
73676         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
73677         this section. Add unitypes.
73678
73679 2007-01-08  Bruno Haible  <bruno@clisp.org>
73680
73681         Avoid variable names that conflict with those from libtool.
73682         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
73683         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
73684         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
73685         library_names_spec to acl_library_names_spec, hardcode_* to
73686         acl_hardcode_*.
73687         Reported by Ralf Wildenhues.
73688
73689 2007-01-08  Bruno Haible  <bruno@clisp.org>
73690
73691         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
73692         definition.
73693         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
73694         definition.
73695         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
73696         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
73697         definition.
73698         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
73699         definition.
73700         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
73701         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
73702         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
73703         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
73704         definition.
73705         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
73706         definition.
73707         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
73708         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
73709         GC_USE_<algorithm>.
73710         * lib/gc-libgcrypt.c: Likewise.
73711         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
73712         * modules/gc-arctwo (configure.ac): Likewise.
73713         * modules/gc-des (configure.ac): Likewise.
73714         * modules/gc-hmac-md5 (configure.ac): Likewise.
73715         * modules/gc-hmac-sha1 (configure.ac): Likewise.
73716         * modules/gc-md2 (configure.ac): Likewise.
73717         * modules/gc-md4 (configure.ac): Likewise.
73718         * modules/gc-md5 (configure.ac): Likewise.
73719         * modules/gc-random (configure.ac): Likewise.
73720         * modules/gc-rijndael (configure.ac): Likewise.
73721         * modules/gc-sha1 (configure.ac): Likewise.
73722
73723 2007-01-08  Bruno Haible  <bruno@clisp.org>
73724
73725         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
73726         macro definition.
73727         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
73728         definition.
73729         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
73730         definition.
73731         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
73732         * modules/fcntl-safer (configure.ac): Likewise.
73733         * modules/fopen-safer (configure.ac): Likewise.
73734         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
73735         GNULIB_FWRITEERROR macro definition.
73736
73737 2007-01-08  Bruno Haible  <bruno@clisp.org>
73738
73739         * m4/gnulib-common.m4: New file.
73740         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
73741         (func_get_filelist): Add m4/gnulib-common.m4.
73742
73743 2007-01-08  Bruno Haible  <bruno@clisp.org>
73744
73745         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
73746         command.
73747
73748 2007-01-08  Jim Meyering  <jim@meyering.net>
73749
73750         Use a more robust test for a "can't happen" condition.
73751         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
73752         narrowed the st_size value.  Presuming the "can't happen" condition
73753         is true, that narrowing could conceivably convert an invalid st_size
73754         value into a valid one.  Instead, use a change based on Matthew
73755         Woehlke's original patch.
73756
73757         Slight readability improvement: use an assert-like macro
73758         in place of literal "abort ()" uses.
73759         * lib/fts.c (fts_assert): Define.
73760         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
73761         Use this macro instead of a bare 'abort'.
73762
73763 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
73764
73765         Don't worry about using IRIX 5.3's wctype.h broken definitions;
73766         simply work around them.
73767         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
73768         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
73769         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
73770         declaring.
73771         Don't bother to define as macros, since the standard doesn't require it.
73772         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
73773         longer worry about IRIX 5.3.
73774         (HAVE_WCTYPE_CTMP_BUG): Remove.
73775
73776 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73777
73778         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
73779         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
73780         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
73781         Problems reported by Georg Schwarz for IRIX 5.3.
73782
73783         * gnulib-tool (autoconf_minversion): Take the maximum version number
73784         found, not the minimum.  Problem reported by James Youngman.
73785
73786 2007-01-03  Karl Berry  <karl@gnu.org>
73787
73788         * doc/error.texi: new file, explaining interaction with progname.
73789         * doc/gnulib.texi: include it.  Update copyright.
73790
73791 2007-01-03  Simon Josefsson  <simon@josefsson.org>
73792
73793         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
73794         AC_CANONICAL_HOST, to improve autobuild outputs.
73795
73796 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
73797             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73798
73799         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
73800         sockets, server sockets, and other file descriptors.  Count errors
73801         to compute the return value.  Reorder the code a bit to be easier
73802         to follow.  Don't set event bits that were not requested (except
73803         POLLERR and POLLHUP).
73804
73805 2007-01-01  Bruno Haible  <bruno@clisp.org>
73806
73807         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
73808
73809 2007-01-03  Jim Meyering  <jim@meyering.net>
73810
73811         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
73812
73813 2007-01-02  Bruno Haible  <bruno@clisp.org>
73814
73815         * modules/settime (Include): Require timespec.h.
73816         * modules/nanosleep (Include): Likewise.
73817
73818 2007-01-01  Bruno Haible  <bruno@clisp.org>
73819
73820         * gnulib-tool (func_emit_copyright_notice): Bump year.
73821         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
73822
73823 2007-01-01  Bruno Haible  <bruno@clisp.org>
73824
73825         Improve support for OpenBSD.
73826         * build-aux/config.rpath (libname_spec): Export.
73827         (library_names_spec): New variable. Export.
73828         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
73829         library_names_spec from the config.rpath output. Locate shared library
73830         through the name pattern in library_names_spec.
73831
73832 2007-01-01  Eric Blake  <ebb9@byu.net>
73833
73834         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
73835
73836 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
73837
73838         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
73839         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
73840         assume the C locale, and avoid an "eval" that could cause trouble.
73841         Problem with SORT reported by Bob Proulx.
73842
73843         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
73844         Define.  Trivial patch from Henning Nielsen Lund, originally
73845         sent to bug-grep@gnu.org today.
73846
73847 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
73848
73849         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
73850         struct stat.  Problem reported by Henning Nielsen Lund.
73851         * lib/acl.c: Include acl.h first, to check interface.  Don't
73852         bother to include sys/types.h and sys/stat.h again.
73853
73854 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73855
73856         Import the following change from libc; problem reported by
73857         Sven Verdoolaege.
73858
73859         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
73860
73861         [BZ #1373]
73862         * lib/argp.h: Remove __NTH for __argp_usage inline function.
73863
73864 2006-12-28  Jim Meyering  <jim@meyering.net>
73865
73866         * build-aux/announce-gen: Do not assume that the package
73867         builds any of tar.gz, tar.bz2, and .xdelta files.
73868         Suggestion from Simon Josefsson.
73869
73870 2006-12-28  Simon Josefsson  <simon@josefsson.org>
73871
73872         * modules/announce-gen: New file.
73873
73874 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
73875
73876         * lib/mbchar.h: Just include <wctype.h>; the wctype module
73877         handles its gotchas now.
73878         * lib/mbswidth.c: Likewise.
73879         * lib/wcwidth.h: Likewise.
73880         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
73881         and iswcntrl; the wctype module does this stuff now.
73882         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73883         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73884         * modules/mbchar (Depends-on): Add wctype.
73885         * modules/mbswidth (Depends-on): Likewise.
73886         * modules/wcwidth (Depends-on): Likewise.
73887
73888 2006-12-27  Eric Blake  <ebb9@byu.net>
73889
73890         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
73891         module uses more than what <wctype.h> is required to provide.
73892
73893 2006-12-26  Eric Blake  <ebb9@byu.net>
73894
73895         * gnulib-tool (sed_extract_prog): Avoid space-tab.
73896
73897 2006-12-26  Eric Blake  <ebb9@byu.net>
73898
73899         * modules/absolute-header: New module.
73900         * modules/fcntl (Depends-on): Depend on it.
73901         * modules/inttypes (Depends-on): Likewise.
73902         * modules/stdint (Depends-on): Likewise.
73903         * modules/sys_stat (Depends-on): Likewise.
73904         * modules/wctype (Depends-on): Likewise.
73905         * MODULES.html.sh (Support for building libraries and
73906         executables): Document it.
73907
73908 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
73909
73910         * gnulib-tool (SED): Remove, undoing previous change.
73911         The problem was that it broke coreutils on Solaris, because
73912         "sed --posix" leaked into a makefile.
73913         (sed): New alias, if 'alias' and GNU sed.
73914
73915 2006-12-24  Jim Meyering  <jim@meyering.net>
73916
73917         Work around an fchownat bug in glibc-2.4:
73918         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
73919         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
73920         in spite of the -P option.
73921         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
73922         New macros.
73923         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
73924         * modules/openat (Files): Add lib/fchownat.c.
73925         * lib/openat.c (fchownat): Don't define here.  Move to...
73926         * lib/fchownat.c: ...this new file.
73927
73928 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73929
73930         Fix bug reported by Bruno Haible in
73931         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
73932         where quotearg.c didn't compile on Mac OS X 10.2 because it
73933         lacks <wchar.h> and wint_t.
73934         * lib/wctype_.h (__wctype_wint_t): New type.
73935         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
73936         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
73937         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
73938         Arg is now of type __wctype_wint_t, not wint_t.
73939         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
73940         substitute HAVE_WINT_T.
73941         * modules/wctype (Files): Add m4/wint_t.m4.
73942         (wctype.h): Substitute HAVE_WINT_T.
73943
73944 2006-12-23  Bruno Haible  <bruno@clisp.org>
73945
73946         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
73947
73948 2006-12-23  Bruno Haible  <bruno@clisp.org>
73949
73950         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
73951         S_ISLNK.
73952         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
73953         mingw.
73954
73955 2006-12-22  Bruno Haible  <bruno@clisp.org>
73956
73957         * lib/copy-file.c: Include acl.h.
73958         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
73959         Close the file descriptors only after being done with copy_acl.
73960         * modules/copy-file (Depends-on): Add acl.
73961
73962 2006-12-22  Bruno Haible  <bruno@clisp.org>
73963
73964         * gnulib-tool (SED): New variable.
73965         Use $SED instead of sed everywhere.
73966
73967 2006-12-22  Bruno Haible  <bruno@clisp.org>
73968
73969         * modules/no-c++: New file.
73970         * m4/no-c++.m4: New file.
73971         * MODULES.html.sh (Support for building libraries and executables):
73972         Add no-c++.
73973
73974 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
73975
73976         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73977         Include <limits.h>, and use its INT_MAX to rewrite the
73978         j loop so that it does not overflow 'int'.  Problem reported by
73979         Ralf Wildenhues in
73980         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
73981         Play it safe by shifting left by 1 rather than multiplying by 2,
73982         as GCC is less likely to optimize this away when the value
73983         is signed (when it assumes overflow leads to undefined behavior).
73984         Also, don't assume time_t uses two's complement.
73985
73986 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
73987
73988         * MODULES.html.sh: New module wctype.
73989         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
73990         * lib/fnmatch.c: Don't bother to include <wchar.h> before
73991         <wctype.h>, since the new wctype module should fix this.
73992         * lib/quotearg.c: Include <wctype.h> unconditionally, since
73993         the wctype module should arrange for it.
73994         * lib/regex_internal.h: Likewise.
73995         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
73996         since the wctype module should handle this now.
73997         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
73998         * modules/fnmatch (Depends-on): Add wctype.
73999         * modules/quotearg (Depends-on): Likewise.
74000         * modules/regex (Depends-on): Likewise.
74001
74002 2006-12-19  Bruno Haible  <bruno@clisp.org>
74003
74004         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74005         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74006
74007 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74008
74009         * modules/savewd (Depends-on): Fix dependency on fcntl.
74010
74011 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74012
74013         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74014         conforms to C99, rather than relying on the user's environment
74015         setting of STDINT_H.
74016
74017 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74018         and Eric Blake  <ebb9@byu.net>
74019
74020         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74021         This is more consistent with the other defines here.
74022         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74023         Port to z/OS.  Problem reported by Paul Gilmartin.
74024         Change local vars to use gl_ prefix rather than ac_.
74025         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74026         with other defines.
74027         * modules/double-slash-root: New module.
74028         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74029         (Depends-on): Add double-slash-root.
74030         * MODULES.html.sh (File system functions): Mention new module.
74031
74032 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74033
74034         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74035         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74036         This is for the benefit of gzip, which doesn't do i18n.
74037
74038 2006-12-12  Jim Meyering  <jim@meyering.net>
74039
74040         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74041         Reported by Andreas Schwab <schwab@suse.de>.
74042
74043 2006-12-12  Bruno Haible  <bruno@clisp.org>
74044
74045         Merge these changes.
74046         2006-09-05  Bruno Haible  <bruno@clisp.org>
74047         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74048         iconv_alloc succeeded.
74049         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74050         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74051         test for " && dest " at the end - dest is always != NULL there. Call
74052         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74053         with 2xNULL arguments, also to flush the state storage. Handle the
74054         IRIX iconv behaviour. Realloc the final result, to throw away unused
74055         memory.
74056
74057 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74058
74059         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74060         and fchmodat unconditionally, since glibc 2.4 has them.
74061         Problem reported by Arkadiusz Miskiewicz.
74062
74063 2006-12-10  Bruno Haible  <bruno@clisp.org>
74064
74065         * gnulib-tool (func_import): Show the include files only for those
74066         modules that are copied and specified.
74067         Reported by Karl Berry.
74068
74069 2006-12-08  Jim Meyering  <jim@meyering.net>
74070
74071         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74072         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74073
74074         * build-aux/announce-gen: Add two new options, both optional:
74075         --bootstrap-tools=TOOL_LIST
74076               a comma-separated list of tools, e.g.,
74077               autoconf,automake,bison,gnulib
74078         --gnulib-snapshot-date=DATE
74079               if gnulib is in the bootstrap tool list,
74080               then report this as the snapshot date.
74081               If not specified, use the current date/time.
74082               If you specify a date here, be sure it's UTC.
74083
74084 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74085
74086         * tests/test-argp-2.sh: Fix test to match actual output.
74087         (func_compare): Fix sed script to be portable.
74088
74089 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74090
74091         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74092         workaround for this case.  It is not autoconfigured now; offhand
74093         it's hard to see how to autoconfigure it.
74094
74095 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74096
74097         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74098         a directory that is about to be chowned.  Such a directory's
74099         initial file permissions should permit the owner only and this
74100         should not be changed until after the chown, since the group and
74101         other bits would be incorrect if they granted permission before
74102         the chown.
74103
74104         Fix porting problem for iswctype reported by Georg Schwarz in:
74105         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74106         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74107         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74108         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74109         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74110
74111 2006-12-03  Jim Meyering  <jim@meyering.net>
74112
74113         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74114         p->fts_statp may not yet be defined.
74115         (fts_read): Instead, set it in the caller, once p->fts_statp is
74116         sure to be defined, and corresponds to a top-level directory.
74117         This bug made du -x fail.  Here's the coreutils test case:
74118         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74119         Reported by Mike Frysinger.
74120
74121 2006-12-01  Jim Meyering  <jim@meyering.net>
74122
74123         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74124         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74125         Reported by Simon Josefsson.
74126
74127 2006-11-30  Jim Meyering  <jim@meyering.net>
74128
74129         * m4/warning.m4: Use the all-permissive copyright notice
74130         recommended by RMS (rather than LGPL).
74131         * m4/vararrays.m4: Likewise.
74132         * m4/flexmember.m4: Likewise.
74133
74134 2006-11-29  Bruno Haible  <bruno@clisp.org>
74135
74136         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74137         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74138         using +=.
74139         Reported by Simon Josefsson <simon@josefsson.org>.
74140
74141 2006-11-28  James Youngman <jay@gnu.org>
74142
74143         * README: Advise users that they might find the bug-gnulib@gnu.org
74144         and autotools-announce@gnu.org mailing lists useful.
74145
74146 2006-11-28  Bruno Haible  <bruno@clisp.org>
74147
74148         * m4/ptrdiff_max.m4: Remove file.
74149
74150 2006-11-21  Bruno Haible  <bruno@clisp.org>
74151
74152         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74153         _AC_COMPUTE_INT.
74154         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74155         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74156         _AC_COMPUTE_INT.
74157         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74158         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74159         _AC_COMPUTE_INT.
74160         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74161
74162 2006-11-28  Jim Meyering  <jim@meyering.net>
74163
74164         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74165         warning from "gcc -Wshadow" about shadowing the builtin.
74166
74167 2006-11-27  Bruno Haible  <bruno@clisp.org>
74168
74169         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74170         _AC_COMPUTE_INT.
74171         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74172
74173 2006-11-27  Bruno Haible  <bruno@clisp.org>
74174             Paul Eggert  <eggert@cs.ucla.edu>
74175
74176         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74177
74178 2006-11-26  Bruno Haible  <bruno@clisp.org>
74179
74180         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74181         noinst_LTLIBRARIES.
74182
74183 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74184             Bruno Haible  <bruno@clisp.org>
74185
74186         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74187         if compiling with "gcc -ansi".
74188
74189 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74190
74191         Fix some incompatibilities with gcc -ansi -pedantic.
74192         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74193         if compiling pedantically with GCC, unless it's C99 or later.
74194         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74195         it mishandles gcc -ansi -pedantic as well.
74196         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74197         if gcc -pedantic.
74198         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74199         initializers for struct if -pedantic, unless it's C99 or later.
74200
74201 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74202
74203         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74204         Don't close an fd more than once. Identical atimes indicate
74205         success, not failure.
74206
74207 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74208
74209         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74210
74211 2006-11-23  Jim Meyering  <jim@meyering.net>
74212
74213         * build-aux/announce-gen: New file.  From coreutils.
74214
74215 2006-11-22  Jim Meyering  <jim@meyering.net>
74216
74217         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74218         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74219         (fts_read): Use a temporary to narrow the overused st_size member
74220         before using it in a switch statement.  Reported by Matthew Woehlke.
74221
74222         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74223         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74224
74225 2006-11-20  Bruno Haible  <bruno@clisp.org>
74226
74227         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74228         changequote instead of pairs of brackets.
74229         Reported by Andreas Schwab <schwab@suse.de>.
74230
74231 2006-11-21  Jim Meyering  <jim@meyering.net>
74232
74233         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74234         so as to remain compatible with older compilers.
74235         Patch from Michael Deutschmann.
74236
74237 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74238
74239         * MODULES.html.sh (File system functions): Add openat.
74240
74241         * lib/openat.h (rpl_fstatat): New macro, if
74242         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74243         (fstatat): Define to rpl_fstatat under the same conditions,
74244         unless COMPILING_FSTATAT.
74245         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74246         seems to have the bug.
74247         * lib/fstatat.c: New file.
74248         * modules/openat (Files): Add it.
74249
74250 2006-11-20  Bruno Haible  <bruno@clisp.org>
74251
74252         * Makefile: New file.
74253
74254 2006-11-20  Jim Meyering  <jim@meyering.net>
74255
74256         The beginnings of syntax-related checks for gnulib.
74257         * lib/Makefile: New file.
74258         * lib/t-idcache: New script.  Ensure that the two halves of
74259         idcache.c stay in sync.
74260
74261         * lib/idcache.c: Adjust comments in user- and group- portions to
74262         be more accurate, and to be consistent with one another.
74263
74264 2006-11-20  Jim Meyering  <jim@meyering.net>
74265
74266         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74267         continue using the flexible array member (thus, this module performs
74268         half as many malloc calls), with the addition that...
74269         (getgroup, getuser): Consistently record a non-match via an empty
74270         "name" string, and map an empty string match to a NULL return value.
74271         * modules/idcache (Depends-on): Re-add flexmember.
74272
74273         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74274         (getuidbyname, getgroup, getgidbyname): Likewise.
74275
74276         Use cleaner syntax: NULL rather than 0.
74277         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74278
74279 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74280
74281         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74282         It mishandled the case where the group was missing.
74283         Problem reported by Greg Schafer.
74284         * modules/idcache: Likewise.
74285
74286 2006-11-18  Jim Meyering  <jim@meyering.net>
74287
74288         * check-module (%exempt_header): Add exception for some
74289         conditionally-included headers.
74290
74291         * modules/i-ring (Depends-on): Add verify.
74292         (License): Change to LGPL.
74293
74294 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74295
74296         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74297         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74298         and inttostr.h.  Use snprintf rather than uinttostr, so that
74299         LGPLed code doesn't depend on GPLed.
74300
74301 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74302
74303         * modules/inline (License): Change from GPL to LGPL.
74304
74305 2006-11-17  Jim Meyering  <jim@meyering.net>
74306
74307         * modules/d-type (License): Switch to LGPL.
74308
74309 2006-11-15  Bruno Haible  <bruno@clisp.org>
74310
74311         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74312
74313 2006-11-15  Eric Blake  <ebb9@byu.net>
74314
74315         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74316         the module dependency.
74317
74318 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74319             Bruno Haible  <bruno@clisp.org>
74320
74321         * gnulib-tool (func_create_testdir): Add license consistency check.
74322
74323 2006-11-15  Eric Blake  <ebb9@byu.net>
74324
74325         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74326         random "(cached)" in configure output.
74327
74328 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74329
74330         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74331         test for conforming inttypes.h is both announced and cached.
74332
74333         * MODULES.html.sh (seen_modules, seen_files): New variables.
74334         (func_module): Rewrite to use a few less gnulib-tool and sed
74335         invocations.  Avoid a couple of quadratic algorithms for ...
74336         (missed_modules, missed_files): ... these, with ...
74337         (func_append, func_tmpdir): ... these new functions, from
74338         gnulib-tool.  Analogously, install traps for cleanup.
74339
74340         * tests/test-gc.c (main): Remove unused variables.
74341         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74342
74343 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74344
74345         * modules/inttostr (License): Change to LGPL.
74346
74347 2006-11-14  Eric Blake  <ebb9@byu.net>
74348
74349         * modules/tempname (License): Change to LGPL.
74350
74351 2006-11-14  Eric Blake  <ebb9@byu.net>
74352
74353         * doc/functions.texi (Function Portability): *printf functions on
74354         Cygwin now understand all POSIX size specifiers.
74355
74356 2006-11-14  Bruno Haible  <bruno@clisp.org>
74357
74358         * modules/c-ctype (License): Change to LGPL.
74359
74360 2006-11-12  Bruno Haible  <bruno@clisp.org>
74361
74362         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74363         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74364         for GNOME libraries, for which the include files are installed in
74365         subdirectories of $prefix/include.
74366
74367 2006-11-12  Bruno Haible  <bruno@clisp.org>
74368
74369         * m4/lib-link.m4: Require at least autoconf-2.54.
74370         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74371         name to underscores for the --with option.
74372
74373 2006-11-13  Bruno Haible  <bruno@clisp.org>
74374
74375         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74376         the tests directory.
74377         Reported by Ralf Wildenhues.
74378
74379 2006-11-13  Bruno Haible  <bruno@clisp.org>
74380
74381         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74382         (func_emit_initmacro_end): Undo the override here.
74383         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74384         Works around the famous automake error in coreutils.
74385
74386 2006-11-13  Eric Blake  <ebb9@byu.net>
74387
74388         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74389         element, not its node.
74390
74391 2006-11-12  Bruno Haible  <bruno@clisp.org>
74392
74393         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74394         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74395
74396 2006-11-12  Bruno Haible  <bruno@clisp.org>
74397
74398         * gnulib-tool: New option --local-symlink.
74399         (func_usage): Document it.
74400         (lsymbolic): New variable.
74401         (func_import, func_create_testdir): If --symlink was not specified,
74402         test whether --local-symlink was specified and the file comes from
74403         the local_gnulib_dir.
74404
74405 2006-11-12  Bruno Haible  <bruno@clisp.org>
74406
74407         * gnulib-tool (func_ln): New function.
74408         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74409
74410 2006-11-12  Bruno Haible  <bruno@clisp.org>
74411
74412         Finish support for source files in subdirectories.
74413         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74414         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74415         AUTOMAKE_OPTIONS.
74416         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74417
74418 2006-11-12  Bruno Haible  <bruno@clisp.org>
74419
74420         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74421         EXTRA_lib_SOURCES augmentation.
74422         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74423
74424 2006-11-12  Jim Meyering  <jim@meyering.net>
74425
74426         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74427         file descriptors.  This also averts a failure on systems with
74428         native openat support when a traversed directory lacks "x" access.
74429         * lib/fts_.h: Include "i-ring.h"
74430         (struct FTS) [fts_fd_ring]: New member.
74431         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74432         (FCHDIR): Add parentheses.
74433         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74434         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74435         When descending, rather than simply closing the previous
74436         fts_cwd_fd value, push that file descriptor onto the ring.
74437         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74438         (fts_open): Initialize the new fd_ring member.
74439         (fts_close): Clear the ring.
74440         (fts_safe_changedir): When possible, use our new fd_ring to skip
74441         the diropen and fstat and dev/ino comparison that would normally
74442         accompany a virtual `chdir ("..")'.
74443
74444         * modules/fts (Depends-on): Add i-ring.
74445         * modules/i-ring: New module.
74446         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74447         * m4/i-ring.m4: New file.
74448
74449 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74450
74451         * gnulib-tool (func_create_testdir): Fix replacement of
74452         `build-aux' in configure.ac.  Run autotools in gltests
74453         subdirectory.
74454         (func_create_testdir, func_create_megatestdir, test): There is
74455         no need for '--force' in most autotool invocations in a new
74456         tree.  Actually fail the whole test if any of the tools, or the
74457         configure or make stages fail.
74458
74459         Sync from Automake.
74460         * build-aux/gnupload: Revert last change.  Add pointer to upload
74461         instructions of the GNU Maintenance Instructions.
74462         Suggestion by Karl Berry.
74463
74464 2006-11-10  Jim Meyering  <jim@meyering.net>
74465
74466         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74467
74468 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74469
74470         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74471         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74472         (bind_textdomain_codeset) [! ENABLE_NLS]:
74473         Evaluate all the arguments.  That way, callers get compatible behavior
74474         if the arguments have side effects.  Also, it avoids some GCC
74475         diagnostics in some cases; Joel E. Denny reported problems when Bison
74476         was configured with --enable-gcc-warnigs.
74477
74478 2006-11-10  Jim Meyering  <jim@meyering.net>
74479
74480         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74481         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74482         account.
74483
74484 2006-11-10  Jim Meyering  <jim@meyering.net>
74485
74486         * modules/inline: New file/module.
74487         * modules/xalloc (Files): Remove m4/inline.m4.
74488         (Depends-on): Add inline, instead.
74489         * modules/oset: Likewise.
74490         * modules/list: Likewise.
74491
74492 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74493
74494         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74495         Problem reported by Matthew Woehlke.
74496
74497 2006-11-09  Bruno Haible  <bruno@clisp.org>
74498
74499         * lib/tempname.c (gen_tempname): Remove variant that invokes
74500         __gen_tempname.
74501         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74502         __gen_tempname.
74503
74504 2006-11-08  Bruno Haible  <bruno@clisp.org>
74505
74506         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74507         to 'yes' instead of 'cross-compiling'.
74508
74509 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74510
74511         * lib/quotearg.h (quotearg_free): New decl.
74512         * lib/quotearg.c (quotearg_free): New function.
74513         (slot0, nslots, slotvec0, slotvec):
74514         Now file-scope so that quotearg_free can get at them.
74515
74516 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74517
74518         Sync from Automake.
74519         * build-aux/gnupload: Add missing 'gnu' to example URL.
74520         Report by Karl Berry.
74521
74522 2006-11-08  Bruno Haible  <bruno@clisp.org>
74523
74524         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74525         Suggested by Paul Eggert.
74526
74527 2006-11-08  Jim Meyering  <jim@meyering.net>
74528
74529         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74530         It's already included if !_LIBC.
74531         (fts_safe_changedir): Add a comment.
74532
74533 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74534
74535         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74536         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74537         Matthew Woehlke.
74538
74539         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74540         definitions up, to avoid colliding with change below.
74541         (static_inline) [HAVE_INLINE]: New macro.
74542         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74543         Provide extern decls when !HAVE_INLINE.  Do not define unless
74544         static_inline is defined, either by us or by xmalloc.c.  Use
74545         static_inline rather than static inline.
74546         (XCALLOC): Optimize sizeof(T) = 1 case.
74547         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74548
74549 2006-11-07  Bruno Haible  <bruno@clisp.org>
74550
74551         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74552         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74553         AC_C_INLINE.
74554         * modules/xalloc (Files): Add m4/inline.m4.
74555
74556 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74557
74558         * README: Fix typo.
74559         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74560         (Miscellanous Notes): ...from this.
74561
74562 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74563
74564         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74565         Mention that offsetof should be used instead of sizeof.
74566         From Bruno Haible.
74567
74568 2006-11-07  Bruno Haible  <bruno@clisp.org>
74569
74570         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74571
74572 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74573
74574         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74575         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74576         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74577         (gl_tree_add_before, gl_tree_add_after):
74578         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74579         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74580         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74581         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74582         (gl_linked_add_after, gl_linked_add_at): Likewise.
74583         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74584         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74585         (gl_tree_add_before, gl_tree_add_after): Likewise.
74586         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
74587         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
74588         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74589
74590 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74591
74592         * lib/gl_oset.h: Use C comment style, not C++ comment style.
74593
74594 2006-11-06  Bruno Haible  <bruno@clisp.org>
74595
74596         * m4/inline.m4: New file.
74597         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
74598         * modules/list (Files): Add m4/inline.m4.
74599         * modules/oset (Files): Likewise.
74600
74601 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74602
74603         * lib/idcache.c: Include <stddef.h>, for offsetof.
74604         (struct userid.name): Change from char * to a flexible array member.
74605         All uses changed.
74606         * modules/idcache (Depends-on): Add flexmember.
74607
74608         * MODULES.html.sh (Core language properties): New module flexmember.
74609         * modules/flexmember, m4/flexmember.m4: New files.
74610
74611         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
74612         inline functions that are identical with the old xnmalloc_inline,
74613         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
74614         that we can avoid some unnecessary integer multiplications and
74615         divisions in the common case where the element size is known at
74616         compile time.
74617         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
74618         needed.
74619         (xnboundedmalloc): Remove.
74620         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
74621         arguments, for consistency with rest of this header.
74622         (xcharalloc): Rewrite using XNMALLOC.
74623         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
74624         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
74625         versions have been moved to lib/xalloc.h and renamed to be the
74626         non-*_inline versions.
74627         (xmalloc, xrealloc): Implement without reference to the xnmalloc
74628         and xnrealloc functions, since those functions are now inline and
74629         now call us.
74630         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
74631         renaming described above.
74632         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
74633         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
74634         captures the dependency in AC_C_INLINE.
74635
74636         New module canonicalize-lgpl, proposed by Charles Wilson in
74637         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
74638         with a few small changes afterwards.
74639         * MODULES.html.sh (File system functions): New module
74640         canonicalize-lgpl.
74641         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
74642         and canonicalize_file_name.
74643         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
74644         * modules/canonicalize-lgpl: New files.
74645
74646 2006-11-05  Bruno Haible  <bruno@clisp.org>
74647
74648         * gnulib-tool (func_import, func_create_testdir): Create directories
74649         also for files in subdirectories of lib/.
74650
74651 2006-11-05  Bruno Haible  <bruno@clisp.org>
74652
74653         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
74654         ANSI C compliant.
74655
74656 2006-11-03  Bruno Haible  <bruno@clisp.org>
74657
74658         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74659         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
74660         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
74661         (xnboundedmalloc): New inline function.
74662         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
74663         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
74664         xmalloc.
74665         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
74666         xmalloc.
74667         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
74668         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
74669         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
74670         xmalloc.
74671         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74672         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
74673         xmalloc.
74674         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
74675         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74676         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
74677         xmalloc.
74678         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74679         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
74680         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74681         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
74682         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
74683         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
74684         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
74685
74686 2006-11-03  Bruno Haible  <bruno@clisp.org>
74687
74688         * lib/c-ctype.h [C++]: Define functions without name mangling.
74689         * lib/fwriteerror.h [C++]: Likewise.
74690         * lib/gcd.h [C++]: Likewise.
74691         * lib/linebreak.h [C++]: Likewise.
74692
74693 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74694
74695         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
74696         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
74697         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
74698         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74699         Check for functions and headers just once.
74700         Check for declaration of canonicalize_file_name.
74701         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
74702
74703 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74704
74705         * gnulib-tool (func_import): Fix typo in actioncmd.
74706
74707 2006-11-02  Bruno Haible  <bruno@clisp.org>
74708
74709         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
74710         newline sequence in the Makefile.am snippet as a space, like "make"
74711         does.
74712         Reported by Roger Persson <perrog@gmail.com>.
74713
74714 2006-11-01  Bruno Haible  <bruno@clisp.org>
74715
74716         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
74717         already declared in <string.h>.
74718         * lib/strcase.h (strncasecmp): Don't declare it if yes.
74719
74720 2006-11-01  Bruno Haible  <bruno@clisp.org>
74721
74722         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
74723         * lib/strcase.h: Include <string.h>.
74724         (strcasecmp): Define to rpl_strcasecmp here.
74725
74726 2006-11-01  Bruno Haible  <bruno@clisp.org>
74727
74728         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
74729
74730 2006-11-01  Eric Blake  <ebb9@byu.net>
74731
74732         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
74733
74734         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
74735
74736 2006-10-29  Bruno Haible  <bruno@clisp.org>
74737
74738         Make it compile in C++ mode.
74739         * lib/full-write.c (full_rw): Add a cast.
74740
74741 2006-11-01  Bruno Haible  <bruno@clisp.org>
74742
74743         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
74744         be POSIX compliant.
74745         Reported by Roger Persson <perrog@gmail.com>.
74746
74747 2006-11-01  Eric Blake  <ebb9@byu.net>
74748
74749         * lib/getopt_.h: Fix comments.
74750
74751 2006-10-31  Eric Blake  <ebb9@byu.net>
74752
74753         * modules/tmpdir (Depends-on): Add sys_stat.
74754         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
74755         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
74756         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
74757         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
74758         tempname.
74759
74760 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
74761
74762         Avoid some C++ diagnostics reported by Bruno Haible.
74763         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
74764         xmalloc.
74765         (quotearg_alloc): Use xcharalloc rather than xmalloc.
74766         (struct slotvec): Move to top level.
74767         (quotearg_n_options): Rewrite to avoid xmalloc.
74768         * lib/xalloc.h (xcharalloc): New function.
74769         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
74770         [defined __cplusplus]: Add function template that provides result
74771         type propagation.  This part of the change is from Bruno Haible.
74772
74773 2006-10-29  Bruno Haible  <bruno@clisp.org>
74774
74775         Make it compile in C++ mode.
74776         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
74777         * lib/strnlen1.c (strnlen1): Cast memchr result.
74778         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
74779         * lib/clean-temp.c (string_equals, string_hash): Add casts.
74780         (create_temp_dir): Rename local variable 'template'.
74781         (compile_csharp_using_sscli): Add cast.
74782         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
74783         * lib/findprog.c (find_in_path): Likewise.
74784         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
74785         * lib/wait-process.c (register_slave_subprocess): Likewise.
74786
74787 2006-10-22  Bruno Haible  <bruno@clisp.org>
74788
74789         * modules/tsearch: New file.
74790         * lib/tsearch.h: New file.
74791         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
74792         * m4/tsearch.m4: New file.
74793         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
74794
74795 2006-10-29  Eric Blake  <ebb9@byu.net>
74796
74797         * lib/arcfour.c: Assume config.h.
74798         * lib/arctwo.c: Likewise.
74799         * lib/base64.c: Likewise.
74800         * lib/check-version.c: Likewise.
74801         * lib/crc.c: Likewise.
74802         * lib/des.c: Likewise.
74803         * lib/gc-gnulib.c: Likewise.
74804         * lib/gc-libgcrypt.c: Likewise.
74805         * lib/gc-pbkdf2-sha1.c: Likewise.
74806         * lib/getaddrinfo.c: Likewise.
74807         * lib/getdelim.c: Likewise.
74808         * lib/getline.c: Likewise.
74809         * lib/hmac-md5.c: Likewise.
74810         * lib/hmac-sha1.c: Likewise.
74811         * lib/iconvme.c: Likewise.
74812         * lib/md2.c: Likewise.
74813         * lib/md4.c: Likewise.
74814         * lib/memxor.c: Likewise.
74815         * lib/read-file.c: Likewise.
74816         * lib/readline.c: Likewise.
74817         * lib/rijndael-alg-fst.c: Likewise.
74818         * lib/rijndael-api-fst.c: Likewise.
74819         * lib/xgetdomainname.c: Likewise.
74820
74821 2006-10-28  Eric Blake  <ebb9@byu.net>
74822
74823         * lib/xstrndup.c: Assume config.h.
74824
74825 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74826
74827         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
74828         stat-macros.h is now for our own macros, whereas stat_h is for
74829         macros in the <sys/stat.h> name space.
74830         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
74831         (STAT_MACROS_H): Remove.
74832         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
74833         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
74834         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
74835         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
74836         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
74837         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
74838         Move these macros to ...
74839         * lib/stat_.h: here.  Don't include stat-macros.h.
74840         * lib/canonicalize.c: Don't include stat-macros.h.
74841         * lib/chown.c: Likewise.
74842         * lib/euidaccess.c: Likewise.
74843         * lib/file-type.c: Likewise.
74844         * lib/filemode.c: Likewise.
74845         * lib/glob.c: Likewise.
74846         * lib/isapipe.c: Likewise.
74847         * lib/lchown.c: Likewise.
74848         * lib/lstat.c: Likewise.
74849         * lib/mkdir-p.c: Likewise.
74850         * lib/rmdir.c: Likewise.
74851         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
74852         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
74853         unless mkdir isn't declared, to speed up 'configure'.
74854         Always create sys/stat.h, since it's unlikely any real sys/stat.h
74855         would define all the S_* symbols.
74856         * modules/canonicalize (Depends-on):
74857         Depend on sys_stat, not stat-macros.
74858         * modules/chown: Likewise.
74859         * modules/euidaccess: Likewise.
74860         * modules/filemode: Likewise.
74861         * modules/file-type: Likewise.
74862         * modules/glob: Likewise.
74863         * modules/isapipe: Likewise.
74864         * modules/lchown: Likewise.
74865         * modules/lstat: Likewise.
74866         * modules/mkancesdirs: Likewise.
74867         * modules/rmdir: Likewise.
74868         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
74869         * modules/modechange: Likewise.
74870         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
74871         (configure.ac): Remove gl_STAT_MACROS.
74872         * modules/sys_stat (Depends-on): Remove stat-macros.
74873
74874 2006-10-27  Bruno Haible  <bruno@clisp.org>
74875
74876         * m4/signed.m4: Remove file.
74877         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
74878         invocation.
74879         * modules/vasnprintf (Files): Remove m4/signed.m4.
74880
74881 2006-10-27  Bruno Haible  <bruno@clisp.org>
74882
74883         Update to GNU gettext 0.16.
74884         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
74885         m4/inttypes-h.m4, m4/signed.m4.
74886         * m4/gettext.m4: Update to GNU gettext 0.16.
74887         * m4/intl.m4: New file, from GNU gettext.
74888         * m4/intldir.m4: New file, from GNU gettext.
74889         * config/srclist.txt: Update
74890
74891 2006-10-27  Eric Blake  <ebb9@byu.net>
74892
74893         * MODULES.html.sh: Document tempname.
74894         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
74895         dependencies.
74896         (Files): Move lib/tempname.c...
74897         * modules/tempname: ...to this new module.
74898         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
74899         (gl_PREREQ_TEMPNAME): Move...
74900         * m4/tempname.m4: ...to this new file.
74901         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
74902         * modules/sys_stat (Depends-on): Add stat-macros.
74903         * lib/stat_.h (includes): Pick up stat macros.
74904         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
74905         if stat macros are broken.
74906         * lib/tempname.c (includes): No need to include "stat-macros.h".
74907         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
74908         (direxists, __path_search) [!_LIBC]: Don't compile these in
74909         gnulib; the tmpdir module covers that.
74910         * lib/tempname.h: New file.
74911
74912 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
74913
74914         * COPYING: Explain how gnulib-tool converts licence headers.
74915         Almost all wording by Eric Blake.
74916
74917 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
74918
74919         * lib/mbchar.h (is_basic_table): Make read-only.
74920         * lib/mbchar.c (is_basic_table): Likewise.
74921         Reported by John Darrington.
74922
74923 2006-10-25  Bruno Haible  <bruno@clisp.org>
74924
74925         * lib/progname.h (set_program_name): Undefine before defining.
74926
74927 2006-10-25  Bruno Haible  <bruno@clisp.org>
74928
74929         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
74930         false for non-gcc C++ compilers.
74931         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74932
74933 2006-10-24  Bruno Haible  <bruno@clisp.org>
74934
74935         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
74936         iconv implementations like Irix iconv.
74937
74938 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74939
74940         * modules/vararrays: New file.
74941         * m4/vararrays.m4: New file, taken from diffutils.
74942         * MODULES.html.sh: New module vararrays.
74943
74944 2006-10-24  Karl Berry  <karl@gnu.org>
74945
74946         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
74947         Don't call GNU Unix.
74948
74949 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74950
74951         * users.txt: Add Libtool.
74952
74953         Sync from Libtool:
74954
74955         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74956
74957         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
74958         to gnulib's policy of including config.h unconditionally.
74959
74960 2006-10-24  Bruno Haible  <bruno@clisp.org>
74961
74962         * modules/wcwidth (Files): Add m4/wint_t.m4.
74963         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
74964         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
74965
74966 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74967
74968         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
74969         to pacify GCC with some -W flags enabled.  Problem reported by
74970         Bruno Haible.
74971
74972 2006-10-24  Jim Meyering  <jim@meyering.net>
74973
74974         * MODULES.html.sh: Remove uinttostr.  It's not a module.
74975         Reported by Karl Berry.
74976
74977 2006-10-23  Bruno Haible  <bruno@clisp.org>
74978
74979         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
74980
74981 2006-10-24  Bruno Haible  <bruno@clisp.org>
74982
74983         * lib/gl_list.h: Use C comment style, not C++ comment style.
74984
74985 2006-10-23  Eric Blake  <ebb9@byu.net>
74986
74987         * lib/getaddrinfo.c (includes): Add missing include.
74988
74989 2006-10-23  Bruno Haible  <bruno@clisp.org>
74990             Paul Eggert  <eggert@cs.ucla.edu>
74991
74992         Ability to rename obstack_free.
74993         * lib/obstack.h (__obstack_free): New macro. Declare instead of
74994         obstack_free.
74995         (obstack_free): Invoke the __obstack_free macro.
74996         * lib/obstack.c (obstack_free): Use __obstack_free macro.
74997
74998 2006-10-23  Bruno Haible  <bruno@clisp.org>
74999             Paul Eggert  <eggert@cs.ucla.edu>
75000
75001         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75002         __argc, __argv from the declaration. (They are defined as macros on
75003         mingw.)
75004
75005 2006-10-22  Bruno Haible  <bruno@clisp.org>
75006
75007         * doc/gnulib-intro.texi: New file.
75008         * doc/gnulib.texi: Include it.
75009
75010 2006-10-21  Bruno Haible  <bruno@clisp.org>
75011
75012         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75013         "Introduction", "Miscellanous Notes", "Particular Modules".
75014
75015 2006-10-21  Bruno Haible  <bruno@clisp.org>
75016
75017         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75018         Change mostlyclean-local rule to avoid sh syntax error from bash
75019         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75020
75021 2006-10-23  Jim Meyering  <jim@meyering.net>
75022
75023         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75024         in place of snprintf.
75025
75026         * modules/inttostr (Files): Add lib/uinttostr.c.
75027         * lib/uinttostr.c (inttostr): New file/function.
75028         * lib/inttostr.h (uinttostr): Declare.
75029         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75030         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75031         Add uinttostr.
75032         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75033
75034 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75035
75036         * lib/canonicalize.c (ELOOP): Define if not already defined.
75037         Problem reported by Bruno Haible in
75038         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75039
75040 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75041
75042         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75043         Problem reported by Perry Smith and Ville Laurikari.
75044
75045         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75046         uses.
75047
75048 2006-10-19  Bruno Haible  <bruno@clisp.org>
75049
75050         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75051         for mingw.
75052
75053 2006-10-19  Bruno Haible  <bruno@clisp.org>
75054
75055         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75056         Needed for mingw.
75057
75058 2006-10-19  Bruno Haible  <bruno@clisp.org>
75059
75060         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75061
75062 2006-10-19  Bruno Haible  <bruno@clisp.org>
75063
75064         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75065         it.
75066
75067 2006-10-19  Bruno Haible  <bruno@clisp.org>
75068
75069         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75070         invocation.
75071
75072 2006-10-19  Bruno Haible  <bruno@clisp.org>
75073
75074         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75075         mountlist by default.
75076
75077 2006-10-16  Bruno Haible  <bruno@clisp.org>
75078
75079         * lib/c-strstr.c: Include c-strstr.h.
75080
75081 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75082
75083         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75084         in a slash.
75085
75086 2006-10-18  Bruno Haible  <bruno@clisp.org>
75087
75088         * lib/lock.h [C++]: Wrap definitions in extern "C".
75089
75090 2006-10-18  Bruno Haible  <bruno@clisp.org>
75091
75092         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75093         gl_LIBOBJS list.
75094
75095 2006-10-18  Bruno Haible  <bruno@clisp.org>
75096
75097         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75098
75099 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75100
75101         * lib/xstrtol.h: Include gettext.h.
75102         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75103         Problem reported by Eric Blake.
75104         * modules/xstrtol (Depends-on): Add gettext-h.
75105
75106 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75107
75108         * lib/strftime.c (advance): New macro.
75109         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75110         incomplete type, so you can't add 0 to it.  Problem and patch
75111         reported by Eelco Dolstra for dietlibc.
75112
75113 2006-10-18  Jim Meyering  <jim@meyering.net>
75114
75115         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75116         type for a local, and rename it: s/up/user_proc/.
75117
75118 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75119
75120         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75121         READ_UTMP_USER_PROCESS.
75122         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75123
75124 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75125
75126         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75127         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75128
75129 2006-10-17  Eric Blake  <ebb9@byu.net>
75130
75131         * lib/sigprocmask.c (sigprocmask): Fix typo.
75132
75133         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75134
75135         * modules/clean-temp (Makefile.am): Don't add to make output...
75136         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75137         config.h.
75138
75139 2006-10-17  Bruno Haible  <bruno@clisp.org>
75140
75141         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75142         differently if DEFAULT_TEXT_DOMAIN is set.
75143
75144 2006-10-16  Bruno Haible  <bruno@clisp.org>
75145
75146         * lib/clean-temp.c: Include fwriteerror.h.
75147
75148 2006-10-16  Bruno Haible  <bruno@clisp.org>
75149
75150         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75151
75152 2006-10-16  Bruno Haible  <bruno@clisp.org>
75153
75154         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75155         * lib/sigprocmask.h: Include <sys/types.h>.
75156         (sigset_t): Use the system's definition if present.
75157
75158 2006-10-17  Eric Blake  <ebb9@byu.net>
75159
75160         * lib/xvasprintf.c (includes): Assume config.h.
75161         * lib/xasprintf.c (includes): Likewise.
75162
75163 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75164
75165         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75166         at least as wide as intmax_t.
75167
75168 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75169
75170         (Imported from Automake.)
75171         * build-aux/gnupload: Update to version 1.1 of directive file.
75172
75173 2006-10-16  Eric Blake  <ebb9@byu.net>
75174
75175         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75176         match Automake 1.10a.
75177
75178 2006-10-14  Bruno Haible  <bruno@clisp.org>
75179
75180         * modules/sigprocmask: New file.
75181         * lib/sigprocmask.h: New file.
75182         * lib/sigprocmask.c: New file.
75183         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75184         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75185         request sigprocmask.o.
75186         (gl_PREREQ_SIGPROCMASK): New macro.
75187         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75188         (Depends-on): Add sigprocmask.
75189         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75190         gt_SIGNALBLOCKING. Test for 'raise' only once.
75191         * lib/fatal-signal.c: Include sigprocmask.h.
75192         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75193         unblock_fatal_signals): Define always.
75194         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75195         sigprocmask.
75196
75197 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         Sync from Automake.
75200         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75201         which incorrectly sets the mode of an existing destination
75202         directory.  In some cases the unpatched install-sh could do the
75203         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75204         system.  We hope this is rare in practice, but it's clearly worth
75205         fixing.  Problem reported by Alex Unleashed in
75206         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75207         Also, don't bother to check for -m bugs unless we're using -m;
75208         suggested by Stepan Kasal.
75209
75210 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75211
75212         Sync from Automake.
75213         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75214         `-c' flag, so they appear at the same position as in %FASTDEP%
75215         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75216         which ignores unknown options only after the first non-option.
75217         Bug report against M4 by Nelson H. F. Beebe.
75218
75219 2006-10-13  Jim Meyering  <jim@meyering.net>
75220
75221         Fix a bug in yesterday's change.
75222         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75223         p->fts_statp->st_dev would be used uninitialized.
75224         Ensures that we always call fts_stat on the very first entry.
75225         Miklos Szeredi reported that find -xdev stopped working.
75226
75227 2006-10-12  Bruno Haible  <bruno@clisp.org>
75228
75229         * gnulib-tool (func_get_automake_snippet): Append an automatically
75230         computed EXTRA_DIST augmentation.
75231         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75232         * modules/alloca-opt (Makefile.am): Likewise.
75233         * modules/allocsa (Makefile.am): Likewise.
75234         * modules/arcfour (Makefile.am): Likewise.
75235         * modules/arctwo (Makefile.am): Likewise.
75236         * modules/argmatch (Makefile.am): Likewise.
75237         * modules/argz (Makefile.am): Likewise.
75238         * modules/atexit (Makefile.am): Likewise.
75239         * modules/backupfile (Makefile.am): Likewise.
75240         * modules/byteswap (Makefile.am): Likewise.
75241         * modules/c-strtod (Makefile.am): Likewise.
75242         * modules/c-strtold (Makefile.am): Likewise.
75243         * modules/calloc (Makefile.am): Likewise.
75244         * modules/canon-host (Makefile.am): Likewise.
75245         * modules/canonicalize (Makefile.am): Likewise.
75246         * modules/chdir-long (Makefile.am): Likewise.
75247         * modules/chdir-safer (Makefile.am): Likewise.
75248         * modules/check-version (Makefile.am): Likewise.
75249         * modules/chown (Makefile.am): Likewise.
75250         * modules/cloexec (Makefile.am): Likewise.
75251         * modules/close-stream (Makefile.am): Likewise.
75252         * modules/closeout (Makefile.am): Likewise.
75253         * modules/crc (Makefile.am): Likewise.
75254         * modules/csharpexec (Makefile.am): Likewise.
75255         * modules/cycle-check (Makefile.am): Likewise.
75256         * modules/des (Makefile.am): Likewise.
75257         * modules/dev-ino (Makefile.am): Likewise.
75258         * modules/dirfd (Makefile.am): Likewise.
75259         * modules/dirname (Makefile.am): Likewise.
75260         * modules/dup2 (Makefile.am): Likewise.
75261         * modules/eealloc (Makefile.am): Likewise.
75262         * modules/error (Makefile.am): Likewise.
75263         * modules/euidaccess (Makefile.am): Likewise.
75264         * modules/exclude (Makefile.am): Likewise.
75265         * modules/exitfail (Makefile.am): Likewise.
75266         * modules/fcntl-safer (Makefile.am): Likewise.
75267         * modules/fcntl (Makefile.am): Likewise.
75268         * modules/file-type (Makefile.am): Likewise.
75269         * modules/fileblocks (Makefile.am): Likewise.
75270         * modules/filemode (Makefile.am): Likewise.
75271         * modules/filenamecat (Makefile.am): Likewise.
75272         * modules/fnmatch (Makefile.am): Likewise.
75273         * modules/fopen-safer (Makefile.am): Likewise.
75274         * modules/fpending (Makefile.am): Likewise.
75275         * modules/fprintftime (Makefile.am): Likewise.
75276         * modules/free (Makefile.am): Likewise.
75277         * modules/fsusage (Makefile.am): Likewise.
75278         * modules/ftruncate (Makefile.am): Likewise.
75279         * modules/fts (Makefile.am): Likewise.
75280         * modules/gc-arcfour (Makefile.am): Likewise.
75281         * modules/gc-des (Makefile.am): Likewise.
75282         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75283         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75284         * modules/gc-md4 (Makefile.am): Likewise.
75285         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75286         * modules/gc-sha1 (Makefile.am): Likewise.
75287         * modules/gc (Makefile.am): Likewise.
75288         * modules/getaddrinfo (Makefile.am): Likewise.
75289         * modules/getcwd (Makefile.am): Likewise.
75290         * modules/getdelim (Makefile.am): Likewise.
75291         * modules/getdomainname (Makefile.am): Likewise.
75292         * modules/getgroups (Makefile.am): Likewise.
75293         * modules/gethostname (Makefile.am): Likewise.
75294         * modules/gethrxtime (Makefile.am): Likewise.
75295         * modules/getline (Makefile.am): Likewise.
75296         * modules/getloadavg (Makefile.am): Likewise.
75297         * modules/getlogin_r (Makefile.am): Likewise.
75298         * modules/getndelim2 (Makefile.am): Likewise.
75299         * modules/getopt (Makefile.am): Likewise.
75300         * modules/getpagesize (Makefile.am): Likewise.
75301         * modules/getpass-gnu (Makefile.am): Likewise.
75302         * modules/getpass (Makefile.am): Likewise.
75303         * modules/getsubopt (Makefile.am): Likewise.
75304         * modules/gettime (Makefile.am): Likewise.
75305         * modules/gettimeofday (Makefile.am): Likewise.
75306         * modules/getugroups (Makefile.am): Likewise.
75307         * modules/getusershell (Makefile.am): Likewise.
75308         * modules/glob (Makefile.am): Likewise.
75309         * modules/group-member (Makefile.am): Likewise.
75310         * modules/hard-locale (Makefile.am): Likewise.
75311         * modules/hash (Makefile.am): Likewise.
75312         * modules/hmac-md5 (Makefile.am): Likewise.
75313         * modules/hmac-sha1 (Makefile.am): Likewise.
75314         * modules/human (Makefile.am): Likewise.
75315         * modules/idcache (Makefile.am): Likewise.
75316         * modules/imaxabs (Makefile.am): Likewise.
75317         * modules/imaxdiv (Makefile.am): Likewise.
75318         * modules/inet_ntop (Makefile.am): Likewise.
75319         * modules/inet_pton (Makefile.am): Likewise.
75320         * modules/intprops (Makefile.am): Likewise.
75321         * modules/inttostr (Makefile.am): Likewise.
75322         * modules/inttypes (Makefile.am): Likewise.
75323         * modules/isapipe (Makefile.am): Likewise.
75324         * modules/javaversion (Makefile.am): Likewise.
75325         * modules/lchmod (Makefile.am): Likewise.
75326         * modules/lchown (Makefile.am): Likewise.
75327         * modules/localcharset (Makefile.am): Likewise.
75328         * modules/long-options (Makefile.am): Likewise.
75329         * modules/lstat (Makefile.am): Likewise.
75330         * modules/malloc (Makefile.am): Likewise.
75331         * modules/mathl (Makefile.am): Likewise.
75332         * modules/mbchar (Makefile.am): Likewise.
75333         * modules/md2 (Makefile.am): Likewise.
75334         * modules/md4 (Makefile.am): Likewise.
75335         * modules/md5 (Makefile.am): Likewise.
75336         * modules/memcasecmp (Makefile.am): Likewise.
75337         * modules/memchr (Makefile.am): Likewise.
75338         * modules/memcmp (Makefile.am): Likewise.
75339         * modules/memcoll (Makefile.am): Likewise.
75340         * modules/memcpy (Makefile.am): Likewise.
75341         * modules/memmem (Makefile.am): Likewise.
75342         * modules/memmove (Makefile.am): Likewise.
75343         * modules/mempcpy (Makefile.am): Likewise.
75344         * modules/memrchr (Makefile.am): Likewise.
75345         * modules/memset (Makefile.am): Likewise.
75346         * modules/memxor (Makefile.am): Likewise.
75347         * modules/mkancesdirs (Makefile.am): Likewise.
75348         * modules/mkdir-p (Makefile.am): Likewise.
75349         * modules/mkdir (Makefile.am): Likewise.
75350         * modules/mkdtemp (Makefile.am): Likewise.
75351         * modules/mkstemp (Makefile.am): Likewise.
75352         * modules/mktime (Makefile.am): Likewise.
75353         * modules/modechange (Makefile.am): Likewise.
75354         * modules/mountlist (Makefile.am): Likewise.
75355         * modules/nanosleep (Makefile.am): Likewise.
75356         * modules/obstack (Makefile.am): Likewise.
75357         * modules/openat (Makefile.am): Likewise.
75358         * modules/pagealign_alloc (Makefile.am): Likewise.
75359         * modules/pathmax (Makefile.am): Likewise.
75360         * modules/physmem (Makefile.am): Likewise.
75361         * modules/poll (Makefile.am): Likewise.
75362         * modules/posixtm (Makefile.am): Likewise.
75363         * modules/posixver (Makefile.am): Likewise.
75364         * modules/putenv (Makefile.am): Likewise.
75365         * modules/quote (Makefile.am): Likewise.
75366         * modules/quotearg (Makefile.am): Likewise.
75367         * modules/raise (Makefile.am): Likewise.
75368         * modules/read-file (Makefile.am): Likewise.
75369         * modules/readline (Makefile.am): Likewise.
75370         * modules/readlink (Makefile.am): Likewise.
75371         * modules/readtokens (Makefile.am): Likewise.
75372         * modules/readutmp (Makefile.am): Likewise.
75373         * modules/realloc (Makefile.am): Likewise.
75374         * modules/regex (Makefile.am): Likewise.
75375         * modules/rename-dest-slash (Makefile.am): Likewise.
75376         * modules/rename (Makefile.am): Likewise.
75377         * modules/rijndael (Makefile.am): Likewise.
75378         * modules/rmdir (Makefile.am): Likewise.
75379         * modules/rpmatch (Makefile.am): Likewise.
75380         * modules/safe-read (Makefile.am): Likewise.
75381         * modules/safe-write (Makefile.am): Likewise.
75382         * modules/same-inode (Makefile.am): Likewise.
75383         * modules/same (Makefile.am): Likewise.
75384         * modules/save-cwd (Makefile.am): Likewise.
75385         * modules/savedir (Makefile.am): Likewise.
75386         * modules/setenv (Makefile.am): Likewise.
75387         * modules/settime (Makefile.am): Likewise.
75388         * modules/sha1 (Makefile.am): Likewise.
75389         * modules/sig2str (Makefile.am): Likewise.
75390         * modules/snprintf (Makefile.am): Likewise.
75391         * modules/stat-macros (Makefile.am): Likewise.
75392         * modules/stat-time (Makefile.am): Likewise.
75393         * modules/stdbool (Makefile.am): Likewise.
75394         * modules/stdint (Makefile.am): Likewise.
75395         * modules/stdlib-safer (Makefile.am): Likewise.
75396         * modules/stpcpy (Makefile.am): Likewise.
75397         * modules/stpncpy (Makefile.am): Likewise.
75398         * modules/strcase (Makefile.am): Likewise.
75399         * modules/strcasestr (Makefile.am): Likewise.
75400         * modules/strchrnul (Makefile.am): Likewise.
75401         * modules/strcspn (Makefile.am): Likewise.
75402         * modules/strdup (Makefile.am): Likewise.
75403         * modules/strerror (Makefile.am): Likewise.
75404         * modules/strftime (Makefile.am): Likewise.
75405         * modules/strndup (Makefile.am): Likewise.
75406         * modules/strnlen (Makefile.am): Likewise.
75407         * modules/strpbrk (Makefile.am): Likewise.
75408         * modules/strsep (Makefile.am): Likewise.
75409         * modules/strstr (Makefile.am): Likewise.
75410         * modules/strtod (Makefile.am): Likewise.
75411         * modules/strtoimax (Makefile.am): Likewise.
75412         * modules/strtok_r (Makefile.am): Likewise.
75413         * modules/strtol (Makefile.am): Likewise.
75414         * modules/strtoll (Makefile.am): Likewise.
75415         * modules/strtoul (Makefile.am): Likewise.
75416         * modules/strtoull (Makefile.am): Likewise.
75417         * modules/strtoumax (Makefile.am): Likewise.
75418         * modules/strverscmp (Makefile.am): Likewise.
75419         * modules/sys_socket (Makefile.am): Likewise.
75420         * modules/sys_stat (Makefile.am): Likewise.
75421         * modules/sysexits (Makefile.am): Likewise.
75422         * modules/time_r (Makefile.am): Likewise.
75423         * modules/timegm (Makefile.am): Likewise.
75424         * modules/timespec (Makefile.am): Likewise.
75425         * modules/tmpfile-safer (Makefile.am): Likewise.
75426         * modules/trim (Makefile.am): Likewise.
75427         * modules/unistd-safer (Makefile.am): Likewise.
75428         * modules/unlinkdir (Makefile.am): Likewise.
75429         * modules/unlocked-io (Makefile.am): Likewise.
75430         * modules/userspec (Makefile.am): Likewise.
75431         * modules/utime (Makefile.am): Likewise.
75432         * modules/utimecmp (Makefile.am): Likewise.
75433         * modules/utimens (Makefile.am): Likewise.
75434         * modules/vasnprintf (Makefile.am): Likewise.
75435         * modules/vasprintf (Makefile.am): Likewise.
75436         * modules/vsnprintf (Makefile.am): Likewise.
75437         * modules/xalloc (Makefile.am): Likewise.
75438         * modules/xgetcwd (Makefile.am): Likewise.
75439         * modules/xnanosleep (Makefile.am): Likewise.
75440         * modules/xreadlink (Makefile.am): Likewise.
75441         * modules/xstrtod (Makefile.am): Likewise.
75442         * modules/xstrtol (Makefile.am): Likewise.
75443         * modules/xstrtold (Makefile.am): Likewise.
75444         * modules/yesno (Makefile.am): Likewise.
75445         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75446
75447 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75448
75449         * modules/error (Makefile.am): Distribute files through
75450         EXTRA_DIST, not lib_SOURCES.
75451
75452 2006-10-12  Eric Blake  <ebb9@byu.net>
75453
75454         * modules/error (Makefile.am): Distribute files in /lib.
75455         * modules/obstack (Makefile.am): Likewise.
75456
75457 2006-10-12  Bruno Haible  <bruno@clisp.org>
75458
75459         * modules/acl (Makefile.am): Distribute all files in lib/ through
75460         EXTRA_DIST.
75461         * modules/arcfour (Makefile.am): Likewise.
75462         * modules/arctwo (Makefile.am): Likewise.
75463         * modules/argmatch (Makefile.am): Likewise.
75464         * modules/argz (Makefile.am): Likewise.
75465         * modules/atexit (Makefile.am): Likewise.
75466         * modules/backupfile (Makefile.am): Likewise.
75467         * modules/c-strtod (Makefile.am): Likewise.
75468         * modules/c-strtold (Makefile.am): Likewise.
75469         * modules/calloc (Makefile.am): Likewise.
75470         * modules/canon-host (Makefile.am): Likewise.
75471         * modules/canonicalize (Makefile.am): Likewise.
75472         * modules/chdir-long (Makefile.am): Likewise.
75473         * modules/chdir-safer (Makefile.am): Likewise.
75474         * modules/check-version (Makefile.am): Likewise.
75475         * modules/chown (Makefile.am): Likewise.
75476         * modules/cloexec (Makefile.am): Likewise.
75477         * modules/close-stream (Makefile.am): Likewise.
75478         * modules/closeout (Makefile.am): Likewise.
75479         * modules/crc (Makefile.am): Likewise.
75480         * modules/cycle-check (Makefile.am): Likewise.
75481         * modules/des (Makefile.am): Likewise.
75482         * modules/dirfd (Makefile.am): Likewise.
75483         * modules/dirname (Makefile.am): Likewise.
75484         * modules/dup2 (Makefile.am): Likewise.
75485         * modules/euidaccess (Makefile.am): Likewise.
75486         * modules/exclude (Makefile.am): Likewise.
75487         * modules/exitfail (Makefile.am): Likewise.
75488         * modules/fcntl-safer (Makefile.am): Likewise.
75489         * modules/file-type (Makefile.am): Likewise.
75490         * modules/fileblocks (Makefile.am): Likewise.
75491         * modules/filemode (Makefile.am): Likewise.
75492         * modules/filenamecat (Makefile.am): Likewise.
75493         * modules/fnmatch (Makefile.am): Likewise.
75494         * modules/fopen-safer (Makefile.am): Likewise.
75495         * modules/fpending (Makefile.am): Likewise.
75496         * modules/fprintftime (Makefile.am): Likewise.
75497         * modules/free (Makefile.am): Likewise.
75498         * modules/fsusage (Makefile.am): Likewise.
75499         * modules/ftruncate (Makefile.am): Likewise.
75500         * modules/fts (Makefile.am): Likewise.
75501         * modules/gc (Makefile.am): Likewise.
75502         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75503         * modules/getaddrinfo (Makefile.am): Likewise.
75504         * modules/getcwd (Makefile.am): Likewise.
75505         * modules/getdelim (Makefile.am): Likewise.
75506         * modules/getdomainname (Makefile.am): Likewise.
75507         * modules/getgroups (Makefile.am): Likewise.
75508         * modules/gethostname (Makefile.am): Likewise.
75509         * modules/gethrxtime (Makefile.am): Likewise.
75510         * modules/getline (Makefile.am): Likewise.
75511         * modules/getloadavg (Makefile.am): Likewise.
75512         * modules/getlogin_r (Makefile.am): Likewise.
75513         * modules/getopt (Makefile.am): Likewise.
75514         * modules/getpass (Makefile.am): Likewise.
75515         * modules/getpass-gnu (Makefile.am): Likewise.
75516         * modules/getsubopt (Makefile.am): Likewise.
75517         * modules/gettime (Makefile.am): Likewise.
75518         * modules/gettimeofday (Makefile.am): Likewise.
75519         * modules/getugroups (Makefile.am): Likewise.
75520         * modules/getusershell (Makefile.am): Likewise.
75521         * modules/glob (Makefile.am): Likewise.
75522         * modules/group-member (Makefile.am): Likewise.
75523         * modules/hard-locale (Makefile.am): Likewise.
75524         * modules/hash (Makefile.am): Likewise.
75525         * modules/hmac-md5 (Makefile.am): Likewise.
75526         * modules/hmac-sha1 (Makefile.am): Likewise.
75527         * modules/human (Makefile.am): Likewise.
75528         * modules/idcache (Makefile.am): Likewise.
75529         * modules/imaxabs (Makefile.am): Likewise.
75530         * modules/imaxdiv (Makefile.am): Likewise.
75531         * modules/inet_ntop (Makefile.am): Likewise.
75532         * modules/inet_pton (Makefile.am): Likewise.
75533         * modules/inttostr (Makefile.am): Likewise.
75534         * modules/isapipe (Makefile.am): Likewise.
75535         * modules/lchown (Makefile.am): Likewise.
75536         * modules/long-options (Makefile.am): Likewise.
75537         * modules/lstat (Makefile.am): Likewise.
75538         * modules/malloc (Makefile.am): Likewise.
75539         * modules/mathl (Makefile.am): Likewise.
75540         * modules/mbchar (Makefile.am): Likewise.
75541         * modules/md2 (Makefile.am): Likewise.
75542         * modules/md4 (Makefile.am): Likewise.
75543         * modules/md5 (Makefile.am): Likewise.
75544         * modules/memcasecmp (Makefile.am): Likewise.
75545         * modules/memchr (Makefile.am): Likewise.
75546         * modules/memcmp (Makefile.am): Likewise.
75547         * modules/memcoll (Makefile.am): Likewise.
75548         * modules/memcpy (Makefile.am): Likewise.
75549         * modules/memmem (Makefile.am): Likewise.
75550         * modules/memmove (Makefile.am): Likewise.
75551         * modules/mempcpy (Makefile.am): Likewise.
75552         * modules/memrchr (Makefile.am): Likewise.
75553         * modules/memset (Makefile.am): Likewise.
75554         * modules/memxor (Makefile.am): Likewise.
75555         * modules/mkancesdirs (Makefile.am): Likewise.
75556         * modules/mkdir (Makefile.am): Likewise.
75557         * modules/mkdir-p (Makefile.am): Likewise.
75558         * modules/mkdtemp (Makefile.am): Likewise.
75559         * modules/mkstemp (Makefile.am): Likewise.
75560         * modules/mktime (Makefile.am): Likewise.
75561         * modules/modechange (Makefile.am): Likewise.
75562         * modules/mountlist (Makefile.am): Likewise.
75563         * modules/nanosleep (Makefile.am): Likewise.
75564         * modules/openat (Makefile.am): Likewise.
75565         * modules/pagealign_alloc (Makefile.am): Likewise.
75566         * modules/physmem (Makefile.am): Likewise.
75567         * modules/poll (Makefile.am): Likewise.
75568         * modules/posixtm (Makefile.am): Likewise.
75569         * modules/posixver (Makefile.am): Likewise.
75570         * modules/putenv (Makefile.am): Likewise.
75571         * modules/quote (Makefile.am): Likewise.
75572         * modules/quotearg (Makefile.am): Likewise.
75573         * modules/raise (Makefile.am): Likewise.
75574         * modules/read-file (Makefile.am): Likewise.
75575         * modules/readline (Makefile.am): Likewise.
75576         * modules/readlink (Makefile.am): Likewise.
75577         * modules/readtokens (Makefile.am): Likewise.
75578         * modules/readutmp (Makefile.am): Likewise.
75579         * modules/realloc (Makefile.am): Likewise.
75580         * modules/regex (Makefile.am): Likewise.
75581         * modules/rename (Makefile.am): Likewise.
75582         * modules/rename-dest-slash (Makefile.am): Likewise.
75583         * modules/rijndael (Makefile.am): Likewise.
75584         * modules/rmdir (Makefile.am): Likewise.
75585         * modules/rpmatch (Makefile.am): Likewise.
75586         * modules/safe-read (Makefile.am): Likewise.
75587         * modules/safe-write (Makefile.am): Likewise.
75588         * modules/same (Makefile.am): Likewise.
75589         * modules/save-cwd (Makefile.am): Likewise.
75590         * modules/savedir (Makefile.am): Likewise.
75591         * modules/setenv (Makefile.am): Likewise.
75592         * modules/settime (Makefile.am): Likewise.
75593         * modules/sha1 (Makefile.am): Likewise.
75594         * modules/sig2str (Makefile.am): Likewise.
75595         * modules/snprintf (Makefile.am): Likewise.
75596         * modules/stdlib-safer (Makefile.am): Likewise.
75597         * modules/stpcpy (Makefile.am): Likewise.
75598         * modules/stpncpy (Makefile.am): Likewise.
75599         * modules/strcase (Makefile.am): Likewise.
75600         * modules/strcasestr (Makefile.am): Likewise.
75601         * modules/strchrnul (Makefile.am): Likewise.
75602         * modules/strcspn (Makefile.am): Likewise.
75603         * modules/strdup (Makefile.am): Likewise.
75604         * modules/strerror (Makefile.am): Likewise.
75605         * modules/strftime (Makefile.am): Likewise.
75606         * modules/strndup (Makefile.am): Likewise.
75607         * modules/strnlen (Makefile.am): Likewise.
75608         * modules/strpbrk (Makefile.am): Likewise.
75609         * modules/strsep (Makefile.am): Likewise.
75610         * modules/strstr (Makefile.am): Likewise.
75611         * modules/strtod (Makefile.am): Likewise.
75612         * modules/strtoimax (Makefile.am): Likewise.
75613         * modules/strtok_r (Makefile.am): Likewise.
75614         * modules/strtol (Makefile.am): Likewise.
75615         * modules/strtoll (Makefile.am): Likewise.
75616         * modules/strtoul (Makefile.am): Likewise.
75617         * modules/strtoull (Makefile.am): Likewise.
75618         * modules/strtoumax (Makefile.am): Likewise.
75619         * modules/strverscmp (Makefile.am): Likewise.
75620         * modules/time_r (Makefile.am): Likewise.
75621         * modules/timegm (Makefile.am): Likewise.
75622         * modules/tmpfile-safer (Makefile.am): Likewise.
75623         * modules/unistd-safer (Makefile.am): Likewise.
75624         * modules/unlinkdir (Makefile.am): Likewise.
75625         * modules/userspec (Makefile.am): Likewise.
75626         * modules/utime (Makefile.am): Likewise.
75627         * modules/utimecmp (Makefile.am): Likewise.
75628         * modules/utimens (Makefile.am): Likewise.
75629         * modules/vasnprintf (Makefile.am): Likewise.
75630         * modules/vasprintf (Makefile.am): Likewise.
75631         * modules/vsnprintf (Makefile.am): Likewise.
75632         * modules/xalloc (Makefile.am): Likewise.
75633         * modules/xgetcwd (Makefile.am): Likewise.
75634         * modules/xnanosleep (Makefile.am): Likewise.
75635         * modules/xreadlink (Makefile.am): Likewise.
75636         * modules/xstrtod (Makefile.am): Likewise.
75637         * modules/xstrtol (Makefile.am): Likewise.
75638         * modules/xstrtold (Makefile.am): Likewise.
75639         * modules/yesno (Makefile.am): Likewise.
75640
75641 2006-10-12  Jim Meyering  <jim@meyering.net>
75642
75643         * m4/getloadavg.m4: Revert the change below.
75644
75645         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
75646         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
75647         fail with a symlink, which is what coreutils' ./bootstrap now
75648         creates by default.
75649
75650 2006-10-12  Bruno Haible  <bruno@clisp.org>
75651
75652         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
75653         mingw.
75654         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
75655         MSVC and mingw explicitly.
75656
75657 2006-10-11  Simon Josefsson  <jas@extundo.com>
75658             Bruno Haible  <bruno@clisp.org>
75659
75660         Add support for multiple gnulib-tool invocations in the scope of a
75661         single configure.ac file.
75662         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
75663         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
75664         with the same contents as the _LIBADD variable.
75665         (func_emit_initmacro_start, func_emit_initmacro_end,
75666         func_emit_initmacro_done): New functions.
75667         (func_import, func_create_testdir): Invoke them. Allow the identifiers
75668         gl_LIBOBJS and gl_LTLIBOBJS.
75669
75670 2006-10-11  Bruno Haible  <bruno@clisp.org>
75671
75672         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
75673         (func_create_testdir): Don't create po/Makefile.am, don't invoke
75674         autoreconf. Instead, invoke autopoint explicitly but move back the
75675         *.m4 files from gnulib.
75676
75677 2006-10-11  Bruno Haible  <bruno@clisp.org>
75678
75679         * gnulib-tool (func_usage): Make module names after --create-testdir
75680         optional.
75681         (func_create_testdir): If no module was specified, use nearly all
75682         modules.
75683
75684 2006-10-12  Jim Meyering  <jim@meyering.net>
75685
75686         Big performance improvement for fts-based tools that use FTS_NOSTAT.
75687         Avoid spurious inode-mismatch problems on non-POSIX file systems.
75688         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
75689         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
75690         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
75691         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
75692         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
75693         (fts_set_stat_required): New function.
75694         (fts_open): Defer the calls to fts_stat, if possible or requested.
75695         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
75696         into fts_stat itself.
75697         (fts_read): Perform any required (deferred) fts_stat call.
75698         (fts_build): Likewise, for the directory we're about to open and read.
75699         In the readdir loop, carefully decide whether each entry will require
75700         an eventual call to fts_stat, using dirent.d_type info if available.
75701         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
75702         a command line argument into this function.  Update all callers.
75703         Map a return value of FTS_DOT to FTS_D for a command line argument.
75704         * modules/fts (Depends-on): Add d-type.  Alphabetize.
75705         Thanks to Miklos Szeredi for his tenacity and for the initial
75706         bug report about "find" failing on a FUSE-based file system.
75707
75708         * lib/fts.c (fts_open): Use consistent indentation.
75709
75710 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
75713         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
75714         reported by Jim Meyering.  All uses of cache variables renamed
75715         to match Autoconf's.
75716         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
75717         the other one.
75718
75719         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75720         Fix misspelling in diagnostic.
75721
75722 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75723
75724         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
75725         defined.  Problem reported by Matthew Woehlke.
75726
75727         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
75728         Add support for Tandem NonStop R series.
75729         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
75730         Use new macro.
75731
75732         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
75733         (has_trailing_slash): Omit size arg; all callers changed.
75734         Omit 'inline', since it doesn't help performance and we'd
75735         need to configure it.
75736         Don't count //, ///, etc. as having a trailing slash.
75737         As a side effect, this removes a C99ism reported by Matthew Woehlke.
75738         (rpl_rename_dest_slash): On failure, use rename's errno rather
75739         than (in some cases) an incorrect or junk errno.
75740         Simplify code by removing need to compute length; this does
75741         cause it to make two passes instead of one over the file name,
75742         but it's worth it.
75743
75744         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
75745         change, since Autoconf's version may no longer be appropriate now
75746         that we are using CVS Autoconf's version.  Add support for Tandem.
75747
75748 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75749             Bruno Haible  <bruno@clisp.org>
75750
75751         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
75752         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
75753         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
75754         gl_AC_TYPE_LONG_LONG.
75755
75756         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
75757         instead of HAVE_LONG_LONG.
75758         * lib/printf-args.c (printf_fetchargs): Likewise.
75759         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
75760         * lib/vasnprintf.c (VASNPRINTF): Likewise.
75761         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
75762         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
75763         gl_AC_TYPE_LONG_LONG.
75764
75765 2006-10-11  Bruno Haible  <bruno@clisp.org>
75766
75767         * m4/longlong.m4: Add comments.
75768         * m4/ulonglong.m4: Likewise.
75769
75770 2006-10-10  Bruno Haible  <bruno@clisp.org>
75771
75772         Make it possible to #define stpcpy, strdup to aliases.
75773         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
75774         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
75775
75776 2006-10-10  Bruno Haible  <bruno@clisp.org>
75777
75778         Make it possible to #define gcd to an alias.
75779         * lib/gcd.c: Include config.h.
75780
75781 2006-10-10  Bruno Haible  <bruno@clisp.org>
75782
75783         Make it possible to #define c_isascii to an alias.
75784         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
75785         defined. Undefine the macros before defining them, to avoid gcc
75786         warnings.
75787         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
75788         define NO_C_CTYPE_MACROS early.
75789
75790 2006-10-10  Bruno Haible  <bruno@clisp.org>
75791
75792         Make it possible to #define set_program_name to an alias.
75793         * lib/progname.c: Don't undefine set_program_name; instead, undefine
75794         ENABLE_RELOCATABLE early.
75795
75796 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75797
75798         Port to Tandem NSK OSS, which has 64-bit signed int but at most
75799         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
75800         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
75801         More generally, don't assume that 64-bit signed int is available
75802         if unsigned int is, and vice versa.
75803         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
75804         unsigned symbols, not on their signed counterparts.
75805         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
75806         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
75807         (UINT64_C, UINTMAX_C):
75808         Likewise.
75809         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
75810         unsigned counterparts.
75811         (Have_long_long, Unsigned): New macros.
75812         (Int): Renamed from INT.
75813         (strtoimax): Use the new macros.
75814         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
75815         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
75816         * modules/inttypes (inttypes.h): Substitute
75817         HAVE_UNSIGNED_LONG_LONG_INT.
75818         * modules/stdint (stdint.h): Likewise.
75819         (Files): Add m4/ulonglong.m4.
75820
75821 2006-10-10  Bruno Haible  <bruno@clisp.org>
75822
75823         Fix a gcc -Wshadow warning.
75824         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
75825         to 'bucket'.
75826         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
75827         gl_linked_indexof_from_to): Likewise.
75828         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
75829         Likewise.
75830         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
75831         Likewise.
75832         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
75833         Reported by Eric Blake.
75834
75835 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
75836
75837         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
75838         for NetBSD.  Problem reported by Bruno Haible.
75839
75840 2006-10-09  Jim Meyering  <jim@meyering.net>
75841
75842         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
75843         Patch from Bruno Haible.
75844
75845 2006-10-09  Jim Meyering  <jim@meyering.net>
75846
75847         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
75848         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
75849         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
75850
75851 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75852
75853         Don't include <config.h> twice; this doesn't work in some cases,
75854         e.g., when config.h has "#define intmax_t long long int" and
75855         we include <config.h>, <inttypes.h>, <config.h> in that order.
75856         Problem reported by Matthew Woehlke in:
75857         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
75858         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
75859         * lib/fts-cycle.c: Don't include config.h.
75860         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
75861         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
75862         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
75863         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
75864         inttypes.h.
75865         * lib/xstrtoumax.c: Likewise.
75866         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
75867         __strtol and the like, so that this module is more like its siblings.
75868         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
75869         Remove; no longer needed now that we assume gnulib inttypes.h.
75870
75871 2006-10-08  Bruno Haible  <bruno@clisp.org>
75872
75873         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
75874         option.
75875
75876 2006-10-07  Jim Meyering  <jim@meyering.net>
75877
75878         * modules/inttypes (inttypes.h): Revert what seems to have been
75879         an inadvertent part of today's change: use "|", not "/" in the
75880         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
75881
75882 2006-10-07  Bruno Haible  <bruno@clisp.org>
75883
75884         * modules/sublist: New file.
75885
75886 2006-10-07  Bruno Haible  <bruno@clisp.org>
75887
75888         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
75889         * modules/argz (argz.h): Likewise.
75890         * modules/arpa_inet (arpa/inet.h): Likewise.
75891         * modules/byteswap (byteswap.h): Likewise.
75892         * modules/configmake (configmake.h): Likewise.
75893         * modules/fcntl (fcntl.h): Likewise.
75894         * modules/fnmatch (fnmatch.h): Likewise.
75895         * modules/getopt (getopt.h): Likewise.
75896         * modules/glob (glob.h): Likewise.
75897         * modules/inttypes (inttypes.h): Likewise.
75898         * modules/netinet_in (netinet/in.h): Likewise.
75899         * modules/poll (poll.h): Likewise.
75900         * modules/stdbool (stdbool.h): Likewise.
75901         * modules/stdint (stdint.h): Likewise.
75902         * modules/sys_select (sys/select.h): Likewise.
75903         * modules/sys_socket (sys/socket.h): Likewise.
75904         * modules/sys_stat (sys/stat.h): Likewise.
75905         * modules/sysexits (sysexits.h): Likewise.
75906         * modules/unistd (unistd.h): Likewise.
75907         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75908         Add a "DO NOT EDIT" comment to the generated file.
75909         (func_import): Likewise for gnulib-comp.m4.
75910
75911 2006-10-07  Bruno Haible  <bruno@clisp.org>
75912
75913         * lib/gl_sublist.h: New file.
75914         * lib/gl_sublist.c: New file.
75915
75916 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75917
75918         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
75919         name (relative to the original working directory) and the file
75920         name component (relative to the temporary working directory).  All
75921         callers changed.
75922         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
75923         * lib/mkdir-p.c (make_dir_parents): Likewise.
75924         * lib/mkdir-p.h (make_dir_parents): Likewise.
75925
75926 2006-10-06  Eric Blake  <ebb9@byu.net>
75927
75928         Define several macros for use by the clean-temp module.
75929         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
75930         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
75931         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
75932
75933         * lib/clean-temp.h (close_stream_temp): New declaration.
75934         * lib/clean-temp.c (includes): Pull in headers according to what
75935         other modules are in use.
75936         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
75937
75938 2006-10-06  Bruno Haible  <bruno@clisp.org>
75939
75940         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
75941         instead of fopen, fwriteerror.
75942
75943 2006-10-06  Bruno Haible  <bruno@clisp.org>
75944
75945         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
75946         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
75947         int.
75948         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
75949         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
75950         Return an error indicator.
75951         Suggested by Eric Blake.
75952
75953 2006-10-06  Bruno Haible  <bruno@clisp.org>
75954
75955         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
75956         Reported by Eric Blake.
75957
75958 2006-10-06  Bruno Haible  <bruno@clisp.org>
75959
75960         * modules/closeout (Description): Mention stderr too.
75961
75962 2006-10-06  Bruno Haible  <bruno@clisp.org>
75963         and Paul Eggert  <eggert@cs.ucla.edu>
75964
75965         * lib/closeout.c (close_stdout): Also close stderr.
75966         * lib/closeout.h: Update comment.
75967
75968 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75969
75970         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
75971         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
75972         * lib/dirchownmod.c: Include lchown.h.
75973         * lib/lchown.c: Don't include files that lchown.h now includes.
75974         Don't declare chown, since lchown.h now does that.
75975         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
75976         (lchown): Define to rpl_chown if lchown is declared but
75977         does not exist.  Declare using a prototype if lchown is not
75978         declared.  Add a copyright notice.
75979         * lib/mkstemp.h: Include <unistd.h>.
75980         * lib/openat.c: Include lchown.h.
75981
75982         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
75983         we now test for that separately.
75984         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
75985         rather than O_NOFOLLOW, when testing whether it's possible to
75986         avoid a race condition reliably.
75987         * lib/savewd.c (savewd_chdir): Likewise.
75988
75989         Remove macros that are no longer needed now that stdint.h is
75990         reliable.
75991         * lib/fsusage.c (UINTMAX_MAX): Remove.
75992         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
75993         * lib/utimecmp.c (SIZE_MAX): Remove.
75994
75995         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
75996
75997         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
75998         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
75999         O_NOATIME works.
76000
76001 2006-10-05  Bruno Haible  <bruno@clisp.org>
76002
76003         * lib/gl_list.h (gl_sortedlist_search_from_to,
76004         gl_sortedlist_indexof_from_to): New declarations.
76005         (gl_list_implementation): New fields sortedlist_search_from_to,
76006         sortedlist_indexof_from_to.
76007         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76008         inline functions.
76009         * lib/gl_list.c (gl_sortedlist_search_from_to,
76010         gl_sortedlist_indexof_from_to): New functions.
76011         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76012         function.
76013         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76014         (gl_array_sortedlist_search_from_to): New function.
76015         (gl_array_list_implementation): Update.
76016         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76017         function.
76018         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76019         (gl_carray_sortedlist_search_from_to): New function.
76020         (gl_carray_list_implementation): Update.
76021         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76022         gl_linked_sortedlist_indexof_from_to): New functions.
76023         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76024         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76025         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76026         gl_tree_sortedlist_indexof_from_to): New functions.
76027         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76028         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76029         Update.
76030         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76031         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76032         Update.
76033
76034 2006-10-05  Bruno Haible  <bruno@clisp.org>
76035
76036         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76037         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76038         (struct gl_list_implementation): Add fields search_from_to,
76039         indexof_from_to. Remove fields search, indexof.
76040         (gl_list_search): Use the search_from_to method.
76041         (gl_list_search_from, gl_list_search_from_to): New functions.
76042         (gl_list_indexof): Use the indexof_from_to method.
76043         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76044         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76045         (gl_list_search_from, gl_list_search_from_to): New functions.
76046         (gl_list_indexof): Use the indexof_from_to method.
76047         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76048         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76049         gl_array_indexof. Add start_index, end_index arguments.
76050         (gl_array_search_from_to): Renamed from gl_array_search. Add
76051         start_index, end_index arguments.
76052         (gl_array_remove, gl_array_list_implementation): Update.
76053         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76054         gl_carray_indexof. Add start_index, end_index arguments.
76055         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76056         start_index, end_index arguments.
76057         (gl_carray_remove, gl_carray_list_implementation): Update.
76058         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76059         gl_linked_search. Add start_index, end_index arguments.
76060         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76061         start_index, end_index arguments.
76062         (gl_linked_remove): Update.
76063         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76064         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76065         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76066         field to 'size_t'.
76067         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76068         gl_tree_search. Add start_index, end_index arguments.
76069         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76070         start_index, end_index arguments.
76071         (gl_tree_remove): Update.
76072         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76073         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76074         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76075         function.
76076         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76077         gl_tree_search. Add start_index, end_index arguments.
76078         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76079         start_index, end_index arguments.
76080         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76081         Update.
76082         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76083
76084 2006-10-05  Bruno Haible  <bruno@clisp.org>
76085
76086         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76087
76088         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76089         fwriteerror_temp): New declarations.
76090         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76091         (descriptors): New variable.
76092         (cleanup): First, close the descriptors.
76093         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76094         fclose_temp, fwriteerror_temp): New functions.
76095
76096 2006-10-04  Jim Meyering  <jim@meyering.net>
76097
76098         * lib/fts.c (fts_open): Tiny comment change.
76099
76100 2006-10-04  Bruno Haible  <bruno@clisp.org>
76101
76102         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76103         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76104         gl_LOCK_BODY.
76105         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76106         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76107         gl_LOCK_EARLY_BODY.
76108         (gl_LOCK): Require gl_LOCK_BODY.
76109
76110 2006-10-04  Bruno Haible  <bruno@clisp.org>
76111
76112         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76113         (gl_oset_search_atleast): New declaration.
76114         (struct gl_oset_implementation): Add field 'search_atleast'.
76115         (gl_oset_search_atleast): New inline function.
76116         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76117         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76118         (gl_array_oset_implementation): Update.
76119         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76120         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76121         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76122
76123 2006-10-04  Bruno Haible  <bruno@clisp.org>
76124
76125         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76126
76127 2006-10-03  Bruno Haible  <bruno@clisp.org>
76128
76129         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76130         from gl_avltreehash_list_implementation.
76131
76132 2006-10-03  Bruno Haible  <bruno@clisp.org>
76133
76134         * lib/gl_oset.c (gl_oset_add): Fix return type.
76135
76136 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76137
76138         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76139
76140 2006-10-02  Eric Blake  <ebb9@byu.net>
76141
76142         * modules/strnlen (Depends-on): Add extensions.
76143
76144 2006-10-02  Eric Blake  <ebb9@byu.net>
76145
76146         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76147         definition in 2.60+.
76148
76149 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76150
76151         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76152         checks.
76153
76154 2006-10-02  Bruno Haible  <bruno@clisp.org>
76155
76156         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76157         to the AUTOMAKE_OPTIONS.
76158         Reported by Jim Meyering.
76159
76160 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76161
76162         Work around bug in Solaris 10 /proc file system:
76163         /proc/self/fd/NNN/.. isn't the parent directory of
76164         the directory whose file descriptor is NNN.  This needs to
76165         be worked around at run time, not compile time, since a
76166         program might be built on Solaris 8, where things work, and
76167         run on Solaris 10.
76168         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76169         to use the following interface instead:
76170         (OPENAT_BUFFER_SIZE): New macro.
76171         (openat_proc_name): New function.
76172         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76173         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76174         Likewise.
76175         * lib/openat-proc.c: New file.
76176         * modules/openat (Files): Add lib/openat-proc.c.
76177         (Depends-on): Add same-inode, stdbool.
76178         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76179
76180 2006-09-29  Bruno Haible  <bruno@clisp.org>
76181
76182         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76183         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76184         argument. Set stdout_closed before testing for ferror, not after.
76185         (fwriteerror, fwriteerror_no_ebadf): New functions.
76186
76187 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76188
76189         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76190
76191 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76192
76193         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76194         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76195
76196 2006-09-28  Jim Meyering  <jim@meyering.net>
76197
76198         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76199         Include <unistd.h>.
76200
76201 2006-09-28  Bruno Haible  <bruno@clisp.org>
76202
76203         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76204         * modules/linkedhash-list (Depends-on): Likewise.
76205         * modules/rbtreehash-list (Depends-on): Likewise.
76206
76207 2006-09-28  Bruno Haible  <bruno@clisp.org>
76208
76209         * lib/strndup.h: Simplify the redefinition of strndup.
76210         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76211         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76212
76213 2006-09-28  Bruno Haible  <bruno@clisp.org>
76214
76215         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76216         * lib/gl_linkedhash_list.c: Likewise.
76217         * lib/gl_rbtreehash_list.c: Likewise.
76218
76219 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76220
76221         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76222         getaddrinfo.
76223
76224         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76225         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76226         it causes <stdio_ext.h> to cause a compile-time error.
76227         Problem reported by Nelson H. F. Beebe.
76228         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76229         of HAVE_DECL___PENDING.
76230
76231         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76232         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76233         declaration.
76234
76235 2006-09-27  Jim Meyering  <jim@meyering.net>
76236
76237         This file could end up with a definition for a function
76238         named __strndup, rather than rpl_strndup on a system with
76239         incomplete weak_alias support.
76240         * lib/strndup.c (strndup): Rename from __strndup.
76241         Remove #defines that used to map __strndup to strndup.
76242         Don't use K&R prototypes.
76243         Remove LIBC-related code, since this file is not sync'd with glibc.
76244         * lib/strndup.h: Revamp, accordingly.
76245         * m4/strndup.m4: Modernize.
76246
76247 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76248
76249         * modules/savewd (Depends-on): Add 'raise'.
76250         * lib/savewd.c: Include <signal.h>, for 'raise'.
76251
76252 2006-09-26  Jim Meyering  <jim@meyering.net>
76253
76254         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76255         when we detect Darwin 8.7.0's acl_get_file bug.
76256         Rearrange to perform the new (below) run-test while $LIBS
76257         contains any acl-related library.  Set USE_ACL at the end.
76258         (gl_ACL_GET_FILE): New function.
76259
76260 2006-09-26  Eric Blake  <ebb9@byu.net>
76261
76262         * lib/verror.c: Include <config.h> unconditionally.
76263
76264 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76265
76266         * modules/clock-time (Maintainer): Add self.
76267         * modules/getlogin_r (Depends-on): Add extensions.
76268
76269 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76270
76271         * modules/clock-time: New module.
76272         * modules/nanosleep (Depends-on): Add clock-time.
76273         * modules/gethrxtime (Depends-on): Likewise.
76274         * modules/gettime (Depends-on): Likewise.
76275         * modules/settime (Depends-on): Likewise.
76276
76277         * modules/fts-lgpl: Depend on openat.
76278         * modules/mkancesdirs: Depend on savewd.
76279         * modules/mkdir-p: Likewise.
76280
76281 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76282
76283         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76284
76285         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76286         `gl_have_arbitrary_file_name_length_limit' to
76287         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76288         actually works between configure runs.
76289
76290 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76291             Bruno Haible  <bruno@clisp.org>
76292
76293         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76294
76295 2006-09-25  Jim Meyering  <jim@meyering.net>
76296
76297         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76298         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76299
76300 2006-09-25  Eric Blake  <ebb9@byu.net>
76301
76302         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76303         exec's in 2006-09-18 patch when shuffling fds.
76304
76305 2006-09-25  Bruno Haible  <bruno@clisp.org>
76306
76307         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76308         Reported by Jim Meyering.
76309
76310 2006-09-24  Jim Meyering  <jim@meyering.net>
76311
76312         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76313         compare a pointer against a literal "0".  That caused failures with
76314         at least HP-UX's hpcc.
76315
76316 2006-09-22  Simon Josefsson  <jas@extundo.com>
76317
76318         * modules/gc-sha1:
76319         * modules/gc-md4:
76320         * modules/gc-hmac-sha1:
76321         * modules/gc-hmac-md5:
76322         * modules/gc-des:
76323         * modules/gc-arcfour: Distribute more files.
76324
76325 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76326
76327         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76328         (gl_linked_iterator_from_to): Initialize struct completely.
76329         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76330         (gl_tree_iterator_from_to): Likewise
76331         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76332         * lib/gl_array_list.c [lint] (gl_array_iterator)
76333         (gl_array_iterator_from_to): Likewise.
76334         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76335         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76336         (gl_carray_iterator_from_to): Likewise.
76337
76338         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76339         * lib/md4.c (md4_process_block): Remove unused variable.
76340         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76341         parentheses for clarity.
76342
76343 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76344
76345         * modules/bison-i18n (Depends-on): Add gettext.
76346
76347 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76348
76349         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76350         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76351         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76352         also add missing comma that caused broken test.
76353         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76354         stdlib.h, for `abort'.
76355         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76356         variables.
76357         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76358         include unistd.h if present, for `rmdir'.
76359         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76360         variables.
76361         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76362         in the process include standard headers for prototypes.
76363         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76364         gets declared on GNU/Linux.
76365         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76366         unistd.h, for `rmdir'.
76367         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76368
76369         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76370         always true.
76371         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76372
76373         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76374
76375 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76376
76377         * gnulib-tool (func_version): Create output all at once.  This
76378         may help avoid triggering unnecessary SIGPIPEs, and at any
76379         rate it doesn't hurt.
76380
76381 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76382             Bruno Haible  <bruno@clisp.org>
76383
76384         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76385         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76386         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76387
76388         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76389         (gl_FUNC_VASPRINTF): Invoke it.
76390
76391 2006-09-22  Bruno Haible  <bruno@clisp.org>
76392
76393         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76394         getloadavg.c as first argument.
76395
76396 2006-09-22  Bruno Haible  <bruno@clisp.org>
76397
76398         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76399         at the beginning of the gl_INIT macro.
76400         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76401         gl_GETLOADAVG.
76402
76403 2006-09-22  Bruno Haible  <bruno@clisp.org>
76404
76405         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76406         module.
76407         Suggested by Ralf Wildenhues.
76408
76409 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76410
76411         Import this patch from libc:
76412
76413         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76414
76415         * lib/regex_internal.c (re_string_reconstruct): Handle
76416         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76417         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76418         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76419         re_string_context_at.
76420
76421         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76422         now requires it.
76423         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76424         gl_REGEX now does it for us.
76425         (gl_REGEX): Add test taken from
76426         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76427
76428         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76429         Check that large offsets work.  Modernize Autoconf usages.
76430         Prefer "yes" to mean a good thing rather than a bad.
76431         Don't put "#define mkstemp" in config.h, as this might interfere
76432         with standard system headers that "#define mkstemp mkstemp64".
76433
76434         * modules/mkstemp (Depends-on): Add extensions, so that
76435         mkstemp is visible on some platforms.
76436         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76437         (Include): Change to "mkstemp.h" from <stdlib.h>.
76438         (Files): Add mkstemp.h.
76439
76440         * lib/mkstemp.h: New file, since some standard headers
76441         #define mkstemp.
76442         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76443         Include "mkstemp.h".
76444         Make the _LIBC code resemble glibc original more,
76445         e.g., use K&R style.
76446         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76447         (mkstemp): Remove, since mkstemp.h does this for us.
76448         * lib/stdlib--.h: Include mkstemp.h.
76449
76450         Import this patch from libc:
76451
76452         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76453
76454         * lib/tempname.c (__gen_tempname): Change attempts_min
76455         into a macro.  Use preprocessor to decide how to initialize
76456         attempts [Coverity CID 67].
76457
76458 2006-09-20  Bruno Haible  <bruno@clisp.org>
76459
76460         * lib/mkdtemp.c: Import from libc.
76461         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76462                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76463                 attempts_min into a macro.  Use preprocessor to decide how to
76464                 initialize attempts [Coverity CID 67].
76465         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76466                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76467                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76468
76469 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76470
76471         * gnulib-tool (func_exit): New function, to allow to pass the
76472         exit status portably through the trap.  Use everywhere.
76473         (--help, --version): Signal a write error.
76474         (trap): catch SIGPIPE, for write errors.
76475         Exit at the end of the trap, with the correct exit status.
76476
76477 2006-09-19  Karl Berry  <karl@gnu.org>
76478
76479         * doc/gnulib.texi: note about the license texinfo files.
76480
76481 2006-09-19  Eric Blake  <ebb9@byu.net>
76482
76483         * gnulib-tool: Avoid space-tab.
76484
76485 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76486
76487         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76488         that prevented coreutils 6.1 from building.  Problem reported
76489         by Petter Reinholdtsen.
76490
76491 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76492
76493         * gnulib-tool (avoidlist): Fix typo that broke options like
76494         --avoid=lock that are used by coreutils bootstrap.
76495
76496 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76497
76498         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76499         more systematically.
76500
76501 2006-09-18  Jim Meyering  <jim@meyering.net>
76502
76503         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76504
76505 2006-09-18  Bruno Haible  <bruno@clisp.org>
76506
76507         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76508
76509 2006-09-18  Bruno Haible  <bruno@clisp.org>
76510
76511         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76512         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76513         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76514         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76515         * m4/gettext.m4: Require autoconf >= 2.52.
76516         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76517         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76518         of gl_cv_header_inttypes_h.
76519
76520 2006-09-18  Bruno Haible  <bruno@clisp.org>
76521
76522         * lib/javaversion.c: Include configmake.h.
76523
76524 2006-09-18  Bruno Haible  <bruno@clisp.org>
76525
76526         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76527         avoid that the while loops be executed in a subshell.
76528
76529 2006-09-18  Bruno Haible  <bruno@clisp.org>
76530
76531         * MODULES.html.sh (func_module): Break long lines.
76532         Suggested by Bruce Korb <bkorb@gnu.org>.
76533
76534 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76535
76536         Speed up by a factor of 1.12.
76537         * gnulib-tool (nl): New variable.
76538         (func_import): Rewrite include directive extraction to only read each
76539         directive once.
76540
76541 2006-09-17  Bruno Haible  <bruno@clisp.org>
76542
76543         * modules/javaversion (Makefile.am): Remove DEFS setting.
76544         (Depends-on): Add configmake, for PKGDATADIR definition.
76545
76546 2006-09-17  Bruno Haible  <bruno@clisp.org>
76547
76548         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76549
76550 2006-09-17  Bruno Haible  <bruno@clisp.org>
76551
76552         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76553         (func_modules_transitive_closure, func_modules_add_dummy,
76554         func_modules_to_filelist, func_import, func_create_testdir,
76555         func_create_megatestdir, ...): Use it wherever possible.
76556         Suggested by Ralf Wildenhues.
76557
76558 2006-09-16  Karl Berry  <karl@gnu.org>
76559
76560         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76561         to avoid sectioning errors.
76562         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76563         [ifinfo]: blank line after @center-ed titles.
76564         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76565         Spell FSF address consistently with others.
76566         (These changes approved by rms.)
76567
76568 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76569
76570         Speed up by a factor of 1.61.
76571         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76572         already checked module names again.
76573
76574 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76575
76576         Speed up by a factor of 1.13.
76577         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76578         for new_files, and the input to func_add_or_update.
76579
76580 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76581
76582         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76583         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76584
76585 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76586
76587         * modules/mkancesdirs (Depends-on): Add fcntl.
76588         * modules/savewd: New file.
76589         * MODULES.html.sh (File system functions): Add savewd.
76590
76591         * modules/configmake (Makefile.am): Add support for the
76592         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
76593
76594 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76595
76596         * m4/savewd.m4: New file.
76597
76598 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76599
76600         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
76601         (dirchownmod): New arg FD.  All callers changed.
76602         Use FD rather than opening the directory ourself, as opening is
76603         now the caller's responsibility.
76604         * lib/dirchownmod.h: Likewise.
76605         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
76606         hosts that require <sys/types.h> before <sys/stat.h>.  Include
76607         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
76608         (test_dir): Remove.
76609         (mkancesdirs): Return length of prefix of FILE that has already
76610         been made, or -2 if there is a child doing the work.  Redo
76611         algorithm so that it is O(N) rather than O(N**2).  Optimize away
76612         ".", and treat ".." specially since it might stray back into
76613         already-created areas.  Use a subprocess if necessary.  New arg
76614         WD; all users changed.  MAKE_DIR function should now return 1
76615         if it creates a directory that is not readable.  Return -2 if
76616         a child process is spun off.
76617         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
76618         Adjust signature to match code.
76619         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
76620         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
76621         all users changed.
76622         * lib/savewd.c, lib/savewd.h: New files.
76623
76624 2006-09-15  Jim Meyering  <jim@meyering.net>
76625
76626         * modules/rename-dest-slash: New module.
76627         * MODULES.html.sh (posix_compat): Add it here.
76628
76629         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
76630
76631 2006-09-15  Jim Meyering  <jim@meyering.net>
76632
76633         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
76634         file.
76635
76636         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
76637
76638 2006-09-15  Jim Meyering  <jim@meyering.net>
76639
76640         * lib/rename-dest-slash.c (has_trailing_slash): Use
76641         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
76642         (rpl_rename_dest_slash): Perform the cheaper trailing slash
76643         test before testing whether SRC is a directory.
76644         Suggestions from Bruno Haible.
76645
76646         Avoid a warning about an unused variable.
76647         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
76648         into the #ifdef block where it's used.
76649
76650         * lib/rename-dest-slash.c: New file.
76651
76652 2006-09-14  Bruno Haible  <bruno@clisp.org>
76653
76654         * lib/allocsa.c: Include <config.h> unconditionally.
76655         * lib/asnprintf.c: Likewise.
76656         * lib/asprintf.c: Likewise.
76657         * lib/c-strcasecmp.c: Likewise.
76658         * lib/c-strcasestr.c: Likewise.
76659         * lib/c-strncasecmp.c: Likewise.
76660         * lib/c-strstr.c: Likewise.
76661         * lib/classpath.c: Likewise.
76662         * lib/clean-temp.c: Likewise.
76663         * lib/concatpath.c: Likewise.
76664         * lib/copy-file.c: Likewise.
76665         * lib/csharpcomp.c: Likewise.
76666         * lib/csharpexec.c: Likewise.
76667         * lib/execute.c: Likewise.
76668         * lib/fatal-signal.c: Likewise.
76669         * lib/findprog.c: Likewise.
76670         * lib/fwriteerror.c: Likewise.
76671         * lib/gl_array_list.c: Likewise.
76672         * lib/gl_array_oset.c: Likewise.
76673         * lib/gl_avltree_list.c: Likewise.
76674         * lib/gl_avltree_oset.c: Likewise.
76675         * lib/gl_avltreehash_list.c: Likewise.
76676         * lib/gl_carray_list.c: Likewise.
76677         * lib/gl_linked_list.c: Likewise.
76678         * lib/gl_linkedhash_list.c: Likewise.
76679         * lib/gl_list.c: Likewise.
76680         * lib/gl_oset.c: Likewise.
76681         * lib/gl_rbtree_list.c: Likewise.
76682         * lib/gl_rbtree_oset.c: Likewise.
76683         * lib/gl_rbtreehash_list.c: Likewise.
76684         * lib/imaxabs.c: Likewise.
76685         * lib/imaxdiv.c: Likewise.
76686         * lib/javacomp.c: Likewise.
76687         * lib/javaexec.c: Likewise.
76688         * lib/javaversion.c: Likewise.
76689         * lib/linebreak.c: Likewise.
76690         * lib/localcharset.c: Likewise.
76691         * lib/lock.c: Likewise.
76692         * lib/mbchar.c: Likewise.
76693         * lib/mbswidth.c: Likewise.
76694         * lib/mkdtemp.c: Likewise.
76695         * lib/pipe.c: Likewise.
76696         * lib/printf-args.c: Likewise.
76697         * lib/printf-parse.c: Likewise.
76698         * lib/progname.c: Likewise.
76699         * lib/progreloc.c: Likewise.
76700         * lib/readlink.c: Likewise.
76701         * lib/sh-quote.c: Likewise.
76702         * lib/stpcpy.c: Likewise.
76703         * lib/stpncpy.c: Likewise.
76704         * lib/strcasecmp.c: Likewise.
76705         * lib/strcasestr.c: Likewise.
76706         * lib/strcspn.c: Likewise.
76707         * lib/striconv.c: Likewise.
76708         * lib/strncasecmp.c: Likewise.
76709         * lib/strnlen1.c: Likewise.
76710         * lib/strstr.c: Likewise.
76711         * lib/strtok_r.c: Likewise.
76712         * lib/tls.c: Likewise.
76713         * lib/tmpdir.c: Likewise.
76714         * lib/unicodeio.c: Likewise.
76715         * lib/unsetenv.c: Likewise.
76716         * lib/vasnprintf.c: Likewise.
76717         * lib/vasprintf.c: Likewise.
76718         * lib/wait-process.c: Likewise.
76719         * lib/xallocsa.c: Likewise.
76720         * lib/xsetenv.c: Likewise.
76721         * lib/xstriconv.c: Likewise.
76722
76723 2006-09-13  Simon Josefsson  <jas@extundo.com>
76724
76725         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
76726         that internally, suggested by Ralf Wildenhues
76727         <Ralf.Wildenhues@gmx.de>.
76728
76729 2006-09-13  Simon Josefsson  <jas@extundo.com>
76730
76731         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
76732         @LIBOBJS@.
76733         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76734
76735 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76736
76737         * lib/_fpending.c: Include <config.h> unconditionally, since we no
76738         longer worry about uses that don't define HAVE_CONFIG_H.
76739         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
76740         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
76741         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
76742         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
76743         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
76744         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
76745         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
76746         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
76747         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
76748         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
76749         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
76750         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
76751         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
76752         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
76753         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
76754         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
76755         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
76756         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
76757         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
76758         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
76759         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
76760         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
76761         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
76762         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
76763         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
76764         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
76765         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
76766         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
76767         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
76768         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
76769         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
76770         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
76771         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
76772         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
76773         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
76774         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
76775         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
76776         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
76777         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
76778         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
76779         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
76780         Likewise.
76781
76782 2006-09-13  Eric Blake  <ebb9@byu.net>
76783
76784         * lib/getopt.c: Fix typo in last commit.
76785
76786 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76787
76788         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
76789         dgettext.
76790
76791 2006-09-12  Jim Meyering  <jim@meyering.net>
76792
76793         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
76794         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
76795         Reported by Nelson H. F. Beebe.
76796
76797 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76798
76799         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
76800         program_invocation_name and program_invocation_short_name are
76801         initialized.
76802         * lib/argp-namefrob.h: Move declarations of program_invocation_name
76803         and program_invocation_short_name to argp.h, so they are visible
76804         to user programs.
76805         * lib/argp.h: Likewise
76806
76807 2006-09-10  Bruno Haible  <bruno@clisp.org>
76808
76809         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76810         m4/inttypes_h.m4, m4/uintmax_t.m4.
76811
76812 2006-09-10  Bruno Haible  <bruno@clisp.org>
76813
76814         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
76815         gl_AC_TYPE_UINTMAX_T.
76816
76817 2006-09-10  Bruno Haible  <bruno@clisp.org>
76818
76819         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
76820
76821 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76822
76823         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
76824         convention.  Text proposed by Bruno Haible.
76825         (struct argp_option): Document the use of N_() wrappers.
76826
76827         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
76828         '\v', and translate the two parts separately, instead of feeding
76829         the whole string to gettext.  This allows to exclude
76830         '\v' from the strings visible to the translator by writing doc
76831         strings as N_("..") "\v" N_("..").
76832
76833 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
76834
76835         * config/srclist.txt: Undo latest change; the bug was fixed.
76836
76837 2006-09-09  Bruno Haible  <bruno@clisp.org>
76838
76839         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
76840         assignments if building a library without libtool.
76841         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
76842         in func_emit_lib_Makefile_am.
76843         (func_import): When building a static library libfoo.a, arrange to
76844         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
76845         (func_create_testdir): Likewise.
76846         * modules/gc (configure.ac, Makefile.am): If building statically,
76847         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
76848         * modules/iconvme (configure.ac, Makefile.am): Likewise.
76849         * modules/striconv (configure.ac, Makefile.am): Likewise.
76850         Based on a suggestion by Ralf Wildenhues.
76851
76852 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76853
76854         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76855         Check for unistd.h too, since Autoconf doesn't assume POSIX.
76856         Also:
76857
76858         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76859         Add year_2050_test to catch glibc bug 2821
76860         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76861
76862         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76863         Prefer #ifdef to #if.
76864
76865         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
76866         Return from 'main' instead of calling 'exit'.
76867
76868 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76869
76870         * lib/mktime.c (guess_time_tm): Fix bug where mktime
76871         returned the maximum time_t value rather than (time_t) -1.
76872         Problem originally reported by William Bardwell
76873         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76874
76875         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76876         Moved to here ...
76877         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76878         ... from here.
76879
76880 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76881
76882         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
76883         2821 is fixed.
76884
76885 2006-09-08  Jim Meyering  <jim@meyering.net>
76886
76887         Don't make generated files read-only.  That would bother too many
76888         people.  However, do retain the ability to work when targets are
76889         read-only: remove the destination and temporary files before writing
76890         them (when generated via sed or echo), or by using the -f option for
76891         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
76892         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76893         * modules/byteswap, modules/configmake, modules/fcntl:
76894         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76895         * modules/localcharset, modules/netinet_in, modules/poll:
76896         * modules/stdbool, modules/stdint, modules/sys_select:
76897         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76898
76899 2006-09-08  Jim Meyering  <jim@meyering.net>
76900
76901         Avoid new build failure on FreeBSD 6.0.
76902         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
76903         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
76904         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
76905
76906 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76907
76908         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
76909
76910 2006-09-07  Jim Meyering  <jim@meyering.net>
76911
76912         Fix global typo in last change: use chmod u-w, not chmod u-x.
76913         Spotted by Paul Eggert and Bruce Korb.
76914         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76915         * modules/byteswap, modules/configmake, modules/fcntl:
76916         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76917         * modules/localcharset, modules/netinet_in, modules/poll:
76918         * modules/stdbool, modules/stdint, modules/sys_select:
76919         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76920
76921 2006-09-06  Jim Meyering  <jim@meyering.net>
76922
76923         Make generated files be read-only.
76924         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
76925         Ensure that each generated file is now read-only.
76926         * modules/argz: Likewise.
76927         * modules/arpa_inet: Likewise.
76928         * modules/byteswap: Likewise.
76929         * modules/configmake: Likewise.
76930         * modules/fcntl: Likewise.
76931         * modules/fnmatch: Likewise.
76932         * modules/getopt: Likewise.
76933         * modules/glob: Likewise.
76934         * modules/inttypes: Likewise.
76935         * modules/netinet_in: Likewise.
76936         * modules/poll: Likewise.
76937         * modules/stdbool: Likewise.
76938         * modules/stdint: Likewise.
76939         * modules/sys_select: Likewise.
76940         * modules/sys_socket: Likewise.
76941         * modules/sys_stat: Likewise.
76942         * modules/sysexits: Likewise.
76943         * modules/localcharset: Same as above, but continue using temporary
76944         file named "t-$@" (why different?) rather than the "$@-t" used
76945         everywhere else.
76946
76947         * modules/sysexits (Makefile.am): Replace literal occurrences
76948         of "sysexit.h" more readable, and more consistent, "$@".
76949
76950 2006-09-06  Bruno Haible  <bruno@clisp.org>
76951
76952         * modules/striconv: New file.
76953         * modules/xstriconv: New file.
76954         * MODULES.html.sh (Internationalization functions): Add striconv,
76955         xstriconv.
76956
76957 2006-09-06  Bruno Haible  <bruno@clisp.org>
76958
76959         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
76960         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
76961         not using libtool correctly.
76962
76963 2006-09-06  Bruno Haible  <bruno@clisp.org>
76964
76965         * lib/striconv.h: New file.
76966         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
76967         iconvstring.c.
76968         * lib/xstriconv.h: New file.
76969         * lib/xstriconv.c: New file.
76970
76971 2006-09-06  Bruno Haible  <bruno@clisp.org>
76972
76973         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76974         lib_..._LDFLAGS.
76975
76976 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76977
76978         * lib/argz_.h: Sync from Libtool.
76979
76980         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
76981                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76982
76983         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
76984
76985 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76986
76987         * modules/trim: New file.
76988
76989 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76990
76991         * lib/trim.h: New file.
76992         * lib/trim.c: New file.
76993
76994 2006-09-05  Bruno Haible  <bruno@clisp.org>
76995
76996         * MODULES.html.sh (String handling): Add trim.
76997
76998 2006-09-04  Karl Berry  <karl@gnu.org>
76999
77000         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77001         until next release.
77002
77003 2006-09-03  Bruno Haible  <bruno@clisp.org>
77004
77005         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77006         correctly.
77007
77008 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77009
77010         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77011         not gl_GETLOADAVG.  Omit unneeded semicolons.
77012         Problems reported by Ralf Wildenhues in
77013         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77014         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77015         at the end, which is the usual gnulib style.
77016
77017         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77018         of doing all the work ourselves.
77019         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77020         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77021
77022 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77023
77024         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77025         Problem reported by Ralf Wildenhues in
77026         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77027
77028         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77029         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77030
77031 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77032
77033         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77034         yesterday's patch by changing test -n to test -z.
77035
77036 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77037
77038         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77039         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77040         the former is now obsolescent.
77041
77042         * modules/chdir-long (Depends-on): Add fcntl.
77043
77044 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77045
77046         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77047         obsolescent, and programs should use gnulib instead.
77048         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77049         but with prefixes changed.
77050
77051 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77052
77053         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77054         or stdbool.h, because they might not exist while configuring.
77055
77056         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77057         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77058         does that for us.
77059         (O_DIRECTORY): Remove.
77060
77061 2006-08-31  Eric Blake  <ebb9@byu.net>
77062
77063         * gnulib-tool: Don't let emacs change spaces to TAB.
77064
77065 2006-08-31  Bruno Haible  <bruno@clisp.org>
77066
77067         * gnulib-tool: When calling func_import more than once, do it in a
77068         subshell.
77069         Reported by Eric Blake <ebb9@byu.net>.
77070
77071 2006-08-31  Bruno Haible  <bruno@clisp.org>
77072
77073         * gnulib-tool (nl): Remove variable.
77074         (sed_transform_lib_file): Use more robust test for config-h module.
77075         (func_import): Fix typo in 2006-08-25 patch.
77076
77077 2006-08-31  Bruno Haible  <bruno@clisp.org>
77078
77079         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77080         specified, augment Makefile.am variables instead of assigning them.
77081
77082 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77083
77084         Work around a bug in both the Linux and SunOS 64-bit kernels:
77085         nanosleep mishandles sleeps for longer than 2**31 seconds.
77086         Problem reported by Frank v Waveren in
77087         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77088         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77089         Check for nanosleep bug.
77090         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77091
77092 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77093
77094         Work around a bug in both the Linux and SunOS 64-bit kernels:
77095         nanosleep mishandles sleeps for longer than 2**31 seconds.
77096         Problem reported by Frank v Waveren in
77097         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77098         * lib/nanosleep.c (BILLION): New constant.
77099         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77100         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77101         implementation.
77102
77103 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77104
77105         * modules/nanosleep (Depends-on): Add gettime.
77106
77107 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77108         and Simon Josefsson  <jas@extundo.com>
77109         and Oskar Liljeblad  <oskar@osk.mine.nu>
77110
77111         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77112         * gnulib-tool (func_import): New license type 'unmodifiable license
77113         text'.
77114         * modules/fdl: Use it.  Longer description.
77115         * module/gpl, module/lgpl: New files.
77116
77117 2006-08-30  Jim Meyering  <jim@meyering.net>
77118
77119         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77120         shadowing the parameter.
77121
77122 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77123
77124         Sync from Libtool:
77125
77126         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77127
77128         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77129         sharing with gnulib.  Report by Eric Blake.
77130
77131 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77132
77133         * modules/isapipe: New file.
77134         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77135
77136 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77137
77138         * modules/configmake (Makefile.am): Add a comment, and omit
77139         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77140         by Bruno Haible.
77141
77142 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77143
77144         * m4/isapipe.m4: New file.
77145
77146 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77147
77148         * lib/isapipe.c, lib/isapipe.h: New files.
77149
77150 2006-08-29  Jim Meyering  <jim@meyering.net>
77151
77152         * modules/configmake (Makefile.am): Make configmake.h depend on
77153         Makefile.  Otherwise, a stale configmake.h could hang around.
77154
77155 2006-08-29  Eric Blake  <ebb9@byu.net>
77156
77157         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77158         resolution of upstream bug 3044.
77159
77160 2006-08-29  Bruno Haible  <bruno@clisp.org>
77161
77162         * modules/localcharset (Depends-on): Add configmake.
77163         (Makefile.am): Remove setting of LIBDIR through DEFS.
77164
77165 2006-08-29  Bruno Haible  <bruno@clisp.org>
77166
77167         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77168         defined.
77169
77170 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77171
77172         * modules/fcntl: New file.
77173         * modules/chdir-safer (Depends-on): Add fcntl.
77174         * modules/fts: Likewise.
77175         * modules/mkdir-p: Likewise.
77176
77177         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77178         This undoes the most recent change, since we're now addressing the
77179         problem in a different way.
77180
77181         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77182         into output, since the output might be called Makefile.am even
77183         if $makefile_name is something different.
77184         (func_import): Use $makefile_am rather than
77185         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77186         empty.
77187
77188         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77189
77190 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77191
77192         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77193         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77194         recent change to stdint.m4, since we're now addressing the problem in a
77195         different way.
77196
77197 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77198
77199         * m4/fcntl_h.m4: New file.
77200
77201 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77202
77203         * lib/fcntl_.h: New file.
77204         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77205         the fcntl module.
77206         * lib/dirchownmod.c: Likewise.
77207         * lib/fts.c: Likewise.
77208
77209         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77210         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77211         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77212         just before including <inttypes.h>, to avoid circular inclusion.
77213
77214 2006-08-28  Jim Meyering  <jim@meyering.net>
77215
77216         * doc/visibility.texi: Actually read and correct the grammar of the
77217         sentence affected by yesterday's change.
77218
77219 2006-08-28  Eric Blake  <ebb9@byu.net>
77220
77221         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77222         needs wrapper.
77223
77224 2006-08-28  Eric Blake  <ebb9@byu.net>
77225
77226         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77227
77228 2006-08-28  Eric Blake  <ebb9@byu.net>
77229
77230         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77231
77232 2006-08-28  Bruno Haible  <bruno@clisp.org>
77233
77234         * modules/c-strstr: New file, from GNU gettext.
77235         * MODULES.html.sh (String handling): Add c-strstr.
77236
77237 2006-08-28  Bruno Haible  <bruno@clisp.org>
77238
77239         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77240         macros.
77241         Reported by Eric Blake.
77242
77243 2006-08-28  Bruno Haible  <bruno@clisp.org>
77244
77245         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77246         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77247         * lib/vasprintf.c: Include errno.h, limits.h.
77248         (EOVERFLOW): New fallback definition.
77249         (vasprintf): Test here whether the string length is > INT_MAX.
77250         * lib/vsnprintf.c: Include errno.h, limits.h.
77251         (EOVERFLOW): New fallback definition.
77252         (vsnprintf): Fix bug when generated string was too long for the buffer.
77253         Test here whether the string length is > INT_MAX.
77254
77255 2006-08-28  Bruno Haible  <bruno@clisp.org>
77256
77257         * lib/inttypes_.h (SCNX*): Remove definitions.
77258         Reported by Eric Blake.
77259
77260 2006-08-28  Bruno Haible  <bruno@clisp.org>
77261
77262         * lib/c-strstr.h: New file, from GNU gettext.
77263         * lib/c-strstr.c: New file, from GNU gettext.
77264
77265 2006-08-28  Bruno Haible  <bruno@clisp.org>
77266
77267         * gnulib-tool: Reorder some statements.
77268
77269 2006-08-28  Bruno Haible  <bruno@clisp.org>
77270
77271         * gnulib-tool: New option --makefile-name.
77272         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77273         $makefile_name.
77274         (func_import): Write $makefile_name to the cache file, and read it from
77275         there unless explicitly specified. Use $makefile_name as file name
77276         instead of Makefile.am. Adjust the recommendations accordingly.
77277
77278 2006-08-28  Bruno Haible  <bruno@clisp.org>
77279
77280         * gnulib-tool (func_verify_module): Check against misapplying patch.
77281
77282 2006-08-28  Bruno Haible  <bruno@clisp.org>
77283
77284         * gnulib-tool (func_relativize, func_relconcat): New functions.
77285         Give an error if --local-dir is given with --update.
77286         Remove trailing slashes from $local_gnulib_dir.
77287         (func_import): Store the relativized $local_gnulib_dir in
77288         gnulib-cache.m4, and read it from there if not specified explicitly.
77289
77290 2006-08-28  Bruno Haible  <bruno@clisp.org>
77291
77292         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77293         is the current directory. Respect also $local_gnulib_dir.
77294
77295 2006-08-28  Bruno Haible  <bruno@clisp.org>
77296             Simon Josefsson  <jas@extundo.com>
77297
77298         BeOS portability.
77299         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77300
77301 2006-08-27  Jim Meyering  <jim@meyering.net>
77302
77303         * doc/visibility.texi: Remove duplicate word: "pointer".
77304
77305 2006-08-26  Bruno Haible  <bruno@clisp.org>
77306
77307         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77308         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77309         (Makefile.am): Create inttypes.h from inttypes_.h.
77310         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77311
77312         * modules/imaxabs: New file.
77313
77314         * modules/imaxdiv: New file.
77315
77316 2006-08-26  Bruno Haible  <bruno@clisp.org>
77317
77318         * m4/inttypes.m4: New file.
77319         * m4/_inttypes_h.m4: Remove file.
77320         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77321         PRI_MACROS_BROKEN.
77322         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77323
77324         * m4/imaxabs.m4: New file.
77325
77326         * m4/imaxdiv.m4: New file.
77327
77328 2006-08-26  Bruno Haible  <bruno@clisp.org>
77329
77330         * lib/inttypes_.h: New file.
77331         * lib/inttypes.h: Remove file.
77332         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77333
77334         * lib/imaxabs.c: New file.
77335
77336         * lib/imaxdiv.c: New file.
77337
77338 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77339
77340         New config-h module, so that "make" output needn't be cluttered
77341         by -DHAVE_CONFIG_H.
77342         * MODULES.html.sh (Support for building libraries and executables):
77343         Add config-h.
77344         * modules/config-h: New file.
77345         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77346         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77347         the config-h module is used.
77348
77349         New configmake module, so that "make" output needn't be cluttered
77350         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77351         * MODULES.html.sh (Support for building libraries and executables):
77352         Add configmake.
77353         * modules/configmake: New file.
77354
77355 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77356
77357         * m4/config-h.m4: New file.
77358
77359 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77360
77361         * config/srclist.txt: Add elisp-comp.
77362
77363 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77364
77365         * MODULES.html.sh (Support for building libraries and executables):
77366         Add elisp-comp.
77367         * build-aux/elisp-comp: New file.
77368         * modules/elisp-comp: New file.
77369
77370 2006-08-24  Bruno Haible  <bruno@clisp.org>
77371
77372         * gnulib-tool (func_create_testdir): Use non-default values of
77373         sourcebase and m4base.
77374
77375 2006-08-24  Bruno Haible  <bruno@clisp.org>
77376
77377         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77378         HTML structure.
77379
77380 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77381
77382         * modules/openat (Depends-on): Add lchown.
77383
77384 2006-08-23  Bruno Haible  <bruno@clisp.org>
77385
77386         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77387         of gl_LOCK_EARLY instead of gl_LOCK.
77388
77389 2006-08-23  Bruno Haible  <bruno@clisp.org>
77390
77391         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77392         on OSF/1 to no.
77393         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77394
77395 2006-08-23  Bruno Haible  <bruno@clisp.org>
77396
77397         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77398         as unusable.
77399
77400         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77401         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77402         (gl_LOCK): New macro.
77403
77404 2006-08-22  Simon Josefsson  <jas@extundo.com>
77405
77406         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77407         to md5 module.
77408
77409 2006-08-22  Simon Josefsson  <jas@extundo.com>
77410
77411         * MODULES.html.sh: Add "Support for maintaining and release
77412         projects".
77413
77414         * build-aux/gnupload: New file, from coreutils.
77415
77416 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77417
77418         Avoid the need for AC_LIBSOURCES in m4 macros.
77419         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77420         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77421         * modules/check-version (EXTRA_DIST): Add check-version.h.
77422         * modules/crc (EXTRA_DIST): Add crc.h.
77423         * modules/des (EXTRA_DIST): Add des.h.
77424         * modules/gc (EXTRA_DIST): Add gc.h.
77425         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77426         * modules/getline (EXTRA_DIST): Add getline.h.
77427         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77428         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77429         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77430         * modules/md2 (EXTRA_DIST): Add md2.h.
77431         * modules/md4 (EXTRA_DIST): Add md4.h.
77432         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77433         * modules/read-file (EXTRA_DIST): Add read-file.h.
77434         * modules/readline (EXTRA_DIST): Add readline.h.
77435         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77436         rijndael-api-fst.h.
77437
77438 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77439
77440         * m4/rijndael.m4 (gl_ARCFOUR):
77441         * m4/arctwo.m4 (gl_ARCTWO):
77442         * m4/check-version.m4 (gl_CHECK_VERSION):
77443         * m4/crc.m4 (gl_CRC):
77444         * m4/des.m4 (gl_DES):
77445         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77446         * m4/gc.m4 (gl_GC):
77447         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77448         * m4/getline.m4 (gl_FUNC_GETLINE):
77449         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77450         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77451         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77452         * m4/md2.m4 (gl_MD2):
77453         * m4/md4.m4 (gl_MD4):
77454         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77455         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77456         * m4/readline.m4 (gl_FUNC_READLINE):
77457         * m4/rijndael.m4 (gl_RIJNDAEL):
77458         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77459         to get the necessary .h files and whatnot.
77460
77461 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77462
77463         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77464         gnulib rather than the other way around.
77465         * config/srclistvars.sh (COREUTILS): Remove.
77466
77467 2006-08-22  Jim Meyering  <jim@meyering.net>
77468
77469         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77470
77471         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77472
77473 2006-08-22  Eric Blake  <ebb9@byu.net>
77474
77475         * modules/regexprops-generic: New file.
77476         * MODULES.html.sh (Support for building documentation): List it.
77477
77478 2006-08-22  Eric Blake  <ebb9@byu.net>
77479
77480         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77481         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77482         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77483         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77484
77485 2006-08-22  Bruno Haible  <bruno@clisp.org>
77486
77487         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77488         and lib_LTLIBRARIES like the other lib_* variables.
77489
77490 2006-08-22  Bruno Haible  <bruno@clisp.org>
77491
77492         * build-aux/x-to-1.in: New file, from GNU gettext.
77493
77494 2006-08-22  Bruno Haible  <bruno@clisp.org>
77495
77496         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77497         <utmpx.h> exists.
77498
77499 2006-08-22  Bruno Haible  <bruno@clisp.org>
77500
77501         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77502         <utmpx.h> exists.
77503
77504 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77505
77506         BeOS portability.
77507         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77508         exist.
77509         Problem reported by Bruno Haible.
77510
77511 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77512
77513         Avoid the need for AC_LIBSOURCES in m4 macros.
77514         * modules/acl (EXTRA_DIST): Add acl.h.
77515         * modules/argmatch (Files): Add m4/argmatch.m4.
77516         (configure.ac): Add gl_ARGMATCH.
77517         (EXTRA_DIST): Renamed from lib_SOURCES, for
77518         consistency with the other modules.  Remove argmatch.c.
77519         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77520         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77521         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77522         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77523         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77524         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77525         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77526         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77527         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77528         * modules/closeout (EXTRA_DIST): Add closeout.h.
77529         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77530         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77531         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77532         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77533         dirname.h; remove basename.c and stripslash.c.
77534         * modules/exclude (EXTRA_DIST): Add exclude.h.
77535         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77536         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77537         * modules/file-type (EXTRA_DIST): Add file-type.h.
77538         * modules/filemode (EXTRA_DIST): Add filemode.h.
77539         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77540         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77541         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77542         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77543         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77544         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77545         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77546         * modules/getdate (EXTRA_DIST): Add getdate.c.
77547         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77548         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77549         * modules/getpass (EXTRA_DIST): Add getpass.h.
77550         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77551         * modules/group-member (EXTRA_DIST): Add group-member.h.
77552         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77553         * modules/hash (EXTRA_DIST): Add hash.h.
77554         * modules/human (EXTRA_DIST): Add human.h.
77555         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77556         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77557         * modules/lchown (EXTRA_DIST): Add lchown.h.
77558         * modules/long-options (EXTRA_DIST): Add long-options.h.
77559         * modules/lstat (EXTRA_DIST): Add lstat.h.
77560         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77561         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77562         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77563         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77564         * modules/memxor (EXTRA_DIST): Add memxor.h.
77565         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77566         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77567         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77568         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77569         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77570         * modules/physmem (EXTRA_DIST): Add physmem.h.
77571         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77572         * modules/posixver (EXTRA_DIST): Add posixver.h.
77573         * modules/quote (EXTRA_DIST): Add quote.h.
77574         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77575         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77576         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77577         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77578         regex_internal.h regexec.c.
77579         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77580         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77581         * modules/same (EXTRA_DIST): Add same.h.
77582         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77583         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77584         * modules/savedir (EXTRA_DIST): Add savedir.h.
77585         * modules/sha1 (EXTRA_DIST): Add sha1.h.
77586         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
77587         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
77588         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
77589         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
77590         * modules/strdup (EXTRA_DIST): Add strdup.h.
77591         * modules/strftime (EXTRA_DIST): Add strftime.h.
77592         * modules/strndup (EXTRA_DIST): Add strndup.h.
77593         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
77594         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
77595         * modules/time_r (EXTRA_DIST): Add time_r.h.
77596         * modules/timespec (EXTRA_DIST): Add timespec.h.
77597         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77598         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
77599         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
77600         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
77601         * modules/userspec (EXTRA_DIST): Add userspec.h.
77602         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
77603         * modules/utimens (EXTRA_DIST): Add utimens.h.
77604         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
77605         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
77606         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
77607         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
77608         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
77609         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
77610         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
77611         * modules/yesno (EXTRA_DIST): Add yesno.h.
77612
77613 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77614
77615         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
77616
77617         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
77618         * m4/dev-ino.m4, same-inode.m4: Remove.
77619
77620         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
77621         * m4/acl.m4 (AC_FUNC_ACL):
77622         * m4/backupfile.m4 (gl_BACKUPFILE):
77623         * m4/c-strtod.m4 (gl_C99_STRTOLD):
77624         * m4/canon-host.m4 (gl_CANON_HOST):
77625         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77626         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
77627         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
77628         * m4/cloexec.m4 (gl_CLOEXEC):
77629         * m4/close-stream.m4 (gl_CLOSE_STREAM):
77630         * m4/closeout.m4 (gl_CLOSEOUT):
77631         * m4/dirfd.m4 (gl_FUNC_DIRFD):
77632         * m4/dirname.m4 (gl_DIRNAME):
77633         * m4/exclude.m4 (gl_EXCLUDE):
77634         * m4/exitfail.m4 (gl_EXITFAIL):
77635         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
77636         * m4/file-type.m4 (gl_FILE_TYPE):
77637         * m4/filemode.m4 (gl_FILEMODE):
77638         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
77639         * m4/fpending.m4 (gl_FUNC_FPENDING):
77640         * m4/fprintftime.m4 (gl_FPRINTFTIME):
77641         * m4/fts.m4 (gl_FUNC_FTS):
77642         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
77643         * m4/getdate.m4 (gl_GETDATE):
77644         * m4/gethrxtime.m4 (gl_GETHRXTIME):
77645         * m4/getpagesize.m4 (gl_GETPAGESIZE):
77646         * m4/getpass.m4 (gl_FUNC_GETPASS):
77647         * m4/gettime.m4 (gl_GETTIME):
77648         * m4/getugroups.m4 (gl_GETUGROUPS):
77649         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
77650         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
77651         * m4/hard-locale.m4 (gl_HARD_LOCALE):
77652         * m4/hash.m4 (gl_HASH):
77653         * m4/idcache.m4 (gl_IDCACHE):
77654         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
77655         * m4/lchown.m4 (gl_FUNC_LCHOWN):
77656         * m4/long-options.m4 (gl_LONG_OPTIONS):
77657         * m4/lstat.m4 (gl_FUNC_LSTAT):
77658         * m4/md5.m4 (gl_MD5):
77659         * m4/memcasecmp.m4 (gl_MEMCASECMP):
77660         * m4/memcoll.m4 (gl_MEMCOLL):
77661         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
77662         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
77663         * m4/memxor.m4 (gl_MEMXOR):
77664         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
77665         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
77666         * m4/modechange.m4 (gl_MODECHANGE):
77667         * m4/mountlist.m4 (gl_MOUNTLIST):
77668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
77669         * m4/openat.m4 (gl_FUNC_OPENAT):
77670         * m4/pathmax.m4 (gl_PATHMAX):
77671         * m4/physmem.m4 (gl_PHYSMEM):
77672         * m4/posixtm.m4 (gl_POSIXTM):
77673         * m4/posixver.m4 (gl_POSIXVER):
77674         * m4/quote.m4 (gl_QUOTE):
77675         * m4/quotearg.m4 (gl_QUOTEARG):
77676         * m4/readtokens.m4 (gl_READTOKENS):
77677         * m4/readutmp.m4 (gl_READUTMP):
77678         * m4/regex.m4 (gl_REGEX):
77679         * m4/safe-read.m4 (gl_SAFE_READ):
77680         * m4/safe-write.m4 (gl_SAFE_WRITE):
77681         * m4/same.m4 (gl_SAME):
77682         * m4/save-cwd.m4 (gl_SAVE_CWD):
77683         * m4/savedir.m4 (gl_SAVEDIR):
77684         * m4/settime.m4 (gl_SETTIME):
77685         * m4/sha1.m4 (gl_SHA1):
77686         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
77687         * m4/stat-macros.m4 (gl_STAT_MACROS):
77688         * m4/stat-time.m4 (gl_STAT_TIME):
77689         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
77690         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
77691         * m4/strdup.m4 (gl_FUNC_STRDUP):
77692         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
77693         * m4/strndup.m4 (gl_FUNC_STRNDUP):
77694         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
77695         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
77696         * m4/time_r.m4 (gl_TIME_R):
77697         * m4/timespec.m4 (gl_TIMESPEC):
77698         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
77699         * m4/unlinkdir.m4 (gl_UNLINKDIR):
77700         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
77701         * m4/userspec.m4 (gl_USERSPEC):
77702         * m4/utimecmp.m4 (gl_UTIMECMP):
77703         * m4/utimens.m4 (gl_UTIMENS):
77704         * m4/xalloc.m4 (gl_XALLOC):
77705         * m4/xgetcwd.m4 (gl_XGETCWD):
77706         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
77707         * m4/xreadlink.m4 (gl_XREADLINK):
77708         * m4/xstrtod.m4 (gl_XSTRTOD):
77709         * m4/yesno.m4 (gl_YESNO):
77710         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77711         to get the necessary .h files and whatnot.
77712
77713 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
77714             Bruno Haible  <bruno@clisp.org>
77715
77716         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
77717         /bin/sh understanding of '!' conditional negation.
77718
77719 2006-08-21  Jim Meyering  <jim@meyering.net>
77720
77721         * modules/openat (Depends-on): Really alphabetize.
77722
77723         * modules/acl (Depends-on): Add error and quote.
77724
77725         * check-module (find_included_lib_files): Add at-func.c to the
77726         ok-to-include-more-than-once white list.
77727
77728         * modules/openat (Depends-on): Add lstat.  Alphabetize.
77729
77730 2006-08-21  Bruno Haible  <bruno@clisp.org>
77731
77732         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77733         Emit a pkgdata_DATA variable only if some snippets add contents to it.
77734         Reported by Martin Lambers <marlam@marlam.de>.
77735
77736 2006-08-21  Bruno Haible  <bruno@clisp.org>
77737
77738         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
77739         specify an installation location, don't emit a noinst_LIBRARIES or
77740         noinst_LTLIBRARIES assignment.
77741
77742 2006-08-21  Bruno Haible  <bruno@clisp.org>
77743
77744         BeOS portability.
77745         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
77746         BeOS has mbrtowc() but no <wctype.h>.
77747
77748 2006-08-21  Bruno Haible  <bruno@clisp.org>
77749
77750         BeOS portability.
77751         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
77752         exist.
77753
77754 2006-08-21  Bruno Haible  <bruno@clisp.org>
77755
77756         BeOS portability.
77757         * lib/mbchar.h: Include <wctype.h> only if it exists.
77758
77759 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77760
77761         Remove files that are no longer needed by their respective modules.
77762         * m4/obstack.m4: Remove.
77763         * m4/strerror_r.m4: Remove.
77764         * m4/uint32_t.m4: Remove.
77765         * m4/uintptr_t.m4: Remove.
77766         * m4/ullong_max.m4: Remove.
77767         * m4/xstrtoimax.m4: Remove.
77768         * m4/xstrtoumax.m4: Remove.
77769
77770         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
77771         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
77772         dependencies now capture this.
77773
77774         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
77775         Do not use AC_LIBSOURCES, since gnulib modules now do this.
77776         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
77777         * m4/human.m4 (gl_HUMAN): Likewise.
77778         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
77779         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
77780
77781         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
77782
77783         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
77784         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
77785         stdint.
77786         * m4/human.m4 (gl_HUMAN): Likewise.
77787         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
77788         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
77789         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77790         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77791         * m4/xstrtol (gl_XSTRTOL): Likewise.
77792
77793         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
77794         AC_TYPE_LONG_LONG_INT.
77795         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77796         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
77797         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
77798         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77799
77800         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
77801         on stdbool.
77802
77803         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
77804         (gl_PREREQ_XSTRTOUL): Remove.
77805
77806         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
77807
77808         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
77809         mode.
77810
77811 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77812
77813         Add and change modules to make it easier for coreutils to use
77814         gnulib-tool.
77815         * modules/backupfile (Files): Remove m4/d-ino.m4.
77816         (Depends-on): Add d-ino.
77817         * modules/cycle-check (Depends-on): Add stdint.
77818         (lib_SOURCES): Add cycle-check.h.
77819         * modules/d-ino: New module.
77820         * modules/d-type: New module.
77821         * modules/error (Files): Remove m4/strerror_r.m4.
77822         * modules/filemode (Files): Add m4/st_dm_mode.m4.
77823         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77824         m4/inttypes_h.m4, m4/uintmax_t.m4.
77825         (Depends-on): Add stdint.
77826         (lib_SOURCES): Add fsusage.h.
77827         * modules/getcwd (Files): Remove d-ino.m4.
77828         (Depends-on): Add d-ino.
77829         * modules/getndelim2 (Depends-on): Add stdint.
77830         * modules/glob (Files): Remove m4/d-type.m4.
77831         (Depends-on): Add d-type.
77832         * modules/host-os: New module.
77833         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
77834         m4/inttypes_h.m4, m4/uintmax_t.m4.
77835         * Depends-on: Add stdint.
77836         (lib_SOURCES): Add human.h.
77837         * modules/inttostr (Files): Remove m4/intmax_t.m4,
77838         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
77839         m4/uintmax_t.m4, m4/ulonglong.m4.
77840         (Depends-on): Add stdint.
77841         (EXTRA_DIST): Add inttostr.h.
77842         * modules/lchmod: New module.
77843         * modules/link-follow: New module.
77844         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
77845         (Depends-on): Add lchmod.
77846         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
77847         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
77848         (Depends-on): Add stdint.
77849         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
77850         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
77851         (Depends-on): Add stdint.
77852         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
77853         * modules/perl: New module.
77854         * modules/regex (Depends-on): Add stdint.
77855         * modules/rmdir-errno: New module.
77856         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77857         m4/intmax_t.m4.
77858         (Depends-on): Add stdint.
77859         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77860         m4/uintmax_t.m4.
77861         (Depends-on): Add stdint.
77862         * modules/unlink-busy: New module.
77863         * modules/utimecmp (Depends-on): Add stdint.
77864         * modules/uptime: New module.
77865         * modules/winsz-ioctl: New module.
77866         * modules/winsz-termios: New module.
77867         * modules/xnanosleep (Depends-on): Add nanosleep.
77868         * modules/ullong_max: Remove.
77869         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
77870         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
77871         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
77872         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
77873         (Depends-on): Add inttypes.
77874         (lib_SOURCES): Add xstrtol.h.
77875         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
77876         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
77877         * MODULES.html.sh: Move 'assert' into the assert section.
77878         Move 'dummy' into the linking section.
77879         Remove ullong_max.
77880         Add section for compatibility checks for POSIX:2001 functions,
77881         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
77882         winsz-ioctl, and winsz-termios into it.
77883         Add lchmod.
77884         Add top-level Misc section and put host-os, perl, and uptime
77885         into it.
77886
77887 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77888
77889         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
77890         now assume the stdint module.  Do not include inttypes.h.
77891         * lib/fsusage.h: Likewise.
77892         * lib/getndelim2.c: Likewise.
77893         * lib/human.h: Likewise.
77894         * lib/inttostr.h: Likewise.
77895         * lib/obstack.c: Likewise.
77896         * lib/regex_internal.h: Likewise.
77897         * lib/tempname.c: Likewise.
77898         * lib/utimecmp.c: Likewise.
77899         * lib/xstrtol.h: Likewise.
77900
77901         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
77902
77903         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
77904         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
77905         * lib/xtime.h: Likewise.
77906
77907 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77908
77909         * modules/openat (Files): Add lib/fchmodat.c.
77910         Fixes problem reported by Jay Youngman.
77911
77912 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77913
77914         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
77915         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
77916
77917 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
77918             Bruno Haible  <bruno@clisp.org>
77919
77920         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
77921         and is a script that invokes bison. Tighten the code. Add comments.
77922
77923 2006-08-18  Jim Meyering  <jim@meyering.net>
77924
77925         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
77926         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
77927         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
77928         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
77929
77930 2006-08-18  Bruno Haible  <bruno@clisp.org>
77931
77932         * modules/bison-i18n: New file.
77933         * MODULES.html.sh (Internationalization functions): Add it.
77934
77935 2006-08-18  Bruno Haible  <bruno@clisp.org>
77936
77937         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
77938         sys/statvfs.h. When getmntinfo was found, check its declaration and
77939         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
77940
77941 2006-08-18  Bruno Haible  <bruno@clisp.org>
77942
77943         * m4/bison-i18n.m4: New file, from bison.
77944
77945 2006-08-18  Bruno Haible  <bruno@clisp.org>
77946
77947         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
77948         (ME_DUMMY): Treat "kernfs" as a dummy.
77949         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
77950
77951 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77952
77953         Update from coreutils.
77954
77955         2006-08-15  Jim Meyering  <jim@meyering.net>
77956
77957         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
77958
77959         2006-01-17  Jim Meyering  <jim@meyering.net>
77960
77961         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
77962
77963         2006-01-11  Jim Meyering  <jim@meyering.net>
77964
77965         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
77966         Check for the lchmod function.
77967
77968 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77969
77970         Update from coreutils.
77971
77972         * lib/__fpending.h: Add copyright notice.
77973         * lib/fprintftime.h: Likewise.
77974         * lib/savedir.c: Use (C) in copyright notice.
77975         * lib/savedir.h: Likewise.
77976
77977         2006-08-15  Jim Meyering  <jim@meyering.net>
77978
77979         * lib/at-func.c: New file, with the logic of all emulated at-functions.
77980         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
77981         in support of the EXPECTED_ERRNO macro.
77982         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
77983         definitions.  Instead, define the appropriate symbols and include
77984         "at-func.c".
77985         * lib/mkdirat.c (mkdirat): Likewise.
77986         * lib/fchmodat.c (fchmodat): Likewise.
77987         (ENOSYS): Remove definition.
77988         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
77989         it.  Don't include "unistd--.h" -- it wasn't ever used.
77990
77991         2006-01-17  Jim Meyering  <jim@meyering.net>
77992
77993         Rewrite fts.c not to change the current working directory,
77994         by using openat, fstatat, fdopendir, etc..
77995
77996         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
77997         (HAVE_OPENAT_SUPPORT): Define.
77998         [_LIBC] (fchdir): Don't undef or define; no longer used.
77999         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78000         Now, this `function' always succeeds, and consumes its file descriptor
78001         parameter -- so callers must not close such FDs.  Update callers.
78002         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78003         (diropen): Add parameter, SP.  Adjust all callers.
78004         Implement using diropen_fd, rather than open.
78005         (fts_open): Initialize new member, fts_cwd_fd.
78006         Remove fts_rft-setting code.
78007         (fts_close): Close fts_cwd_fd, if necessary.
78008         (__opendir2): Define in terms of opendir or opendirat,
78009         depending on whether the FST_NOCHDIR flag is set.
78010         (fts_build): Since fts_safe_changedir consumes its FD, and since
78011         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78012         and close the dup'd file descriptor upon failure.
78013         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78014         (fts_safe_changedir): Tweak semantics to reflect that this function
78015         now calls cwd_advance_fd and hence consumes its FD argument.
78016         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78017         [struct FTS] (fts_rft): Remove now-unused member.
78018         [struct FTS] (fts_cycle.state): Improve comment.
78019
78020         * lib/openat.c (openat_needs_fchdir): New function.
78021         * lib/openat.h (openat_needs_fchdir): Declare it.
78022
78023 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78024
78025         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78026         Problem and fix reported by Pádraig Brady in
78027         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78028
78029 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78030
78031         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78032
78033 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78034
78035         * lib/memcoll.c (memcoll): Optimize for the common case where the
78036         arguments are bytewise equal.
78037
78038 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78039
78040         * doc/regexprops-generic.texi: Add a copyright notice.
78041
78042 2006-08-15  Bruno Haible  <bruno@clisp.org>
78043
78044         * modules/tmpdir (License): Change to LGPL.
78045
78046 2006-08-15  Bruno Haible  <bruno@clisp.org>
78047
78048         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78049         module.
78050
78051 2006-08-14  Simon Josefsson  <jas@extundo.com>
78052
78053         * config/srclist.txt: Add gnupload.
78054
78055 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78056
78057         Change copyright notice from LGPL 2 to GPL 2, since that's the
78058         standard form used in the gnulib repository.
78059         * tests/test-lock.c: Likewise.
78060         * tests/test-stdint.c: Likewise.
78061         * tests/test-tls.c: Likewise.
78062
78063         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78064         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78065         Add copyright notice.
78066
78067         * check-module: Add copyright notice.  Output a copyright
78068         notice if "--version" is specified.
78069         * modules/COPYING: New file.
78070         * tests/test-getaddrinfo.c: Add copyright notice.
78071         * tests/test-verify.c: Likewise.
78072
78073 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78074
78075         Change copyright notice from LGPL 2 to GPL 2, since that's the
78076         standard form used in the gnulib repository.
78077         * lib/lock.c: LGPL -> GPL.
78078         * lib/lock.h: Likewise.
78079         * lib/strnlen1.c: Likewise.
78080         * lib/strnlen1.h: Likewise.
78081         * lib/tls.c: Likewise.
78082         * lib/tls.h: Likewise.
78083         * lib/tmpdir.c: Likewise.
78084
78085         * lib/TODO: Remove; this belongs only in coreutils.
78086
78087 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78088
78089         Add copyright notices to long-enough files that lack them, since
78090         otherwise the files aren't clearly free.  Use the same notice that
78091         getdate.texi already uses.
78092         * doc/alloca-opt.texi: Add copyright notice.
78093         * doc/alloca.texi: Likewise.
78094         * doc/ctime.texi: Likewise.
78095         * doc/functions.texi: Likewise.
78096         * doc/gcd.texi: Likewise.
78097         * doc/gnulib-tool.texi: Likewise.
78098         * doc/inet_ntoa.texi: Likewise.
78099         * doc/visibility.texi: Likewise.
78100
78101         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78102         * doc/quote.texi: Add copyright notice.
78103
78104         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78105         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78106         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78107         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78108         is now obsolete, and give a pointer to the Sun list.
78109         Add copyright notice.
78110
78111 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78112
78113         * config/srclistvars.sh: Add copyright notice.
78114
78115 2006-08-14  Eric Blake  <ebb9@byu.net>
78116
78117         Import the following change from libc:
78118
78119         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78120
78121         Upstream bug 2997.
78122         * lib/misc/error.c: Add space between program name and message if file
78123         name is missing.
78124
78125 2006-08-12  Karl Berry  <karl@gnu.org>
78126
78127         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78128         remove, these originate in gnulib now.
78129
78130 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78131
78132         * doc/Makefile (standards.info standards.html standards.dvi):
78133         Also depend on make-stds.texi.
78134
78135 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78136
78137         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78138         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78139
78140         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78141         in wchar_t.  Problem reported by Eric Blake.
78142
78143         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78144         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78145         Also, help the compiler to keep LEN in a register.
78146
78147 2006-08-11  Eric Blake  <ebb9@byu.net>
78148
78149         * users.txt: Sort.  Add tar.
78150
78151 2006-08-11  Bruno Haible  <bruno@clisp.org>
78152
78153         * users.txt: New file.
78154
78155 2006-08-11  Bruno Haible  <bruno@clisp.org>
78156
78157         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78158         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78159
78160 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78161
78162         * modules/snprintf (Depends-on): Remove minmax.
78163         (Maintainer): Add self and Bruno.
78164
78165 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78166
78167         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78168         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78169         (EOVERFLOW): Define if the system does not.
78170         Do not include "minmax.h"; it wasn't used.
78171         (snprintf): Don't assume size_t promotes to an unsigned type.
78172         Fix bug when generated string was too long for the buffer: the
78173         buffer's contents are supposed to be the initial prefix of the
78174         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78175         exceeds INT_MAX; do the check ourselves.
78176
78177         Import the following changes from libc:
78178
78179         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78180
78181         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78182         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78183         set wc to the byte which couldn't be converted.
78184         (re_string_reconstruct): Don't clear valid_raw_len before calling
78185         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78186         tip_context using re_string_context_at.
78187
78188         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78189
78190         * lib/posix/regex.h: g++ still cannot handled [restrict].
78191
78192         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78193
78194         * lib/posix/regex.h: Remove special handling for VMS.
78195
78196 2006-08-10  Jim Meyering  <jim@meyering.net>
78197
78198         * modules/same-inode: New module.
78199         * modules/dev-ino: New module.
78200         * modules/cycle-check: Depend on these modules, rather than simply
78201         including their .h files.
78202         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78203         required via m4/cycle-check.m4.
78204         * modules/same: Depend on new same-inode module, rather than
78205         including same-inode.h.
78206         * modules/chdir-safer: New file.
78207
78208         * modules/chown (Depends-on): Add stat-macros.
78209
78210 2006-08-10  Jim Meyering  <jim@meyering.net>
78211
78212         * m4/cycle-check.m4: New file.
78213         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78214         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78215
78216 2006-08-10  Eric Blake  <ebb9@byu.net>
78217
78218         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78219         in from original proposal.
78220
78221 2006-08-10  Eric Blake  <ebb9@byu.net>
78222         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78223
78224         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78225         namespace.
78226
78227 2006-08-10  Bruno Haible  <bruno@clisp.org>
78228
78229         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78230         as well.
78231
78232 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78233
78234         Sync from coreutils.
78235
78236         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78237
78238         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78239         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78240
78241 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78242
78243         * modules/restrict: Remove; no longer needed now that we assume
78244         Autoconf 2.59 or later.
78245         * MODULES.html.sh: Remove 'restrict'.
78246         * modules/argp (Depends-on): Remove 'restrict'.
78247         * modules/base64 (Depends-on): Likewise.
78248         * modules/gc (Depends-on): Likewise.
78249         * modules/getaddrinfo (Depends-on): Likewise.
78250         * modules/glob (Depends-on): Likewise.
78251         * modules/inet_ntop (Depends-on): Likewise.
78252         * modules/inet_pton (Depends-on): Likewise.
78253         * modules/memxor (Depends-on): Likewise.
78254         * modules/regex (Depends-on): Likewise.
78255         * modules/strtok_r (Depends-on): Likewise.
78256         * modules/time_r (Depends-on): Likewise.
78257
78258 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78259
78260         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78261         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78262         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78263         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78264         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78265         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78266         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78267         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78268
78269         Merge from coreutils.
78270         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78271         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78272         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78273         * m4/time_r.m4 (gl_TIME_R): Likewise.
78274
78275 2006-08-09  Karl Berry  <karl@gnu.org>
78276
78277         * config/srclist.txt: no more gettext-tools, per Bruno.
78278
78279 2006-08-08  Eric Blake  <ebb9@byu.net>
78280
78281         * modules/verror: New module.
78282         * MODULES.html.sh: Document it.
78283
78284 2006-08-08  Eric Blake  <ebb9@byu.net>
78285
78286         * lib/verror.h, lib/verror.c: New files.
78287
78288 2006-08-08  Eric Blake  <ebb9@byu.net>
78289
78290         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78291         verror_at_line output complies with GNU Coding Standards even when
78292         file is NULL.
78293
78294 2006-08-07  Bruno Haible  <bruno@clisp.org>
78295
78296         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78297         versions of AIX.
78298         Reported by Ralf Wildenhues.
78299
78300 2006-08-07  Bruno Haible  <bruno@clisp.org>
78301
78302         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78303         in an AC_DEFUN. Needed so that the autoconf snippets can use
78304         AC_REQUIRE.
78305
78306 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78307
78308         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78309         Initialize pkgdata_DATA.
78310         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78311         overriding it.
78312
78313 2006-08-06  Eric Blake  <ebb9@byu.net>
78314
78315         * lib/error.h: Fold in some upstream changes from glibc.
78316         * lib/error.c: Likewise.
78317
78318 2006-08-04  Bruno Haible  <bruno@clisp.org>
78319
78320         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78321         Make the mostlyclean-local rule depend on mostlyclean-generic.
78322         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78323
78324 2006-07-31  Bruno Haible  <bruno@clisp.org>
78325
78326         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78327         <stdlib.h>, <string.h>.
78328
78329 2006-07-30  Bruno Haible  <bruno@clisp.org>
78330
78331         * modules/readlink (License): Change to LGPL.
78332
78333 2006-07-30  Bruno Haible  <bruno@clisp.org>
78334
78335         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78336         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78337         set PKGDATADIR to point to it.
78338
78339 2006-07-30  Bruno Haible  <bruno@clisp.org>
78340
78341         * modules/csharpexec (configure.ac): Comment out macro invocation.
78342         * modules/javaexec (configure.ac): Likewise.
78343         * modules/javacomp-script (configure.ac): Likewise.
78344
78345         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78346
78347 2006-07-30  Bruno Haible  <bruno@clisp.org>
78348
78349         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78350         linked-list.
78351
78352 2006-07-30  Bruno Haible  <bruno@clisp.org>
78353
78354         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78355
78356 2006-07-30  Bruno Haible  <bruno@clisp.org>
78357
78358         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78359         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78360         get removed.
78361
78362 2006-07-29  Bruno Haible  <bruno@clisp.org>
78363
78364         Make it possible for gnulib-tool to work with locally modified or
78365         augmented gnulib repositories.
78366         * gnulib-tool (func_usage): Document --local-dir option.
78367         (local_gnulib_dir): New variable.
78368         Handle --local-dir option.
78369         (func_lookup_file): New function.
78370         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78371         (func_get_description, func_get_filelist, func_get_description,
78372         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78373         func_get_automake_snippet, func_get_include_directive,
78374         func_get_license, func_get_maintainer): Use func_lookup_file.
78375         (func_import, func_create_testdir): Use func_lookup_file.
78376
78377 2006-07-29  Bruno Haible  <bruno@clisp.org>
78378
78379         * modules/setenv (Depends-on): Add unistd.
78380
78381 2006-07-29  Bruno Haible  <bruno@clisp.org>
78382
78383         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78384
78385 2006-07-29  Bruno Haible  <bruno@clisp.org>
78386
78387         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78388
78389 2006-07-29  Bruno Haible  <bruno@clisp.org>
78390
78391         * gnulib-tool (import, update): If there is no Makefile.am, look at
78392         aclocal.m4, instead of bailing out.
78393
78394 2006-07-29  Bruno Haible  <bruno@clisp.org>
78395
78396         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78397         Categorize the options by when they are useful.
78398
78399 2006-07-29  Bruno Haible  <bruno@clisp.org>
78400
78401         * gnulib-tool (func_usage): Document option --no-libtool.
78402         Handle option --no-libtool.
78403         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78404         for changed semantics of $libtool variable.
78405         (func_import): Likewise. If libtool is not used, show this through
78406         an option --no-libtool.
78407         (func_create_testdir): Update.
78408
78409 2006-07-29  Bruno Haible  <bruno@clisp.org>
78410
78411         * gnulib-tool (func_import): Extend error message about missing
78412         --doc-base.
78413
78414 2006-07-29  Bruno Haible  <bruno@clisp.org>
78415
78416         * gnulib-tool (func_import): Don't create the $docbase directory if
78417         there is no file to store there.
78418
78419 2006-07-29  Bruno Haible  <bruno@clisp.org>
78420
78421         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78422         relevant, look for configure.ac there, not in the current directory.
78423         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78424
78425 2006-07-29  Bruno Haible  <bruno@clisp.org>
78426
78427         * gnulib-tool (SORT): New variable.
78428         (func_usage): Undocument --assume-autoconf option.
78429         Remove --assume-autoconf option handling.
78430         (autoconf_minversion): Determine from the contents of configure.ac.
78431         (func_import): Remove autoconf_minversion handling.
78432         Suggested by Eric Blake.
78433
78434 2006-07-29  Bruno Haible  <bruno@clisp.org>
78435
78436         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78437
78438 2006-07-29  Bruno Haible  <bruno@clisp.org>
78439
78440         * config/srclist.txt (*setenv.[ch]): Remove rules.
78441
78442 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78443
78444         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78445
78446 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78447
78448         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78449         arpa/inet.h.
78450
78451 2006-07-28  Simon Josefsson  <jas@extundo.com>
78452
78453         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78454         * modules/inet_pton (Depends-on): Likewise.
78455
78456 2006-07-28  Simon Josefsson  <jas@extundo.com>
78457
78458         * m4/netinet_in_h.m4: New file.
78459
78460 2006-07-28  Simon Josefsson  <jas@extundo.com>
78461
78462         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78463         #include's.
78464
78465 2006-07-28  Simon Josefsson  <jas@extundo.com>
78466
78467         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78468         #include's.
78469
78470 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78471
78472         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78473         setgid on directories only if they set these bits.
78474         * lib/modechange.h: Remove obsolete comment about masks.
78475
78476 2006-07-28  Eric Blake  <ebb9@byu.net>
78477
78478         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78479         macro expansion.
78480
78481 2006-07-28  Bruno Haible  <bruno@clisp.org>
78482
78483         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78484
78485 2006-07-28  Bruno Haible  <bruno@clisp.org>
78486
78487         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78488
78489 2006-07-28  Bruno Haible  <bruno@clisp.org>
78490
78491         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78492         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78493         Define fallbacks.
78494         Avoids link error on FreeBSD 4.x.
78495         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78496
78497         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78498         encoding.
78499         * lib/mbswidth.c (iswcntrl): Likewise.
78500
78501 2006-07-27  Bruno Haible  <bruno@clisp.org>
78502
78503         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78504         test.
78505
78506 2006-07-27  Bruno Haible  <bruno@clisp.org>
78507
78508         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78509         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78510         defined.
78511
78512 2006-07-26  Eric Blake  <ebb9@byu.net>
78513
78514         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78515
78516 2006-07-26  Eric Blake  <ebb9@byu.net>
78517
78518         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78519         like mingw that lack mkstemp.
78520         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78521         avoid compilation warning on mingw.
78522
78523 2006-07-26  Bruno Haible  <bruno@clisp.org>
78524
78525         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78526         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78527         INT_FAST*_MIN, INTPTR_MIN.
78528
78529 2006-07-25  Bruno Haible  <bruno@clisp.org>
78530
78531         * modules/version-etc (Depends-on): Add stdarg.
78532
78533 2006-07-25  Bruno Haible  <bruno@clisp.org>
78534
78535         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78536         complex commands.
78537
78538 2006-07-25  Bruno Haible  <bruno@clisp.org>
78539
78540         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78541         defined in <stdarg.h> or config.h.
78542
78543 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78544
78545         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78546         (gl_STDIO_SAFER): Remove.
78547
78548 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78549
78550         * MODULES.html.sh (File stream based Input/Output):
78551         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78552         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78553         * modules/fopen-safer, modules/tmpfile-safer: New files.
78554         * modules/stdio-safer: Remove.
78555
78556 2006-07-24  Bruno Haible  <bruno@clisp.org>
78557
78558         * modules/tmpdir: New file.
78559         * MODULES.html.sh (File system functions): Add it.
78560
78561 2006-07-24  Bruno Haible  <bruno@clisp.org>
78562
78563         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78564         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78565
78566 2006-07-24  Bruno Haible  <bruno@clisp.org>
78567
78568         * modules/clean-temp: New file.
78569
78570 2006-07-24  Bruno Haible  <bruno@clisp.org>
78571
78572         * m4/tmpdir.m4: New file, from GNU gettext.
78573
78574 2006-07-24  Bruno Haible  <bruno@clisp.org>
78575
78576         * lib/tmpdir.h: New file, from GNU gettext.
78577         * lib/tmpdir.c: New file, from GNU gettext.
78578
78579 2006-07-24  Bruno Haible  <bruno@clisp.org>
78580
78581         * lib/clean-temp.h: New file, from GNU gettext.
78582         * lib/clean-temp.c: New file, from GNU gettext.
78583
78584 2006-07-23  Eric Blake  <ebb9@byu.net>
78585
78586         * modules/stdio-safer (Files): Add tmpfile-safer.c.
78587         (Depends-on): Add binary-io.
78588
78589 2006-07-23  Eric Blake  <ebb9@byu.net>
78590
78591         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
78592
78593 2006-07-23  Eric Blake  <ebb9@byu.net>
78594
78595         * lib/tmpfile-safer.c: New file.
78596         * lib/stdio-safer.h (fopen_safer): Add prototype.
78597         * lib/stdio--.h (tmpfile): Make safer.
78598
78599 2006-07-23  Bruno Haible  <bruno@clisp.org>
78600
78601         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
78602         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
78603         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
78604         gl_linked_remove_at): Use it.
78605
78606 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78607         and Simon Josefsson <jas@extundo.com>
78608
78609         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
78610
78611         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
78612
78613 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78614
78615         * modules/close-stream: New file.
78616         * modules/closeout (Description): Make it clear that it exits
78617         with a diagnostic on error.
78618         (Depends-on): Add close-stream.  Remove fpending, stdbool.
78619         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
78620
78621 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78622
78623         * m4/close-stream.m4: New file.
78624
78625 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78626
78627         * lib/close-stream.c, lib/close-stream.h: New files.
78628
78629 2006-07-22  Bruno Haible  <bruno@clisp.org>
78630
78631         Merge from GNU gettext 0.15.
78632
78633         2006-05-01  Bruno Haible  <bruno@clisp.org>
78634
78635                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
78636
78637         2006-07-22  Bruno Haible  <bruno@clisp.org>
78638
78639                 * modules/javaversion: New file.
78640                 * MODULES.html.sh (Java): Add javaversion.
78641
78642         2006-03-12  Bruno Haible  <bruno@clisp.org>
78643
78644                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
78645
78646         2005-12-04  Bruno Haible  <bruno@clisp.org>
78647
78648                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
78649                 (untested).
78650
78651         2006-06-21  Bruno Haible  <bruno@clisp.org>
78652
78653                 Avoid warnings from recent versions of mcs.
78654                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
78655                 -o, -L, -r any more. Use options documented since mcs-1.0
78656                 instead. Similarly for -g.
78657
78658         2005-12-04  Bruno Haible  <bruno@clisp.org>
78659
78660                 * build-aux/csharpcomp.sh.in: Suffix for resources is
78661                 .resources, not .resource.
78662
78663         2005-07-09  Bruno Haible  <bruno@clisp.org>
78664
78665                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
78666                 add a .dll suffix.
78667                 Reported by Mark Junker <mjscod@gmx.de>.
78668
78669         2006-07-22  Bruno Haible  <bruno@clisp.org>
78670
78671                 * modules/gettext: Upgrade to gettext-0.15.
78672                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
78673                 m4/visibility.m4.
78674                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
78675
78676 2006-07-22  Bruno Haible  <bruno@clisp.org>
78677
78678         Merge from GNU gettext 0.15.
78679
78680         2006-03-25  Bruno Haible  <bruno@clisp.org>
78681
78682                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
78683
78684         2006-07-21  Bruno Haible  <bruno@clisp.org>
78685
78686                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
78687                 "1.1".
78688
78689         2006-05-09  Bruno Haible  <bruno@clisp.org>
78690
78691                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
78692                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
78693                 for the conftestver execution.
78694
78695         2006-05-01  Bruno Haible  <bruno@clisp.org>
78696
78697                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
78698                 optional target-version argument. Verify that the compiler
78699                 groks source of the specified source-version, or add -source
78700                 option as necessary. Verify that the compiler produces
78701                 bytecode in the specified target-version, or add -target and
78702                 -source options as necessary. Make the result of the test
78703                 available as variable CONF_JAVAC. Also log error output in
78704                 config.log.
78705
78706         2006-03-11  Bruno Haible  <bruno@clisp.org>
78707
78708                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
78709
78710         2006-05-09  Bruno Haible  <bruno@clisp.org>
78711
78712                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
78713                 CLASSPATH_SEPARATOR to a semicolon.
78714
78715         2006-03-12  Bruno Haible  <bruno@clisp.org>
78716
78717                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
78718                 available as variable CONF_JAVA, for subsequent autoconf
78719                 tests. Also log error output in config.log.
78720
78721         2006-07-19  Bruno Haible  <bruno@clisp.org>
78722
78723                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
78724                 that getline works on glibc2 systems. Needed to avoid trouble
78725                 in relocatable.c.
78726                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
78727
78728         2005-12-04  Bruno Haible  <bruno@clisp.org>
78729
78730                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
78731                 launcher (untested).
78732
78733         2005-12-04  Bruno Haible  <bruno@clisp.org>
78734
78735                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
78736
78737         2006-07-22  Bruno Haible  <bruno@clisp.org>
78738
78739                 * gettext.m4: Update from GNU gettext-0.15.
78740                 * nls.m4: Likewise.
78741                 * po.m4: Likewise.
78742                 * inttypes-pri.m4: Likewise.
78743                 * inttypes-h.m4: Renamed from inttypes.m4.
78744                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
78745
78746 2006-07-22  Bruno Haible  <bruno@clisp.org>
78747
78748         Merge from GNU gettext 0.15.
78749
78750         2005-07-05  Bruno Haible  <bruno@clisp.org>
78751
78752                 * printf-args.c (printf_fetchargs): Work around broken
78753                 definition of wint_t on mingw.
78754
78755         2005-02-12  Bruno Haible  <bruno@clisp.org>
78756
78757                 * xallocsa.h: Add extern "C" for C++.
78758
78759         2006-05-17  Bruno Haible  <bruno@clisp.org>
78760
78761                 Cygwin portability.
78762                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
78763
78764         2006-04-30  Bruno Haible  <bruno@clisp.org>
78765
78766                 * progreloc.c: Include <mach-o/dyld.h> if available.
78767                 (find_executable): Use _NSGetExecutablePath when possible.
78768
78769         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
78770
78771                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
78772                 function.
78773
78774         2005-12-29  Bruno Haible  <bruno@clisp.org>
78775
78776                 * progreloc.c (set_program_name_and_installdir): Fix
78777                 compilation error.
78778
78779         2005-12-04  Bruno Haible  <bruno@clisp.org>
78780
78781                 Cygwin portability.
78782                 * progreloc.c: Include <windows.h> also on Cygwin.
78783                 (find_executable): Add support for Cygwin.
78784                 (set_program_name_and_installdir): Handle also platforms with
78785                 nonempty EXEEXT.
78786
78787         2006-07-11  Bruno Haible  <bruno@clisp.org>
78788
78789                 * javacomp.c: Fix a comment.
78790                 Reported by Jim Meyering.
78791
78792         2006-04-30  Bruno Haible  <bruno@clisp.org>
78793
78794                 * javacomp.h (compile_java_class): Add source_version,
78795                 target_version arguments.
78796                 * javacomp.c: Rewritten to choose only a compiler that
78797                 respects the specified source_version and target_version.
78798
78799         2006-06-27  Bruno Haible  <bruno@clisp.org>
78800
78801                 Assume correct S_ISDIR macro.
78802                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
78803
78804         2006-07-22  Bruno Haible  <bruno@clisp.org>
78805
78806                 * javaversion.h: New file, from GNU gettext.
78807                 * javaversion.c: New file, from GNU gettext.
78808                 * javaversion.java: New file, from GNU gettext.
78809                 * javaversion.class: New file, from GNU gettext.
78810
78811         2006-05-17  Bruno Haible  <bruno@clisp.org>
78812
78813                 Cygwin portability.
78814                 * javaexec.c (execute_java_class): Test for jview program
78815                 also on Cygwin.
78816
78817         2006-04-09  Bruno Haible  <bruno@clisp.org>
78818
78819                 * fatal-signal.c: Don't include string.h.
78820                 (at_fatal_signal): Use a copying loop instead of memcpy.
78821
78822         2005-12-04  Bruno Haible  <bruno@clisp.org>
78823
78824                 * csharpexec.c: Add support for 'clix' launcher (untested).
78825                 (execute_csharp_using_sscli): New function.
78826                 (execute_csharp_program): Call it.
78827
78828         2006-06-21  Bruno Haible  <bruno@clisp.org>
78829
78830                 Avoid warnings from recent versions of mcs.
78831                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
78832                 -o, -L, -r any more. Use options documented since mcs-1.0
78833                 instead. Similarly for -g.
78834
78835         2005-07-09  Bruno Haible  <bruno@clisp.org>
78836
78837                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
78838                 add a .dll suffix.
78839                 Reported by Mark Junker <mjscod@gmx.de>.
78840
78841         2006-06-17  Bruno Haible  <bruno@clisp.org>
78842
78843                 * config.charset: Update for NetBSD 3.0.
78844
78845         2006-05-17  Bruno Haible  <bruno@clisp.org>
78846
78847                 Cygwin portability.
78848                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
78849
78850         2006-05-16  Bruno Haible  <bruno@clisp.org>
78851
78852                 * localcharset.c [CYGWIN]: Include <windows.h>.
78853                 (get_charset_aliases): For Cygwin, return the same CPxxx
78854                 aliases list as under WIN32.
78855                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
78856                 the environment variables. Fall back to GetACP().
78857
78858         2006-04-05  Bruno Haible  <bruno@clisp.org>
78859
78860                 * config.charset: Update Juan Manuel Guerrero's address.
78861
78862         2005-02-12  Bruno Haible  <bruno@clisp.org>
78863
78864                 * allocsa.h: Add extern "C" for C++.
78865
78866         2005-02-10  Bruno Haible  <bruno@clisp.org>
78867
78868                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
78869                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
78870
78871         2006-07-22  Bruno Haible  <bruno@clisp.org>
78872
78873                 * gettext.h: Update to GNU gettext-0.15.
78874
78875 2006-07-22  Bruno Haible  <bruno@clisp.org>
78876
78877         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
78878         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
78879         lib-prefix.m4, longdouble.m4, ssize_t.m4.
78880
78881 2006-07-21  Eric Blake  <ebb9@byu.net>
78882
78883         * modules/stdlib-safer: New file.
78884         * MODULES.html.sh (File stream based Input/Output): Add
78885         stdlib-safer.
78886
78887 2006-07-21  Eric Blake  <ebb9@byu.net>
78888
78889         * lib/stdlib-safer.h: New file from coreutils, required by
78890         stdlib--.h.
78891
78892 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
78893
78894         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
78895
78896 2006-07-20  Bruno Haible  <bruno@clisp.org>
78897
78898         * gnulib-tool: Recognize new option --assume-autoconf.
78899         (autoconf_minversion): New variable.
78900         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
78901
78902 2006-07-20  Bruno Haible  <bruno@clisp.org>
78903
78904         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
78905
78906 2006-07-19  Derek R. Price  <derek@ximbiot.com>
78907
78908         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
78909         Reindent and repaginate.
78910
78911 2006-07-19  Derek Price  <derek@ximbiot.com>
78912
78913         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
78914         Correct grammar.
78915
78916 2006-07-17  Bruno Haible  <bruno@clisp.org>
78917
78918         * modules/list: New file.
78919         * modules/array-list: New file.
78920         * modules/carray-list, modules/carray-list-tests: New files.
78921         * modules/linked-list, modules/linked-list-tests: New files.
78922         * modules/avltree-list, modules/avltree-list-tests: New files.
78923         * modules/rbtree-list, modules/rbtree-list-tests: New files.
78924         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
78925         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
78926         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
78927         * modules/oset: New file.
78928         * modules/array-oset: New file.
78929         * modules/avltree-oset, modules/avltree-oset-tests: New files.
78930         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
78931         * tests/test-carray_list.c: New file.
78932         * tests/test-linked_list.c: New file.
78933         * tests/test-avltree_list.c: New file.
78934         * tests/test-rbtree_list.c: New file.
78935         * tests/test-linkedhash_list.c: New file.
78936         * tests/test-avltreehash_list.c: New file.
78937         * tests/test-rbtreehash_list.c: New file.
78938         * tests/test-avltree_oset.c: New file.
78939         * tests/test-rbtree_oset.c: New file.
78940         * MODULES.html.sh (Container data structures): New section.
78941
78942 2006-07-17  Bruno Haible  <bruno@clisp.org>
78943
78944         * m4/gl_list.m4: New file.
78945
78946 2006-07-17  Bruno Haible  <bruno@clisp.org>
78947
78948         * lib/gl_list.h: New file.
78949         * lib/gl_list.c: New file.
78950         * lib/gl_array_list.h: New file.
78951         * lib/gl_array_list.c: New file.
78952         * lib/gl_carray_list.h: New file.
78953         * lib/gl_carray_list.c: New file.
78954         * lib/gl_linked_list.h: New file.
78955         * lib/gl_linked_list.c: New file.
78956         * lib/gl_anylinked_list1.h: New file.
78957         * lib/gl_anylinked_list2.h: New file.
78958         * lib/gl_avltree_list.h: New file.
78959         * lib/gl_avltree_list.c: New file.
78960         * lib/gl_anyavltree_list1.h: New file.
78961         * lib/gl_anyavltree_list2.h: New file.
78962         * lib/gl_rbtree_list.h: New file.
78963         * lib/gl_rbtree_list.c: New file.
78964         * lib/gl_anyrbtree_list1.h: New file.
78965         * lib/gl_anyrbtree_list2.h: New file.
78966         * lib/gl_anytree_list1.h: New file.
78967         * lib/gl_anytree_list2.h: New file.
78968         * lib/gl_linkedhash_list.h: New file.
78969         * lib/gl_linkedhash_list.c: New file.
78970         * lib/gl_anyhash_list1.h: New file.
78971         * lib/gl_anyhash_list2.h: New file.
78972         * lib/gl_avltreehash_list.h: New file.
78973         * lib/gl_avltreehash_list.c: New file.
78974         * lib/gl_rbtreehash_list.h: New file.
78975         * lib/gl_rbtreehash_list.c: New file.
78976         * lib/gl_anytreehash_list1.h: New file.
78977         * lib/gl_anytreehash_list2.h: New file.
78978
78979         * lib/gl_oset.h: New file.
78980         * lib/gl_oset.c: New file.
78981         * lib/gl_array_oset.h: New file.
78982         * lib/gl_array_oset.c: New file.
78983         * lib/gl_avltree_oset.h: New file.
78984         * lib/gl_avltree_oset.c: New file.
78985         * lib/gl_rbtree_oset.h: New file.
78986         * lib/gl_rbtree_oset.c: New file.
78987         * lib/gl_anytree_oset.h: New file.
78988
78989 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78990
78991         * m4/mkancesdirs.m4: New file.
78992         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
78993         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
78994         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
78995         it.
78996
78997 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78998
78999         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79000         * lib/mkancesdirs.h: New files.
79001         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79002         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79003         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79004         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79005         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79006         callers changed.  Revamp internals significantly, by not
79007         attempting to create directories that are temporarily more
79008         permissive than the final results.  Do not attempt to use
79009         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79010         This removes some race conditions, fixes some bugs, and simplifies
79011         things.  Use new dirchownmod function to do owner and mode changes.
79012         * lib/mkdir-p.h: Likewise.
79013         * lib/modechange.c (octal_to_mode): New function.
79014         (struct mode_change): New member mentioned.
79015         (make_node_op_equals): New arg mentioned.  All callers changed.
79016         (mode_compile): Keep track of which mode bits the user has explicitly
79017         mentioned.
79018         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79019         New arg PMODE_BITS, to keep track of which mode bits the user
79020         mentioned; it treats S_ISUID and S_ISGID speciall.
79021         All callers changed.
79022         * lib/modechange.h: Likewise.
79023
79024 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79025
79026         * MODULES.html.sh: Add mkancestors.
79027         * modules/mkancesdirs: New module.
79028         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79029         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79030         The chdir-safer and afs files are now orphans; I'll remove them
79031         unless someone speaks up.
79032         Add lib/dirchownmod.c, lib/dirchownmod.h.
79033         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79034         Add lchown, mkancesdirs.
79035         (Maintainer): Add self.
79036
79037 2006-07-15  Karl Berry  <karl@gnu.org>
79038
79039         * gnulib-tool: help message wording/arrangement.
79040
79041 2006-07-14  Simon Josefsson  <jas@extundo.com>
79042
79043         * doc/gnulib.texi (Libtool and Windows): New section.
79044
79045 2006-07-12  Simon Josefsson  <jas@extundo.com>
79046
79047         * modules/gendocs (License): Fix license, approved by Karl.
79048
79049 2006-07-12  Eric Blake  <ebb9@byu.net>
79050
79051         * MODULES.html.sh: Add gendocs.
79052
79053 2006-07-11  Eric Blake  <ebb9@byu.net>
79054
79055         * modules/fdl: New module, to install doc/fdl.texi.
79056         * MODULES.html.sh: Add new section for documentation modules.
79057         * gnulib-tool: Avoid space-tab.
79058         (--doc-base): New option, to manage files from doc.
79059
79060 2006-07-11  Eric Blake  <ebb9@byu.net>
79061
79062         * m4/absolute-header.m4: Fix comments to match recent change.
79063
79064 2006-07-11  Eric Blake  <ebb9@byu.net>
79065
79066         * gnulib-tool: List --doc-base before --tests-base.
79067
79068 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79069
79070         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79071
79072 2006-07-11  Bruno Haible  <bruno@clisp.org>
79073
79074         * README: Mention where to put documentation.
79075
79076 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79077
79078         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79079
79080 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79083         to stdint.m4.
79084
79085 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79086
79087         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79088         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79089         "no/such/file/stdint.h" when there is no such file, so that
79090         the resulting C code can be parsed by dodgy compilers.
79091         Problems reported by Bob Proulx.
79092
79093 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79094
79095         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79096         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79097         macros into the GNU _D_EXACT_NAMLEN.
79098         * lib/savedir.c:  Likewise.
79099         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79100
79101 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79102         and Paul Eggert  <eggert@cs.ucla.edu>
79103
79104         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79105         * m4/savedir.m4:
79106         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79107         macros into the GNU _D_EXACT_NAMLEN.
79108
79109 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79110
79111         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79112         around the absolute name, to work around a problem with the HP-UX
79113         11.23 native C compiler, reported by Bob Proulx.
79114
79115 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79116
79117         * doc/maintain.texi, make-stds.texi: Sync from
79118         <http://savannah.gnu.org/projects/gnustandards>.
79119
79120 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79121
79122         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79123
79124 2006-07-09  Jim Meyering  <jim@meyering.net>
79125
79126         * m4/glob.m4: Remove a doubled word in a comment.
79127
79128 2006-07-09  Jim Meyering  <jim@meyering.net>
79129
79130         * lib/argp-pv.c: Remove a doubled word in a comment.
79131         * lib/check-version.c (check_version): Likewise.
79132         * lib/javacomp.c (compile_java_class): Likewise.
79133
79134 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79135
79136         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79137         for the benefit of people using Autoconf 2.60.  If you want to
79138         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79139         (or m4/onceonly.m4, if pre-2.57) manually.
79140
79141 2006-07-08  Jim Meyering  <jim@meyering.net>
79142
79143         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79144         comment.
79145         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79146         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79147         comment.
79148
79149 2006-07-08  Jim Meyering  <jim@meyering.net>
79150
79151         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79152
79153 2006-07-07  Simon Josefsson  <jas@extundo.com>
79154
79155         * tests/test-crc.c: Change expected crc value, the test vector
79156         were probably computed using the old broken crc.c?
79157
79158 2006-07-06  Simon Josefsson  <jas@extundo.com>
79159
79160         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79161         now the canonical place for the M4 file).
79162
79163         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79164         from the sys_socket dependency now.
79165
79166         * modules/inet_pton (Files): Ditto.
79167
79168         * modules/inet_ntop (Files): Ditto.
79169
79170 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79171
79172         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79173         not gl_PREREQ_GETUSERSHELL.
79174
79175 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79176
79177         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79178         with only one argument, for Autoconf 2.60.
79179         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79180         expand to nothing, so add a shell command to avoid syntax error.
79181         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79182
79183 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79184
79185         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79186
79187 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79188
79189         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79190         no longer needed.  Check for isblank decl.
79191         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79192         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79193         of existence.
79194
79195 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79196
79197         * lib/getloadavg.c: Use __VMS, not VMS.
79198         * lib/getopt.c: Likewise.
79199         * lib/getpagesize.h: Likewise.
79200         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79201         and probably does not work.
79202
79203 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79204
79205         * lib/.cppi-disable: Add wcwidth.
79206         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79207         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79208         (ISGRAPH): Remove.  All uses changed to isgraph.
79209         (FOLD) [!defined _LIBC]: Remove special case.
79210         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79211         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79212         HAVE_ISBLANK.
79213         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79214         case.
79215
79216 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79217
79218         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79219         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79220         brackets.  Other minor changes to suppress some compiler
79221         warnings.
79222
79223 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79224         and Paul Eggert  <eggert@cs.ucla.edu>
79225
79226         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79227         of invoking obsolescent AC_HEADER_DIRENT macro.
79228         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79229         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79230         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79231         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79232         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79233         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79234         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79235         * m4/readdir.m4: Remove; no longer needed.
79236
79237 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79238         and Paul Eggert  <eggert@cs.ucla.edu>
79239
79240         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79241         Don't worry about this obsolete case any more.
79242         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79243         directories.
79244         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79245         worry about this obsolete case any more.
79246         * lib/fts.c: Likewise.
79247         * lib/getcwd.c: Likewise.
79248         * lib/glob.h: Likewise.
79249         * lib/savedir.c: Likewise.
79250
79251 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79252
79253         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79254         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79255         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79256         needed.
79257         All uses removed.
79258         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79259         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79260         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79261         needed.
79262         * m4/getdate.m4 (gl_GETDATE): Likewise.
79263         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79264         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79265         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79266         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79267         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79268         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79269         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79270         needed.
79271
79272 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79273
79274         * lib/memcasecmp.c: Include <limits.h>.
79275         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79276         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79277         Don't assume isdigit succeeds only on '0' through '9'.
79278
79279 2006-07-05  Eric Blake  <ebb9@byu.net>
79280
79281         * modules/getaddrinfo (Depends-on): Add snprintf.
79282
79283 2006-07-05  Eric Blake  <ebb9@byu.net>
79284
79285         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79286         to avoid 'header present but could not be compiled' on cygwin.
79287
79288 2006-07-05  Eric Blake  <ebb9@byu.net>
79289
79290         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79291         missing from netdb.h.
79292         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79293
79294 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79295
79296         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79297         no longer needed.
79298         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79299         * m4/getdate.m4 (gl_GETDATE): Likewise.
79300         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79301         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79302         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79303         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79304         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79305
79306 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79307
79308         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79309         All uses of is_space replaced by isspace.
79310         * lib/exit.h: Don't talk about STDC_HEADERS.
79311         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79312         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79313         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79314         replaced by isprint etc.
79315         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79316         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79317         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79318         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79319         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79320         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79321
79322 2006-07-05  Bruno Haible  <bruno@clisp.org>
79323
79324         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79325         the function exists, before testing against AIX.
79326         Reported by Martin Lambers <marlam@marlam.de>.
79327
79328 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79329
79330         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79331         From Mark D. Baushke.
79332
79333 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79334
79335         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79336         to the absolute name, not just one, to bypass Sun C 5.8's
79337         "warning: #include of /usr/include/... may be non-portable".
79338
79339 2006-07-04  Eric Blake  <ebb9@byu.net>
79340
79341         * modules/dirname-tests: New test module.
79342         * tests/test-dirname.c: New file, replacing dirname.c
79343         TEST_DIRNAME section that was recently deleted.
79344
79345 2006-07-04  Bruno Haible  <bruno@clisp.org>
79346
79347         Assume ANSI C header files and <ctype.h> functions.
79348         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79349         (mbsnwidth): Use isprint, iscntrl instead.
79350
79351 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79352
79353         Merge from coreutils.
79354         * MODULES.html.sh: Add xstrtold.
79355         * modules/xstrtold: New file.
79356         * modules/cycle-check (Files): Add lib/same-inode.h.
79357         * modules/dirname (Files): Add m4/double-slash-root.m4.
79358         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79359         * modules/mkdir-p (Files): Add lib/same-inode.h.
79360         * modules/same (Files): Add lib/same-inode.h.
79361
79362 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79363
79364         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79365         This is to keep the terminology clean; POSIX talks about
79366         "absolute pathnames", not "full pathnames", but the GNU
79367         Coding Standards say to use "path" for something else;
79368         so use "absolute" to keep both sides happy.
79369         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79370         Set gl_absolute_header, not gl_full_header_path.
79371         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79372         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79373         All uses changed.
79374
79375         Merge from coreutils.
79376
79377         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79378
79379         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79380         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79381         want to require the building of c-strtod.o.
79382         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79383         needs -lm directly.
79384         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79385
79386         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79389         --as-needed option if available.  Problem reported by Albert Chin in
79390         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79391         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79392         cc merely issues a bunch of annoying warnings for --as-needed
79393         (this problem was reported by Bob Proulx).  Also, try linking with
79394         -lm to detect a bug in binutils 2.16 (this problem was reported
79395         by Ralf Wildenhues).
79396
79397         2006-06-18  Jim Meyering  <jim@meyering.net>
79398
79399         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79400         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79401         macro.
79402         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79403         also check for glibc-2.4's abort-inducing bug.
79404
79405         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79406         Low-probability clean-up should be to use rmdir to get rid of
79407         the just-created directory, not unlink.
79408
79409         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79410         configure fail, and request a bug report to inform us about it.
79411         Add a comment that, barring reports to the contrary, in 2007 we'll
79412         assume ftruncate is universally available.
79413
79414         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79415
79416         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79417
79418         2006-03-12  Jim Meyering  <jim@meyering.net>
79419
79420         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79421         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79422         * m4/same.m4 (gl_SAME): Likewise.
79423         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79424
79425         2006-03-11  Eric Blake  <ebb9@byu.net>
79426
79427         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79428         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79429         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79430         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79431
79432 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79433
79434         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79435         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79436         reported by Mark D. Baushke, one in
79437         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79438
79439         Merge from coreutils.
79440
79441         * lib/.cppi-disable: Add stdint_.h.
79442         * lib/.cvsignore: Add stdint.h.
79443
79444         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79445
79446         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79447         both double and long double versions.
79448         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79449         * lib/xstrtold.c: New file.
79450         * lib/xstrtod.h (xstrtold): New decl.
79451
79452         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79453
79454         * lib/filemode.c (setst): Remove.
79455         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79456         (arguably) clearer, and the generated code is a bit smaller on my
79457         Debian GNU/Linux stable x86 host.
79458
79459         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79460
79461         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79462         Assume that filemode.h includes sys/types.h and sys/stat.h.
79463         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79464         (ftypelet): Reorder to put common cases first, for efficiency.
79465         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79466         to do 'M'.
79467         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79468         of 10, for compatibility with FreeBSD.  All callers changed.
79469         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79470         types that can't be deduced solely from st_mode.  First arg is now a
79471         const pointer.
79472         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79473         (strmode): Renamed from mode_string.
79474         (filemodestring): New decl.
79475         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79476         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79477         needed.
79478         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79479
79480         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79481
79482         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79483         fsusage.h now does that.  Include fsusage.h first, to test interface.
79484         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79485         at most one method (the old code could have generated decls that
79486         didn't conform to C89, not that this was ever exercised).
79487         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79488
79489         2006-03-19  Jim Meyering  <jim@meyering.net>
79490
79491         Work even in a chroot where d_ino values for entries in "/"
79492         don't match the stat.st_ino values for the same names.
79493         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79494         number, iterate through all entries again, using lstat instead.
79495         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79496         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79497
79498         * lib/getcwd.c (__getcwd): Clarify a comment.
79499         Use memcpy in place of a call to strcpy.
79500
79501         2006-03-12  Jim Meyering  <jim@meyering.net>
79502
79503         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79504         matches that of the current directory (which we're about to chdir ".."
79505         out of), then save the dev-ino of the parent, instead.
79506
79507         * lib/same-inode.h (SAME_INODE): New file/macro.
79508         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79509         Include "same-inode.h", instead.
79510         * lib/same.c: Likewise.
79511         * lib/cycle-check.h: Include "same-inode.h".
79512         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79513         * lib/cycle-check.c (SAME_INODE): Remove definition.
79514         * lib/root-dev-ino.h: Include "same-inode.h".
79515
79516         2006-03-11  Eric Blake  <ebb9@byu.net>
79517
79518         * lib/same.c (same_name): s/base_name/last_component/
79519         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79520         * lib/filenamecat.c (file_name_concat): Likewise.
79521
79522         2006-03-11  Eric Blake  <ebb9@byu.net>,
79523                     Paul Eggert  <eggert@cs.ucla.edu>
79524
79525         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79526         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79527         drive prefix.
79528         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79529         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79530         (last_component): New method.
79531         * lib/dirname.c (dir_len): Determine when drive letters need a
79532         subsequent slash.  Preserve // when it is special.
79533         (dir_name): Don't append dot when drive letter is absolute.
79534         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79535         * lib/basename.c (base_name): New semantics - malloc the result.
79536         Preserve // when it is special.  Preserve relative files that look
79537         like drive letters.
79538         (base_len): Preserve // when it is special.
79539         (last_component): New method, similar to old base_name semantics.
79540         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79541         base_name.  Strip redundant slashes from ///.
79542
79543 2006-07-03  Jim Meyering  <jim@meyering.net>
79544
79545         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79546         macro is used before the first cycle_check call.
79547
79548 2006-07-03  Eric Blake  <ebb9@byu.net>
79549
79550         * modules/dirname (Depends-on): Add xstrndup.
79551
79552 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79553
79554         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79555         test cases, so that config.log is a bit easier to follow.
79556
79557 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79558
79559         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79560         both are 64 bits, since this seems to be the tradition, and this
79561         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79562         we ever run into a host that prefers long long to long in this
79563         case, we'll need another configure-time test.  Problem reported by
79564         Jim Meyering.
79565
79566 2006-07-02  Eric Blake  <ebb9@byu.net>
79567
79568         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79569
79570 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79571
79572         * modules/inttypes (Depends-on): No longer depends on stdint.
79573         * modules/stdint (Description): Say more about assumptions.
79574         Say that the fast types might differ.  Say macros are used.
79575         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79576         (Makefile.am): Revise list of substituted symbols to match
79577         new stdint.m4.
79578         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79579         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79580         * tests/test-stdint.c (verify_same_types)
79581         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79582         the code conforms to C99/C89.
79583         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79584         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
79585
79586 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79587
79588         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
79589         but fix a bug, by requiring at least 64 bits.
79590         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79591         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
79592         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
79593         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79594
79595         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
79596         changes.  Make 2.59 a prerequisite.  Check and substitute for
79597         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
79598         inttypes.h.  Do not use special include files; just use the
79599         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
79600         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
79601         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
79602         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
79603         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
79604         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
79605         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
79606         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
79607         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
79608         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
79609         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
79610         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
79611         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
79612         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
79613         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
79614         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
79615         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
79616         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
79617         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
79618         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
79619         WINT_MAX.  Check for C99 conformance more strictly, by detecting
79620         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
79621         not check for things that C99 does not require, e.g., int8_t.  If
79622         a test isn't needed unless <stdint.h> isn't working, and is
79623         unlikely to be needed for any other reason, then don't do it
79624         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
79625         size_t, since we assume C89 freestanding at least.  Do not check
79626         for sig_atomic_t, wchar_t, or wint_t, since the code now does
79627         the right thing even if the types are not defined.  Instead use:
79628         (gl_STDINT_TYPE_PROPERTIES): New macro.
79629         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
79630         testing whether <sys/types.h> clashes, as Autoconf does this for
79631         us now.  All uses removed.
79632         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
79633         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
79634         (gl_CHECK_TYPE_SAME):
79635         Remove; no longer needed.
79636         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
79637         exists, since we'll return 0 anyway in that case.
79638         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
79639
79640 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79641
79642         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
79643         possible collision with system files.
79644         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
79645         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
79646         WCHAR_MIN and WCHAR_MAX in this case.
79647         (<stddef.h>): Do not include; no longer needed.
79648         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
79649         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
79650         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
79651         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
79652         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
79653         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
79654         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
79655         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
79656         !defined(__c99))]: Include in this case too, since it's harmless
79657         now.
79658         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
79659         dangerous to do so.
79660         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
79661         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
79662         (_STDINT_MIN, _STDINT_MAX): New macros.
79663         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
79664         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
79665         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
79666         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
79667         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
79668         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
79669         macros, not typedefs; this simplifies things quite a bit.
79670         Use long int for all types narrower than int64_t.
79671         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
79672         Define in terms of long long int or int64_t or long int,
79673         not int64_t or int32_t.  This saves some compile-time testing.
79674         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
79675         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
79676         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
79677         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
79678         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
79679         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
79680         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
79681         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
79682         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
79683         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
79684         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79685         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79686         undef any previous version and define our own version, for
79687         simplicity and consistency with the new macros for types.
79688         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79689         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79690         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
79691         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
79692         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
79693         @WINT_T_SUFFIX@ to keep things simple here.
79694         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
79695         Simplify by assuming typical 8/16/32/64 host, since we're
79696         already doing that elsewhere anyway.
79697         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
79698         and assume long long int is 64 bits if available.  This
79699         speeds up 'configure'.
79700
79701 2006-07-01  Eric Blake  <ebb9@byu.net>
79702
79703         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
79704         Reported by Andreas Buening.
79705
79706 2006-07-01  Eric Blake  <ebb9@byu.net>
79707
79708         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
79709
79710 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79711
79712         * lib/getaddrinfo.c: fixed typo
79713
79714 2006-06-29  Jim Meyering  <jim@meyering.net>
79715
79716         * modules/strftime (Maintainer): Add my name, since with the
79717         FPRINTFTIME changes strftime.c has forked from glibc.
79718
79719 2006-06-29  Eric Blake  <ebb9@byu.net>
79720
79721         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
79722
79723 2006-06-29  Eric Blake  <ebb9@byu.net>
79724
79725         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
79726
79727 2006-06-29  Eric Blake  <ebb9@byu.net>
79728
79729         * lib/stat_.h: New file.
79730
79731 2006-06-29  Eric Blake  <ebb9@byu.net>
79732
79733         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
79734         unused static function.
79735
79736 2006-06-29  Eric Blake  <ebb9@byu.net>
79737
79738         * doc/functions.texi (Function Portability): Document missing lstat
79739         on mingw.
79740
79741 2006-06-29  Eric Blake  <ebb9@byu.net>
79742
79743         * MODULES.html.sh: Add sys_stat.
79744         * modules/sys_stat: New module.
79745         * modules/mkstemp (Depends-on): Add sys_stat.
79746
79747 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79748
79749         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
79750
79751 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79752
79753         * m4/c-bs-a.m4: Removed.
79754
79755 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79756
79757         * lib/strftime.c: Assume strftime() exists.
79758
79759 2006-06-29  Derek Price  <derek@ximbiot.com>
79760
79761         * modules/c-bs-a: Removed - \a is C89.
79762         * MODULES.html.sh: Remove c-bs-a.
79763
79764 2006-06-29  Bruno Haible  <bruno@clisp.org>
79765
79766         * modules/wcwidth (License): Change to LGPL.
79767
79768 2006-06-28  Simon Josefsson  <jas@extundo.com>
79769
79770         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
79771         on _WIN32.
79772
79773         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
79774         getnameinfo.
79775
79776 2006-06-28  Simon Josefsson  <jas@extundo.com>
79777
79778         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
79779
79780 2006-06-28  Simon Josefsson  <jas@extundo.com>
79781
79782         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
79783         functions there.  It will succeed on Windows XP, but on Windows
79784         2000 and (presumably) earlier, it will fail, and use the internal
79785         re-implementation.
79786         (use_win32_p): New function.
79787         (getaddrinfo): Use strtoul on servname, to support numeric ports.
79788         Support AI_NUMERICSERV to disable getservbyname.
79789         (getnameinfo): New function, only supports
79790         NI_NUMERICHOST|NI_NUMERICSERV for now.
79791
79792         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
79793         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
79794         getnameinfo.
79795
79796 2006-06-28  Eric Blake  <ebb9@byu.net>
79797
79798         * modules/wcwidth: New file.
79799         * modules/mbchar (Depends-on): Add wcwidth.
79800         * modules/mbswidth (Depends-on): Add wcwidth.
79801         * MODULES.html.sh: Add wcwidth.
79802
79803 2006-06-28  Eric Blake  <ebb9@byu.net>
79804
79805         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
79806         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
79807
79808 2006-06-28  Eric Blake  <ebb9@byu.net>
79809
79810         * lib/xvasprintf.h: Fix comments.
79811
79812 2006-06-28  Eric Blake  <ebb9@byu.net>
79813
79814         * lib/mbchar.h (wcwidth): Include wcwidth.h.
79815         * lib/mbswidth.c (wcwidth): Move from here...
79816         * lib/wcwidth.h: ...to this new file.
79817
79818 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79819
79820         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
79821
79822         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
79823         it's obsolete.
79824         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
79825
79826 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79827
79828         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
79829         Autoconf 2.60 says this stuff was obsolete.
79830
79831 2006-06-28  Bruno Haible  <bruno@clisp.org>
79832
79833         * modules/wcwidth (Files): Add m4/wchar_t.m4.
79834
79835 2006-06-28  Bruno Haible  <bruno@clisp.org>
79836
79837         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
79838         gt_TYPE_WCHAR_T.
79839
79840 2006-06-28  Bruno Haible  <bruno@clisp.org>
79841
79842         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
79843         declaration for wcwidth.
79844         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
79845
79846 2006-06-28  Bruno Haible  <bruno@clisp.org>
79847
79848         * lib/mkdtemp.c [MINGW]: Include <io.h>.
79849         (mkdir): Define using _mkdir.
79850
79851 2006-06-28  Bruno Haible  <bruno@clisp.org>
79852
79853         * lib/getaddrinfo.h: Fix POSIX URL.
79854         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
79855         _WIN32.
79856         (use_win32_p): Make static.
79857         (getaddrinfo): Reject service name if it is empty or does not consist
79858         solely of decimal digits, or if its value is > 65535.
79859         (getnameinfo): Remove useless casts.
79860
79861 2006-06-27  Simon Josefsson  <jas@extundo.com>
79862
79863         * modules/sys_select: New file, suggested by Bruno Haible, Paul
79864         Eggert and Martin Lambers.
79865
79866 2006-06-27  Simon Josefsson  <jas@extundo.com>
79867
79868         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
79869         Eggert and Martin Lambers.
79870
79871 2006-06-27  Bruno Haible  <bruno@clisp.org>
79872
79873         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
79874         result to 0, not to empty.
79875         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
79876
79877 2006-06-27  Bruno Haible  <bruno@clisp.org>
79878
79879         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
79880
79881 2006-06-26  Simon Josefsson  <jas@extundo.com>
79882
79883         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
79884         present.
79885
79886 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
79887
79888         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
79889         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
79890         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
79891
79892 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
79893
79894         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
79895
79896 2006-06-26  Bruno Haible  <bruno@clisp.org>
79897
79898         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
79899
79900 2006-06-26  Bruno Haible  <bruno@clisp.org>
79901
79902         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
79903
79904 2006-06-26  Bruno Haible  <bruno@clisp.org>
79905
79906         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
79907         SGI C compiler in pre-C99 mode.
79908         Suggested by Mark D. Baushke and Larry Jones.
79909
79910 2006-06-26  Bruno Haible  <bruno@clisp.org>
79911
79912         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
79913         WCHAR_MAX.
79914         Reported by Mark D. Baushke and Larry Jones.
79915
79916 2006-06-26  Bruno Haible  <bruno@clisp.org>
79917
79918         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
79919         in pre-C99 mode.
79920         Suggested by Mark D. Baushke and Larry Jones.
79921
79922 2006-06-23  Simon Josefsson  <jas@extundo.com>
79923             Bruno Haible  <bruno@clisp.org>
79924
79925         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
79926         Emit mostlyclean-local rule.
79927         (func_emit_tests_Makefile_am): Likewise.
79928         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
79929
79930 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
79931
79932         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
79933
79934 2006-06-23  Bruno Haible  <bruno@clisp.org>
79935
79936         * tests/test-stdint.c: Update to match ISO C 99 Technical
79937         Corrigendum 1.
79938
79939 2006-06-23  Bruno Haible  <bruno@clisp.org>
79940
79941         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
79942
79943 2006-06-23  Bruno Haible  <bruno@clisp.org>
79944
79945         * lib/stdint_.h: Treat IRIX like OpenBSD.
79946
79947 2006-06-23  Bruno Haible  <bruno@clisp.org>
79948
79949         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
79950         ISO C 99 Technical Corrigendum 1.
79951
79952 2006-06-22  Simon Josefsson  <jas@extundo.com>
79953
79954         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
79955         MinGW.
79956
79957 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79958
79959         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
79960         needed.  Some compiler complained about some of them.  Problem reported
79961         by Larry Jones in
79962         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
79963
79964 2006-06-21  Simon Josefsson  <jas@extundo.com>
79965
79966         * tests/test-getaddrinfo.c: New file.
79967
79968         * modules/getaddrinfo-tests: New file.
79969
79970         * MODULES.html.sh: Add inet_pton.
79971
79972         * modules/inet_pton: New file.
79973
79974 2006-06-21  Simon Josefsson  <jas@extundo.com>
79975
79976         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
79977         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
79978         of using the (limited) gnulib implementation on Windows XP.
79979
79980         * m4/inet_pton.m4: New file.
79981
79982 2006-06-21  Simon Josefsson  <jas@extundo.com>
79983
79984         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
79985         variable.
79986
79987         * lib/socket_.h: Don't define WINVER.
79988
79989         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
79990         slightly modified to work in gnulib.
79991
79992 2006-06-21  Simon Josefsson  <jas@extundo.com>
79993
79994         * doc/gnulib.texi (Windows sockets): Add.
79995
79996 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
79997
79998         * lib/read-file.c (fread_file): Start with buffer allocation of
79999         0 bytes rather than 1 byte; this simplifies the code.
80000         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80001         code to free buffer and save/restore errno.
80002         (internal_read_file): Remove unused local.
80003
80004 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80005
80006         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80007         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80008         Problem reported by Denis Excoffier in
80009         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80010
80011 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80012
80013         * modules/sys_socket, modules/socklen: Include sys/types since
80014         FreeBSD 4.x's sys/socket.h needs it.
80015
80016 2006-06-19  Simon Josefsson  <jas@extundo.com>
80017
80018         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80019
80020 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80021
80022         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80023
80024 2006-06-19  Bruno Haible  <bruno@clisp.org>
80025
80026         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80027         and FULL_PATH_INTTYPES_H in angle brackets.
80028         Reported by Mark D. Baushke <mdb@gnu.org>.
80029
80030 2006-06-17  Eric Blake  <ebb9@byu.net>
80031
80032         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80033         errno.
80034
80035 2006-06-17  Bruno Haible  <bruno@clisp.org>
80036
80037         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80038         <sys/inttypes.h>.
80039
80040 2006-06-17  Bruno Haible  <bruno@clisp.org>
80041
80042         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80043         whether errno is declared. Assume <errno.h> declares errno.
80044
80045 2006-06-17  Bruno Haible  <bruno@clisp.org>
80046
80047         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80048
80049 2006-06-17  Bruno Haible  <bruno@clisp.org>
80050
80051         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80052         problem on Solaris 2.5.1.
80053
80054 2006-06-16  Eric Blake  <ebb9@byu.net>
80055
80056         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80057         * lib/unicodeio.c [!defined errno]: Likewise.
80058         * lib/strtol.c [!defined errno]: Likewise.
80059         * lib/strtod.c [!defined errno]: Likewise.
80060
80061 2006-06-15  Eric Blake  <ebb9@byu.net>
80062
80063         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80064
80065 2006-06-15  Eric Blake  <ebb9@byu.net>
80066
80067         * config/srclist.txt (ssize_t.m4): Lose sync.
80068
80069 2006-06-15  Bruno Haible  <bruno@clisp.org>
80070
80071         * modules/stdint (Files): Include m4/full-header-path.m4,
80072         m4/size_max.m4, m4/wchar_t.m4.
80073         (Makefile.am): Many more substitutions.
80074         * modules/stdint-tests: New file.
80075         * tests/test-stdint.c: New file.
80076
80077 2006-06-15  Bruno Haible  <bruno@clisp.org>
80078
80079         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80080         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80081         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80082         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80083         gl_CHECK_TYPE_SAME): New macros.
80084
80085 2006-06-15  Bruno Haible  <bruno@clisp.org>
80086
80087         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80088
80089 2006-06-15  Bruno Haible  <bruno@clisp.org>
80090
80091         * lib/stdint_.h: Rewritten to be fully auto-configured.
80092         Fixes bug on HP-UX/IA64.
80093
80094 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80095
80096         * lib/getdate.y (__attribute__): Don't define if already defined.
80097         Problem reported by Larry Jones.
80098         * lib/utimens.c (__attribute__): Likewise.
80099
80100 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80101
80102         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80103         reported by Andreas Schwab.
80104
80105 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80106             Bruno Haible  <bruno@clisp.org>
80107
80108         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80109         check for the declaration of strnlen and a run test that exposes the
80110         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80111         rpl_strndup.
80112
80113 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80114             Bruno Haible  <bruno@clisp.org>
80115
80116         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80117
80118 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80119
80120         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80121         compile test, for Tru64 4.0D.
80122
80123 2006-05-28  Karl Berry  <karl@gnu.org>
80124
80125         * config/srclist.txt (printf-args.c): lose sync.
80126
80127 2006-05-26  Martin Lambers  <marlam@marlam.de>
80128
80129         * lib/getpass.c: Updates the test for the native W32 API, and adds
80130         missing includes, thus fixing compilation warnings.
80131
80132 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80133
80134         * lib/exclude.c (exclude_fnmatch): New function.
80135         (excluded_file_name): Call exclude_fnmatch.
80136         * lib/exclude.h (excluded_file_name): New prototype
80137
80138 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80139
80140         * lib/tempname.c (small_open, large_open): New macros.
80141         (__open, __open64) [!_LIBC]: Remove.
80142         (__gen_tempname): Use small_open and large_open instead of __open
80143         and __open64.  This fixes a portability bug on HP-UX 11.11i
80144         reported by Simon Wing-Tang in
80145         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80146
80147 2006-05-24  Bruno Haible  <bruno@clisp.org>
80148
80149         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80150         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80151         Reported by Thorsten Maerz <torte@netztorte.de> via
80152         Aaron Stone <aaron@serendipity.cx>.
80153
80154 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80155
80156         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80157         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80158         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80159         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80160         not really conditional on the cache.
80161         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80162
80163 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80164
80165         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80166         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80167         (my_usleep): Don't mishandle maximum value.
80168
80169 2006-05-19  Jim Meyering  <jim@meyering.net>
80170
80171         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80172
80173 2006-05-17  Bruno Haible  <bruno@clisp.org>
80174
80175         Cygwin portability.
80176         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80177
80178 2006-05-17  Bruno Haible  <bruno@clisp.org>
80179
80180         * lib/stdint_.h: Fix recognition of Cygwin.
80181
80182 2006-05-15  Bruno Haible  <bruno@clisp.org>
80183
80184         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80185         on libtool patch by Ralf Wildenhues.
80186
80187 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80188
80189         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80190         test for C99 conformance; (bool) 0.5 is an integer constant
80191         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80192         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80193
80194 2006-05-11  Simon Josefsson  <jas@extundo.com>
80195
80196         * m4/xvasprintf.m4: Fix obvious typo.
80197
80198 2006-05-11  Jim Meyering  <jim@meyering.net>
80199
80200         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80201         James Lemley.
80202
80203 2006-05-10  Simon Josefsson  <jas@extundo.com>
80204
80205         * lib/md4.c: Typo fix, update copyright years.
80206         (K1, K2): Don't use L because it turn computations into 64-bit on
80207         64-bit platforms.
80208
80209 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80210
80211         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80212         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80213         unwanted sign propagation, e.g., on hosts with 64-bit int.
80214         There still are some problems with reeelly weird theoretical hosts
80215         (e.g., 33-bit int) but it's not worth worrying about now.
80216         * lib/sha1.c (rol): Likewise.
80217         (K1, K2, K3, K4): Remove unnecessary L suffix.
80218
80219 2006-05-10  Bruno Haible  <bruno@clisp.org>
80220
80221         * lib/des.c: Cast to avoid warnings.
80222
80223 2006-05-09  Bruno Haible  <bruno@clisp.org>
80224
80225         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80226         (Depends-on): Depend also on xsize, stdarg.
80227         (configure.ac): Add gl_XVASPRINTF.
80228
80229 2006-05-09  Bruno Haible  <bruno@clisp.org>
80230
80231         * m4/xvasprintf.m4: New file.
80232
80233 2006-05-09  Bruno Haible  <bruno@clisp.org>
80234
80235         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80236         (EOVERFLOW): Define fallback value.
80237         (xstrcat): New function.
80238         (xvasprintf): Recognize the special case of a string concatenation.
80239
80240 2006-05-08  Eric Blake  <ebb9@byu.net>
80241
80242         * gnulib-tool (func_version): Base copyright year on CVS date.
80243         (func_emit_copyright_notice): New function.
80244         (func_emit_lib_Makefile_am): Use it.
80245         (func_emit_tests_Makefile_am): Likewise.
80246         (func_import): Likewise.
80247
80248 2006-05-08  Bruno Haible  <bruno@clisp.org>
80249
80250         * modules/stdarg: New file.
80251         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80252
80253 2006-05-08  Bruno Haible  <bruno@clisp.org>
80254
80255         * m4/stdarg.m4: New file, from GNU gettext.
80256
80257 2006-05-08  Bruno Haible  <bruno@clisp.org>
80258
80259         * config/srclist.txt (build-aux/config.rpath): different from latest
80260         release.
80261
80262 2006-05-08  Bruno Haible  <bruno@clisp.org>
80263
80264         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80265
80266 2006-05-05  Jim Meyering  <jim@meyering.net>
80267
80268         * m4/warning.m4: New file, derived from bison's file by the same name.
80269
80270 2006-05-03  Bruno Haible  <bruno@clisp.org>
80271
80272         * lib/stdint_.h: Shorter URL.
80273         * lib/inttypes.h: Likewise.
80274
80275 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80276
80277         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80278
80279 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80280
80281         * lib/verify.h: Document the internals better.  Most of this change
80282         was written by Bruno Haible.
80283
80284 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80285
80286         * doc/verify.texi: New file, partly based on a proposal by
80287         Bruno Haible.
80288
80289 2006-05-02  Bruno Haible  <bruno@clisp.org>
80290
80291         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80292         test from here...
80293         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80294
80295 2006-04-29  Bruno Haible  <bruno@clisp.org>
80296
80297         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80298         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80299
80300 2006-04-29  Bruno Haible  <bruno@clisp.org>
80301
80302         * gnulib-tool: Make --update option actually work.
80303
80304 2006-04-29  Bruno Haible  <bruno@clisp.org>
80305
80306         * doc/gcd.texi: New file.
80307         * doc/gnulib.texi: Include it.
80308
80309 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80310
80311         * lib/getdate.y (get_date): When adding relative date, start with the
80312         initial time, not with the result of the first mktime call.
80313
80314 2006-04-25  Bruno Haible  <bruno@clisp.org>
80315
80316         * gnulib-tool (func_import): Output the include directives in three
80317         blocks, sorted separately.
80318         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80319
80320 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80321
80322         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80323         to define main with arguments, for C++.  Reported by Eric Blake.
80324         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80325         Prefer 'int main ()' to 'int main (void)', for C++.
80326         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80327         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80328         for 'main', for C99 and C++.
80329
80330 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80331
80332         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80333         Don't assume that exit status -1 is valid.
80334         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80335         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80336         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80337         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80338         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80339         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80340         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80341         functions can be used without declaring them, or that you can
80342         exit with status -1.
80343         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80344
80345 2006-04-24  Karl Berry  <karl@gnu.org>
80346
80347         * config/srclist.txt (longdouble.m4): sync lost.
80348
80349 2006-04-24  Eric Blake  <ebb9@byu.net>
80350
80351         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80352
80353 2006-04-24  Bruno Haible  <bruno@clisp.org>
80354
80355         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80356         poll() implementation in AIX.
80357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80358
80359 2006-04-24  Bruno Haible  <bruno@clisp.org>
80360
80361         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80362         assigned exactly once.
80363
80364 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80365             Bruno Haible  <bruno@clisp.org>
80366
80367         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80368         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80369         for AM_CPPFLAGS.
80370
80371 2006-04-23  Bruno Haible  <bruno@clisp.org>
80372
80373         * modules/copy-file: Depend on unistd.
80374         * modules/execute: Likewise.
80375         * modules/fatal-signal: Likewise.
80376         * modules/findprog: Likewise.
80377         * modules/mkdtemp : Likewise.
80378         * modules/pipe: Likewise.
80379         * modules/wait-process: Likewise.
80380
80381 2006-04-23  Bruno Haible  <bruno@clisp.org>
80382
80383         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80384         condition was already detected.
80385         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80386
80387 2006-04-23  Bruno Haible  <bruno@clisp.org>
80388
80389         * lib/copy-file.c: Include <unistd.h> unconditionally.
80390         * lib/execute.c: Likewise.
80391         * lib/fatal-signal.c: Likewise.
80392         * lib/findprog.c: Likewise.
80393         * lib/mkdtemp.c: Likewise.
80394         * lib/pipe.h: Likewise.
80395         * lib/pipe.c: Likewise.
80396         * lib/wait-process.h: Likewise.
80397
80398 2006-04-23  Bruno Haible  <bruno@clisp.org>
80399
80400         * gnulib-tool (func_usage): Fix --import description. Document
80401         --update.
80402         (func_import): Create temporary file in a temporary directory, if
80403         --dry-run is specified. Silence errors from 'grep' when there are no
80404         m4 files in $m4dir.
80405         (func_create_testdir): Silence errors from 'grep' when there are no
80406         m4 files in $m4dir.
80407         Reported by Karl Berry <karl@freefriends.org>.
80408
80409 2006-04-20  Bruno Haible  <bruno@clisp.org>
80410
80411         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80412         one argument, so that the code will be portable to Autoconf 2.60.
80413         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80414         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80415         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80416
80417 2006-04-19  Derek Price  <derek@ximbiot.com>
80418             Eric Blake  <ebb9@byu.net>
80419
80420         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80421         rather than "/full/path.h".  Update comment to match.  Shorten &
80422         generalize m4_translit call via AS_TR_CPP.
80423
80424 2006-04-19  Derek Price  <derek@ximbiot.com>
80425             Eric Blake  <ebb9@byu.net>
80426
80427         * lib/inttypes.h: Correct grammar in comment.
80428
80429 2006-04-18  Derek Price  <derek@ximbiot.com>
80430             Paul Eggert  <eggert@cs.ucla.edu>
80431
80432         * modules/inttypes: New file.
80433         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80434
80435 2006-04-18  Derek Price  <derek@ximbiot.com>
80436             Paul Eggert  <eggert@cs.ucla.edu>
80437
80438         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80439         New files.
80440
80441 2006-04-18  Derek Price  <derek@ximbiot.com>
80442             Paul Eggert  <eggert@cs.ucla.edu>
80443
80444         * lib/inttypes.h: New file.
80445         * lib/strtoimax.c: Assume <inttypes.h>.
80446
80447 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80448
80449         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80450         isn't mounted.  Problem reported by Kir Kolyshkin.
80451
80452 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80453
80454         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80455         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80456         Derek R. Price.
80457         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80458         implementation.
80459
80460 2006-04-12  Eric Blake  <ebb9@byu.net>
80461
80462         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80463         is now done automatically by the corresponding Autoconf macro.
80464
80465 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80466
80467         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80468         time_r.h.
80469
80470 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         Merge regex changes from libc, removing some of our
80473         POSIX-conformance changes that were rejected and redoing them in a
80474         less-intrusive way.
80475
80476         * lib/regcomp.c (re_compile_internal, init_dfa):
80477         Length arg is now size_t, not Idx.  All uses changed.
80478         (peek_token): Forward decl now says internal_function.
80479         (__re_error_msgid, __re_error_msgid_idx):
80480         Now static rather than extern with attribute_hidden.
80481         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80482         For some reason libc prefers K&R style defns for external functions.
80483         (regerror) [!defined _LIBC]: Likewise.
80484         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80485         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80486         (build_range_exp, build_collating_symbol):
80487         Use K&R-style defn.
80488         (re_compile_fastmap): Use '\0' to memset, not 0.
80489         (utf8_sb_map): Make the calculations more obvious.
80490         (init_dfa, parse_bracket_exp, build_charclass_op):
80491         Call calloc and cast result, as glibc does.
80492         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80493         (build_range_exp, build_collating_symbol):
80494         Now internal functions.
80495
80496         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80497
80498         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80499         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80500         Don't depend on VMS; depend on __VMS instead, for POSIX
80501         namespace cleanness.
80502         (regoff_t): Define to ssize_t, not long int.
80503
80504         Remove the REG_ macros named below.  Instead, make the old names
80505         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80506         __USE_GNU_REGEX.
80507         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80508         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80509         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80510         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80511         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80512         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80513         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80514         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80515         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80516         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80517         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80518         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80519         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80520         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80521         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80522         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80523         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80524         (REG_NREGS):
80525         Remove.  All uses replaced by the old RE_* names.
80526         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80527         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80528         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80529         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80530         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80531         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80532         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80533         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80534         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80535         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80536         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80537         Don't bother having these macros be independent of each others'
80538         values, since they no longer exist in the POSIX name space.
80539
80540         Rename the following member names back to their old names,
80541         unless !__USE_GNU_REGEX.  All uses changed back.
80542         (buffer): Renamed from re_buffer.
80543         (allocated): Renamed from re_allocated.
80544         (used): Renamed from re_used.
80545         (syntax): Renamed from re_syntax.
80546         (fastmap): Renamed from re_fastmap.
80547         (translate): Renamed from re_translate.
80548         (can_be_null): Renamed from re_can_be_null.
80549         (regs_allocated): Renamed from re_regs_allocated.
80550         (fastmap_accurate): Renamed from re_fastmap_accurate.
80551         (no_sub): Renamed from re_no_sub.
80552         (not_bol): Renamed from re_not_bol.
80553         (not_eol): Renamed from re_not_eol.
80554         (newline_anchor): Renamed from re_newline_anchor.
80555         (num_regs): Renamed from rm_num_regs.
80556         (start): Renamed from rm_start.
80557         (end): Renamed from rm_end.
80558
80559         (free_state): Move up a bit.
80560
80561         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80562         #define to be empty.
80563         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80564         when that is what is intended.
80565         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80566         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80567         (MAX): New macro.
80568         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80569         All uses changed back to re_malloc, etc.  It's now the caller's
80570         responsibility to check for overflow; all callers changed.
80571         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80572         (re_x2nrealloc): Remove.
80573         (free_state): Remove decl.
80574
80575         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80576         (re_set_registers, re_exec):
80577         Use K&R-style defn.
80578
80579         2006-01-31  Roland McGrath  <roland@redhat.com>
80580
80581         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80582         Reported by Mike Frysinger <vapier@gentoo.org>.
80583
80584         2006-01-15  Andreas Jaeger  <aj@suse.de>
80585
80586         [BZ #1950]
80587         * lib/regex_internal.c (re_string_reconstruct): Adjust for
80588         build_wcs_upper_buffer change.
80589         (build_wcs_upper_buffer): Change return type.
80590
80591         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
80592
80593         * lib/regex_internal.h: Include <stdint.h> if available.
80594
80595         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
80596
80597         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
80598
80599         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
80600
80601         * lib/regcomp.c: Adjust for changed secondary hash function.
80602
80603         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
80604
80605         * lib/regex.h: Pretty printing.
80606         Clean up namespace a bit.
80607
80608         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
80609
80610         * lib/regexec.c (update_cur_sifted_state, check_arrival,
80611         check_arrival_add_next_nodes): Avoid using uninitialized variable.
80612
80613         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80614                     Ulrich Drepper  <drepper@redhat.com>
80615
80616         [BZ #1302]
80617         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
80618         changed.
80619         (bitset_word_t): Renamed from bitset_word.  All uses changed.
80620
80621         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
80622
80623         [BZ #281]
80624         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
80625         * lib/regcomp.c: Remove unnecessary uses of
80626         unsigned RE_TRANSLATE_TYPE.
80627         * lib/regex_internal.h: Likewise.
80628         * lib/regex_internal.c: Likewise.
80629         * lib/regexec.c: Likewise.
80630         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
80631
80632         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
80633
80634         * lib/regexec.c (find_recover_state): Remove unnecessary
80635         initialization.
80636         (transit_state_bkref): Make DFA a const pointer.
80637         (get_subexp): Likewise.
80638         (check_arrival): Likewise.
80639         (update_cur_sifted_state): Likewise.
80640         (re_search_internal): Likewise.
80641         (prune_impossible_nodes): Likewise.
80642         (acquire_init_state_context): Likewise.
80643         (proceed_next_node): Likewise.
80644         (set_regs): Likewise.
80645         (free_fail_stack_return): Likewise.
80646         (check_arrival_expand_ecl): Mark DFA parameter as const.
80647         (check_arrival_expand_ecl_sub): Likewise.
80648         (check_subexp_limits): Likewise.
80649         (sub_epsilon_src_nodes):  Likewise.
80650         (add_epsilon_src_nodes):  Likewise.
80651         (merge_state_array): Likewise.
80652         (update_regs): Likewise.
80653         (build_trtable): Likewise.
80654         (sift_states_backward): Mark MCTX parameter as const.
80655         (build_sifted_states): Likewise.
80656         (update_cur_sifted_state): Likewise.
80657         (sift_states_mkref): Likewise.
80658         (check_arrival_expand_ecl): Mark eclosure as const.
80659         (check_dst_limits_calc_pos_1): Likewise.
80660         * lib/regex_internal.h (re_match_context_t): Make dfa a const
80661         pointer.
80662
80663         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
80664
80665         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
80666         (transit_state_sb): Likewise.
80667         (transit_state_mb): Likewise.
80668         (sift_states_iter_mb): Likewise.
80669         (check_arrival_add_next_nodes): Likewise.
80670         (check_node_accept_bytes): Change first parameter to pointer-to-const.
80671         [_LIBC] (re_search_2_stub): Use mempcpy.
80672
80673         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
80674         mbrtowc for very simple UTF-8 case.
80675
80676         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
80677         a pointer-to-const.
80678         (re_acquire_state_context): Likewise.
80679         * lib/regex_internal.h: Adjust prototypes.
80680
80681         * lib/regex.c: Prevent using C++ compilers.
80682
80683         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
80684         (re_acquire_state_context): Likewise.
80685
80686 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80687
80688         * modules/regex (Depends-on): Add ssize_t.
80689
80690 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80691
80692         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
80693         translation table.
80694
80695 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80696
80697         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
80698
80699 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
80700             Bruno Haible  <bruno@clisp.org>
80701
80702         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
80703         <sys/types.h> and <inttypes.h>.
80704
80705 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80706
80707         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
80708         `__error_t_defined', so argp.h will not typedef the former.
80709
80710 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80711
80712         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
80713         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
80714         glibc names.  Even if glibc is changed to conform to POSIX, the
80715         traditional names will be available anyway, since regex depends on
80716         the extensions module.  Also, fix a longstanding typo in the
80717         implementation of Spencer ERE test #75 from grep 2.3.  Problems
80718         reported by Emanuele Giaquinta.  Also, change sense of cached
80719         variable, so that the message makes sense.
80720
80721 2006-03-24  Simon Josefsson  <jas@extundo.com>
80722
80723         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
80724         including some doc fixes.
80725         (base64_encode_alloc): Fix +1 bug on allocation failures.
80726
80727 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80728
80729         * lib/base64.c (base64_encode): Do not read past end of array with
80730         unsanitized input on systems with CHAR_BIT > 8.
80731
80732 2006-03-24  Eric Blake  <ebb9@byu.net>
80733
80734         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
80735
80736 2006-03-22  Karl Berry  <karl@gnu.org>
80737
80738         * config/srclist.txt (*setenv.[ch]): get from coreutils.
80739         * config/srclistvars.sh (COREUTILS): new var.
80740
80741 2006-03-17  Jim Meyering  <jim@meyering.net>
80742
80743         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
80744         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
80745
80746 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80747
80748         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
80749         no longer needs it.  Instead, check that regoff_t is as least
80750         as wide as ptrdiff_t.
80751
80752         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
80753         so that our regex.h stays compatible with the installed regex.
80754         This is helpful for installers who configure --without-included-regex.
80755         Problem reported by Emanuele Giaquinta.
80756
80757 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80758
80759         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
80760         Typedef to long int, not to off_, as POSIX will likely change
80761         in that direction.
80762
80763 2006-03-15  Eric Blake  <ebb9@byu.net>
80764
80765         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
80766
80767 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80768
80769         * lib/argp-help.c (validate_uparams): Fix typo
80770         * lib/argp-parse.c (argp_default_options): Consistently begin help
80771         messages with a lowercase letter.
80772
80773 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
80774
80775         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
80776         overrun buffers and shouldn't be used (much as gets shouldn't be
80777         used).
80778         * lib/time_r.c (asctime_r, ctime_r): Likewise.
80779
80780 2006-03-08  Simon Josefsson  <jas@extundo.com>
80781
80782         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
80783         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80784
80785 2006-03-08  Simon Josefsson  <jas@extundo.com>
80786
80787         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
80788         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80789
80790 2006-03-08  Simon Josefsson  <jas@extundo.com>
80791
80792         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
80793         signal that configure disabled the device.
80794
80795 2006-03-08  Simon Josefsson  <jas@extundo.com>
80796
80797         * build-aux/maint.mk: Fix refresh-po, to handle no translated
80798         languages.
80799
80800 2006-03-07  Simon Josefsson  <jas@extundo.com>
80801
80802         * modules/getopt (Depends-on): Add unistd.
80803
80804         * modules/unistd: New file.
80805
80806 2006-03-07  Simon Josefsson  <jas@extundo.com>
80807
80808         * modules/gc-random: New file.
80809
80810 2006-03-07  Simon Josefsson  <jas@extundo.com>
80811
80812         * m4/unistd_h.m4: New file.
80813
80814 2006-03-07  Simon Josefsson  <jas@extundo.com>
80815
80816         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
80817         test to be side-effect free by storing the result in the cache
80818         variable gl_cv_lib_readline, and moving the assignment of
80819         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
80820         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80821
80822 2006-03-07  Simon Josefsson  <jas@extundo.com>
80823
80824         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
80825         error on missing devices (the functions will return an error).
80826
80827         * m4/gc.m4: Move random stuff to gc-random.m4
80828
80829 2006-03-07  Simon Josefsson  <jas@extundo.com>
80830
80831         * lib/unistd_.h: New file.
80832
80833 2006-03-07  Simon Josefsson  <jas@extundo.com>
80834
80835         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
80836
80837 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80838
80839         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
80840         Problem reported by Juan Manuel Guerrero.
80841
80842 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80843
80844         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
80845         the unistd module.
80846         * lib/getlogin_r.c: Likewise.
80847         * lib/getlogin_r.h: Likewise.
80848         * lib/glob.c: Likewise.
80849         * lib/pagealign_alloc.c: Likewise.
80850         * lib/unistd_.h: Remove; no longer needed.
80851
80852 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80853
80854         * MODULES.html.sh (Support for systems lacking POSIX:2001):
80855         Add unistd.
80856         * modules/c-stack (Depends-on): Add unistd.
80857         * modules/getlogin_r: Likewise.
80858         * modules/glob: Likewise.
80859         * modules/pagealign_alloc: Likewise.
80860         * modules/unistd (Files): Remove lib/unistd_.h.
80861         (EXTRA_DIST): Remove.
80862         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
80863         need unistd_.h.
80864         (MOSTLYCLEANFILES): Remove unistd.h-t.
80865
80866 2006-03-03  Simon Josefsson  <jas@extundo.com>
80867
80868         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
80869
80870 2006-03-03  Simon Josefsson  <jas@extundo.com>
80871
80872         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
80873         libidn and bison.
80874
80875 2006-03-03  Simon Josefsson  <jas@extundo.com>
80876
80877         * build-aux/maint.mk: Add indent target.
80878
80879 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
80880
80881         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
80882         our replacement poll.h in any case, to avoid a differing
80883         declaration from a system header.  Seen on AIX.
80884
80885 2006-03-01  Simon Josefsson  <jas@extundo.com>
80886
80887         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
80888         <kasal@ucw.cz>.
80889
80890 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80891
80892         * modules/gettime (Depends-on): Add extensions module.
80893         * modules/nanosleep (Depends-on): Likewise.
80894         * modules/settime (Depends-on): Likewise.
80895
80896 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80897
80898         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
80899         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
80900         pedantically.
80901         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80902         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
80903
80904         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
80905         not "==".  Reported by Ralf Wildenhues.
80906
80907 2006-03-01  Karl Berry  <karl@gnu.org>
80908
80909         * doc/Copyright/request-*: new files, synced from gnuorg.
80910
80911 2006-03-01  Karl Berry  <karl@gnu.org>
80912
80913         * config/srclist.txt (Copyright/*): new entries.
80914
80915 2006-02-28  Simon Josefsson  <jas@extundo.com>
80916
80917         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
80918
80919 2006-02-27  Simon Josefsson  <jas@extundo.com>
80920
80921         * lib/base64.h: Indent #define's.  From Jim Meyering
80922         <jim@meyering.net>.
80923
80924 2006-02-27  Jim Meyering  <jim@meyering.net>
80925
80926         Revert the change of 2006-02-24, so these files can continue
80927         to be sync'd from gettext.
80928         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
80929         of `config.h'.
80930
80931 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80932
80933         * modules/intprops: New file.
80934         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
80935         Add intprops.
80936         * modules/getloadavg (Files): Remove lib/intprops.h.
80937         (Depends-on): Add intprops.
80938         * modules/human: Likewise.
80939         * modules/inttostr: Likewise.
80940         * modules/openat: Likewise.
80941         * modules/sig2str: Likewise.
80942         * modules/userspec: Likewise.
80943         * modules/utimecmp: Likewise.
80944         * modules/xnanosleep: Likewise.
80945         * modules/xstrtol: Likewise.
80946
80947 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
80948
80949         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
80950         * modules/lock-tests (TESTS): Use $(EXEEXT).
80951         * modules/tls-tests: Likewise.
80952         * modules/argp-tests: Likewise.
80953         (check_PROGRAMS): New var, replacing...
80954         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
80955
80956 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80957
80958         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
80959         `config.h'.
80960
80961 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
80962
80963         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
80964
80965 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80966
80967         Sync from coreutils.
80968         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
80969         gl_CHDIR_SAFER.
80970
80971 2006-02-22  Jim Meyering  <jim@meyering.net>
80972
80973         Sync from coreutils.
80974         * m4/chdir-safer.m4: New file.
80975
80976 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
80977
80978         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
80979         AT_FDCWD exceeds INT_MAX.
80980         * lib/openat.h (AT_FDCWD): Likewise.
80981
80982 2006-02-17  Eric Blake  <address@hidden>
80983
80984         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
80985
80986 2006-02-16  Simon Josefsson  <jas@extundo.com>
80987
80988         * modules/getaddrinfo (Depends-on): Add sys_socket.
80989
80990 2006-02-15  Simon Josefsson  <jas@extundo.com>
80991
80992         * build-aux/maint.mk: Add dsyntax-check rule.
80993
80994 2006-02-15  Eric Blake  <ebb9@byu.net>
80995
80996         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
80997         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
80998         'present but cannot compile' warnings on cygwin.
80999         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81000         use ws2tcpip.h if sys/socket.h works.
81001         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81002         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81003
81004 2006-02-14  Simon Josefsson  <jas@extundo.com>
81005
81006         * modules/maintainer-makefile (Files): Rename.
81007
81008         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81009         and (the local) Makefile.cfg to maint-cfg.mk.
81010
81011         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81012         to the latter.
81013
81014         * modules/maintainer-makefile: New module.
81015
81016         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81017         severaly stripped to make it possible to build it up from scratch
81018         with reliable tests.
81019
81020         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81021         fixes to permit overriding the default actions when configure and
81022         makefile are not available.
81023
81024 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81025
81026         Sync from coreutils.
81027         * modules/lstat (Depends-on): Don't depend on xalloc.
81028         (License): Change from GPL to LGPL, since this is now simply a
81029         replacement for a libc function.
81030
81031 2006-02-14  Jim Meyering  <jim@meyering.net>
81032
81033         Sync from coreutils.
81034
81035         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81036         failure on deficient systems, and simplify gnulib lgpl dependencies.
81037         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81038         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81039
81040         * lib/xalloc-die.c: Remove unused definition of N_.
81041
81042 2006-02-14  Jim Meyering  <jim@meyering.net>
81043
81044         Sync from coreutils.
81045         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81046         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81047         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81048         double-quote uses of that variable, to accommodate the rare case in
81049         which getmntent is available in none of the libraries checked.  This
81050         happens at least on FreeBSD 5.0.
81051
81052 2006-02-13  Simon Josefsson  <jas@extundo.com>
81053
81054         * gnulib-tool (Usage): Fix --import, from
81055         karl@freefriends.org (Karl Berry).
81056
81057 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81058
81059         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81060
81061 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81062
81063         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81064         "autoupdate" on 2005-12-12.
81065
81066 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81067
81068         * modules/closeout (Depends-on): Remove atexit.
81069
81070 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81071
81072         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81073         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81074
81075 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81076
81077         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81078         __EXTENSIONS__ if this causes compilation to fail.  Problem
81079         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81080         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81081
81082 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81083
81084         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81085         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81086         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81087         All uses changed.
81088
81089 2006-01-26  Simon Josefsson  <jas@extundo.com>
81090
81091         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81092         prototype is visible on mingw32.
81093
81094         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81095         for mingw32.
81096
81097         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81098         mingw32).
81099
81100 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81101
81102         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81103         attempt to open for write; this always fails, at least on POSIX
81104         hosts.  This reinstates the 2006-01-09 change, which was
81105         inadvertently removed.
81106
81107 2006-01-26  Bruno Haible  <bruno@clisp.org>
81108
81109         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81110         Reported by Paul Eggert.
81111
81112 2006-01-26  Bruno Haible  <bruno@clisp.org>
81113             Paul Eggert  <eggert@cs.ucla.edu>
81114
81115         * lib/stdbool_.h (_Bool)
81116         [(! (defined __cplusplus || defined __BEOS__)
81117           && !defined __GNUC__
81118           && !(defined __HP_cc || defined __xlc__
81119                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81120                || defined __sgi))]:
81121         #define to signed char in these cases too; this simplifies
81122         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81123         etc., separately) and makes it more conservative.
81124
81125 2006-01-25  Simon Josefsson  <jas@extundo.com>
81126
81127         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81128         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81129         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81130
81131 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81132
81133         * lib/argp-namefrob.h: Bugfix. Remove stray #
81134
81135 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81136
81137         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81138         so that we test the test.
81139         Check for yet another HP-UX cc bug involving *bool |= bool.
81140
81141 2006-01-25  Karl Berry  <karl@gnu.org>
81142
81143         * config/srclist.txt (vasnprintf.c): sync lost.
81144
81145 2006-01-25  Jim Meyering  <jim@meyering.net>
81146
81147         Sync from the stable (b5) branch of coreutils:
81148
81149         * lib/fts.c (fts_children): Don't let close() clobber errno from
81150         failed fchdir().
81151
81152         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81153         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81154         a dangling symlink.  That can also happen at least for ELOOP.
81155         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81156         FYI, this bug predates the inclusion of fts.c in coreutils.
81157
81158         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81159         in their own block, so pre-c99 compilers don't object.
81160
81161         Avoid the double-free (first in fts_read, second in fts_close) that
81162         would occur when an `active' directory is made inaccessible (e.g.,
81163         via chmod a-x) during a traversal.
81164         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81165         before returning.  Reproduce this failure by
81166         mkdir -p a/b; cd a; chmod a-x . b
81167         Reported by Stavros Passas.
81168
81169 2006-01-25  Jim Meyering  <jim@meyering.net>
81170
81171         * lib/fileblocks.c: Remove more useless parentheses.
81172         * lib/readutmp.h: Likewise.
81173
81174 2006-01-25  Bruno Haible  <bruno@clisp.org>
81175
81176         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81177         warnings.
81178         Reported by Paul Eggert.
81179
81180 2006-01-25  Bruno Haible  <bruno@clisp.org>
81181
81182         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81183         rid of a trap command. For Solaris sh.
81184         Reported by Mark D. Baushke <mdb@gnu.org>.
81185
81186 2006-01-24  Simon Josefsson  <jas@extundo.com>
81187
81188         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81189         Bruno.
81190
81191 2006-01-24  Karl Berry  <karl@gnu.org>
81192
81193         * config/srclist.txt (argp-namefrob.h): sync lost.
81194
81195 2006-01-24  Jim Meyering  <jim@meyering.net>
81196
81197         * modules/openat (Files): Add lib/intprops.h.
81198         From Mark D. Baushke.
81199
81200 2006-01-24  Jim Meyering  <jim@meyering.net>
81201
81202         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81203         Reported by Mark D. Baushke.
81204
81205 2006-01-24  Jim Meyering  <jim@meyering.net>
81206
81207         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81208
81209 2006-01-24  Bruno Haible  <bruno@clisp.org>
81210
81211         * modules/strnlen (Maintainer): Change from glibc to all.
81212
81213 2006-01-24  Bruno Haible  <bruno@clisp.org>
81214
81215         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81216         Patch by Paul Eggert.
81217
81218 2006-01-24  Bruno Haible  <bruno@clisp.org>
81219
81220         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81221         already has it.
81222         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81223         2005-11-26.
81224
81225         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81226         'signed char' to avoid problems with the built-in _Bool type.
81227         Reported by Paul Eggert on 2005-11-26.
81228
81229 2006-01-24  Bruno Haible  <bruno@clisp.org>
81230
81231         * gnulib-tool (func_import): Avoid constructing complicated sed
81232         expressions inside backquote.
81233         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81234
81235 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81236
81237         These changes imported from libc.
81238         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81239         test and two separate function calls.
81240         * lib/strndup.c (__strndup): Add libc_hidden_def.
81241
81242 2006-01-23  Simon Josefsson  <jas@extundo.com>
81243
81244         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81245         Remove the test_*_SOURCES variable: automake infers it by default.
81246         * modules/tls-tests: Likewise.
81247
81248 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81249
81250         Work around porting bugs reported by Dieter in
81251         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81252         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81253         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81254         Include "getopt.h" first, to check interface.
81255         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81256         !HAVE_DECL_GETENV.
81257         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81258         (__strndup): Revert to K&R-style function dfns, the glibc style.
81259         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81260         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81261         Include strnlen.h first, to get prototype properly.
81262         (strnlen): Renamed from __strnlen.
81263         Remove weak alias.
81264
81265 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81266
81267         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81268
81269 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81270
81271         * config/srclist.txt: Adjust to reflect glibc reorganization.
81272         This affects only comments.
81273
81274 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81275
81276          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81277          Reported by Bruce Korb <bkorb@gnu.org>.
81278
81279 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81280
81281         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81282         to pacify gcc -Wswitch-default.
81283
81284 2006-01-22  Bruno Haible  <bruno@clisp.org>
81285
81286         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81287         temporary buffer for sprintf, take into account the precision also
81288         for 'd', 'i', 'u', 'o', 'x', 'X'.
81289
81290 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81291
81292         * modules/argp-tests: New module
81293         * tests/test-argp.c: New file
81294         * tests/test-argp-2.sh: New file
81295
81296 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81297
81298         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81299         (__argp_base_name): Removed
81300         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81301         typo.
81302         (__argp_base_name): Provide macro definition or extern declaration
81303         depending on the configuration
81304
81305 2006-01-20  Simon Josefsson  <jas@extundo.com>
81306
81307         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81308
81309 2006-01-20  Simon Josefsson  <jas@extundo.com>
81310
81311         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81312
81313 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81314
81315         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81316         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81317         Suggested by Bruno Haible.
81318
81319 2006-01-20  Karl Berry  <karl@gnu.org>
81320
81321         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81322         until changes propagate, I guess.
81323
81324 2006-01-19  Simon Josefsson  <jas@extundo.com>
81325
81326         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81327
81328 2006-01-19  Simon Josefsson  <jas@extundo.com>
81329
81330         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81331
81332 2006-01-19  Simon Josefsson  <jas@extundo.com>
81333
81334         * gnulib-tool: Set check_PROGRAMS.
81335
81336         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81337         modules/des-tests, modules/gc-arcfour-tests,
81338         modules/gc-arctwo-tests, modules/gc-des-tests,
81339         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81340         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81341         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81342         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81343         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81344         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81345         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81346         test_*_SOURCES.
81347
81348 2006-01-18  Simon Josefsson  <jas@extundo.com>
81349
81350         * modules/socklen (Depends-on): Depend on sys_socket.
81351
81352 2006-01-18  Simon Josefsson  <jas@extundo.com>
81353
81354         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81355         modules/des-tests, modules/gc-arcfour-tests,
81356         modules/gc-arctwo-tests, modules/gc-des-tests,
81357         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81358         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81359         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81360         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81361         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81362         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81363         $(EXEEXT) to automake TESTS variable, for mingw32.
81364
81365 2006-01-17  Simon Josefsson  <jas@extundo.com>
81366
81367         * modules/socklen (Include): Need sys/socket.h.
81368
81369 2006-01-17  Bruno Haible  <bruno@clisp.org>
81370
81371         * modules/ssize_t (Include): Add <sys/types.h>.
81372
81373 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81374
81375         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81376         it's not portable and it doesn't work with cross-compiles.
81377         Problem reported by Bruno Haible.  Fix missing-$ typo in
81378         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81379         -zignore from being used with Sun's C compiler.
81380
81381 2006-01-12  Simon Josefsson  <jas@extundo.com>
81382
81383         * lib/base64.c: Fix warning, reported by Bruno Haible
81384         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81385
81386 2006-01-12  Bruno Haible  <bruno@clisp.org>
81387
81388         * modules/ldd: New file.
81389         * build-aux/ldd.sh.in: New file.
81390         * MODULES.html.sh (Support for building libraries and executables): Add
81391         ldd.
81392
81393 2006-01-12  Bruno Haible  <bruno@clisp.org>
81394
81395         * m4/ldd.m4: New file.
81396
81397 2006-01-12  Bruno Haible  <bruno@clisp.org>
81398
81399         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81400         endless loop while replacing $auxdir with build-aux.
81401
81402 2006-01-11  Simon Josefsson  <jas@extundo.com>
81403
81404         * lib/stdint_.h (SIZE_MAX): Add missing (.
81405
81406 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81407
81408         Sync from coreutils.
81409         * lib/md5.c: Fix commentary typos.
81410         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81411         * lib/md5.h (__attribute__): Remove; unused.
81412         * lib/sha1.c: Fix commentary to match md5 better.
81413         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81414         so that we don't need to worry about alignment.  All uses changed.
81415         This merges the 2005-10-28 md5 change into sha1.
81416
81417 2006-01-11  Jim Meyering  <jim@meyering.net>
81418
81419         Sync from coreutils.
81420         * lib/md5.c (OP): Fix spacing.
81421
81422 2006-01-11  Bruno Haible  <bruno@clisp.org>
81423
81424         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81425         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81426         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81427
81428 2006-01-11  Bruno Haible  <bruno@clisp.org>
81429
81430         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81431         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81432         the "early" section as well.
81433
81434 2006-01-11  Bruno Haible  <bruno@clisp.org>
81435
81436         Avoid "ar: no archive members specified" error on MacOS X.
81437         * gnulib-tool (func_modules_add_dummy): New function.
81438         (func_import, func_create_testdir): Invoke it.
81439
81440 2006-01-11  Bruno Haible  <bruno@clisp.org>
81441
81442         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81443         with $auxdir in AC_CONFIG_FILES statements.
81444
81445 2006-01-11  Bruno Haible  <bruno@clisp.org>
81446
81447         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81448         Initialize also noinst_HEADERS to empty.
81449
81450 2006-01-11  Bruno Haible  <bruno@clisp.org>
81451
81452         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81453         variables.
81454         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81455         autoreconf.
81456
81457 2006-01-11  Bruno Haible  <bruno@clisp.org>
81458
81459         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81460         overridable by the user.
81461         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81462
81463 2006-01-10  Simon Josefsson  <jas@extundo.com>
81464
81465         * modules/sys_socket: New file.
81466
81467 2006-01-10  Simon Josefsson  <jas@extundo.com>
81468
81469         * m4/sys_socket_h.m4: New file.
81470
81471 2006-01-10  Simon Josefsson  <jas@extundo.com>
81472
81473         * lib/socket_.h: New file.
81474
81475 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81476
81477         * modules/readutmp (Maintainer): Add myself.
81478
81479 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81480
81481         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81482         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81483         People who are still concerned with buggy memcmp implementations
81484         can invoke gl_FUNC_MEMCMP themselves.
81485
81486 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81487
81488         * lib/regex_internal.h (BITSET_WORD_BITS):
81489         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81490         preprocessor mishandles large unsigned values as if they were signed.
81491         Problem reported by Claudio Fontana in
81492         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81493
81494 2006-01-10  Jim Meyering  <jim@meyering.net>
81495
81496         Avoid the double-free (first in fts_read, second in fts_close) that
81497         would occur when an `active' directory is made inaccessible (e.g.,
81498         via chmod a-x) during a traversal.
81499         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81500         before returning.  Reproduce this failure by
81501         mkdir -p a/b; cd a; chmod a-x . b
81502         Reported by Stavros Passas.
81503
81504         Sync from coreutils.
81505         * lib/sha1.c: Tweak grammar in a comment.
81506
81507 2006-01-10  Jim Meyering  <jim@meyering.net>
81508
81509         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81510         Patch by Joerg Sonnenberger.
81511
81512 2006-01-10  Bruno Haible  <bruno@clisp.org>
81513
81514         * modules/readutmp: Depend on module free.
81515         * modules/strtok_r: Depend on module restrict.
81516
81517 2006-01-10  Bruno Haible  <bruno@clisp.org>
81518
81519         * modules/gettext (configure.ac): Add an invocation of
81520         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81521
81522 2006-01-10  Bruno Haible  <bruno@clisp.org>
81523
81524         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81525         Reported by Werner Lemberg <wl@gnu.org>.
81526
81527 2006-01-10  Bruno Haible  <bruno@clisp.org>
81528
81529         * lib/localcharset.c: Update from GNU gettext.
81530
81531 2006-01-10  Bruno Haible  <bruno@clisp.org>
81532
81533         * lib/argp.h (__const): Remove macro. Use const instead.
81534         * lib/argp-fmtstream.h (__const): Likewise.
81535         * lib/glob_.h (__const): Remove macro.
81536         * lib/glob-libc.h: Use const instead of __const.
81537
81538 2006-01-10  Bruno Haible  <bruno@clisp.org>
81539
81540         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81541         variable.
81542         Needed to avoid an automake error regarding the 'gettext' module.
81543
81544 2006-01-09  Simon Josefsson  <jas@extundo.com>
81545
81546         * modules/inet_ntop (Depends-on): Add restrict.
81547
81548 2006-01-09  Simon Josefsson  <jas@extundo.com>
81549
81550         * modules/gc-rijndael-tests (License): Put under LGPL.
81551
81552         * modules/gc-des-tests (License): Likewise.
81553
81554         * modules/gc-arcfour-tests (License): Likewise.
81555
81556         * modules/gc-arctwo-tests (License): Likewise.
81557
81558         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81559
81560         * modules/gc-hmac-sha1-tests (Files): Likewise.
81561
81562         * modules/gc-hmac-md5-tests (License): Likewise.
81563
81564         * modules/gc-sha1-tests (License): Likewise.
81565
81566         * modules/gc-md5-tests (License): Likewise.
81567
81568         * modules/gc-md4-tests (License): Likewise.
81569
81570         * modules/gc-md2-tests (License): Likewise.
81571
81572         * modules/gc-tests (License): Likewise.
81573
81574         * modules/des-tests (License): Likewise.
81575
81576         * modules/md4-tests (License): Likewise.
81577
81578         * modules/md2-tests (License): Likewise.
81579
81580 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81581
81582         Sync from coreutils:
81583
81584         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
81585         * modules/lib-ignore: New file.
81586         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
81587         chdir-safer.m4, lchmod.m4.
81588         * modules/openat: Add mkdirat.c, openat-priv.h.
81589
81590 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81591
81592         Sync from coreutils.
81593         * m4/lib-ignore.m4: New file.
81594         * m4/lchmod.m4: New file.
81595
81596 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81597
81598         Sync from coreutils.
81599         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
81600         for write access: POSIX says that must fail.
81601         * lib/fts.c (diropen): Likewise.
81602         * lib/save-cwd.c (save_cwd): Likewise.
81603         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
81604         well, for minor improvements on hosts that lack O_DIRECTORY.
81605         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
81606         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
81607         Fall back on chown if open failed with EACCES.
81608
81609         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
81610         Report an error at compile-time if only a 1-second nominal clock
81611         resolution is found.
81612
81613         * lib/lchmod.h: New file.
81614         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
81615         (make_dir_parents): Use lchown rather than chown, and
81616         lchmod rather than chmod.
81617
81618         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
81619         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
81620         "proc" reported by n0dalus.
81621
81622         * lib/mountlist.c: Include <limits.h>.
81623         (dev_from_mount_options)
81624         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
81625         New function.  It no longer assumes "dev=" has the System V meaning
81626         on Linux (since it doesn't).  It also parses "dev=" more carefully.
81627         (read_file_system_list)
81628         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
81629         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
81630         dev= in that case.
81631
81632         * lib/posixtm.h (PDS_PRE_2000): New macro.
81633         * lib/posixtm.c (year): Arg is now syntax_bits rather than
81634         allow_century.  All usages changed.  Reject dates outside the range
81635         1969-1999 if PDS_PRE_2000 is used.
81636
81637 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81638
81639         Sync from coreutils.
81640         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
81641         (Time of day items): Mention the possibility of leap seconds.
81642         Problem reported by Dr. David Alan Gilbert.
81643
81644 2006-01-09  Jim Meyering  <jim@meyering.net>
81645
81646         Sync from coreutils.
81647
81648         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
81649
81650         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
81651
81652         * lib/modechange.c (mode_compile): Reject an invalid mode string
81653         that starts with an octal digit.  From Andreas Gruenbacher.
81654
81655         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
81656         and dup to open_safer and dup_safer, respectively.
81657         (openat_permissive): Fix typo in comment.
81658
81659         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
81660         "gettext.h"; either no longer needed or are guaranteed by openat.h.
81661         (_): Remove; no longer needed.
81662         (openat): Renamed from rpl_openat; no need for rpl_openat
81663         since openat.h renames openat for us.
81664         Replace most of the body with a call to openat_permissive,
81665         to avoid duplicate code.
81666         Port to (probably hypothetical) environments were mode_t is
81667         wider than int.
81668         (openat_permissive): Require mode arg, so that we can check
81669         types better.  Put it just after flags.  Change cwd failure
81670         indicator from pointer-to-bool to pointer-to-errno-value.
81671         All callers changed.
81672         Invoke openat_save_fail and/or openat_restore_fail if
81673         cwd_errno is null, so that openat can call us.
81674         (openat_permissive, fdopendir, fstatat, unlinkat):
81675         Simplify errno handling to avoid some duplicate code,
81676         as it's OK to set errno on success.
81677         * lib/openat.h: Revamp code so that function macros depend on
81678         __OPENAT_PREFIX only, not also on AT_FDCWD.
81679         (openat_ro): Remove.  Caller changed to use openat_permissive.
81680         (openat_permissive): Now a macro, if not a function.
81681         (openat_restore_fail, openat_save_fail): Now always functions,
81682         since mkdirat needs them even if __OPENAT_PREFIX is defined.
81683
81684         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
81685         and openat.c.
81686         * lib/mkdirat.c: Include openat-priv.h.
81687         Remove definitions of macros defined therein.
81688         * lib/openat.c: Likewise.
81689
81690         * lib/mkdirat.c (mkdirat): New file and function.
81691         * lib/openat.h (mkdirat): Declare.
81692
81693         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
81694
81695         * lib/openat.h (openat_permissive): Declare.
81696         (openat_ro): Define.
81697
81698         * lib/openat.c (EXPECTED_ERRNO): New macro.
81699         (openat_permissive): New function -- used in remove.c rewrite.
81700         (all functions): Set errno just before returning, only if there
81701         was an actual failure.
81702         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
81703
81704         Emulate openat-family functions using Linux's procfs, if possible.
81705         Idea and some code based on Ulrich Drepper's glibc changes.
81706
81707         * lib/openat.c: (BUILD_PROC_NAME): New macro.
81708         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
81709         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
81710         before falling back on save_cwd and restore_cwd.
81711         (fdopendir, fstatat, unlinkat): Likewise.
81712
81713         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
81714         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
81715
81716         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
81717         as second argument to va_arg.  Otherwise, some versions of gcc
81718         warn that `if this code is reached, the program will abort'.
81719
81720 2006-01-09  Jim Meyering  <jim@meyering.net>
81721
81722         Sync from coreutils.
81723         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
81724         Require openat-priv.h.
81725
81726 2006-01-09  Bruno Haible  <bruno@clisp.org>
81727
81728         * modules/strnlen (Include): Use strnlen.h.
81729
81730 2006-01-09  Bruno Haible  <bruno@clisp.org>
81731
81732         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
81733
81734 2006-01-09  Bruno Haible  <bruno@clisp.org>
81735
81736         * lib/sysexit_.h (EX_OK): New macro.
81737         Suggested by Martin Lambers <marlam@marlam.de>.
81738
81739 2006-01-09  Bruno Haible  <bruno@clisp.org>
81740
81741         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
81742         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
81743
81744 2006-01-09  Bruno Haible  <bruno@clisp.org>
81745
81746         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
81747         numbers.
81748
81749 2006-01-09  Bruno Haible  <bruno@clisp.org>
81750
81751         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
81752         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
81753         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
81754         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
81755
81756 2006-01-09  Bruno Haible  <bruno@clisp.org>
81757
81758         * build-aux/javacomp.sh.in: New file, moved from lib/.
81759         * modules/javacomp-script (Files): Update.
81760         (configure.ac): Add AC_CONFIG_FILES invocation.
81761         (EXTRA_DIST): Remove variable.
81762
81763         * build-aux/javaexec.sh.in: New file, moved from lib/.
81764         * modules/javaexec (Files): Update.
81765         (configure.ac): Add AC_CONFIG_FILES invocation.
81766         (EXTRA_DIST): Remove javaexec.sh.in.
81767
81768         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
81769         * modules/csharpcomp-script (Files): Update.
81770         (configure.ac): Add AC_CONFIG_FILES invocation.
81771         (EXTRA_DIST): Remove variable.
81772
81773         * build-aux/csharpexec.sh.in: New file, moved from lib/.
81774         * modules/csharpexec (Files): Update.
81775         (configure.ac): Add AC_CONFIG_FILES invocation.
81776         (EXTRA_DIST): Remove csharpexec.sh.in.
81777
81778 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81779
81780         Sync from coreutils.
81781
81782         Add POSIX ACL support
81783         * lib/acl.h (copy_acl, set_acl): Add declarations.
81784         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
81785         systems other than Linux.
81786         (chmod_or_fchmod): New function: use fchmod when possible,
81787         and chmod otherwise.
81788         (file_has_acl): Add a POSIX ACL implementation, with a
81789         Linux-specific subcase.
81790         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
81791         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
81792         acls are unsupported.
81793         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
81794         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
81795         are unsupported.
81796
81797 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81798
81799         Sync from coreutils.
81800         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
81801
81802 2006-01-07  Bruno Haible  <bruno@clisp.org>
81803
81804         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
81805         gl_EARLY.
81806
81807 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81808
81809         * lib/strftime.c (tzname): Don't declare if it is already #defined.
81810         Problem reported for Mingw by Mark Junker.
81811
81812 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81813
81814         * README: Gnulib normally doesn't generate a tarball.
81815
81816 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
81817
81818         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
81819         long int, not int, for nanosecond counts, so that people who are
81820         used to POSIX struct timespec won't be surprised.  Reported by Jim
81821         Meyering.
81822
81823 2005-12-28  Bruno Haible  <bruno@clisp.org>
81824
81825         * build-aux/config.rpath: Update from GNU gettext.
81826
81827 2005-12-16  Jim Meyering  <jim@meyering.net>
81828
81829         * modules/fprintftime: New module.
81830         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
81831
81832 2005-12-16  Jim Meyering  <jim@meyering.net>
81833
81834         * m4/fprintftime.m4: New file.
81835
81836 2005-12-16  Jim Meyering  <jim@meyering.net>
81837
81838         * lib/fprintftime.c, lib/fprintftime.h: New files.
81839
81840 2005-12-15  Simon Josefsson  <jas@extundo.com>
81841
81842         * modules/socklen (configure.ac): Fix M4 macro name, to align with
81843         new m4/socklen.m4.
81844
81845 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81846
81847         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
81848         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
81849
81850 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81851
81852         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
81853         * lib/argp-help.c (fill_in_uparams): Check if the constructed
81854         struct uparams is valid. Fall back to the default values if it is
81855         not.
81856
81857 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81858
81859         * modules/argp (Files): Add argp-pin.c
81860         (Depends-on): dirname
81861         (lib_SOURCES): Add argp-pin.c
81862
81863 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81864
81865         * m4/argp.m4:  Check if program_invocation_name and
81866         program_invocation_short_name are declared and define appropriate
81867         macros if they are not.
81868
81869 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81870
81871         * lib/argp-help.c (__argp_base_name): New function
81872         (__argp_short_program_name): Rewrite using __argp_base_name
81873         * lib/argp-namefrob.h: Define program_invocation_name and
81874         program_invocation_short_name if requested
81875         (__argp_base_name): Add prototype
81876         * lib/argp-parse.c (argp_def): Use gettext wrappers
81877         (argp_default_parser): Use __argp_base_name
81878         * lib/argp-pin.c: New file. Defines program_invocation_name and
81879         program_invocation_short_name on systems that lack them.
81880
81881 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81882
81883         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
81884         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81885         porting problem reported by Georg Schwarz in
81886         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81887
81888 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81889
81890         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
81891         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81892         porting problem reported by Georg Schwarz in
81893         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81894
81895 2005-12-05  Bruno Haible  <bruno@clisp.org>
81896
81897         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
81898         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
81899         Reported by Mark Junker <mjscod@gmx.de>.
81900
81901 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
81902
81903         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
81904         Use implementation from Albert Chin, with some
81905         comments/corrections by Stepan Kasal and myself.
81906
81907 2005-12-02  Bruno Haible  <bruno@clisp.org>
81908
81909         * gnulib-tool (func_import): Accept GPLed build tool modules when
81910         --lgpl is given.
81911         * modules/csharpcomp-script: New file.
81912         * modules/csharpcomp: Depend on it.
81913         * modules/javacomp-script: New file.
81914         * modules/javacomp: Depend on it.
81915         Suggested by Simon Josefsson.
81916
81917 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
81918
81919         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
81920         statement, to work around an HP-UX 10.20 compiler bug reported by
81921         Peter O'Gorman.
81922
81923 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81924
81925         * modules/savedir (Depends-on): Add openat.
81926
81927 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81928
81929         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
81930         (uintmax_t) [defined uintmax_t]: Do not declare.
81931         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
81932         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
81933         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
81934         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
81935         sake of portability to weird hosts that C allows (though we don't
81936         know of any practical examples).
81937
81938         * lib/savedir.h (fdsavedir): New decl.
81939         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
81940         contains most of the former guts of savedir.
81941         (savedir): Use savedirstream.
81942         Include "openat.h".
81943
81944 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81945
81946         * modules/obstack (Files): Add m4/ulonglong.m4.
81947         Problem reported by Davide Angelocola.
81948
81949 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
81950
81951         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
81952         coreutils no longer futzes with rounding modes.
81953
81954 2005-11-14  Jim Meyering  <jim@meyering.net>
81955
81956         * lib/mkstemp-safer.c: Include <config.h>, required for possible
81957         replacement of mkstemp.
81958
81959 2005-11-10  Simon Josefsson  <jas@extundo.com>
81960
81961         * lib/readline.c: Remove EOL.
81962
81963 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81964
81965         * modules/gethrxtime (Depends-on): Add gettime.
81966
81967 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81968
81969         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
81970         or gettimeofday; no longer needed.
81971
81972 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81973
81974         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
81975         time business.
81976         (gethrxtime) [! (HAVE_NANOUPTIME
81977         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
81978         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
81979         our own approximation.
81980
81981 2005-11-08  Eric Blake  <ebb9@byu.net>
81982
81983         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81984
81985 2005-11-08  Eric Blake  <ebb9@byu.net>
81986
81987         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81988
81989 2005-11-04  Bruno Haible  <bruno@clisp.org>
81990
81991         * gnulib-tool: Implement --update mode.
81992
81993 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81994
81995         Fix porting problem reported by Theodoros V. Kalamatianos.
81996         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
81997         Don't assume that futimes failing means we must fail.
81998
81999 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82000
82001         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82002         variables to suggest the intended function of the PATH_MAX check.
82003
82004 2005-10-30  Kean Johnston  <jkj@sco.com>
82005
82006         Trivial changes to support SCO systems.
82007         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82008         as PATH_MAX.
82009         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82010         where __ptr is null when no I/O is pending.
82011
82012 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82013
82014         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82015         leave errno alone.  Problem reported by Dmitry V. Levin.
82016
82017 2005-10-28  Simon Josefsson  <jas@extundo.com>
82018
82019         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82020         Test more.
82021
82022         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82023
82024         * modules/md2, modules/md2-tests: New files.
82025
82026 2005-10-28  Simon Josefsson  <jas@extundo.com>
82027
82028         * m4/inet_ntop.m4: More tests.
82029
82030         * m4/gc-md2.m4, md2.m4: New file.
82031
82032 2005-10-28  Simon Josefsson  <jas@extundo.com>
82033
82034         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82035         "restrict" keywords, as per POSIX.  Protect the function
82036         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82037         Don't use K&R prototypes.  Check the sprintf return values.
82038         Re-define EAFNOSUPPORT if not present.  Indent.
82039
82040         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82041         suggested by Bruno Haible <bruno@clisp.org>.
82042
82043         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82044
82045         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82046
82047         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82048         libgcrypt).
82049
82050         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82051
82052         * lib/md2.h, lib/md2.c: New files.
82053
82054 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82055
82056         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82057         errno alone.  Problem reported by Frederic Jolliton.
82058
82059 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82060
82061         * modules/verify (License): Change from GPL to LGPL.  This is a
82062         tiny module and there are apparently near-equivalents that are
82063         under the BSD license.
82064
82065 2005-10-24  Simon Josefsson  <jas@extundo.com>
82066
82067         * modules/sha1: Relicense to LGPL.
82068
82069 2005-10-24  Simon Josefsson  <jas@extundo.com>
82070
82071         * lib/md4.h: Shrink buffer size, now that we changed the type.
82072
82073 2005-10-23  Simon Josefsson  <jas@extundo.com>
82074
82075         * gnulib-tool (func_import): Fix --tests-base.
82076
82077 2005-10-22  Simon Josefsson  <jas@extundo.com>
82078
82079         * modules/arcfour (Depends-on): Need stdint.
82080
82081 2005-10-22  Simon Josefsson  <jas@extundo.com>
82082
82083         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82084         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82085
82086 2005-10-22  Simon Josefsson  <jas@extundo.com>
82087
82088         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82089         suggested by Bruno Haible <bruno@clisp.org>.
82090
82091 2005-10-22  Simon Josefsson  <jas@extundo.com>
82092
82093         * lib/crc.h: Include stddef.h, for size_t.
82094
82095 2005-10-22  Simon Josefsson  <jas@extundo.com>
82096
82097         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82098         arcfour_context struct (simplify test vector testing in GNU
82099         Shishi).
82100
82101 2005-10-21  Simon Josefsson  <jas@extundo.com>
82102
82103         * modules/des, modules/des-tests: New files.
82104
82105         * modules/gc-des, modules/gc-des-tests: New files.
82106
82107         * tests/test-des.c, tests/test-gc-des.c: New file.
82108
82109 2005-10-21  Simon Josefsson  <jas@extundo.com>
82110
82111         * modules/arctwo, modules/arctwo-tests: New files.
82112
82113         * tests/test-arctwo.c: New file.
82114
82115         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82116
82117         * tests/test-gc-arctwo.c: New file.
82118
82119 2005-10-21  Simon Josefsson  <jas@extundo.com>
82120
82121         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82122         Bruno Haible <bruno@clisp.org>.
82123
82124         * m4/gc-des.m4: New file.
82125
82126 2005-10-21  Simon Josefsson  <jas@extundo.com>
82127
82128         * m4/arctwo.m4: New file.
82129
82130         * m4/gc-arctwo.m4: New file.
82131
82132 2005-10-21  Simon Josefsson  <jas@extundo.com>
82133
82134         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82135         block.
82136
82137 2005-10-21  Simon Josefsson  <jas@extundo.com>
82138
82139         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82140         <bruno@clisp.org>.
82141
82142         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82143
82144         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82145         Bruno Haible <bruno@clisp.org>.
82146
82147         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82148         <bruno@clisp.org>.
82149
82150 2005-10-21  Simon Josefsson  <jas@extundo.com>
82151
82152         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82153
82154 2005-10-21  Simon Josefsson  <jas@extundo.com>
82155
82156         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82157
82158 2005-10-21  Simon Josefsson  <jas@extundo.com>
82159
82160         * lib/des.h, lib/des.c: New files.
82161
82162         * lib/gc-gnulib.c: Support DES.c
82163
82164 2005-10-21  Simon Josefsson  <jas@extundo.com>
82165
82166         * lib/arctwo.h, lib/arctwo.c: New files.
82167
82168         * lib/gc-gnulib.c: Support ARCTWO.
82169
82170 2005-10-21  Simon Josefsson  <jas@extundo.com>
82171
82172         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82173         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82174
82175 2005-10-21  Simon Josefsson  <jas@extundo.com>
82176
82177         * gnulib-tool (func_import, func_create_testdir): Define automake
82178         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82179         Makefile.am snippet),
82180         suggested by Bruno Haible <bruno@clisp.org>.
82181
82182         * modules/gc (Makefile.am): Use it.
82183
82184 2005-10-21  Bruno Haible  <bruno@clisp.org>
82185
82186         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82187         patch.
82188
82189 2005-10-19  Simon Josefsson  <jas@extundo.com>
82190
82191         * tests/test-gc-rijndael.c: New file.
82192
82193         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82194
82195 2005-10-19  Simon Josefsson  <jas@extundo.com>
82196
82197         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82198         interface too.
82199
82200 2005-10-19  Simon Josefsson  <jas@extundo.com>
82201
82202         * tests/test-gc-arcfour.c: New file.
82203
82204         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82205
82206 2005-10-19  Simon Josefsson  <jas@extundo.com>
82207
82208         * modules/gc-md4, modules/gc-md4-tests: New file.
82209
82210         * tests/test-gc-md4.c: New file.
82211
82212 2005-10-19  Simon Josefsson  <jas@extundo.com>
82213
82214         * m4/gc-md4.m4: New file.
82215
82216 2005-10-19  Simon Josefsson  <jas@extundo.com>
82217
82218         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82219         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82220         <kasal@ucw.cz>.
82221
82222 2005-10-19  Simon Josefsson  <jas@extundo.com>
82223
82224         * m4/gc-arcfour.m4: New file.
82225
82226         * m4/gc-rijndael.m4: New file.
82227
82228 2005-10-19  Simon Josefsson  <jas@extundo.com>
82229
82230         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82231
82232 2005-10-19  Simon Josefsson  <jas@extundo.com>
82233
82234         * lib/gc-gnulib.c: Support ARCFOUR.
82235
82236 2005-10-19  Simon Josefsson  <jas@extundo.com>
82237
82238         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82239         support.
82240
82241         * lib/gc.h: Add ECB enum type.
82242
82243         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82244
82245 2005-10-18  Simon Josefsson  <jas@extundo.com>
82246
82247         * tests/test-md5.c: New file.
82248
82249         * modules/md5-tests: New file.
82250
82251 2005-10-18  Simon Josefsson  <jas@extundo.com>
82252
82253         * tests/test-md4.c: New file.
82254
82255         * modules/md4, modules/md4-tests: New files.
82256
82257 2005-10-18  Simon Josefsson  <jas@extundo.com>
82258
82259         * m4/md4.m4: New file.
82260
82261 2005-10-18  Simon Josefsson  <jas@extundo.com>
82262
82263         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82264
82265 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82266
82267         * gnulib-tool (func_create_testdir): Omit the second check whether
82268         BUILT_SOURCES in nonempty.
82269
82270 2005-10-17  Simon Josefsson  <jas@extundo.com>
82271
82272         * tests/test-rijndael.c: New file.
82273
82274 2005-10-17  Simon Josefsson  <jas@extundo.com>
82275
82276         * modules/sha1: Depend on stdint instead of md5.
82277
82278         * modules/md5: Depend on stdint, remove uint32_t.
82279
82280 2005-10-17  Simon Josefsson  <jas@extundo.com>
82281
82282         * modules/gc-sha1-tests: New file.
82283
82284         * tests/test-gc-sha1.c: New file.
82285
82286 2005-10-17  Simon Josefsson  <jas@extundo.com>
82287
82288         * m4/md5.m4: Remove call to uint32_t.m4.
82289
82290 2005-10-17  Simon Josefsson  <jas@extundo.com>
82291
82292         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82293
82294         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82295         md5.h.
82296
82297         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82298
82299         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82300
82301 2005-10-17  Simon Josefsson  <jas@extundo.com>
82302
82303         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82304
82305 2005-10-17  Simon Josefsson  <jas@extundo.com>
82306
82307         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82308
82309 2005-10-17  Simon Josefsson  <jas@extundo.com>
82310
82311         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82312
82313         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82314
82315 2005-10-17  Bruno Haible  <bruno@clisp.org>
82316
82317         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82318         that it can also be used in a test.
82319
82320 2005-10-16  Bruno Haible  <bruno@clisp.org>
82321
82322         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82323         TESTS_ENVIRONMENT, so that individual tests can augment it.
82324
82325         * gnulib-tool (func_create_testdir): Use an intermediate target for
82326         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82327         macros, like $(ALLOCA_H), which cannot be passed through the command
82328         line.
82329
82330 2005-10-15  Simon Josefsson  <jas@extundo.com>
82331
82332         * modules/rijndael-tests: New file.
82333
82334         * modules/rijndael: New file.
82335
82336 2005-10-15  Simon Josefsson  <jas@extundo.com>
82337
82338         * m4/rijndael.m4: New file.
82339
82340 2005-10-15  Simon Josefsson  <jas@extundo.com>
82341
82342         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82343
82344         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82345
82346 2005-10-14  Simon Josefsson  <jas@extundo.com>
82347
82348         * tests/test-arcfour.c: New file.
82349
82350         * modules/arcfour, modules/arcfour-tests: New files.
82351
82352 2005-10-14  Simon Josefsson  <jas@extundo.com>
82353
82354         * m4/arcfour.m4: New file.
82355
82356 2005-10-14  Simon Josefsson  <jas@extundo.com>
82357
82358         * lib/arcfour.h, lib/arcfour.c: New files.
82359
82360 2005-10-14  Roland McGrath  <roland@redhat.com>
82361
82362         Import from libc.  [BZ #1331]
82363         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82364         macro argument.
82365         Reported by Matej Vela <vela@debian.org>.
82366
82367 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82368
82369         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82370         include <wchar.h>; no longer needed.
82371
82372 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82373
82374         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82375
82376 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82377         and  Ulrich Drepper  <drepper@redhat.com>
82378
82379         Import from libc.
82380         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82381         instead of inline stream orientation test and two separate
82382         function calls.  Pay no attention to USE_IN_LIBIO.
82383
82384 2005-10-13  Simon Josefsson  <jas@extundo.com>
82385
82386         * modules/gc-hmac-md5-tests: New file.
82387
82388         * tests/test-gc-hmac-sha1.c: New file.
82389
82390         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82391
82392         * modules/gc-hmac-md5-tests: New file.
82393
82394         * tests/test-gc-md5.c: New file.
82395
82396         * modules/gc-md5-tests: New file.
82397
82398 2005-10-13  Simon Josefsson  <jas@extundo.com>
82399
82400         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82401         Move memory allocation outside of loop.
82402
82403 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82404
82405         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82406         intermediate directory is in a read-only file system.  Problem
82407         reported by Eric Blake.
82408
82409 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82410
82411         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82412
82413 2005-10-12  Simon Josefsson  <jas@extundo.com>
82414
82415         * tests/test-hmac-sha1.c: New file.
82416
82417         * modules/hmac-sha1-tests: New file.
82418
82419         * modules/hmac-sha1: New file.
82420
82421 2005-10-12  Simon Josefsson  <jas@extundo.com>
82422
82423         * modules/gc-sha1: New file.
82424
82425 2005-10-12  Simon Josefsson  <jas@extundo.com>
82426
82427         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82428
82429         * tests/test-gc-pbkdf2-sha1.c: New file.
82430
82431 2005-10-12  Simon Josefsson  <jas@extundo.com>
82432
82433         * modules/gc-md5, modules/gc-hmac-md5: New files.
82434
82435         * modules/gc (Files): Remove md5, memxor and hmac files.
82436
82437 2005-10-12  Simon Josefsson  <jas@extundo.com>
82438
82439         * m4/gc-pbkdf2-sha1.m4: New file.
82440
82441         * m4/gc-hmac-sha1.m4: New file.
82442
82443         * m4/gc-sha1: New file.
82444
82445         * m4/hmac-sha1.m4: New file.
82446
82447 2005-10-12  Simon Josefsson  <jas@extundo.com>
82448
82449         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82450
82451         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82452
82453 2005-10-12  Simon Josefsson  <jas@extundo.com>
82454
82455         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82456         suggested by Bruno Haible <bruno@clisp.org>.
82457
82458 2005-10-12  Simon Josefsson  <jas@extundo.com>
82459
82460         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82461
82462 2005-10-12  Simon Josefsson  <jas@extundo.com>
82463
82464         * lib/gc-pbkdf2-sha1.c: New file.
82465
82466         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82467
82468 2005-10-12  Simon Josefsson  <jas@extundo.com>
82469
82470         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82471
82472         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82473
82474 2005-10-12  Simon Josefsson  <jas@extundo.com>
82475
82476         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82477         GC_USE_HMAC_MD5, respectively.
82478
82479         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82480         (gc_md5): Fix typo.
82481
82482         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82483
82484         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82485
82486         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82487
82488 2005-10-12  Bruno Haible  <bruno@clisp.org>
82489
82490         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82491         Reported by Stepan Kasal <kasal@ucw.cz>.
82492
82493 2005-10-11  Simon Josefsson  <jas@extundo.com>
82494
82495         * tests/test-crc.c: New file.
82496
82497         * modules/crc, modules/crc-tests: New files.
82498
82499 2005-10-11  Simon Josefsson  <jas@extundo.com>
82500
82501         * m4/crc.m4: New file.
82502
82503 2005-10-11  Simon Josefsson  <jas@extundo.com>
82504
82505         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82506
82507         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82508
82509         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82510
82511 2005-10-11  Simon Josefsson  <jas@extundo.com>
82512
82513         * lib/crc.h, lib/crc.c: New files.
82514
82515         * lib/gc.h (gc_hash_buffer): Add doc.
82516
82517 2005-10-11  Bruno Haible  <bruno@clisp.org>
82518
82519         * modules/c-strcasestr: New file.
82520         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82521
82522 2005-10-11  Bruno Haible  <bruno@clisp.org>
82523
82524         * modules/c-strcase: New file.
82525         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82526
82527 2005-10-11  Bruno Haible  <bruno@clisp.org>
82528
82529         * lib/strcasecmp.c: Include limits.h.
82530         (strcasecmp): Avoid integer overflow on exotic platforms.
82531         * lib/strncasecmp.c: Include limits.h.
82532         (strncasecmp): Avoid integer overflow on exotic platforms.
82533         Reported by Paul Eggert.
82534
82535 2005-10-11  Bruno Haible  <bruno@clisp.org>
82536
82537         * lib/c-strcasestr.h: New file, from GNU gettext.
82538         * lib/c-strcasestr.c: New file, from GNU gettext.
82539
82540 2005-10-11  Bruno Haible  <bruno@clisp.org>
82541
82542         * lib/c-strcase.h: New file, from GNU gettext.
82543         * lib/c-strcasecmp.c: New file, from GNU gettext.
82544         * lib/c-strncasecmp.c: New file, from GNU gettext.
82545
82546 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82547
82548         * modules/mempcpy (License): GPL -> LGPL.
82549         * modules/strchrnul (License): Likewise.
82550         * modules/sysexits (License): Likewise.
82551
82552 2005-10-08  Simon Josefsson  <jas@extundo.com>
82553
82554         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82555
82556 2005-10-07  Simon Josefsson  <jas@extundo.com>
82557
82558         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82559
82560 2005-10-06  Simon Josefsson  <jas@extundo.com>
82561
82562         * tests/test-hmac-md5.c: New file.
82563
82564         * modules/hmac-md5-tests: New file.
82565
82566         * modules/hmac-md5: New file.
82567
82568 2005-10-06  Simon Josefsson  <jas@extundo.com>
82569
82570         * m4/hmac-md5.m4: New file.
82571
82572         * m4/memxor.m4: Require gl_C_RESTRICT.
82573
82574 2005-10-06  Simon Josefsson  <jas@extundo.com>
82575
82576         * lib/memxor.c (memxor): Avoid casts and warnings.
82577
82578 2005-10-06  Simon Josefsson  <jas@extundo.com>
82579
82580         * lib/hmac-md5.c: New file.
82581
82582         * lib/hmac.h: New file.
82583
82584 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82585
82586         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
82587         promotes to int, not unsigned int, to catch the AIX 5.3
82588         compiler bug.
82589
82590 2005-10-05  Simon Josefsson  <jas@extundo.com>
82591
82592         * modules/memxor: New file.
82593
82594         * modules/iconv (Files): Move config.rpath to havelib, it is used
82595         there.
82596
82597         * modules/havelib (Files): Add config.rpath.
82598
82599 2005-10-05  Simon Josefsson  <jas@extundo.com>
82600
82601         * m4/memxor.m4: New file.
82602
82603 2005-10-05  Simon Josefsson  <jas@extundo.com>
82604
82605         * lib/memxor.c (memxor): Fix compiler error.
82606
82607         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
82608         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
82609
82610         * lib/memxor.h, lib/memxor.c: New files.
82611
82612         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
82613         we assume all systems have it, suggested by Jim Meyering
82614         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
82615         any systems lack sys/socket.h; mingw32 is known to lack it, but we
82616         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
82617         same reasons.
82618
82619 2005-10-05  Simon Josefsson  <jas@extundo.com>
82620
82621         * config/srclist.txt: Add glibc bug 1423 for md5.h.
82622
82623 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
82624
82625         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
82626         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
82627         needed, since the source code now assumes these .h files.
82628
82629 2005-10-05  Derek Price  <derek@ximbiot.com>
82630
82631         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
82632
82633 2005-10-05  Bruno Haible  <bruno@clisp.org>
82634
82635         * modules/stdint (License): Change to LGPL.
82636
82637 2005-10-04  Simon Josefsson  <jas@extundo.com>
82638
82639         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
82640         D. Baushke" <mdb@gnu.org>.
82641
82642 2005-10-04  Bruno Haible  <bruno@clisp.org>
82643
82644         * lib/verify.h (verify_true): Provide alternative definition for C++.
82645
82646 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
82647
82648         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
82649         (SSIZE_MAX): New macro, if not already defined.
82650         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
82651         than 2 GiB.
82652
82653 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82654
82655         Sync from coreutils.
82656         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
82657         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
82658         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
82659         ULLONG_MAX doesn't work with 2.7.2.1.
82660
82661 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82662
82663         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
82664         From Ben Pfaff.
82665
82666         * modules/exclude (Depends-on): Depend on verify.
82667         * modules/strtoimax (Depends-on): Likewise.
82668         * modules/utimecmp (Depends-on): Likewise.
82669
82670 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82671
82672         * lib/exclude.c: Include verify.h.
82673         (verify): Remove.  All callers changed to use verify.h's version.
82674         * lib/strtoimax.c: Likewise.
82675         * lib/utimecmp.c: Likewis.e
82676
82677         Sync from coreutils.
82678         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
82679         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
82680         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
82681         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
82682         bother returning ENOSYS if settimeofday or stime fails; just let
82683         them return whatever errno they want to return.
82684         * lib/utimens.c: Include unistd.h, for dup2.
82685         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
82686         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
82687
82688 2005-10-02  Jim Meyering  <jim@meyering.net>
82689
82690         Sync from coreutils.
82691         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
82692         from glibc-2.2.5 that fails for read-only files.
82693
82694 2005-10-02  Jim Meyering  <jim@meyering.net>
82695
82696         Sync from coreutils.
82697         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
82698         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
82699         `#if HAVE_CONFIG_H'.
82700         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
82701         Remove AT_FDCWD test.
82702         Do not consume the fd unless successful.
82703         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
82704         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
82705         block, so that we don't even try to compile it if settimeofday is
82706         available.  This works around a compilation failure on OSF1 V5.1,
82707         due to stime requiring a `long int*' while tv_sec is `int'.
82708
82709 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
82710
82711         Sync from coreutils.
82712         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
82713         against `yes', rather than just testing for nonempty.
82714
82715 2005-10-01  Simon Josefsson  <jas@extundo.com>
82716
82717         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
82718         and Darwin.
82719
82720         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
82721         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
82722         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
82723         freeaddrinfo and gai_strerror are declared by the POSIX headers.
82724         Check if struct addrinfo is declared.
82725
82726 2005-10-01  Simon Josefsson  <jas@extundo.com>
82727
82728         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
82729         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
82730         AI_* and EAI_* definitions.  Protect function declarations.
82731
82732 2005-10-01  Jim Meyering  <jim@meyering.net>
82733
82734         Sync from coreutils.
82735
82736         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
82737         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
82738         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
82739         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82740         in the inet and nsl libraries.  Required on Solaris 5.7.
82741
82742 2005-10-01  Jim Meyering  <jim@meyering.net>
82743
82744         Sync from coreutils.
82745         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82746         in the inet and nsl libraries.  Required on Solaris 5.7.
82747
82748 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
82749
82750         * lib/getdelim.c (getdelim): Remove unused variables.
82751
82752 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
82753
82754         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
82755         so that the code works even with ancient cpp.  Portability problem
82756         with GCC 2.7.2.1 reported by Thomas M.Ott.
82757
82758 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
82759
82760         * modules/regex (Depends-on): Add strcase.
82761
82762         * modules/gethostname (Licence): Change from GPL to LGPL, since
82763         gethostname.c is a trivial implementation of a standard library
82764         function.
82765         * modules/poll (License): Change from GPL to LGPL, since it's
82766         derived from LGPL code.
82767
82768 2005-09-27  Jim Meyering  <jim@meyering.net>
82769
82770         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
82771         HAVE_CONFIG_H.
82772
82773         * lib/intprops.h (signed_type_or_expr__): Define.
82774         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
82775         for unsigned types.
82776
82777 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
82778
82779         * lib/verify.h (verify_expr): Remove, replacing with:
82780         (verify_true): New macro that returns true instead of void.
82781         (verify_type__): Remove.
82782         (verify): Use verify_true rather than verify_type__.
82783
82784 2005-09-26  Bruno Haible  <bruno@clisp.org>
82785
82786         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
82787         is necessary.
82788         (lib_SOURCES): Remove mbchar.c.
82789         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
82790         (Files): Add m4/mbrtowc.m4.
82791         * modules/mbiter: Likewise.
82792         * modules/mbuiter: Likewise.
82793
82794 2005-09-26  Bruno Haible  <bruno@clisp.org>
82795
82796         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
82797         compile mbchar.c if they are not both present.
82798         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
82799         * m4/mbiter.m4 (gl_MBITER): Likewise.
82800         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
82801         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
82802         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
82803
82804 2005-09-25  Jim Meyering  <jim@meyering.net>
82805
82806         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
82807         also uses socklen_t.
82808
82809 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
82810
82811         * lib/utimens.c (ENOSYS): Define if not already defined.
82812         (futimens): Support having a null PATH if the file descriptor
82813         is nonnegative.
82814
82815         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
82816         Remove.
82817         (__attribute): Define to empty unless GCC 3.1 or later.
82818         This works around a core dump on OpenBSD 3.4, which has GCC
82819         2.95.3, which dumps core when given __attribute__(()).  It also
82820         simplifies other tests, since we really don't want to bother with
82821         worrying about which ancient version of GCC supported what.
82822         Original problem reported by Yoann Vandoorselaere, with part of
82823         the fix suggested by Derek Price.
82824
82825 2005-09-24  Jim Meyering  <jim@meyering.net>
82826
82827         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
82828         so we can once again use a positive bitfield width of 1 -- now we
82829         don't have to explain why we were using a bitfield width of 2.
82830
82831 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82832
82833         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
82834         and similarly for the other external symbols.  Problem reported
82835         by James Gallager.
82836
82837         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
82838         bug reported by Jim Meyering.
82839
82840         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
82841         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
82842         not needed, since socklen is a prerequisite module.
82843
82844 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82845
82846         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
82847         Problem reported by Eric Blake.
82848         (getaddrinfo): Initialize se so that it's not garbage.
82849         Redo internal storage allocation so that it doesn't make unportable
82850         assumptions about alignment.
82851         Fix a memory leak.
82852
82853         * lib/utimens.c (futimens): Use futimesat if available.
82854         Prefer it to futimes since it doesn't have the futimes bug.
82855
82856         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
82857         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
82858         Instead, declare a function that returns a pointer to an array,
82859         and use verify_type__ to declare the size of the array.
82860         Problem and germ of a solution reported by Bruno Haible.
82861         (verify_type__): Use 2, not 1, for bitfield size, to avoid
82862         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
82863
82864 2005-09-23  Jim Meyering  <jim@meyering.net>
82865
82866         Sync from coreutils.
82867         Correct build failure (socklen_t not defined) on at least
82868         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
82869         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
82870
82871 2005-09-23  Jim Meyering  <jim@meyering.net>
82872
82873         * modules/getaddrinfo (Depends-on): Add socklen.
82874
82875 2005-09-23  Bruno Haible  <bruno@clisp.org>
82876
82877         * tests/test-verify.c: New file.
82878
82879 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82880
82881         Sync from coreutils.
82882
82883         * modules/argmatch (Depends-on): Add verify.
82884         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
82885         unistd-safer.
82886         * modules/save-cwd (Depends-on): Likewise.
82887
82888         * modules/openat (Files): Add lib/openat-die.c.
82889         (Depends-on): Remove error, exitfail.
82890         Add dirname.
82891
82892         * modules/verify: New file.
82893         * MODULES.html.sh (Diagnostics <assert.h>): New section,
82894         with "verify" module.
82895
82896 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82897
82898         Sync from coreutils.
82899
82900         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
82901         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
82902         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
82903         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
82904         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
82905         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
82906         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
82907         Don't bother checking for string.h, stdlib.h, unistd.h.
82908         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
82909         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
82910         module's job.
82911         * m4/jm-macros.m4 (gl_MACROS): Likewise.
82912         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
82913
82914         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
82915         (gl_GETDATE): Use it.
82916
82917         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
82918
82919 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82920
82921         Sync from coreutils.
82922
82923         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
82924         stat-time.h.
82925         * lib/argmatch.h: Include verify.h
82926         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
82927         (ARGMATCH_ASSERT): Remove; unused.
82928         * lib/canonicalize.c: Assume STDC_HEADERS.
82929         * lib/exclude.c: Include "strcase.h".
82930         * lib/regex_internal.h [!defined _LIBC]: Likewise.
82931         * lib/getusershell.c: Include stdio--.h rather than stdio.h
82932         and stdio-safer.h.
82933         (getusershell): Call fopen, not fopen_safer.
82934         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
82935         Do not include unistd-safer.h.
82936         (save_cwd): Don't call fd_safer; no longer needed
82937         now that we include fcntl--.h.
82938
82939         * lib/getdate.y (relative_time): New type.
82940         (RELATIVE_TIME_0): New constant.
82941         (parser_control): Use relative_time instead of doing it ourselves.
82942         (%union): Add new relative_time rel member.
82943         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
82944         Now typeless.
82945         (relunit, relunit_snumber): Now of type rel.
82946         (zone, rel, relunit, get_date): Adjust to above changes.
82947
82948         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
82949         Do not include unistd-safer.h.
82950         (getloadavg): Don't call fd_safer; no longer needed
82951         now that we include fcntl--.h.
82952
82953         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
82954         (make_dir_parents): Treat ENOSYS like EEXIST.
82955
82956         Improve quality of diagnostics on restore_cwd failure.
82957         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
82958         (make_dir_parents): Last arg is now int * (for errno), not bool *.
82959         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
82960         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
82961         each time through the loop.  Do not diagnose restore_cwd failure;
82962         that is the caller's job (and perhaps the caller does not care).
82963
82964         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
82965         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
82966         If the file already exists but is not a directory, don't bother
82967         to try to make its parents.
82968         Close potential file descriptor leak if we can't chdir("/") (!).
82969         Don't always return true if chdir($PWD) fails; return true only
82970         if the requested action was done successfully (except for the
82971         chdir($PWD)).
82972         Don't log final directory unless we actually made it.
82973         Refactor to avoid duplicate code to fix up permissions.
82974         Don't attempt to fix up parent permissions if chdir($PWD) fails.
82975
82976         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
82977         to make it a bit faster and (I hope) clearer.
82978         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
82979         Fix bug in formats like %2N.
82980
82981         * lib/verify.h: New file.
82982
82983 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82984
82985         Sync from coreutils.
82986         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
82987
82988 2005-09-22  Jim Meyering  <jim@meyering.net>
82989
82990         Sync from coreutils.
82991
82992         * m4/lstat.m4 (gl_FUNC_LSTAT):
82993         Use AC_LIBSOURCES to require lstat.c and lstat.h.
82994         Remove obsolete comment.
82995         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
82996         * m4/xstrtod.m4: Likewise.
82997
82998         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
82999
83000 2005-09-22  Jim Meyering  <jim@meyering.net>
83001
83002         Sync from coreutils.
83003
83004         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83005
83006         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83007         the .tm_year member, since otherwise gcc-4.0 would now warn about
83008         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83009
83010         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83011         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83012
83013         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83014         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83015         when run in a time zone for which daylight savings time is in effect
83016         for the starting date.
83017
83018         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83019         stop us from restricting permissions of just-created absolute-named
83020         directories.
83021         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83022         to restore initial working directory.
83023         * lib/mkdir-p.c (make_dir_parents): New parameter:
83024         different_working_dir, to tell caller if/when we change the working
83025         directory and are unable to return to the initial one.
83026         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83027         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83028         `return false'.  This fixes a bug introduced on 2004-07-30.
83029
83030         * lib/openat.c (fdopendir): Be sure to close the supplied
83031         file descriptor before returning.  This makes our replacement
83032         implementation a little closer to Solaris's, where fdopendir
83033         ties the file descriptor to the returned DIR* pointer.
83034         * lib/openat.c (unlinkat): New function.
83035         * lib/openat.h (unlinkat): Add prototype.
83036         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83037         (openat_restore_fail): Rename from openat_restore_die.
83038         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83039
83040         Provide an alternative to exiting immediately upon save_cwd or
83041         restore_cwd failure.  Now, an application can arrange e.g.,
83042         to perform a longjump in that case.
83043         * lib/openat.c: Include dirname.h.
83044         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83045         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83046         and openat_restore_die rather than calling error directly.
83047         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83048
83049         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83050         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83051         define.
83052
83053         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83054         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83055                             int utc, int nanoseconds);
83056         Background:
83057         date should not have to allocate a megabyte of virtual memory to
83058         handle a format argument like +%1048575T.  When implemented with
83059         strftime, it must allocate such a buffer, use strftime to fill it
83060         in, print it, then free it.
83061         With fprintftime, it simply prints everything and exits.
83062         With no need for memory allocation, that's one fewer way to fail.
83063         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83064         optional field width, not before, so we accept %9:z, not %:9z.
83065         (my_strftime): Be sure to use L_('x') for literals.
83066
83067         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83068         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83069         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83070         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83071         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83072         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83073         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83074         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83075         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83076         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83077         * lib/xgethostname.c, lib/xreadlink.c:
83078         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83079
83080         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83081         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83082         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83083         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83084         and don't include <sys/file.h>).
83085
83086 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83087
83088         Sync from coreutils.
83089
83090         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83091         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83092         [!LDAV_DONE]: Avoid unused variable warning.
83093
83094 2005-09-21  Bruno Haible  <bruno@clisp.org>
83095
83096         * lib/unicodeio.h (unicode_to_mb): New declaration.
83097
83098 2005-09-20  Derek Price  <derek@ximbiot.com>
83099
83100         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83101         getaddrinfo.h.
83102
83103 2005-09-20  Bruno Haible  <bruno@clisp.org>
83104
83105         * gnulib-tool: Remove trailing slashes from the values specified for
83106         --source-base, --m4-base, --tests-base, --aux-dir.
83107         Suggested by Simon Josefsson <jas@extundo.com>.
83108
83109 2005-09-20  Bruno Haible  <bruno@clisp.org>
83110
83111         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83112         func_modules_to_filelist, func_import, func_create_testdir): Make all
83113         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83114         change when gnulib-tool is invoked in a different locale.
83115
83116 2005-09-19  Simon Josefsson  <jas@extundo.com>
83117
83118         * m4/socklen.m4: Fix typo.
83119
83120 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83121
83122         Use a consistent style for including <config.h>.
83123         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83124         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83125         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83126         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83127         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83128         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83129         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83130         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83131         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83132         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83133         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83134         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83135         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83136         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83137         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83138         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83139         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83140         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83141         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83142         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83143         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83144         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83145         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83146         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83147         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83148         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83149         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83150         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83151         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83152         lib/xstrtoumax.c, lib/yesno.c:
83153         Standardize inclusion of config.h.
83154         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83155         lib/inttostr.h:  Removed inclusion of config.h from header files.
83156         * lib/inttostr.c:  Adjusted in-tree users.
83157         * lib/timespec.h: Remove superfluous warning to include config.h.
83158         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83159         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83160         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83161         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83162         config.h with HAVE_CONFIG_H.
83163
83164 2005-09-19  Jim Meyering  <jim@meyering.net>
83165
83166         * modules/pathmax (License): Change to LGPL.
83167
83168 2005-09-19  Derek Price  <derek@ximbiot.com>
83169
83170         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83171
83172 2005-09-19  Bruno Haible  <bruno@clisp.org>
83173
83174         * gnulib-tool (import): Provide default for --tests-base.
83175
83176 2005-09-19  Bruno Haible  <bruno@clisp.org>
83177
83178         * doc/quote.texi: New file, extracted from gnulib.texi.
83179         * doc/ctime.texi: New file, extracted from gnulib.texi.
83180         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83181         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83182         * doc/gnulib.texi: Include them.
83183
83184 2005-09-18  Bruno Haible  <bruno@clisp.org>
83185
83186         Portability fix.
83187         * gnulib-tool (func_readlink): New function.
83188         (func_ln_if_changed): Use it.
83189
83190 2005-09-18  Bruno Haible  <bruno@clisp.org>
83191
83192         * gnulib-tool: Support --with-tests also with --import.
83193         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83194         (func_import): Use variables $testsbase and $inctests. Emit a
83195         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83196         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83197         SUBDIRS += $testsdir.
83198         (func_create_testdir): Update.
83199
83200 2005-09-18  Bruno Haible  <bruno@clisp.org>
83201
83202         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83203         instead of $dry_run.
83204         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83205         (func_ln_if_changed): Don't handle dry-run here.
83206         (func_import): In dry-run mode, detect more precisely which actions
83207         would be performed, and don't use "...ing" verbs.
83208
83209 2005-09-18  Bruno Haible  <bruno@clisp.org>
83210
83211         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83212         (func_import): Use join on two temporary files instead of three nested
83213         loops, in order to determine which files are new or old.
83214
83215 2005-09-18  Bruno Haible  <bruno@clisp.org>
83216
83217         * gnulib-tool (func_import): Comment out code that spits out the
83218         new files with --dry-run.
83219
83220 2005-09-18  Bruno Haible  <bruno@clisp.org>
83221
83222         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83223
83224 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83225
83226         * lib/stat-time.h: New file.
83227         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83228         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83229         in a different way.
83230         (timespec_cmp): New function.
83231         * lib/utimecmp.c: Include stat-time.h.
83232         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83233         members exist, not on the obsolescent ST_MTIM_NSEC.
83234         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83235
83236 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83237
83238         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83239
83240 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83241
83242         * MODULES.html.sh (File system functions): Add stat-time.
83243         * modules/stat-time: New file.
83244         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83245         is now done in a different way, by the stat-time module.
83246         * modules/utimecmp (Depends-on): Add stat-time.
83247
83248 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83249
83250         * m4/st_mtim.m4: Remove.  Superseded by...
83251         * m4/stat-time.m4: New file.
83252         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83253         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83254
83255 2005-09-15  Derek Price  <derek@ximbiot.com>
83256
83257         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83258
83259 2005-09-15  Derek Price  <derek@ximbiot.com>
83260
83261         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83262         * lib/regex_internal.c: Ditto, using this...
83263         (__GNUC_PREREQ): ...new macro.
83264         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83265         using...
83266         (__GNUC_PREREQ): ...this new macro.
83267
83268         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83269
83270 2005-09-15  Derek Price  <derek@ximbiot.com>
83271             Paul Eggert  <eggert@cs.ucla.edu>
83272
83273         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83274         changes, consolidating in...
83275         * lib/regex_internal.h: ...this file.
83276
83277 2005-09-13  Jim Meyering  <jim@meyering.net>
83278
83279         * lib/canon-host.c: Filter through gnu indent and reword comments
83280         slightly.
83281         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83282
83283 2005-09-13  Derek Price  <derek@ximbiot.com>
83284
83285         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83286         failure.
83287         Reported by Jim Meyering  <jim@meyering.net>.
83288
83289 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83290
83291         * lib/base64.c: Typo.
83292         (base64_encode): Put b64str in initialized data section.
83293
83294 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83295
83296         Merge glibc and coreutils changes into gnulib, plus a few
83297         extra fixes.
83298         * lib/md5.c: Use #error rather than a string.
83299         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83300         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83301         (__attribute__): Define to empty for non recent-GCC.
83302         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83303         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83304         Renamed from their non-__ counterparts, with new macros replacing
83305         them if not _LIBC.  Add __THROW attribute.
83306         (rol): Remove.
83307         (struct md5_ctx): Align buffer if using GCC.
83308         * lib/sha1.h (struct sha1_ctx): Likewise.
83309         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83310         The old name was backwards.
83311         (NOTSWAP): Remove; not used.
83312         (rol): New macro, moved here from md5.h.
83313         (sha1_process_block): Remove a FIXME that doesn't make sense.
83314
83315 2005-09-12  Derek Price  <derek@ximbiot.com>
83316
83317         Return usable errors from canon-host.
83318         * lib/canon-host.h: New file.
83319         * lib/canon-host.c (canon_host): Wrap...
83320         (canon_host_r): ...this new function, which now relies exclusively on
83321         getaddrinfo.
83322         (ch_strerror): New function.
83323         (last_cherror): New global.
83324         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83325         interface.
83326         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83327         void *.
83328         (freeaddrinfo): Free ai->ai_canonname when set.
83329
83330 2005-09-12  Derek Price  <derek@ximbiot.com>
83331
83332         Make canon-host require getaddrinfo.
83333         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83334         AC_LIBSOURCE canon-host.h.  Call...
83335         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83336         gl_GETADDRINFO.
83337         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83338
83339 2005-09-12  Derek Price  <derek@ximbiot.com>
83340
83341         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83342         LGPL.
83343         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83344
83345 2005-09-12  Derek Price  <derek@ximbiot.com>
83346
83347         * lib/gai_strerror.c: Include config.h when available.  Include
83348         getaddrinfo.h before other headers to test interface.
83349         Reported by Larry Jones <lawrence.jones@ugs.com>.
83350
83351 2005-09-12  Derek Price  <derek@ximbiot.com>
83352             Paul Eggert  <eggert@cs.ucla.edu>
83353
83354         * modules/glob (Files): Add glob-libc.h.
83355
83356 2005-09-12  Derek Price  <derek@ximbiot.com>
83357             Paul Eggert  <eggert@cs.ucla.edu>
83358
83359         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83360         glob_.h, glob-libc.h.
83361         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83362
83363 2005-09-12  Derek Price  <derek@ximbiot.com>
83364             Paul Eggert  <eggert@cs.ucla.edu>
83365
83366         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83367         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83368         protecting things that should be done only in gnulib contexts.
83369         * lib/glob_.h: New file, containing only the glob things needed for
83370         gnulib.
83371         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83372         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83373         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83374         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83375         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83376         and to respect the namespace rules better.
83377
83378 2005-09-08  Simon Josefsson  <jas@extundo.com>
83379
83380         * modules/socklen: New file.
83381
83382 2005-09-08  Simon Josefsson  <jas@extundo.com>
83383
83384         * m4/socklen.m4: New file.
83385
83386 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83387
83388         * modules/utimens (Files): Add m4/utimbuf.m4, since
83389         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83390         Reported by Sergey Poznyakoff.
83391
83392 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83393
83394         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83395         definitions, since that's the preferred style in glibc.
83396         Fix a minor spacing issue, and update copyright notice to match
83397         glibc's.
83398
83399 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83400
83401         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83402
83403 2005-09-06  Simon Josefsson  <jas@extundo.com>
83404
83405         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83406         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83407
83408 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83409
83410         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83411         warning.
83412
83413 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83414
83415         * config/srclist.txt: Add glibc bug 1302.
83416
83417 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83418
83419         Change bitset word type from unsigned int to unsigned long int,
83420         as this has better performance on typical 64-bit hosts.
83421         Port bitset code to hosts with unusual word sizes.
83422         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83423         (build_collating_symbol):
83424         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83425         argument is a bitset.  This is merely a style issue, but it makes
83426         it clearer that an entire array is expected.
83427         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83428         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83429         Port to the case where bitset_word is not the same as unsigned int.
83430         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83431         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83432         Likewise.
83433         * lib/regexec.c (check_dst_limits_calc_pos_1,
83434         check_subexp_matching_top):
83435         (build_trtable, group_nodes_into_DFAstates):
83436         Likewise.
83437         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83438         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83439         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83440         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83441         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83442         * lib/regcomp.c (optimize_subexps, lower_subexp):
83443         Work even if bitset_word has holes in its bitwise representation.
83444         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83445         * lib/regexec.c (check_dst_limits_calc_pos_1,
83446         check_subexp_matching_top):
83447         Likewise.
83448         * lib/regex_internal.c (re_string_reconstruct):
83449         Don't assume UCHAR_MAX == 255.
83450         * lib/regex_internal.h (bitset_set_all): Likewise.
83451         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83452         All uses changed.
83453         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83454         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83455         All uses changed.
83456         (BITSET_WORD_MAX): New macro.
83457         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83458         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83459         (bitset_empty, bitset_copy):
83460         Prefer sizeof (bitset) to multiplying it out ourselves.
83461         (bitset_not_merge): Remove; unused.
83462         (bitset_contain): Return bool, not unsigned int with one bit on.
83463         All callers changed.
83464         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83465         alignment than re_node_set; do this by defining a new internal
83466         type struct dests_alloc and using it to allocate memory.
83467
83468 2005-09-05  Bruno Haible  <bruno@clisp.org>
83469
83470         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83471         links.
83472
83473 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83474
83475         * modules/size_max (Makefile.am): Add size_max.h
83476
83477 2005-09-04  Derek Price  <derek@ximbiot.com>
83478
83479         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83480
83481 2005-09-03  Simon Josefsson  <jas@extundo.com>
83482
83483         * gnulib-tool: Fix typo.
83484
83485 2005-09-03  Simon Josefsson  <jas@extundo.com>
83486
83487         * config/srclist.txt: Add glibc bug 1293.
83488
83489 2005-09-03  Derek Price  <derek@ximbiot.com>
83490
83491         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83492         From Larry Jones <lawrence.jones@ugs.com>.
83493
83494 2005-09-02  Simon Josefsson  <jas@extundo.com>
83495
83496         * modules/socklen: New file.
83497
83498 2005-09-02  Simon Josefsson  <jas@extundo.com>
83499
83500         * modules/havelib: New module.
83501
83502         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83503         Use havelib.
83504
83505 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83506
83507         Check for arithmetic overflow when calculating sizes, to prevent
83508         some buffer-overflow issues.  These patches are conservative, in the
83509         sense that when I couldn't determine whether an overflow was possible,
83510         I inserted a run-time check.
83511         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83512         macros.
83513         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83514         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83515         (re_xnrealloc, re_x2nrealloc): New inline functions.
83516         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83517         parse_bracket_exp):
83518         (build_equiv_class, build_charclass): Check for arithmetic overflow
83519         in size expression calculations.
83520         * lib/regex_internal.c (re_string_realloc_buffers):
83521         (build_wcs_upper_buffer, re_node_set_add_intersect):
83522         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83523         (re_dfa_add_node, register_state): Likewise.
83524         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83525         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83526         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83527         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83528
83529 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83530
83531         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83532         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83533
83534 2005-09-02  Bruno Haible  <bruno@clisp.org>
83535
83536         Support for lib vs. lib64 distinction on biarch platforms.
83537         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83538         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83539         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83540
83541 2005-09-02  Bruno Haible  <bruno@clisp.org>
83542
83543         * gnulib-tool (import): In the other first-use case, provide defaults
83544         as well.
83545
83546 2005-09-02  Bruno Haible  <bruno@clisp.org>
83547
83548         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83549         patches not yet found in the latest gettext release.
83550
83551 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83552
83553         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83554         to avoid a collision with bits/local_lim.h in glibc.
83555         All uses changed.  Problem reported by Dmitry V. Levin in
83556         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83557
83558         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83559         bugs in int versus size_t comparisons.
83560         (re_string_context_at): Fix bug where the code assumed that
83561         Idx is signed.
83562
83563         Use bool where appropriate.
83564         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83565         All callers changed.
83566         (calc_eclosure_iter): Likewise, for ROOT arg.
83567         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83568         (build_charclass_op): Likewise, for NON_MATCH arg.
83569         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83570         (re_string_construct_common): Likewise, for ICASE arg.
83571         * lib/regexec.c (re_search_2_stub, re_search_stub):
83572         Likewise, for RET_LEN arg.
83573         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83574         (set_regs): Likewise, for FL_BACKTRACK arg.
83575         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83576         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83577         (calc_eclosure_iter, parse_bracket_exp):
83578         Use bool for internal variables that are booleans.
83579         * lib/regexec.c (re_search_internal, check_matching,
83580         proceed_next_node):
83581         (set_regs, build_sifted_states, sift_states_bkref):
83582         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83583         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83584         (find_collation_sequence_value):
83585         Likewise.
83586         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
83587         (re_node_set_compare):
83588         Return bool, not int. All callers changed.
83589         * lib/regexec.c (check_halt_node_context, check_dst_limits):
83590         (build_trtable, check_node_accept): Likewise.
83591         * lib/regex_internal.h: Include stdbool.h.
83592
83593         Fix bugs uncovered when converting to bool.
83594         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
83595         failure instead of charging ahead blindly.
83596         * lib/regex_internal.c (register_state): Likewise.
83597         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
83598         for freeing internal storage.
83599         (group_nodes_into_DFA_states): Use unsigned int, not int, for
83600         bitset pieces used as boolean, to avoid undefined behavior
83601         on hosts that do int overflow checking.
83602
83603 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83604
83605         * config/srclist.txt: Add glibc bugs 1285-1287.
83606
83607 2005-09-01  Jim Meyering  <jim@meyering.net>
83608
83609         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
83610         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
83611         Require gl_STAT_MACROS, too.
83612
83613 2005-09-01  Bruno Haible  <bruno@clisp.org>
83614
83615         * gnulib-tool (import): In the first-use case, provide defaults.
83616
83617 2005-09-01  Bruno Haible  <bruno@clisp.org>
83618
83619         * gnulib-tool (func_import): Remove the .tmp files.
83620
83621 2005-09-01  Bruno Haible  <bruno@clisp.org>
83622
83623         * gnulib-tool (func_import): Fix handling of symbolic links.
83624
83625 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83626
83627         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
83628         old glibc regex code mishandles strings longer than 2**31 bytes.
83629         This patch fixes this when the regex code is used in gnulib
83630         (i.e., outside glibc).
83631
83632         This patch should not affect the use of the regex code inside
83633         glibc.  No doubt this problem also needs to be handled for glibc
83634         as well, but the result will be an incompatible change to the
83635         glibc ABI, and the old ABI will have to be supported too.  That
83636         can be the the subject for another patch.
83637
83638         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
83639         governing whether the rest of this patch is active.  By default,
83640         the macro is disabled and the patch has no effect.
83641         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
83642         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
83643         (struct re_pattern_buffer, re_search, re_search_2, re_match):
83644         (re_match_2, re_set_registers): Use the new types.
83645         * lib/regex_internal.h (Idx, re_hashval_t): New types.
83646         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
83647         New macros.
83648         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
83649         (re_string_context_at, bin_tree_t, re_dfastate_t):
83650         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
83651         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
83652         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
83653         (re_string_char_size_at, re_string_wchar_at):
83654         (re_string_elem_size_at):
83655         Use the new types and macros to port to 64-bit hosts.
83656         Use unsigned types for internal values, so that the code
83657         mostly works even for arrays larger than SSIZE_MAX.
83658         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
83659         (search_duplicated_node, calc_eclosure_iter, fetch_number):
83660         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
83661         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
83662         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
83663         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
83664         (calc_inveclosure, parse_dup_op, build_range_exp):
83665         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
83666         (fetch_number, create_token_tree, mark_opt_subexp):
83667         Likewise.
83668         * lib/regex_internal.c (re_string_construct_common,
83669         create_ci_newstate):
83670         (create_cd_newstate, re_string_allocate, re_string_construct):
83671         (re_string_realloc_buffers, build_wcs_upper_buffer):
83672         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83673         (re_string_reconstruct, re_string_peek_byte_case):
83674         (re_string_fetch_byte_case, re_string_context_at):
83675         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83676         (re_node_set_init_copy, re_node_set_add_intersect):
83677         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83678         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83679         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83680         (re_acquire_state, re_acquire_state_context, register_state):
83681         Likewise.
83682         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
83683         search_cur_bkref_entry):
83684         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
83685         (re_search_internal, re_search_2_stub, re_search_stub)
83686         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
83687         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
83688         (update_cur_sifted_state, check_dst_limits):
83689         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83690         (check_subexp_limits, sift_states_bkref, merge_state_array):
83691         (check_subexp_matching_top, get_subexp, get_subexp_sub):
83692         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
83693         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83694         (expand_bkref_cache, check_node_accept_bytes):
83695         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
83696         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
83697         (acquire_init_state_context, check_halt_node_context):
83698         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
83699         (sift_states_backward, clean_state_log_if_needed):
83700         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
83701         (find_recover_state, transit_state_sb, transit_state_mb):
83702         (transit_state_bkref, build_trtable, match_ctx_clean):
83703         Likewise.
83704         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
83705         to work around an assumption that REG_MISSING is negative.
83706
83707         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
83708         (seek_collating_symbol_entry) [defined _LIBC]:
83709         (lookup_collation_sequence_value) [defined _LIBC]:
83710         (build_range_exp, build_collating_symbol) [defined _LIBC]:
83711         Use prototypes rather than old-style function definitions.
83712         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
83713         (transit_state_sb) [0]:
83714         (find_collation_sequence_value) [defined _LIBC]: Likewise.
83715
83716         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
83717         rm_eo.
83718
83719         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
83720         (optimize_subexps, lower_subexp):
83721         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
83722         since the signed shift might overflow.  Use 1u<<31 instead.
83723         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83724         Likewise.
83725         * lib/regexec.c (check_dst_limits_calc_pos_1,
83726         check_subexp_matching_top): Likewise.
83727
83728         * lib/regcomp.c (optimize_subexps, lower_subexp):
83729         Use CHAR_BIT rather than 8, for clarity.
83730         * lib/regexec.c (check_dst_limits_calc_pos_1):
83731         (check_subexp_matching_top): Likewise.
83732         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
83733         have to worry about portability issues when shifting it left.
83734         Remove no-longer-needed test for table_size > 0.
83735         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
83736         in a word, as the resulting behavior is undefined.
83737         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
83738         in one case, a <= should have been an <, and in another case the
83739         whole test was missing.
83740         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
83741         the standard name CHAR_BIT.
83742         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
83743         this is not true on one's complement and signed-magnitude hosts.
83744
83745         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
83746         next_last_offset.
83747         (struct re_dfa_t): Remove unused member states_alloc.
83748         * lib/regcomp.c (init_dfa): Don't initialize unused members.
83749
83750 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83751
83752         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
83753         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
83754         and large-file glibc and in 32-bit large-file Solaris.
83755
83756 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83757
83758         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
83759         lengths fit in regoff_t; this isn't true if regoff_t is the same
83760         width as size_t.
83761         * lib/regex.c (re_search_internal): 5th arg is LAST_START
83762         (= START + RANGE) instead of RANGE.  This avoids overflow
83763         problems when regoff_t is the same width as size_t.
83764         All callers changed.
83765         (re_search_2_stub): Check for overflow when adding the
83766         sizes of the two strings.
83767         (re_search_stub): Check for overflow when adding START
83768         to RANGE; if it occurs, substitute the extreme value.
83769
83770 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83771
83772         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
83773
83774 2005-08-31  Jim Meyering  <jim@meyering.net>
83775
83776         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
83777         a pointer-to-const.
83778         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
83779         (register_state): Likewise.
83780         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
83781         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83782         (group_nodes_into_DFAstates): Likewise.
83783
83784 2005-08-31  Jim Meyering  <jim@meyering.net>
83785
83786         * check-module: Add a FIXME comment.
83787
83788 2005-08-31  Eric Blake  <ebb9@byu.net>
83789
83790         * modules/unistd-safer (Files): Add unistd--.h.
83791         * modules/stdio-safer (Files): Add stdio--.h.
83792
83793 2005-08-31  Derek Price  <derek@ximbiot.com>
83794
83795         * lib/getdelim.c (getdelim): Return EOF on EOF.
83796         Reported by Larry Jones <lawrence.jones@ugs.com>.
83797
83798 2005-08-31  Bruno Haible  <bruno@clisp.org>
83799
83800         Avoid unnecessary diffs in the generated lib/Makefile.am.
83801         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
83802         the generated files.
83803         (func_import): Don't set cmd.
83804
83805 2005-08-31  Bruno Haible  <bruno@clisp.org>
83806
83807         * lib/strstr.c: Include <stddef.h>, for NULL.
83808         * lib/strcasestr.c: Likewise.
83809         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83810
83811 2005-08-31  Bruno Haible  <bruno@clisp.org>
83812
83813         * gnulib-tool: New option --macro-prefix.
83814         (func_import): Use macro_prefix.
83815         (import): Handle option --macro-prefix.
83816
83817 2005-08-31  Bruno Haible  <bruno@clisp.org>
83818
83819         * gnulib-tool (import): Rename most ac_* variables to cached_*.
83820         Also use new variables cached_lgpl, cached_libtool.
83821
83822 2005-08-31  Bruno Haible  <bruno@clisp.org>
83823
83824         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
83825         always instantiating them.
83826
83827 2005-08-31  Bruno Haible  <bruno@clisp.org>
83828
83829         * gnulib-tool (func_import): Read the previous cached settings
83830         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
83831         earlier added by gnulib but are now dropped. Warn when a gnulib file
83832         overwrites a non-gnulib file.
83833
83834 2005-08-31  Bruno Haible  <bruno@clisp.org>
83835
83836         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
83837         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
83838         projects that don't keep autogenerated files in CVS. Put into
83839         actioncmd only the specified modules, not the transitive closure.
83840
83841 2005-08-31  Bruno Haible  <bruno@clisp.org>
83842
83843         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
83844         Create directories that shall be filled.
83845         (import): Don't look for gl_* macros in configure.ac. Recurse across
83846         all directories containing a gnulib-cache.m4 files, if meaningful.
83847
83848 2005-08-31  Bruno Haible  <bruno@clisp.org>
83849
83850         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
83851         (import): Set seen_libtool when we see gl_LIBTOOL.
83852
83853 2005-08-31  Bruno Haible  <bruno@clisp.org>
83854
83855         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
83856         declaration macro definitions from generated gnulib.m4.
83857
83858 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
83859
83860         * lib/iconvme.h: Add prototype for iconv_alloc.
83861
83862 2005-08-29  Simon Josefsson  <jas@extundo.com>
83863
83864         * lib/iconvme.c: Fix errno.
83865
83866 2005-08-29  Bruno Haible  <bruno@clisp.org>
83867
83868         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
83869         that it works when the directory contains spaces.
83870
83871 2005-08-29  Bruno Haible  <bruno@clisp.org>
83872
83873         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
83874
83875 2005-08-29  Bruno Haible  <bruno@clisp.org>
83876
83877         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
83878         Emit more advice.
83879
83880 2005-08-29  Bruno Haible  <bruno@clisp.org>
83881         and Stepan Kasal  <kasal@ucw.cz>
83882
83883         * check-module: If more parameters are given, check each of them
83884         separately; add more exceptions, as noted by Jim Meyering.
83885         (check_module): New procedure.
83886         (%exempt_header): Now contains all exceptions.
83887
83888 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
83889
83890         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
83891
83892 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83893
83894         * lib/iconvme.c: Split iconv_string into iconv_alloc.
83895
83896 2005-08-28  Bruno Haible  <bruno@clisp.org>
83897
83898         * m4/gnulib-tool.m4: New file.
83899
83900 2005-08-27  Jim Meyering  <jim@meyering.net>
83901
83902         * modules/unistd-safer (Files): Add pipe-safer.c.
83903         * modules/fcntl-safer (Files): Add creat-safer.c.
83904
83905 2005-08-27  Jim Meyering  <jim@meyering.net>
83906
83907         * m4/stdlib-safer.m4: New file.  From coreutils.
83908         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
83909         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
83910         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
83911         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
83912         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
83913
83914 2005-08-27  Jim Meyering  <jim@meyering.net>
83915
83916         * lib/fopen-safer.c: Merge minor changes from coreutils.
83917         * lib/dup-safer.c: Likewise.
83918         * lib/fd-safer.c: Likewise.
83919
83920         Merge from coreutils.
83921         * lib/stdio--.h: New file.
83922         * lib/stdlib--.h: New file.
83923         * lib/mkstemp-safer.c: New file.
83924
83925         GNU tar needs these.
83926         * lib/pipe-safer.c: New file.
83927         * lib/creat-safer.c: New file.
83928         * lib/fcntl--.h (creat): Define to creat_safer.
83929         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
83930         * lib/unistd--.h (pipe): Define to pipe_safer.
83931         * lib/unistd-safer.h: Declare pipe_safer.
83932
83933 2005-08-26  Simon Josefsson  <jas@extundo.com>
83934
83935         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
83936         Haible <bruno@clisp.org>.
83937
83938 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
83939
83940         * lib/regex_internal.h: Remove all references to
83941         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
83942         or better.
83943         (bitset_not, bitset_merge, bitset_not_merge):
83944         (bitset_mask, re_string_allocate, re_string_construct):
83945         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
83946         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
83947         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
83948         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
83949         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83950         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83951         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
83952         (re_acquire_state_context):
83953         Remove unnecessary forward decls.
83954         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
83955         Put __attribute at function definition,
83956         now that the function decl has been removed.
83957         * lib/regex_internal.c (re_string_peek_byte_case):
83958         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
83959         Likewise.
83960
83961 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
83962
83963         * m4/regex.m4: Add AC_PREREQ(2.50).
83964         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
83965
83966 2005-08-25  Simon Josefsson  <jas@extundo.com>
83967
83968         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
83969         __fsetlocking.
83970
83971 2005-08-25  Simon Josefsson  <jas@extundo.com>
83972
83973         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
83974         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
83975         GLIBC specific code.
83976
83977 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83978
83979         Make regex safe for g++.  This fixes one real bug (an "err"
83980         that should have been "*err").  g++ problem reported by
83981         Sam Steingold.
83982         * lib/regex_internal.h (re_calloc): New macro, consistent with
83983         re_malloc etc.  All callers of calloc changed to use re_calloc.
83984         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
83985         not int.  All callers changed.
83986         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
83987         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
83988         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
83989         (find_recover_state): Change "err" to "*err"; this fixes what
83990         appears to be a real bug.
83991         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
83992         versus int.
83993
83994 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83995
83996         * modules/regex (Depends-on): Add malloc, since the code
83997         assumes that !malloc(0) means failure.
83998
83999 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84000
84001         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84002
84003         alloca modernization/simplification for regex.
84004         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84005         needs to be at the start of the file, and can be moved into
84006         regex_internal.h and simplified.
84007         * lib/regex_internal.h: Include <alloca.h>.
84008         (__libc_use_alloca) [!defined _LIBC]: New macro.
84009         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84010         now works outside glibc.
84011
84012 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84013
84014         * config/srclist.txt: Add glibc bugs 1241, 1245.
84015
84016 2005-08-25  Jim Meyering  <jim@meyering.net>
84017
84018         * lib/open-safer.c: Include <config.h>.
84019         Otherwise, we'd lose LARGEFILE support in any file using
84020         e.g. "fcntl--.h"
84021
84022 2005-08-25  Bruno Haible  <bruno@clisp.org>
84023
84024         * m4/minmax.m4: Require autoconf 2.52.
84025         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84026         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84027         alternatives of translit over the alphabet.
84028         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84029
84030 2005-08-24  Simon Josefsson  <jas@extundo.com>
84031
84032         * tests/test-getpass.c: New file.
84033
84034 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84035
84036         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84037         for GNU regex features.
84038
84039 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84040
84041         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84042         * lib/regex.h (regerror): Likewise.
84043
84044         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84045         requires this.  (The code never needed it.)
84046
84047         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84048         All uses of recently-renamed identifiers changed to use the new,
84049         POSIX-compliant names.  The code will build and run just fine
84050         without these changes, but it's better to eat our own dog food
84051         and use the standard-conforming names.
84052
84053         * lib/regex.h: Fix a multitude of POSIX name space violations.
84054         These changes have an effect only for programs that define
84055         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84056         do not change anything for programs compiled in the normal way.
84057         Also, there is no effect on the ABI.
84058
84059         (_REGEX_SOURCE): New macro.
84060         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84061         defined and _GNU_SOURCE is not; this fixes a name space violation.
84062
84063         Rename the following macros to obey POSIX requirements.
84064         The old names are still visible as macros if _REGEX_SOURCE is defined.
84065         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84066         RE_BACKSLASH_ESCAPE_IN_LISTS.
84067         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84068         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84069         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84070         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84071         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84072         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84073         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84074         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84075         (REG_INTERVALS): renamed from RE_INTERVALS.
84076         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84077         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84078         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84079         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84080         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84081         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84082         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84083         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84084         RE_UNMATCHED_RIGHT_PAREN_ORD.
84085         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84086         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84087         (REG_DEBUG): renamed from RE_DEBUG.
84088         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84089         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84090         unusual, since we can't clash with the POSIX REG_ICASE.
84091         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84092         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84093         (REG_NO_SUB): renamed from RE_NO_SUB.
84094         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84095         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84096         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84097         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84098         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84099         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84100         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84101         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84102         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84103         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84104         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84105         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84106         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84107         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84108         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84109         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84110         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84111         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84112         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84113         (REG_FIXED): Renamed from REGS_FIXED.
84114         (REG_NREGS): Renamed from RE_NREGS.
84115
84116         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84117         of other REG_* macros, since POSIX says the user is allowed to
84118         #undef these macros selectively.
84119
84120         (reg_errcode_t): Update comment stating what other tables need
84121         to be consistent.
84122
84123         Rename the following enum values to obey POSIX requirements.
84124         The old names are still visible as macros.
84125         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84126         is not defined, since GNU is supposed to be a superset of POSIX as
84127         much as possible, and since we want reg_errcode_t to be a signed
84128         type for implementation consistency.
84129         (_REG_NOERROR): Renamed from REG_NOERROR.
84130         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84131         (_REG_BADPAT): Renamed from REG_BADPAT.
84132         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84133         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84134         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84135         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84136         (_REG_EBRACK): Renamed from REG_EBRACK.
84137         (_REG_EPAREN): Renamed from REG_EPAREN.
84138         (_REG_EBRACE): Renamed from REG_EBRACE.
84139         (_REG_BADBR): Renamed from REG_BADBR.
84140         (_REG_ERANGE): Renamed from REG_ERANGE.
84141         (_REG_ESPACE): Renamed from REG_ESPACE.
84142         (_REG_BADRPT): Renamed from REG_BADRPT.
84143         (_REG_EEND): Renamed from REG_EEND.
84144         (_REG_ESIZE): Renamed from REG_ESIZE.
84145         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84146         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84147         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84148         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84149         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84150
84151         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84152         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84153         changed.  But support the old name if the new one is not defined
84154         and if _REGEX_SOURCE.
84155
84156         Change the following member names in struct re_pattern_buffer.
84157         The old names are still supported if !_REGEX_SOURCE.
84158         The new names are always supported, regardless of _REGEX_SOURCE.
84159         (re_buffer): Renamed from buffer.
84160         (re_allocated): Renamed from allocated.
84161         (re_used): Renamed from used.
84162         (re_syntax): Renamed from syntax.
84163         (re_fastmap): Renamed from fastmap.
84164         (re_translate): Renamed from translate.
84165         (re_can_be_null): Renamed from can_be_null.
84166         (re_regs_allocated): Renamed from regs_allocated.
84167         (re_fastmap_accurate): Renamed from fastmap_accurate.
84168         (re_no_sub): Renamed from no_sub.
84169         (re_not_bol): Renamed from not_bol.
84170         (re_not_eol): Renamed from not_eol.
84171         (re_newline_anchor): Renamed from newline_anchor.
84172
84173         Change the following member names in struct re_registers.
84174         The old names are still supported if !_REGEX_SOURCE.
84175         The new names are always supported, regardless of _REGEX_SOURCE.
84176         (rm_num_regs): Renamed from num_regs.
84177         (rm_start): Renamed from start.
84178         (rm_end): Renamed from end.
84179
84180         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84181         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84182         Prepend __ to parameter names.
84183
84184         Undo yesterday's changes.
84185
84186 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84187
84188         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84189         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84190         lib/regex.c.
84191
84192 2005-08-24  Jim Meyering  <jim@meyering.net>
84193
84194         Sync from coreutils.
84195         * m4/fcntl-safer.m4: New file.
84196
84197         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84198         and object files for this module.
84199
84200 2005-08-24  Jim Meyering  <jim@meyering.net>
84201
84202         Sync from coreutils.
84203         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84204
84205 2005-08-24  Jim Meyering  <jim@meyering.net>
84206
84207         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84208         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84209
84210 2005-08-24  Jim Meyering  <jim@meyering.net>
84211
84212         * modules/fcntl-safer: New module.
84213         * modules/fts (Depends-on): Add fcntl-safer.
84214         * MODULES.html.sh (File descriptor based Input/Output):
84215         Add fcntl-safer.
84216
84217 2005-08-24  Bruno Haible  <bruno@clisp.org>
84218
84219         Support for unit test modules.
84220         * modules/README: Mention tests modules.
84221         * modules/TEMPLATE-TESTS: New file.
84222         * gnulib-tool: New options --extract-tests-module, --with-tests and
84223         --tests-base (unused for the moment).
84224         (testsbase, inctests): New variables.
84225         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84226         (func_verify_module): Exclude TEMPLATE-TESTS.
84227         (func_verify_nontests_module, func_verify_tests_module): New functions.
84228         (func_get_dependencies): Add implicit dependency for tests modules.
84229         (func_get_tests_module): New function.
84230         (func_modules_transitive_closure): When --with-tests was specified,
84231         include the unit tests as well, unless explicitly avoided.
84232         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84233         (func_emit_tests_Makefile_am): New function.
84234         (func_create_testdir): When --with-tests was specified, emit a
84235         tests/ directory.
84236         * MODULES.html.sh (Future developments): Update.
84237
84238 2005-08-24  Bruno Haible  <bruno@clisp.org>
84239
84240         * modules/tls-tests: New file.
84241         * tests/test-tls.c: New file, from GNU gettext.
84242
84243 2005-08-24  Bruno Haible  <bruno@clisp.org>
84244
84245         * modules/lock-tests: New file.
84246         * tests/test-lock.c: New file, from GNU gettext.
84247
84248 2005-08-24  Bruno Haible  <bruno@clisp.org>
84249
84250         * lib/lock.h: Add multiple inclusion guard.
84251         * lib/tls.h: Add multiple inclusion guard.
84252
84253 2005-08-24  Bruno Haible  <bruno@clisp.org>
84254
84255         * gnulib-tool: Add support for the --aux-dir option to
84256         --create-testdir, --create-megatestdir, --test, --megatest.
84257         (func_create_testdir, func_create_megatestdir): Optionally emit a
84258         AC_CONFIG_AUX_DIR directive.
84259         (create-testdir, create-megatestdir, test, megatest): Provide a
84260         default value for $auxdir.
84261
84262 2005-08-24  Bruno Haible  <bruno@clisp.org>
84263
84264         * gnulib-tool (import): Use compound statement instead of subshell
84265         where possible.
84266
84267 2005-08-24  Bruno Haible  <bruno@clisp.org>
84268
84269         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84270
84271 2005-08-24  Bruno Haible  <bruno@clisp.org>
84272
84273         * gnulib-tool (func_version): Update.
84274
84275 2005-08-24  Bruno Haible  <bruno@clisp.org>
84276
84277         * gnulib-tool (func_import, func_create_testdir,
84278         func_create_megatestdir): Quote all autoconf macro arguments.
84279
84280 2005-08-24  Bruno Haible  <bruno@clisp.org>
84281
84282         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84283         option --force, because --force causes the aclocal.m4 of each
84284         subdirectory to be newer than the corresponding config.h.in.
84285
84286 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84287
84288         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84289         All contents moved to gl_REGEX.
84290         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84291         assume that it does.
84292
84293 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84294
84295         * lib/regex.h (REG_NOSYS)
84296         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84297         Define, since POSIX requires it as of 2001.
84298         (_REG_ENOSYS)
84299         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84300         New private symbol, used to keep the enum signed in all cases.
84301         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84302         Youngman in
84303         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84304
84305         * lib/regex_internal.c (re_string_skip_chars, register_state):
84306         (calc_state_hash):
84307         Remove forward decls; no longer needed now that we use prototypes.
84308         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84309         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84310         (clean_state_log_if_needed): Likewise.
84311
84312 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84313
84314         * config/srclist.txt: Add glibc bugs 1231-1233.
84315
84316 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         Fix problems reported by Sam Steingold in
84319         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84320         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84321         assumed that reg_errcode_t is a signed type, which is not
84322         necessarily true if _XOPEN_SOURCE is not defined.
84323         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84324         since some compilers warn about it otherwise.
84325
84326 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84327
84328         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84329         (init_word_char, create_initial_state, duplicate_node_closure):
84330         (fetch_token, peek_token_bracket, build_range_exp):
84331         (build_collating_symbol): Remove forward decls; no longer needed
84332         now that we use prototypes.
84333
84334         * lib/regcomp.c:
84335         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84336         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84337         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84338         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84339         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84340         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84341         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84342         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84343         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84344         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84345         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84346         (build_charclass, build_charclass_op, fetch_number, create_tree):
84347         (create_token_tree, mark_opt_subexp, duplicate_tree):
84348         Use prototypes rather than old-style definitions.
84349
84350         * lib/regex_internal.c:
84351         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84352         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84353         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84354         (re_string_reconstruct, re_string_peek_byte_case):
84355         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84356         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84357         (re_node_set_init_copy, re_node_set_add_intersect):
84358         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84359         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84360         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84361         (re_acquire_state, re_acquire_state_context, register_state):
84362         (create_ci_newstate, create_cd_newstate, free_state):
84363         Likewise.
84364         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84365         re_search_2):
84366         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84367         (re_search_internal, prune_impossible_nodes):
84368         (acquire_init_state_context, check_matching, static):
84369         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84370         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84371         (update_regs, sift_states_backward, build_sifted_states):
84372         (clean_state_log_if_needed, merge_state_array):
84373         (update_cur_sifted_state, add_epsilon_src_nodes):
84374         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84375         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84376         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84377         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84378         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84379         (check_arrival, check_arrival_add_next_nodes):
84380         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84381         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84382         (check_node_accept_bytes, check_node_accept, extend_buffers):
84383         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84384         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84385         (sift_ctx_init):
84386         Likewise.
84387
84388         * lib/regex_internal.h:
84389         (re_string_allocate, re_string_construct, re_string_reconstruct):
84390         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84391         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84392         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84393         (re_string_context_at, re_string_peek_byte_case):
84394         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84395         is defined, since we now use prototypes always.
84396
84397         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84398         C89 or better.  All uses removed.
84399
84400 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84401
84402         * config/srclist.txt: Add glibc bugs 1220-1227.
84403
84404 2005-08-20  Jim Meyering  <jim@meyering.net>
84405
84406         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84407         of unused local, dfa.
84408
84409 2005-08-20  Bruno Haible  <bruno@clisp.org>
84410
84411         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84412
84413 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84414
84415         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84416         (re_node_set_insert_last, re_dfa_add_node):
84417         Rename local variables to avoid GCC shadowing warnings.
84418
84419 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84420
84421         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84422         [defined lint]: Suppress bogus uninitialized-variable warnings.
84423
84424         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84425         and let the caller return REG_ESPACE if out of space.  This
84426         removes an uninitialied-variable warning with GCC 4.0.1, and also
84427         avoids taking the address of a local variable.  All callers
84428         changed.
84429
84430 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84431
84432         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84433         $LIBCSRC/posix/regexec.c.
84434         Add glibc bug 1217 for regcomp.c.
84435
84436 2005-08-19  Jim Meyering  <jim@meyering.net>
84437
84438         * lib/regexec.c (proceed_next_node): Redo local variables to
84439         avoid GCC shadowing warnings.
84440
84441 2005-08-18  Bruno Haible  <bruno@clisp.org>
84442
84443         * lib/strstr.c (strstr): Fix return value in multibyte case.
84444         * lib/strcasestr.c (strcasestr): Likewise.
84445
84446 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84447
84448         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84449
84450 2005-08-17  Jim Meyering  <jim@meyering.net>
84451
84452         Make the %s format (seconds since the epoch) work for a negative
84453         number and when used with a zero-padded field width, e.g. %015s.
84454
84455         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84456         label so that it precedes the code to set `digits'.  Otherwise,
84457         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84458         print `00-22'.  Now, it prints `-0022', as it should.
84459
84460 2005-08-17  Bruno Haible  <bruno@clisp.org>
84461
84462         * modules/strstr (Files): Add m4/mbrtowc.m4.
84463         (Depends-on): Add mbuiter.
84464
84465 2005-08-17  Bruno Haible  <bruno@clisp.org>
84466
84467         * modules/strcasestr: New file.
84468         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84469         strcasestr.
84470
84471 2005-08-17  Bruno Haible  <bruno@clisp.org>
84472
84473         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84474
84475 2005-08-17  Bruno Haible  <bruno@clisp.org>
84476
84477         * modules/mbuiter: New file.
84478         * MODULES.html.sh (Extended multibyte and wide character utilities):
84479         Add mbuiter.
84480
84481 2005-08-17  Bruno Haible  <bruno@clisp.org>
84482
84483         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84484         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84485
84486 2005-08-17  Bruno Haible  <bruno@clisp.org>
84487
84488         * m4/strcasestr.m4: New file.
84489
84490 2005-08-17  Bruno Haible  <bruno@clisp.org>
84491
84492         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84493         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84494
84495 2005-08-17  Bruno Haible  <bruno@clisp.org>
84496
84497         * lib/strcasestr.h: New file.
84498         * lib/strcasestr.c: New file.
84499
84500 2005-08-17  Bruno Haible  <bruno@clisp.org>
84501
84502         * lib/strcasecmp.c: Use mbuiter.h.
84503
84504 2005-08-17  Bruno Haible  <bruno@clisp.org>
84505
84506         * lib/mbuiter.h: New file.
84507
84508 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84509
84510         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84511         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84512         and gl_GETOPT are both invoked via different paths (as happens
84513         with GNU tar CVS because it uses both argp and getopt), the former
84514         wins.
84515
84516 2005-08-16  Bruno Haible  <bruno@clisp.org>
84517
84518         * modules/tls: New file.
84519         * MODULES.html.sh (Multithreading): Add tls.
84520
84521 2005-08-16  Bruno Haible  <bruno@clisp.org>
84522
84523         * modules/strnlen1: New file.
84524         * MODULES.html.sh (String handling): Add strnlen1.
84525
84526 2005-08-16  Bruno Haible  <bruno@clisp.org>
84527
84528         * modules/strcase (Files): Add m4/mbrtowc.m4.
84529         (Depends-on): Add strnlen1, mbchar.
84530
84531 2005-08-16  Bruno Haible  <bruno@clisp.org>
84532
84533         * modules/mbiter: New file.
84534         * MODULES.html.sh (Extended multibyte and wide character utilities):
84535         Add mbiter.
84536
84537 2005-08-16  Bruno Haible  <bruno@clisp.org>
84538
84539         * modules/mbfile: New file.
84540         * MODULES.html.sh (Extended multibyte and wide character utilities):
84541         Add mbfile.
84542
84543 2005-08-16  Bruno Haible  <bruno@clisp.org>
84544
84545         * modules/mbchar: New file.
84546         * MODULES.html.sh (Extended multibyte and wide character utilities):
84547         New section.
84548
84549 2005-08-16  Bruno Haible  <bruno@clisp.org>
84550
84551         * m4/tls.m4: New file, from GNU gettext.
84552
84553 2005-08-16  Bruno Haible  <bruno@clisp.org>
84554
84555         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84556         always.
84557         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84558
84559 2005-08-16  Bruno Haible  <bruno@clisp.org>
84560
84561         * m4/mbiter.m4: New file.
84562
84563 2005-08-16  Bruno Haible  <bruno@clisp.org>
84564
84565         * m4/mbfile.m4: New file.
84566
84567 2005-08-16  Bruno Haible  <bruno@clisp.org>
84568
84569         * m4/mbchar.m4: New file.
84570
84571 2005-08-16  Bruno Haible  <bruno@clisp.org>
84572
84573         * lib/tls.h: New file, from GNU gettext.
84574         * lib/tls.c: New file, from GNU gettext.
84575
84576 2005-08-16  Bruno Haible  <bruno@clisp.org>
84577
84578         * lib/strnlen1.h: New file.
84579         * lib/strnlen1.c: New file.
84580
84581 2005-08-16  Bruno Haible  <bruno@clisp.org>
84582
84583         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84584         (mbi_init): Update.
84585         (mbi_avail, mbi_advance): Let the iteration end before the terminating
84586         NUL byte, not after it.
84587
84588 2005-08-16  Bruno Haible  <bruno@clisp.org>
84589
84590         * lib/strcase.h (strcasecmp): Add note in comments.
84591         * lib/strncasecmp.c: Use code from strcasecmp.c.
84592         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
84593         (strcasecmp): Work correctly in multibyte locales.
84594
84595 2005-08-16  Bruno Haible  <bruno@clisp.org>
84596
84597         * lib/mbiter.h: New file.
84598
84599 2005-08-16  Bruno Haible  <bruno@clisp.org>
84600
84601         * lib/mbfile.h: New file.
84602
84603 2005-08-16  Bruno Haible  <bruno@clisp.org>
84604
84605         * lib/mbchar.h: New file.
84606         * lib/mbchar.c: New file.
84607
84608 2005-08-16  Bruno Haible  <bruno@clisp.org>
84609
84610         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
84611         the valid ones. Makes the comparison operations transitive:
84612         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
84613         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
84614
84615 2005-08-15  Simon Josefsson  <jas@extundo.com>
84616
84617         * modules/ssize_t (License): Change to 'unlimited'.
84618
84619         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
84620
84621 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84622
84623         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
84624         Add comments for each pending glibc patch.
84625
84626 2005-08-15  Bruno Haible  <bruno@clisp.org>
84627
84628         * lib/regex.h (__restrict_arr): Don't define to __restrict if
84629         __cplusplus is defined.
84630
84631 2005-08-14  Jim Meyering  <jim@meyering.net>
84632
84633         Sync from coreutils.
84634
84635         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
84636         Use the hash-table-based cycle-detection code not just when
84637         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
84638         Reported by James Youngman in
84639         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
84640         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
84641         FTS_TIGHT_CYCLE_CHECK.
84642         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
84643         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
84644         once again.
84645         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
84646         * lib/fts.c (fd_safer): Remove decl.
84647         Include fcntl--.h rather than unistd-safer.h
84648         (fts_safe_changedir): Don't call fd_safer; no longer needed
84649         now that we include fcntl--.h.
84650
84651 2005-08-12  Simon Josefsson  <jas@extundo.com>
84652
84653         * modules/getndelim2: Use ssize_t module.
84654         * modules/getnline: Likewise.
84655         * modules/safe-read: Likewise.
84656         * modules/xreadlink: Likewise.
84657
84658         * modules/ssize_t: New file.
84659
84660 2005-08-12  Simon Josefsson  <jas@extundo.com>
84661
84662         * m4/readline.m4: Look for termcap, curses or ncurses if required.
84663
84664 2005-08-12  Simon Josefsson  <jas@extundo.com>
84665
84666         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84667         ssize_t.
84668
84669 2005-08-12  Simon Josefsson  <jas@extundo.com>
84670
84671         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
84672         readline, getdelim and check_version.
84673         (Support for systems lacking ISO C 99: Sizes of integer types):
84674         Add size_max.
84675
84676 2005-08-12  Bruno Haible  <bruno@clisp.org>
84677
84678         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
84679
84680 2005-08-11  Simon Josefsson  <jas@extundo.com>
84681
84682         * modules/readline: New file.
84683
84684         * modules/strnlen (Files): Add strnlen.h.
84685
84686 2005-08-11  Simon Josefsson  <jas@extundo.com>
84687
84688         * m4/readline.m4: New file.
84689
84690 2005-08-11  Simon Josefsson  <jas@extundo.com>
84691
84692         * lib/readline.h, readline.c: New file.
84693
84694 2005-08-11  Simon Josefsson  <jas@extundo.com>
84695
84696         * doc/gnulib.texi (Initial import, Finishing touches): Mention
84697         gl_AVOID.
84698
84699 2005-08-11  Bruno Haible  <bruno@clisp.org>
84700
84701         * lib/strnlen.h (strnlen): Change parameter name to match comment.
84702
84703 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
84704
84705         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
84706
84707 2005-08-10  Simon Josefsson  <jas@extundo.com>
84708
84709         * tests/test-iconvme.c: New file.
84710
84711 2005-08-10  Simon Josefsson  <jas@extundo.com>
84712
84713         * m4/strnlen.m4: New file.
84714
84715         * m4/strndup.m4: Don't check for strnlen declaration, done in
84716         strnlen.m4.
84717
84718 2005-08-10  Simon Josefsson  <jas@extundo.com>
84719
84720         * lib/strndup.c: Use strnlen.h.
84721
84722         * lib/strnlen.h: New file.
84723
84724 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84725
84726         * README: Typos.
84727
84728 2005-08-02  Simon Josefsson  <jas@extundo.com>
84729
84730         * modules/readline: New file.
84731
84732 2005-08-02  Simon Josefsson  <jas@extundo.com>
84733
84734         * modules/getdelim: New file.
84735
84736         * modules/getline: Rewrite, don't use getndelim2.
84737
84738 2005-08-02  Simon Josefsson  <jas@extundo.com>
84739
84740         * m4/getline.m4: Separate out getdelim stuff into separate module.
84741
84742         * m4/getdelim.m4: New file.
84743
84744 2005-08-02  Simon Josefsson  <jas@extundo.com>
84745
84746         * lib/getline.h, getline.c: Rewrite.
84747
84748         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
84749
84750 2005-07-31  Bruno Haible  <bruno@clisp.org>
84751
84752         * lib/lock.h (gl_lock_initializer): New macro.
84753         (gl_lock_define_initialized): Use it.
84754         (gl_rwlock_initializer): New macro.
84755         (gl_rwlock_define_initialized): Use it.
84756         (gl_recursive_lock_initializer): New macro.
84757         (gl_recursive_lock_define_initialized): Use it.
84758
84759 2005-07-30  Karl Berry  <karl@gnu.org>
84760
84761         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
84762         Report from Ben Pfaff, regarding getopt.
84763
84764 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
84765
84766         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
84767         normal way.
84768         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
84769         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
84770         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
84771         (gl_GETOPT): Use the new macros.  Most of the implementation
84772         is moved to the new macros.  This is for programs like Emacs
84773         that don't want all the functionality of gl_GETOPT.
84774
84775 2005-07-26  Bruno Haible  <bruno@clisp.org>
84776
84777         * m4/lock.m4: Update from GNU gettext.
84778
84779 2005-07-26  Bruno Haible  <bruno@clisp.org>
84780
84781         * lib/lock.h: Update from GNU gettext.
84782         * lib/lock.c: Update from GNU gettext.
84783
84784 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
84785
84786         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
84787         obsolescent AC_TRY_RUN.  Include the default includes files, for
84788         'exit'.
84789
84790 2005-07-24  Bruno Haible  <bruno@clisp.org>
84791
84792         * modules/visibility: New file.
84793         * MODULES.html.sh (Misc): Add visibility.
84794
84795 2005-07-24  Bruno Haible  <bruno@clisp.org>
84796
84797         * m4/visibility.m4: New file.
84798
84799 2005-07-24  Bruno Haible  <bruno@clisp.org>
84800
84801         * doc/visibility.texi: New file.
84802
84803 2005-07-22  Bruno Haible  <bruno@clisp.org>
84804
84805         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
84806         $(ALLOCA_H), redundant through BUILT_SOURCES.
84807         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
84808         redundant through BUILT_SOURCES.
84809         * modules/byteswap (Makefile.am): Remove explicit dependency on
84810         $(BYTESWAP_H), redundant through BUILT_SOURCES.
84811         * modules/fnmatch (Makefile.am): Remove explicit dependency on
84812         $(FNMATCH_H), redundant through BUILT_SOURCES.
84813         * modules/getopt (Makefile.am): Remove explicit dependency on
84814         $(GETOPT_H), redundant through BUILT_SOURCES.
84815         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
84816         redundant through BUILT_SOURCES.
84817         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
84818         redundant through BUILT_SOURCES.
84819         * modules/stdbool (Makefile.am): Remove explicit dependency on
84820         $(STDBOOL_H), redundant through BUILT_SOURCES.
84821         * modules/stdint (Makefile.am): Remove explicit dependency on
84822         $(STDINT_H), redundant through BUILT_SOURCES.
84823         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
84824         Remove explicit dependency on $(SYSEXITS_H).
84825         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
84826
84827 2005-07-18  Simon Josefsson  <jas@extundo.com>
84828
84829         * lib/check-version.c (check_version): Accept identical versions too.
84830
84831 2005-07-18  Bruno Haible  <bruno@clisp.org>
84832
84833         * modules/lock: New file.
84834         * MODULES.html.sh (Multithreading): New section.
84835
84836 2005-07-18  Bruno Haible  <bruno@clisp.org>
84837
84838         * m4/lock.m4: New file, from GNU gettext.
84839
84840 2005-07-18  Bruno Haible  <bruno@clisp.org>
84841
84842         * lib/lock.h: New file, from GNU gettext.
84843         * lib/lock.c: New file, from GNU gettext.
84844
84845 2005-07-18  Bruno Haible  <bruno@clisp.org>
84846
84847         * lib/lock.h (gl_once_t): New type.
84848         (gl_once_define, gl_once): New macros.
84849         * lib/lock.c (fresh_once): New variable.
84850         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
84851         functions.
84852
84853 2005-07-16  Simon Josefsson  <jas@extundo.com>
84854
84855         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
84856         workaround, suggested by Bruno.
84857
84858 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84859
84860         * modules/xalloc (Depends-on): Add xalloc-die.
84861         * modules/xvasprintf (Depends-on): Add xalloc-die.
84862
84863 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84864
84865         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
84866         with a minor change.
84867
84868 2005-07-15  Bruno Haible  <bruno@clisp.org>
84869
84870         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
84871         When using lib/poll.c, define poll as rpl_poll.
84872
84873 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
84874
84875         * modules/argp (Depends-on): Remove unlocked-io.
84876
84877 2005-07-14  Derek Price  <derek@ximbiot.com>
84878
84879         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
84880         for glob symlink bug.
84881
84882 2005-07-14  Bruno Haible  <bruno@clisp.org>
84883
84884         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
84885         Instead, test for *_unlocked function declarations directly.
84886
84887 2005-07-11  Simon Josefsson  <jas@extundo.com>
84888
84889         * modules/size_max: New file.
84890
84891         * modules/xsize: Depend on size_max module for size_max.m4.
84892
84893 2005-07-11  Simon Josefsson  <jas@extundo.com>
84894
84895         * lib/size_max.h: New file.
84896
84897 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
84898
84899         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
84900         copyright symbol and the year.
84901         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
84902         (version_etc_va): Use parameterized copyright notice.
84903         Reword to conform to the current GNU coding standards.
84904
84905 2005-07-11  Karl Berry  <karl@gnu.org>
84906
84907         * doc/gnulib.texi (Quoting): new node.
84908         (Initial import): more info, from Patrice.
84909
84910 2005-07-11  Bruno Haible  <bruno@clisp.org>
84911
84912         * gnulib-tool (func_usage): Document option --avoid.
84913         (Command line options): Handle --avoid.
84914         (func_acceptable): New function.
84915         (func_modules_transitive_closure): Use it.
84916
84917 2005-07-11  Bruno Haible  <bruno@clisp.org>
84918
84919         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
84920         Reported by Jim Meyering.
84921
84922 2005-07-10  Bruno Haible  <bruno@clisp.org>
84923
84924         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
84925         Needed when size_t is smaller than 'unsigned int'.
84926         Reported by Paul Eggert.
84927
84928 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84929
84930         * modules/argp (Depends-on): Add unlocked-io
84931
84932 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84933
84934         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
84935         block of defines.
84936
84937 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
84938
84939         * config/srclist.txt: Comment out regcomp.c, since we have a porting
84940         fix now.
84941
84942 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
84943         and Paul Eggert  <eggert@cs.ucla.edu>
84944
84945         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
84946         in wint_t, not wchar_t.  Remove now-unnecessary cast.
84947
84948 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84949
84950         * modules/regex (Files): Add lib/regex_internal.c,
84951         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
84952         (Depends-on): Add extensions.
84953         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
84954
84955 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84956
84957         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
84958         pathconf.
84959         * m4/same.m4 (gl_SAME): Likewise.
84960         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
84961
84962         * m4/regex.m4: Adjust to new libc regex implementation.
84963         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
84964         all the .c and .h parts of (the new) regex.
84965         Quote the m4 stuff better.
84966         Check for RE_ICASE bug of old gnulib.
84967         Check for REG_STARTEND of recent libc.
84968         Rename local variables from jm_* to gl_*.
84969         Quote operand of "test -f".
84970         Say "recent enough" version of libc, not "version 2".
84971         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
84972         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
84973         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
84974         Remove check for btowc, isascii.
84975         Require AM_LANGINFO_CODESET.
84976
84977 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84978
84979         * lib/regex.c, regex.h: Sync from libc.
84980         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
84981         * lib/regexec.c:
84982         New files, synced from libc, except that regex_internal.h
84983         currently has a small porting fix.
84984
84985 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84986
84987         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
84988         regex_internal.c, regexec.c.
84989         Add regex_internal.h too, but as a comment, since the libc version
84990         is currently broken in gnulib mode.
84991
84992 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
84993
84994         Support programs like Emacs that use gnulib but not gettext.
84995         * MODULES.html.sh (Internationalization functions): Add gettext-h.
84996         * modules/gettext-h: New file.
84997         * modules/gettext (Files): Remove lib/gettext.h.
84998         (Depends-on): Add gettext-h.
84999         (Makefile.am): Remove lib_SOURCES.
85000         * modules/argmatch, modules/c-stack, modules/closeout:
85001         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85002         * modules/execute, modules/file-type, modules/getaddrinfo:
85003         * modules/getopt, modules/human, modules/javacomp:
85004         * modules/javaexec, modules/mkdir-p, modules/obstack:
85005         * modules/openat, modules/pagealign_alloc, modules/pipe:
85006         * modules/quotearg, modules/regex, modules/rpmatch:
85007         * modules/unicodeio, modules/userspec, modules/version-etc:
85008         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85009         * modules/xsetenv:
85010         Depend on gettext-h, not gettext.
85011
85012 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85013
85014         * gnulib-tool (func_import): Add support for 'public domain' license.
85015         * modules/alloca, modules/atexit, modules/memmove:
85016         Now public domain, not GPL.
85017         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85018         * modules/realloc, modules/strerror, modules/strtod:
85019         Now LGPL, not GPL.
85020
85021 2005-07-05  Bruno Haible  <bruno@clisp.org>
85022
85023         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85024         autoconf CVS. Needed for mingw.
85025
85026 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85027
85028         Remove the dependency of the strftime module on the tzset module.
85029         * modules/strftime (Depends-on): Remove dependency on tzset.
85030
85031 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85032
85033         Remove the dependency of the strftime module on the tzset module.
85034         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85035         gl_FUNC_TZSET_CLOBBER.
85036
85037 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85038
85039         Remove the dependency of the strftime module on the tzset module.
85040         * lib/strftime.c (my_strftime)
85041         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85042         Copy the input structure, to work around some of the bug with
85043         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85044         Solaris releases, you should also use the tzset module, but we won't
85045         require it as a dependency any more since we don't want LGPLed code
85046         to depend on GPLed code.
85047
85048 2005-07-02  Jim Meyering  <jim@meyering.net>
85049
85050         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85051         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85052         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85053         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85054
85055 2005-07-02  Jim Meyering  <jim@meyering.net>
85056
85057         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85058
85059 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85060
85061         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85062         declares only 'struct timespec;' (!).
85063
85064 2005-07-01  Jim Meyering  <jim@meyering.net>
85065
85066         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85067         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85068         * lib/save-cwd.c, tempname.c:
85069         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85070         and don't include <sys/file.h>).
85071
85072 2005-06-29  Jim Meyering  <jim@meyering.net>
85073
85074         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85075         type name.  Use the variable name instead.
85076         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85077         Likewise.
85078
85079 2005-06-28  Simon Josefsson  <jas@extundo.com>
85080
85081         * modules/check-version (Files): Add check-version.m4.
85082
85083 2005-06-28  Simon Josefsson  <jas@extundo.com>
85084
85085         * m4/check-version.m4: New file, suggested by Jim Meyering
85086         <jim@meyering.net>.
85087
85088 2005-06-28  Simon Josefsson  <jas@extundo.com>
85089
85090         * lib/check-version.h, lib/check-version.c: New files.
85091
85092 2005-06-28  Simon Josefsson  <jas@extundo.com>
85093
85094         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85095         collision with global variable.  Better indentation.  Don't
85096         increment buffer pointer beyond buffer end.  Based on comments
85097         from Paul Eggert <eggert@cs.ucla.edu>.
85098
85099         * lib/base64.h: Indent.
85100
85101 2005-06-28  Simon Josefsson  <jas@extundo.com>
85102
85103         * doc/gnulib.texi (Library version handling): New section.
85104
85105 2005-06-28  Jim Meyering  <jim@meyering.net>
85106
85107         * check-module (find_included_lib_files): Hard-code another
85108         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85109         but modules/fts-lgpl (correctly) does not list those files.
85110
85111         * modules/canonicalize (Files): Add lib/pathmax.h.
85112
85113 2005-06-25  Simon Josefsson  <jas@extundo.com>
85114
85115         * modules/check-version: New file.
85116
85117 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85118
85119         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85120         initializer of struct addrinfo, as an indication that we don't
85121         care how many members the structure has.
85122
85123 2005-06-24  Derek Price  <derek@ximbiot.com>
85124         and Bruno Haible  <bruno@clisp.org>
85125
85126         Remove stat module & update lstat.
85127         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85128         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85129         * m4/stat.m4: Remove this file.
85130
85131 2005-06-24  Derek Price  <derek@ximbiot.com>
85132         and Bruno Haible  <bruno@clisp.org>
85133
85134         Remove stat module & update lstat.
85135         * lib/stat.c: Remove this file...
85136         (slash_aware_lstat): ...moving this content and its support...
85137         * lib/lstat.c (rpl_lstat): ...into here.
85138         * lib/lstat.h: New file.
85139
85140 2005-06-24  Derek Price  <derek@ximbiot.com>
85141         and Bruno Haible  <bruno@clisp.org>
85142
85143         Remove stat module & update lstat.
85144         * config/srclist.txt (libc sources): Remove stat.
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         * MODULES.html.sh (stat): Remove.
85151         * MODULES.html: Regenerated.
85152         * modules/lstat (Description): Correct function name.
85153         (Files): Add "lstat.h".
85154         (Depends-on): Remove stat, add xalloc, stat-macros.
85155         * modules/stat: Remove this file.
85156         (Include): Add "lstat.h", remove <sys/stat.h>.
85157
85158 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85159
85160         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85161         (ranged_convert): Don't save conversion in a temporary struct.
85162         This causes a warning with GCC 4.0.0, and anyway in the typical
85163         case it's not worth the extra 100 bytes or so of code.
85164         (ranged_convert, __mktime_internal): When calling a function via a
85165         pointer P, use P () rather than (*P) (), as we now assume C89 or
85166         better.
85167
85168 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85169
85170         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85171         "who -r" failed to give output.  Problem reported by Tim Waugh.
85172
85173         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85174         (xcalloc): Use it to avoid needless tests.
85175         Problem reported by Jim Meyering.
85176
85177 2005-06-20  Derek Price  <derek@ximbiot.com>
85178
85179         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85180         unnecessary for Autoconfs > 2.59c.
85181
85182 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85183
85184         * lib/argp.h (__option_is_short): Check upper limit of
85185         __key. Isprint() requires its argument to have the value
85186         of an unsigned char or EOF.
85187
85188 2005-06-16  Jim Meyering  <jim@meyering.net>
85189
85190         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85191         when either N or S is zero.
85192
85193 2005-06-16  Derek Price  <derek@ximbiot.com>
85194
85195         * m4/bison.m4: Declare YACC & YFLAGS precious.
85196
85197 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85198
85199         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85200         multibyte string or pattern, fall back on unibyte matching.
85201         Problem reported by James Youngman.
85202
85203 2005-06-08  Bruno Haible  <bruno@clisp.org>
85204
85205         * modules/csharpcomp: New file.
85206         * MODULES.html.sh (C#): Add csharpcomp.
85207
85208 2005-06-08  Bruno Haible  <bruno@clisp.org>
85209
85210         * m4/csharpcomp.m4: New file, from GNU gettext.
85211
85212 2005-06-08  Bruno Haible  <bruno@clisp.org>
85213
85214         * lib/csharpcomp.h: New file, from GNU gettext.
85215         * lib/csharpcomp.c: New file, from GNU gettext.
85216         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85217
85218 2005-06-08  Bruno Haible  <bruno@clisp.org>
85219
85220         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85221         warning on mingw.
85222
85223 2005-06-07  Derek Price  <derek@ximbiot.com>
85224
85225         Sync from CVS.
85226         * lib/glob_.h: Indent nested #ifdef.
85227
85228 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85229
85230         Sync from coreutils.
85231         Use "file name" when talking about file names, instead of "filename"
85232         or "path", as per the GNU coding standards.
85233         * lib/mkdir-p.c: Renamed from makepath.c.
85234         (make_dir_parents): Renamed from make_path.  All callers changed.
85235         * lib/mkdir-p.h: Likewise.  All includers changed.
85236         * lib/filenamecat.c: Renamed from path-concat.c.
85237         (file_name_concat): Renamed from path_concat.  All callers changed.
85238         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85239         * lib/filenamecat.h: Likewise.  All includers changed.
85240         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85241         in comments or local variable names.
85242         * lib/basename.c: Likewise.
85243         * lib/canonicalize.c, canonicalize.h: Likewise.
85244         * lib/dirname.c, dirname.h: Likewise.
85245         * lib/euidaccess.c: Likewise.
85246         * lib/exclude.c: Likewise
85247         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85248         * lib/fsusage.c, fsuage.h: Likewise.
85249         * lib/fts.c, fts_.h: Likewise.
85250         * lib/getcwd.c: Likewise.
85251         * lib/getloadavg.c: Likewise.
85252         * lib/mkstemp.c: Likewise.
85253         * lib/mountlist.c, mountlist.h: Likewise.
85254         * lib/openat.c, openat.h: Likewise.
85255         * lib/readlink-stub.c: Likewise.
85256         * lib/readutmp.c, readutmp.h: Likewise.
85257         * lib/rename.c: Likewise.
85258         * lib/rmdir.c: Likewise.
85259         * lib/same.c: Likewise.
85260         * lib/savedir.c: Likewise.
85261         * lib/stripslash.c: Likewise.
85262         * lib/tempname.c: Likewise.
85263         * lib/xreadlink.c: Likewise.
85264         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85265         All uses changed.
85266         * lib/exclude.h: Likewise.
85267
85268         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85269         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85270         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85271         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85272         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85273         files have been getting away with it for years (MORE/BSD 4.3
85274         is extinct now).
85275         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85276         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85277
85278         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85279         Define to 256, not 255, as per modern POSIX.
85280
85281 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85282
85283         Sync from coreutils.
85284         Use "file name" when talking about file names, instead of "filename"
85285         or "path", as per the GNU coding standards.
85286         * MODULES.html.sh: mkdir-p renamed from makepath.
85287         filenamecat renamed from path-concat.
85288         * modules/filenamecat: Renamed from modules/path-concat.
85289         (Files): filenamecat.h and filenamecat.c renamed from
85290         path-concat.h and path-concat.c.
85291         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85292         (Include): filenamecat.h, not path-concat.h.
85293         * modules/mkdir-p: Renamed from modules/makepath.
85294         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85295         makepath.c.
85296         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85297         (Include): mkdir-p.h, not makepath.h.
85298
85299 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85300
85301         Sync from coreutils.
85302         * m4/mkdir-p.m4: Renamed from makepath.m4.
85303         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85304         Rename files from makepath.c to mkdir-p.c, and from
85305         makepath.h to mkdir-p.h.
85306         * m4/filenamecat.m4: Renamed from path-concat.m4.
85307         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85308         Rename files from path-concat.c to filenamecat.c,
85309         and from path-concat.h to filenamecat.h.
85310         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85311         "file name" in local variables or comments.
85312         * m4/rename.m4: Likewise.
85313
85314 2005-06-01  Bruno Haible  <bruno@clisp.org>
85315
85316         * modules/csharpexec: New file.
85317         * MODULES.html.sh (C#): New section.
85318
85319 2005-06-01  Bruno Haible  <bruno@clisp.org>
85320
85321         * m4/csharp.m4: New file, from GNU gettext.
85322         * m4/csharpexec.m4: New file, from GNU gettext.
85323
85324 2005-06-01  Bruno Haible  <bruno@clisp.org>
85325
85326         * lib/csharpexec.h: New file, from GNU gettext.
85327         * lib/csharpexec.c: New file, from GNU gettext.
85328         * lib/csharpexec.sh.in: New file, from GNU gettext.
85329
85330 2005-05-31  Derek Price  <derek@ximbiot.com>
85331             Paul Eggert  <eggert@cs.ucla.edu>
85332
85333         Sync from cvs.
85334         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85335
85336 2005-05-31  Derek Price  <derek@ximbiot.com>
85337             Paul Eggert  <eggert@cs.ucla.edu>
85338
85339         Sync from cvs.
85340         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85341
85342 2005-05-29  Derek Price  <derek@ximbiot.com>
85343
85344         * config/srclist.txt (glob_.h, glob.c): Add these files.
85345
85346 2005-05-29  Derek Price  <derek@ximbiot.com>
85347
85348         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85349         * modules/glob: New file.
85350         * modules/getlogin_r: Add link to POSIX spec in description.
85351
85352 2005-05-29  Derek Price  <derek@ximbiot.com>
85353             Paul Eggert  <eggert@cs.ucla.edu>
85354
85355         * m4/glob.m4: New file.
85356
85357 2005-05-29  Derek Price  <derek@ximbiot.com>
85358             Paul Eggert  <eggert@cs.ucla.edu>
85359
85360         * lib/glob_.h, lib/glob.c: New files.
85361
85362 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85363
85364         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85365         * modules/fts-lgpl (Depends-on): Remove gettext.
85366
85367 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85368
85369         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85370         and don't require gt_INTTYPES_PRI.
85371
85372 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85373
85374         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85375
85376         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85377         the configuration hassle isn't worth it.
85378         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85379         (LONGEST_MODIFIER, PRIuMAX): Remove.
85380
85381 2005-05-27  Bruno Haible  <bruno@clisp.org>
85382
85383         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85384
85385 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85386
85387         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85388         _POSIX_PTHREAD_SEMANTICS for Solaris.
85389
85390 2005-05-25  Derek Price  <derek@ximbiot.com>
85391
85392         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85393
85394 2005-05-25  Derek Price  <derek@ximbiot.com>
85395             Paul Eggert  <eggert@cs.ucla.edu>
85396
85397         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85398         * lib/getlogin_r.c, getlogin_r.h: New files.
85399
85400 2005-05-25  Bruno Haible  <bruno@clisp.org>
85401             Derek Price  <derek@ximbiot.com>
85402
85403         * lib/getlogin_r.h: Simplify API documentation.
85404
85405 2005-05-23  Derek Price  <derek@ximbiot.com>
85406
85407         * modules/minmax (Files): Add m4/minmax.m4.
85408         (configure.ac): Add gl_MINMAX.
85409
85410 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85411
85412         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85413         so that unistd-safer.h (GPL'ed code) need not be included.
85414
85415 2005-05-22  Bruno Haible  <bruno@clisp.org>
85416
85417         * m4/minmax.m4: New file.
85418         Based on a patch by Derek Price <derek@ximbiot.com>.
85419
85420 2005-05-22  Bruno Haible  <bruno@clisp.org>
85421
85422         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85423         (INT64_MIN): Fix definition.
85424         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85425
85426         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85427         NEED_SIGNED_INT_TYPES.
85428
85429         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85430         HAVE_SYSTEM_INTTYPES.
85431
85432 2005-05-22  Bruno Haible  <bruno@clisp.org>
85433
85434         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85435         Also include <sys/param.h> if it defines MIN, MAX.
85436         Based on a patch by Derek Price <derek@ximbiot.com>.
85437
85438 2005-05-21  Jim Meyering  <jim@meyering.net>
85439
85440         * modules/fts (Files): Add m4/inttypes-pri.m4.
85441         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85442
85443 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85444
85445         New fts module.
85446         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85447         (setup_dir, free_dir): New functions.
85448         (enter_dir, leave_dir): Define trivial
85449         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85450         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85451         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85452         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85453         Move to fts-cycle.c.
85454         (fts_open): Use setup_dir.
85455         (fts_close): Use free_dir.
85456         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85457         This adds a label and some gotos, but the alternatives were messier.
85458         Check for memory allocation failure when entering a dir.
85459         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85460         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85461         (FTS): New member fts_cycle, that is a union that contains the
85462         old active_dir_ht and cycle_state.  All uses changed to mention
85463         fts_cycle.ht and fts_cycle.state.
85464         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85465         fts.c, with the following changes:
85466         (setup_dir, free_dir): New functions.
85467         (enter_dir): Now returns bool.  Return true if successful, false
85468         if memory exhausted.  All callers changed.
85469         Do not bother partly cleaning up on
85470         memory allocation failure; that is free_dir's job.
85471         However, free ad if hash_insert fails, to avoid memory leak.
85472         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85473         fts->fts_options to see which union member to use.
85474
85475 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85476
85477         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85478         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85479
85480 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85481
85482         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85483
85484 2005-05-20  Jim Meyering  <jim@meyering.net>
85485
85486         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85487         Now a macro, to pacify GCC.
85488
85489 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85490
85491         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85492         of -1.
85493
85494 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85495
85496         * lib/chown.c (rpl_chown): Return -1 on failure.
85497
85498 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85499
85500         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85501         Don't check for stddef.h.
85502         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85503         don't use its results.
85504         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85505         since we include them unconditionally.  Don't require
85506         AM_STDBOOL_H, since stdbool is a prerequisite.
85507         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85508         since we assume C89 or better.
85509         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85510         as we don't use their results.
85511         Don't check for fchdir, memmove, memset, strrchr, as we use
85512         them unconditionally.
85513         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85514         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85515
85516 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85517
85518         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85519         Include <stddef.h> unconditionally, since we assume C89 now.
85520         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85521         * lib/fts.c: Include fts_.h first, to check interface.
85522         Do not include intprops.h; no longer needed.
85523         Include cycle-check.h and hash.h, since fts_.h no longer does.
85524         Remove unnecessary casts of closedir to void.
85525         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85526         decide whether to decrement nlinks.
85527         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85528         (FTS): Use struct hash_table * instead of Hash_table, so that
85529         we no longer need to include hash.h here.
85530
85531 2005-05-18  Jim Meyering  <jim@meyering.net>
85532
85533         * modules/dirfd (License): Change to LGPL.  Most of the code
85534         is already in the public domain.
85535
85536 2005-05-18  Jim Meyering  <jim@meyering.net>
85537
85538         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85539         Reported by Yoann Vandoorselaere.
85540
85541 2005-05-17  Jim Meyering  <jim@meyering.net>
85542
85543         * m4/fts.m4: New file, from coreutils.
85544
85545 2005-05-17  Jim Meyering  <jim@meyering.net>
85546
85547         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85548
85549 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85550
85551         Sync from coreutils.
85552         * m4/unlinkdir.m4: New file.
85553
85554 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85555
85556         Sync from coreutils.
85557         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85558         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85559         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85560         White space changes only.
85561         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85562         special.
85563         * lib/yesno.c: Include getline.h, not ctype.h.
85564         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85565         Use getline to remove arbitrary restriction on response length.
85566
85567 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85568
85569         * config/srclist-update: Spell out "Street" in FSF postal
85570         mail address; this is the style the FSF seems to prefer.
85571
85572         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85573         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85574         this updates FSF postal mail address.
85575
85576         Sync from coreutils.
85577         * modules/unlinkdir: New file.
85578         * modules/yesno (Depends-on): Add getline.
85579         * MODULES.html.sh (File system functions): Add unlinkdir.
85580
85581 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85582
85583         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85584         lib/strsep.h:
85585         Change the initial comment to refer to GPL, not LGPL.
85586         gnulib-tool will change it to LGPL as needed.
85587
85588         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
85589         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
85590         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
85591         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
85592         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
85593         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
85594         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
85595         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
85596         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
85597         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
85598         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
85599         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
85600         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
85601         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
85602         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
85603         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
85604         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
85605         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
85606         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
85607         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
85608         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
85609         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
85610         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
85611         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
85612         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
85613         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
85614         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
85615         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
85616         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
85617         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
85618         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
85619         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
85620         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
85621         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
85622         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
85623         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
85624         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
85625         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
85626         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
85627         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
85628         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
85629         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
85630         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
85631         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
85632         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
85633         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
85634         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
85635         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
85636         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
85637         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
85638         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85639         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
85640         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
85641         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
85642         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
85643         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
85644         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
85645         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
85646         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
85647         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
85648         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
85649         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
85650         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
85651         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
85652         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
85653         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
85654         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
85655         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
85656         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
85657         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
85658         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
85659         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
85660         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
85661         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
85662         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
85663         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
85664         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
85665         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
85666         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
85667         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
85668         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
85669         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
85670         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
85671         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
85672         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
85673         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
85674         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
85675         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
85676         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
85677         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
85678         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
85679         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
85680         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
85681         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
85682         lib/yesno.c, lib/yesno.h:
85683         Update FSF postal mail address.
85684
85685 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85686
85687         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
85688         tests/test-memmem.c, tests/test-stpncpy.c:
85689         Update FSF postal mail address.
85690
85691 2005-05-13  Bruno Haible  <bruno@clisp.org>
85692
85693         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
85694         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
85695         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
85696         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
85697         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
85698         Add support for 64-bit integers in the MSVC compiler.
85699
85700 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85701
85702         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
85703
85704 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
85705
85706         * gnulib-tool (func_import): Sort and uniquify recommended includes.
85707
85708 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
85709
85710         * doc/getdate.texi (General date syntax): Don't say that date
85711         date --iso-8601=ns generates acceptable dates; it doesn't yet.
85712         Problem reported by Nic Ferrier.
85713
85714 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85715
85716         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
85717         specified in ai_socktype. Fix invalid ai_protocol
85718         check. ai_protocol is usually set to 0 or depending on
85719         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
85720         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
85721         ai_socktype / ai_protocol in the returned addrinfo structure.
85722
85723 2005-05-10  Simon Josefsson  <jas@extundo.com>
85724
85725         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
85726         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85727
85728 2005-05-10  Karl Berry  <karl@gnu.org>
85729
85730         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
85731         (from http://www.gnu.org/licenses).
85732         * doc/COPYING.LIB: also rename to COPYING.LESSER.
85733         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
85734         fdl.texi suffices.
85735
85736 2005-05-10  Karl Berry  <karl@gnu.org>
85737
85738         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
85739         (COPYING.DOC): remove.
85740
85741         * config/srclist-update: new FSF address.
85742
85743 2005-05-10  Derek Price  <derek@ximbiot.com>
85744
85745         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
85746         possible.
85747
85748 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85749             Bruno Haible  <bruno@clisp.org>
85750
85751         * modules/inet_ntop: New file.
85752         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85753         inet_ntop.
85754
85755 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85756             Bruno Haible  <bruno@clisp.org>
85757
85758         * m4/inet_ntop.m4: New file.
85759
85760 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85761             Bruno Haible  <bruno@clisp.org>
85762
85763         * lib/inet_ntop.h: New file.
85764         * lib/inet_ntop.c: New file, from glibc with modifications.
85765
85766 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
85767
85768         * modules/time_r (License): Change to LGPL.
85769         * modules/extensions (License): Change to LGPL.  Actually,
85770         the license is more permissive than that, but currently gnulib-tool
85771         doesn't know how to handle more-permissive licenses.
85772
85773         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
85774         Problem reported by Dave Love.
85775
85776 2005-05-08  Jim Meyering  <jim@meyering.net>
85777
85778         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
85779         blank.
85780
85781 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85782
85783         * modules/argmatch (Depends-on): Add stdbool.
85784         * modules/backupfile (Depends-on): Likewise.
85785         * modules/chdir-long (Depends-on): Likewise.
85786         * modules/closeout (Depends-on): Likewise.
85787         * modules/cycle-check (Depends-on): Likewise.
85788         * modules/dirname (Depends-on): Likewise.
85789         * modules/fnmatch (Depends-on): Likewise.
85790         * modules/fsusage (Depends-on): Likewise.
85791         * modules/fwriteerror (Depends-on): Likewise.
85792         * modules/getcwd (Depends-on): Likewise.
85793         * modules/getloadavg (Depends-on): Likewise.
85794         * modules/hard-locale (Depends-on): Likewise.
85795         * modules/makepath (Depends-on): Likewise.
85796         * modules/mountlist (Depends-on): Likewise.
85797         * modules/nanosleep (Depends-on): Likewise.
85798         * modules/posixtm (Depends-on): Likewise.
85799         * modules/quotearg (Depends-on): Likewise.
85800         * modules/readtokens (Depends-on): Likewise.
85801         * modules/readtokens0 (Depends-on): Likewise.
85802         * modules/readutmp (Depends-on): Likewise.
85803         * modules/save-cwd (Depends-on): Likewise.
85804         * modules/strftime (Depends-on): Likewise.
85805         * modules/userspec (Depends-on): Likewise.
85806         * modules/utimecmp (Depends-on): Likewise.
85807         * modules/xgetcwd (Depends-on): Likewise.
85808         * modules/xnanosleep (Depends-on): Likewise.
85809         * modules/xstrtod (Depends-on): Likewise.
85810         * modules/yesno (Depends-on): Likewise.
85811
85812 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
85813
85814         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
85815         needless checks.
85816
85817 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85818
85819         Merge from coreutils.  Among other things,
85820         add bulletproofing for cases where stdin, stdout, or stderr are closed.
85821         * lib/fd-safer.c: New file.
85822         * lib/fcntl-safer.h, open-safer.c: Remove.
85823         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
85824         * lib/dup-safer.c: Include unistd-safer.h first.
85825         Don't include errno.h.
85826         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
85827         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
85828         * lib/file-type.c: Rely on file-type.h change.
85829         * lib/getloadavg.c: Include unistd-safer.h.
85830         (getloadavg): Use safer open.
85831         * lib/getusershell.c: Include "stdio-safer.h".
85832         (getusershell): Use safer fopen.
85833         * lib/long-options.c (long_options): Use NULL rather than 0.
85834         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
85835         'free'.
85836         * lib/modechange.c: Likewise.
85837         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
85838         (MODE_DONE): New constant.
85839         (struct mode_change): Remove 'next' member.
85840         (make_node_op_equals): New function; like the old one of the
85841         same name, except it allocates an array.
85842         (mode_compile, mode_create_from_ref): Use it.
85843         (mode_compile): Allocate result as an array, not a linked list.
85844         Parse octal string ourself, so that we catch mistakes like "+0".
85845         (mode_adjust): Arg is an array, not a linked list.
85846         * lib/modechange.c: Include stat-macros.h, xalloc.h.
85847         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
85848         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
85849         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
85850         Remove.  This is now stat-macros.h's job.
85851         (talloc): Remove.  All callers replaced by xalloc, so that
85852         our invokers don't have to worry about reporting memory failures.
85853         (make_node_op_equals): Remove.
85854         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85855         New constants.
85856         (struct mode_change): Moved here from modechange.h.
85857         (mode_append_entry): Remove.
85858         (mode_compile): Remove MASKED_OPS arg, since it encouraged
85859         apps to have incorrect behavior.  Use simpler algorithm for head
85860         and tail.  Don't futz with umask; that's now the job of mode_adjust.
85861         Detect more invalid usages rather than having somewhat-random behavior.
85862         Don't insert an "a=" action, as that leads to incorrect behavior.
85863         (mode_compile, mode_create_from_ref): Return NULL on error instead
85864         of an enum, since now there's only one way to have an error.  All
85865         callers changed.
85866         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
85867         at the correct time.  Simplify calculation of "+u" and its ilk.
85868         Don't mishandle "+X".
85869         (mode_free): Remove "register" and localize decls.
85870         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85871         (struct mode_change): Move to modechange.c; callers don't
85872         need to see this stuff.
85873         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
85874         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
85875         (mode_change, mode_adjust): Reflect the new signatures noted above.
85876         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
85877         that might redefine system include files.
85878         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
85879         (my_usleep): Use NULL rather than (void *) 0.
85880         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
85881         Use siginterrupt to specify that system calls should be interrupted.
85882         (rpl_nanosleep): Move initialization of suspended closer to call of
85883         my_usleep.
85884         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
85885         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
85886         (desirable_utmp_entry): New function.
85887         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
85888         using x2nrealloc, to simplify logic.
85889         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
85890         size calculation.  Do not assume utmp file is a regular file.
85891         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
85892         (READ_UTMP_CHECK_PIDS): New constant.
85893         * lib/save-cwd.c: Include unistd-safer.h.
85894         (save_cwd): Use fd_safer.
85895         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
85896         [!_LIBC] Include "stat-macros.h" instead.
85897         * lib/unistd-safer.h (fd_safer): New decl.
85898
85899 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85900
85901         * modules/getloadavg (Depends-on): Add unistd-safer.
85902         * modules/getusershell (Depends-on): Add stdio-safer.
85903         * modules/lstat (Depends-on): Remove xalloc.
85904         * modules/mkstemp (Depends-on): Add stat-macros.
85905         * modules/modechange (Depends-on): Remove xstrtol.
85906         Add stat-macros, xalloc.
85907         * modules/save-cwd (Depends-on): Add unistd-safer.
85908         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
85909         * modules/unistd-safer (Files): Add lib/fd-safer.c
85910         (Makefile.am): Remove lib_SOURCES.
85911
85912         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
85913         Remove fcntl-safer; unistd-safer supersedes it.
85914
85915 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85916
85917         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
85918         AC_HEADER_STAT.
85919         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
85920         (gl_PREREQ_CHOWN): Remove.
85921         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
85922         it.  Don't require AC_HEADER_STAT.
85923         (gl_PREREQ_LSTAT): Remove.
85924         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
85925         Don't require AC_HEADER_STAT.
85926         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
85927         (gl_PREREQ_RMDIR): Remove.
85928         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
85929         mention stat-macros.h or AC_HEADER_STAT, since we'll make
85930         the stat-macros module a prerequisite.
85931         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
85932         * m4/filemode.m4 (gl_FILEMODE): Likewise.
85933         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
85934         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
85935         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
85936         variable names.
85937         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
85938         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
85939         variable prefixes.
85940         * m4/fcntl-safer.m4: Remove.
85941         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
85942         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
85943         Invoke gl_PREREQ_FD_SAFER.
85944         (gl_PREREQ_FD_SAFER): New macro.
85945         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
85946         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
85947         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
85948         Remove duplicate call to AC_LIBOBJ(readutmp).
85949         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
85950
85951         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
85952         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
85953
85954 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85955
85956         * MODULES.html.sh (Misc): Add byteswap.
85957
85958 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85959
85960         * modules/getcwd (Depends-on): Add extensions.
85961         * modules/openat (Depends-on): Likewise.
85962
85963 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85964
85965         * modules/byteswap: New file.
85966
85967 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85968
85969         * m4/byteswap.m4: New file.
85970
85971 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85972
85973         * lib/byteswap_.h: New file.
85974
85975 2005-04-25  Karl Berry  <karl@gnu.org>
85976
85977         * m4/gettext.m4: Update from GNU gettext 0.14.4.
85978
85979 2005-04-25  Albert Chin  <china@thewrittenword.com>
85980
85981         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
85982         Toolkit C bug.
85983
85984 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
85985
85986         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
85987         (func_ln_if_changed): Remove forcibly for no error message
85988         in case file does not exist.
85989
85990 2005-04-19  Simon Josefsson  <jas@extundo.com>
85991
85992         * gnulib-tool (Options): Make --symlink mean --symbolic.
85993
85994 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
85995
85996         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
85997
85998 2005-04-16  Simon Josefsson  <jas@extundo.com>
85999
86000         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86001
86002 2005-04-15  Simon Josefsson  <jas@extundo.com>
86003
86004         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86005
86006 2005-04-15  Simon Josefsson  <jas@extundo.com>
86007
86008         * gnulib-tool: Rename --symlink to --symbolic.
86009
86010 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86011
86012         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86013         symbolic links to files instead of copying/moving.  Add --aux-dir,
86014         specifying directory relative --dir where auxiliary build tools
86015         are placed.
86016
86017 2005-04-14  Bruno Haible  <bruno@clisp.org>
86018
86019         * modules/allocsa (License): Change to LGPL.
86020         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86021
86022 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86023
86024         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86025         that "UTC +1 second" continues to work.  Problem reported
86026         by Dmitry V. Levin.
86027         (relunit_snumber): New rule.
86028         (relunit): Use it.
86029
86030 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86031
86032         * lib/getdate.y (universal_time_zone_table): New constant.
86033         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86034         universal_time_zone_table.
86035         (lookup_zone): Prefer universal_time_zone_table to
86036         local_time_zone_table, so that "GMT" time stamps are allowed in
86037         London during the summer.  Problem reported by Ian Abbott.
86038
86039 2005-04-12  Jim Meyering  <jim@meyering.net>
86040
86041         * lib/human.c (humblock): Set *options even when returning due to
86042         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86043         warning from gcc-4.
86044
86045 2005-04-09  Jim Meyering  <jim@meyering.net>
86046
86047         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86048         -Wuninitialized: initialize tm0.tm_year.
86049
86050 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86051
86052         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86053         count, since there's no maximum.  All uses changed.
86054         Add member dsts_seen.
86055         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86056         not being INT_MAX.
86057         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86058         Use pc_rels_seen to decide whether a date is absolute.
86059
86060         * lib/getdate.y (number): Don't overwrite year.
86061         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86062         check.
86063
86064 2005-04-02  Simon Josefsson  <jas@extundo.com>
86065
86066         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86067         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86068
86069 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86070
86071         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86072         where no absolute path name can be longer than PATH_MAX.
86073
86074 2005-03-27  Jim Meyering  <jim@meyering.net>
86075
86076         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86077
86078 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86079
86080         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86081         "one's complement" -> "ones' complement" in comment, as per Knuth.
86082         "value of type" -> "type or expression" in comment.
86083         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86084
86085 2005-03-26  Jim Meyering  <jim@meyering.net>
86086
86087         Comment nits.
86088         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86089         Correct typos: s/or/of/.
86090
86091 2005-03-26  Jim Meyering  <jim@meyering.net>
86092
86093         * modules/check-include-files: Move to ../ and rename to...
86094         * check-module: ...this.
86095
86096 2005-03-25  Jim Meyering  <jim@meyering.net>
86097
86098         * modules/xvasprintf (Files): Add xalloc.h.
86099
86100 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86101
86102         * modules/gettext (Files): config/config.rpath ->
86103         build-aux/config.rpath
86104         * modules/iconv (Files): Likewise.
86105         Problem reported by Oskar Liljeblad.
86106
86107 2005-03-23  Jim Meyering  <jim@meyering.net>
86108
86109         * modules/check-include-files: New script to check for
86110         missing dependencies, multiple includes, etc.
86111
86112         * modules/c-strtold (Depends-on): Add xalloc.
86113         * modules/c-strtod (Depends-on): Add xalloc.
86114         * modules/hash (Depends-on): Add xalloc.
86115         (Files): Remove lib/xalloc.h.
86116
86117         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86118         * modules/userspec (Files): Add lib/inttostr.h.
86119
86120 2005-03-23  Jim Meyering  <jim@meyering.net>
86121
86122         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86123
86124 2005-03-22  Jim Meyering  <jim@meyering.net>
86125
86126         * modules/stat-macros: New module.
86127         * modules/canonicalize, modules/euidaccess, modules/file-type,
86128         * modules/filemode, modules/lchown, modules/makepath,
86129         * modules/rmdir, modules/stat: Depend on new stat-macros module
86130         rather than listing lib/stat-macros.h manually.
86131         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86132
86133 2005-03-22  Jim Meyering  <jim@meyering.net>
86134
86135         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86136
86137 2005-03-22  Bruno Haible  <bruno@clisp.org>
86138
86139         * config/srclist.txt: Replace target directory 'config' with
86140         'build-aux'.
86141         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86142         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86143         ../build-aux/.
86144
86145 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86146
86147         * modules/chdir-long (Depends-on): Add mempcpy.
86148
86149         * modules/acl, modules/backupfile, modules/c-strtod,
86150         modules/c-strtold, modules/canon-host, modules/canonicalize,
86151         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86152         modules/exclude, modules/exitfail, modules/file-type,
86153         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86154         modules/getdate, modules/getline, modules/getpagesize,
86155         modules/getpass, modules/getugroups, modules/group-member,
86156         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86157         modules/inttostr, modules/long-options, modules/makepath,
86158         modules/md5, modules/memcasecmp, modules/memcoll,
86159         modules/modechange, modules/mountlist, modules/path-concat,
86160         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86161         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86162         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86163         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86164         modules/strftime, modules/strndup, modules/strverscmp,
86165         modules/timespec, modules/unlocked-io, modules/userspec,
86166         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86167         modules/yesno:
86168         Remove lib_SOURCES line from Makefile.am section, as this is now
86169         done automatically by the corresponding Autoconf macro.
86170
86171 2005-03-21  Jim Meyering  <jim@meyering.net>
86172
86173         Changes imported from coreutils.
86174
86175         * lib/cycle-check.c: Don't include xalloc.h.
86176
86177         * lib/path-concat.c: Don't include assert.h.
86178         (path_concat): Remove assertion that would have triggered
86179         for ABASE starting with more than one slash.
86180         Reported by Andreas Schwab.
86181
86182         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86183         properly when ABASE is an absolute file name.
86184         Correct the description of this function.
86185         Include <assert.h>.
86186         Add an assertion and a test driver.
86187         This fixes a bug introduced on 2004-07-02.
86188         Andreas Schwab reported the resulting failure of cp --parents:
86189         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86190
86191 2005-03-21  Jim Meyering  <jim@meyering.net>
86192
86193         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86194         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86195
86196 2005-03-21  Jim Meyering  <jim@meyering.net>
86197         and  Paul Eggert  <eggert@cs.ucla.edu>
86198
86199         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86200         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86201         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86202         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86203         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86204         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86205         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86206         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86207         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86208         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86209         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86210         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86211         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86212         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86213         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86214         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86215         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86216         for these modules.
86217
86218 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86219
86220         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86221         (which shouldn't happen), generate nothing instead of returning 0
86222         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86223
86224 2005-03-16  Bruno Haible  <bruno@clisp.org>
86225
86226         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86227         HAVE_LONGLONG_64BIT.
86228
86229 2005-03-16  Bruno Haible  <bruno@clisp.org>
86230
86231         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86232         HAVE_LONGLONG_64BIT.
86233
86234 2005-03-16  Bruno Haible  <bruno@clisp.org>
86235
86236         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86237         HAVE_LONGLONG_64BIT.
86238
86239 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86240
86241         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86242         reliably distinguish strftime failure from empty output on POSIX
86243         hosts.
86244
86245 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86246
86247         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86248         (iconv_string): Don't guess a size-zero buffer, as that might cause
86249         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86250         result would be 'too large', where 'too large' is (heuristically)
86251         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86252         overflow concerns.  This will prevent some unwanted malloc failures
86253         when the inputs are very large.
86254
86255 2005-03-15  Karl Berry  <karl@gnu.org>
86256
86257         * config/srclist.txt (config.rpath): from gettext.
86258         * config/config.rpath: update.
86259
86260 2005-03-15  Bruno Haible  <bruno@clisp.org>
86261
86262         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86263         to 'negate'.
86264
86265         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86266         variable.
86267
86268         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86269         results.
86270
86271 2005-03-14  Simon Josefsson  <jas@extundo.com>
86272
86273         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86274         <fx@gnu.org>.
86275
86276 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86277
86278         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86279         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86280         intprops.h.
86281         * lib/strtol.c: Likewise.
86282
86283 2005-03-14  Jim Meyering  <jim@meyering.net>
86284
86285         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86286         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86287         to be nonzero so that we (and caller) can detect the difference
86288         between a valid zero-length expansion and an error return, even
86289         when the underlying strftime fails before writing anything into
86290         that location.
86291
86292 2005-03-14  Bruno Haible  <bruno@clisp.org>
86293
86294         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86295         Update from GNU gettext 0.14.3.
86296
86297 2005-03-10  Jim Meyering  <jim@meyering.net>
86298
86299         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86300
86301 2005-03-10  Jim Meyering  <jim@meyering.net>
86302
86303         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86304         so that this module works on systems without fchdir.
86305
86306 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86307
86308         Factor int-properties macros into a single file, except for
86309         glibc-related files.
86310         * lib/intprops.h: New file.
86311         * lib/getloadavg.c: Include it instead of limits.h.
86312         (INT_STRLEN_BOUND): Remove.
86313         * lib/human.c: Include intprops.h.
86314         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86315         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86316         302/1000.
86317         * lib/inttostr.h: Include intprops.h instead of limits.h.
86318         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86319         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86320         for consistency with intprops.h.
86321         (time_t_is_integer, twos_complement_arithmetic): Use them.
86322         * lib/sig2str.h: Include <signal.h>, intprops.h.
86323         (INT_STRLEN_BOUND): Remove.
86324         * lib/strftime.c (TYPE_SIGNED): Remove.
86325         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86326         * lib/strtol.c: Adjust comments to match intprops.h.
86327         * lib/userspec.c: Include intprops.h.
86328         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86329         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86330         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86331         instead of rolling our own expressions.
86332         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86333
86334         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86335         instead of int.
86336         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86337         the right thing even if adding 1900 would overflow.  Similarly
86338         for tm_mon + 1 and tm_yday + 1.
86339         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86340         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86341         (DO_SIGNED_NUMBER): New macro.
86342         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86343
86344 2005-03-07  Bruno Haible  <bruno@clisp.org>
86345
86346         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86347
86348 2005-03-07  Bruno Haible  <bruno@clisp.org>
86349
86350         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86351
86352 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86353
86354         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86355         (func_import): Only replace files via --import when they have actually
86356         changed.
86357
86358 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86359
86360         * m4/mmap-anon.m4: New file.
86361         * m4/pagealign_alloc.m4: New file.
86362
86363 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86364             Bruno Haible  <bruno@clisp.org>
86365
86366         * modules/pagealign_alloc: New file.
86367         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86368
86369 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86370             Bruno Haible  <bruno@clisp.org>
86371
86372         * lib/pagealign_alloc.h: New file.
86373         * lib/pagealign_alloc.c: New file.
86374
86375 2005-03-03  Bruno Haible  <bruno@clisp.org>
86376
86377         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86378         Use an all-permissive copyright notice, recommended by RMS.
86379
86380 2005-03-02  Bruno Haible  <bruno@clisp.org>
86381
86382         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86383         of AIX, the replacement has to be done only after <string.h> is
86384         included, therefore not in config.h. stpncpy.h does the replacement,
86385         and stpncpy.c uses it.
86386
86387 2005-03-02  Bruno Haible  <bruno@clisp.org>
86388
86389         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86390         stpncpy.c uses it.
86391
86392 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86393
86394         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86395         The workaround isn't strictly needed for POSIX conformance, and
86396         it's too much of a pain to configure and maintain.  We'll ask
86397         people to fix their kernels instead.
86398         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86399         (NANOSLEEP_BUG_WORKAROUND): Remove.
86400         (xnanosleep): Remove the workaround.
86401
86402 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86403
86404         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86405         Reported by Derek Price.
86406         (Include): Add "timespec.h".
86407
86408         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86409
86410 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86411
86412         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86413         to detect nanosleep bug.
86414
86415 2005-03-01  Bruno Haible  <bruno@clisp.org>
86416
86417         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86418
86419 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86420
86421         * modules/gethrxtime: New file.
86422         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86423         (Depends-on): Add gethrxtime.
86424         (configure.ac): Add gl_XNANOSLEEP.
86425         (Makefile.am): Remove lib_SOURCES line.
86426
86427 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86428
86429         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86430         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86431
86432 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86433
86434         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86435         * lib/timespec.h (gettime): Return void, since it always
86436         succeeds now.  All uses changed.
86437         * lib/gettime.c (gettime): Likewise.
86438         [HAVE_NANOTIME]: Prefer nanotime.
86439         Assume gettimeofday succeeds, as POSIX requires.
86440         Assime time () succeeds, since other code already does.
86441         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86442         (timespec_subtract): Remove.
86443         (NANOSLEEP_BUG_WORKAROUND): New constant.
86444         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86445         things considerably.  Use it only on GNU/Linux hosts, since the
86446         workaround shouldn't be needed elsewhere.
86447
86448 2005-02-24  Bruno Haible  <bruno@clisp.org>
86449
86450         * modules/gettext (Files): Add m4/glibc2.m4.
86451
86452 2005-02-24  Bruno Haible  <bruno@clisp.org>
86453
86454         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86455         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86456         * m4/progtest.m4:
86457         Update from GNU gettext 0.14.2.
86458         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86459
86460 2005-02-24  Bruno Haible  <bruno@clisp.org>
86461
86462         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86463         * lib/config.charset: Update from GNU gettext 0.14.2.
86464
86465 2005-02-24  Bruno Haible  <bruno@clisp.org>
86466
86467         * lib/gettext.h: Update from GNU gettext 0.14.2.
86468
86469 2005-02-23  Simon Josefsson  <jas@extundo.com>
86470
86471         * m4/iconvme.m4: New file.
86472
86473 2005-02-23  Jim Meyering  <jim@meyering.net>
86474
86475         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86476         change.
86477         Thanks to Bruno Haible for catching it.
86478
86479 2005-02-22  Simon Josefsson  <jas@extundo.com>
86480
86481         * modules/iconvme: New file.
86482
86483         * MODULES.html.sh: Add iconvme.
86484
86485 2005-02-22  Simon Josefsson  <jas@extundo.com>
86486
86487         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86488
86489 2005-02-22  Simon Josefsson  <jas@extundo.com>
86490
86491         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86492
86493 2005-02-22  Jim Meyering  <jim@meyering.net>
86494
86495         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86496         s/ifndef/ifdef/.
86497
86498 2005-02-20  Neil Conway  <neilc@samurai.com>
86499
86500         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86501         returned by OSX/Darwin if the specified buffer is not large
86502         enough for the hostname.
86503
86504 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86505
86506         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86507         pass it to _help, otherwise the latter coredumps trying to
86508         dereference state.root_argp.
86509
86510 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86511
86512         * modules/chdir-long (Depends-on): Add memrchr.
86513         * modules/memrchr (Files): Add lib/memrchr.h.
86514         (Include): "memrchr.h".
86515
86516 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86517
86518         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86519
86520 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86521
86522         * lib/memrchr.h: New file.
86523         * lib/chdir-long.c: Include it.
86524         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86525         Don't bother including stddef.h.
86526
86527 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86528
86529         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86530         inclusion.
86531         Include <sys/types.h>, for dev_t.
86532         (ME_DUMMY, ME_REMOTE): Move from here....
86533         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86534         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86535         Dmitry V. Levin.
86536         Include mountlist.h first, to test the interface.
86537
86538 2005-01-29  Bruno Haible  <bruno@clisp.org>
86539
86540         * lib/progname.c (program_name): Initialize.
86541         Needed when linking statically on MacOS X.
86542
86543 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86544
86545         Sync from coreutils.
86546         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86547         (Depends-on): Add c-strtod.
86548         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86549
86550 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86551
86552         Sync from coreutils.
86553         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86554
86555         Remove files that are specific to coreutils.
86556         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86557
86558 2005-01-28  Bruno Haible  <bruno@clisp.org>
86559
86560         * modules/javacomp: New file.
86561         * MODULES.html.sh (Java): Add javacomp.
86562
86563 2005-01-28  Bruno Haible  <bruno@clisp.org>
86564
86565         * m4/javacomp.m4: New file, from GNU gettext.
86566
86567 2005-01-28  Bruno Haible  <bruno@clisp.org>
86568
86569         * lib/javacomp.sh.in: New file, from GNU gettext.
86570         * lib/javacomp.h: New file, from GNU gettext.
86571         * lib/javacomp.c: New file, from GNU gettext.
86572
86573 2005-01-26  Simon Josefsson  <jas@extundo.com>
86574
86575         * lib/gai_strerror.c: Use GPL in header.
86576
86577 2005-01-26  Bruno Haible  <bruno@clisp.org>
86578
86579         * modules/javaexec: New file.
86580         * MODULES.html.sh (Java): Add javaexec.
86581
86582 2005-01-26  Bruno Haible  <bruno@clisp.org>
86583
86584         * m4/javaexec.m4: New file, from GNU gettext.
86585
86586 2005-01-26  Bruno Haible  <bruno@clisp.org>
86587
86588         * lib/javaexec.sh.in: New file, from GNU gettext.
86589         * lib/javaexec.h: New file, from GNU gettext.
86590         * lib/javaexec.c: New file, from GNU gettext.
86591
86592 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86593
86594         * modules/lchown (Depends-on): Remove lchown.h
86595
86596 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86597
86598         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
86599         must be defined if the header file was not found, in order
86600         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
86601
86602 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86603
86604         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
86605         initializers for struct pentry_state.
86606         (__argp_error): Check return value of __asprintf
86607         (__argp_failure): Translate error message
86608
86609         * lib/argp-parse.c: Removed braces around the expansion of N_()
86610
86611 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86612
86613         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
86614         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
86615         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
86616         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
86617         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
86618         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
86619         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
86620         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
86621         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
86622         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
86623         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
86624         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
86625         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
86626         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
86627         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
86628         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
86629         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
86630         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
86631         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
86632         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
86633         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
86634         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
86635         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
86636         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
86637         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
86638         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
86639         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
86640         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
86641         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
86642         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
86643         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
86644         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
86645         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
86646         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
86647         xstrtol.m4, xstrtoumax.m4, yesno.m4:
86648         Use an all-permissive copyright notice, recommended by RMS.
86649
86650 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
86651
86652         * modules/chdir-long (Depends-on): Remove mempcpy.
86653
86654 2005-01-21  Jim Meyering  <jim@meyering.net>
86655
86656         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
86657         same value as for Solaris 9.
86658
86659         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
86660         component length.  This included changing the parameter to be
86661         of type `char *' rather than `char const *'.
86662         * lib/chdir-long.h (chdir_long): Update prototype.
86663
86664         * lib/openat.c (fdopendir, fstatat): New functions.
86665         * lib/openat.h: Include headers required for use of DIR and struct
86666         stat.
86667         [AT_SYMLINK_NOFOLLOW]: Define.
86668         (fdopendir, fstatat): Add prototypes.
86669
86670 2005-01-21  Bruno Haible  <bruno@clisp.org>
86671
86672         * modules/classpath: New file.
86673         * MODULES.html.sh (Java): Add classpath.
86674
86675 2005-01-21  Bruno Haible  <bruno@clisp.org>
86676
86677         * lib/classpath.h: New file, from GNU gettext.
86678         * lib/classpath.c: New file, from GNU gettext.
86679
86680 2005-01-20  Simon Josefsson  <jas@extundo.com>
86681
86682         * modules/version-etc-fsf: New file.
86683
86684 2005-01-20  Simon Josefsson  <jas@extundo.com>
86685
86686         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
86687         * lib/version-etc.c: Remove version_etc_copyright.
86688         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
86689         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
86690
86691 2005-01-20  Simon Josefsson  <jas@extundo.com>
86692
86693         * lib/base64.h (isbase64): Add.
86694
86695         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
86696         using a unsigned prototype, don't inline.
86697         (base64_decode): Use it.
86698
86699 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86700
86701         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
86702         it.
86703
86704 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86705
86706         * lib/save-cwd.c (save_cwd): Remove code to support the case
86707         where fchdir is missing or flaky.
86708
86709 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86710
86711         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
86712
86713 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86714
86715         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
86716         AC_LIBSOURCES now does this.
86717         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
86718         with new ullong_max module.
86719
86720 2005-01-19  Bruno Haible  <bruno@clisp.org>
86721
86722         * modules/sh-quote: New file.
86723         * MODULES.html.sh (Executing programs): Add sh-quote.
86724
86725 2005-01-19  Bruno Haible  <bruno@clisp.org>
86726
86727         * lib/sh-quote.h: New file, from GNU gettext.
86728         * lib/sh-quote.c: New file, from GNU gettext.
86729
86730 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86731
86732         Merge from coreutils.
86733         * m4/ullong_max.m4: New file.
86734         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
86735         (gl_MACROS): Assume localeconv exists.
86736
86737 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86738
86739         Merge changes from coreutils, as described below in several
86740         changelogs dated today.
86741
86742         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
86743         (O_DIRECTORY): Remove; not needed here, since "." must be
86744         a directory.  All uses removed.
86745         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
86746         universal on Suns, and we also need to test for IRIX.
86747         Revamp code to use 'if' rather than '#if'.
86748         Avoid unnecessary comparison of cwd->desc to 0.
86749
86750         * lib/utimens.c (futimens): Robustify the previous patch, by checking
86751         for known valid error numbers rather than observed invalid ones.
86752
86753 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86754
86755         * modules/ullong_max: New file.
86756
86757         * modules/chdir-long, modules/openat: New files.
86758         * modules/save-cwd (Depends-on): Depend on chdir-long.
86759         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
86760
86761 2005-01-18  Jim Meyering  <jim@meyering.net>
86762
86763         Merge from coreutils.
86764         * m4/chdir-long.m4, m4/openat.m4: New files.
86765         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
86766         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
86767         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
86768         is sane and DOES follow symlinks.  Besides, testing 20 different
86769         systems found no broken chown implementations.
86770         Prompted by a change in rsync's copy of this macro.
86771         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
86772
86773         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
86774
86775         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
86776         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
86777         NULL-means-set-to-current-time semantics.
86778         Remove temporary file immediately, rather than waiting
86779         for configure's at-exit trap code to do it.
86780
86781 2005-01-18  Jim Meyering  <jim@meyering.net>
86782
86783         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86784
86785         * lib/utimens.c (futimens): Account for the fact that futimes
86786         can also fail with errno == ENOSYS or errno == ENOENT.
86787         Patch from Dmitry V. Levin.
86788
86789         Change the name of the robust chdir function from chdir to chdir_long.
86790         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
86791         (restore_cwd): Use chdir_long, not chdir.
86792         * lib/chdir-long.c: Renamed from chdir.c.
86793         * lib/chdir-long.h: Renamed from chdir.h.
86794         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
86795         Hurd.
86796
86797 2005-01-18  Bruno Haible  <bruno@clisp.org>
86798
86799         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
86800         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
86801         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
86802         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
86803         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
86804         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
86805         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
86806         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
86807         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
86808         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
86809         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
86810         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
86811         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
86812         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
86813         Use an all-permissive copyright notice, recommended by RMS.
86814
86815 2005-01-18  Bob Proulx  <bob@proulx.com>
86816
86817         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
86818         simplify offsetof() macro construct to avoid compile failure with
86819         native HP-UX 11.0 ANSI C compiler.
86820
86821 2005-01-17  Bruno Haible  <bruno@clisp.org>
86822
86823         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
86824         redundant because stpncpy.m4 takes care of it.
86825
86826 2005-01-17  Bruno Haible  <bruno@clisp.org>
86827
86828         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
86829
86830 2005-01-17  Bruno Haible  <bruno@clisp.org>
86831
86832         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
86833         used.
86834
86835 2005-01-17  Bruno Haible  <bruno@clisp.org>
86836
86837         * lib/fwriteerror.h (fwriteerror): Change specification to include
86838         fclose.
86839         * lib/fwriteerror.c: Include <stdbool.h>.
86840         (fwriteerror): At the end, close the file stream. Record whether
86841         stdout was already closed.
86842
86843 2005-01-17  Bruno Haible  <bruno@clisp.org>
86844
86845         * lib/execute.c (environ): Declare if needed.
86846         * lib/pipe.c (environ): Likewise.
86847         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
86848
86849 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86850
86851         * modules/argp: Depend on vsnprintf
86852
86853 2005-01-10  Jim Meyering  <jim@meyering.net>
86854
86855         * modules/closeout (Depends-on): Add atexit.
86856
86857 2005-01-06  Bruno Haible  <bruno@clisp.org>
86858
86859         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
86860
86861 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
86862
86863         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
86864         definitions to be after all include files, to avoid collisions.
86865         Problem reported by Bob Proulx.
86866
86867 2005-01-04  Jim Meyering  <jim@meyering.net>
86868
86869         Changes imported from coreutils.
86870         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
86871         as the mkstemp template, use a temporary directory and an
86872         8.3-friendly template to avoid trouble on systems like DJGPP.
86873         Reported by Juan M. Guerrero via Stepan Kasal.
86874         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
86875         close. Remove the temporary directory right away, rather than waiting
86876         for configure's at-exit trap code to do it.
86877         Suggestion from Stepan Kasal.
86878
86879 2005-01-01  Simon Josefsson  <jas@extundo.com>
86880
86881         * gnulib-tool: Print #include directives when --import'ing.
86882
86883 2004-12-28  Simon Josefsson  <jas@extundo.com>
86884
86885         * tests/test-base64.c: Include required header files.  Remove
86886         unused variables.
86887
86888 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86889
86890         * modules/error (Depends-on): Remove gettext.
86891
86892 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86893
86894         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
86895         not needed.  This removes a dependency on the gettext module.
86896         [defined _LIBC]: Do not include <libintl.h>; not needed.
86897
86898 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86899
86900         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
86901         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
86902
86903 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86904
86905         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
86906         HAVE_DECL_STRTOLD.
86907
86908 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86909
86910         * modules/getdate (Depends-on): Remove alloca-opt.
86911
86912 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86913
86914         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
86915
86916 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86917
86918         * lib/argp-parse.c: Include <stddef.h>.
86919         (alignof, alignto): New macros.
86920         (parser_init): Don't assume that void * is aligned sufficiently
86921         for struct option.
86922
86923         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
86924         need to extend the stack.
86925         (YYINITDEPTH): New macro, so that the initial stack isn't overly
86926         large.
86927
86928 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86929
86930         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
86931
86932 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86933
86934         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
86935         (2004-10-24) change.  Apparently this was a false alarm.
86936
86937         * modules/getdate: Depend on alloca-opt, not alloca.
86938
86939 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86940
86941         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
86942         Remove now-obsolete comment about AIX.
86943         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
86944         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
86945         (YYMAXDEPTH): New macro.
86946
86947 2004-12-18  Simon Josefsson  <jas@extundo.com>
86948
86949         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
86950
86951 2004-12-18  Bruno Haible  <bruno@clisp.org>
86952
86953         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
86954
86955 2004-12-18  Bruno Haible  <bruno@clisp.org>
86956
86957         * lib/fatal-signal.c (fatal_signals): Make non-const.
86958         (init_fatal_signals): New function.
86959         (uninstall_handlers, install_handlers): Ignore signals that were set to
86960         SIG_IGN.
86961         (at_fatal_signal): Call init_fatal_signals.
86962         (init_fatal_signal_set): Likewise. Ignore signals that were set to
86963         SIG_IGN.
86964         Reported by Paul Eggert.
86965
86966 2004-12-18  Bruno Haible  <bruno@clisp.org>
86967
86968         * doc/alloca.texi: New file.
86969         * doc/alloca-opt.texi: New file.
86970
86971 2004-12-17  Jim Meyering  <jim@meyering.net>
86972
86973         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
86974         Otherwise, install-sh could exit with improper exit status when
86975         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
86976
86977 2004-12-16  Simon Josefsson  <jas@extundo.com>
86978
86979         * tests/test-base64.c: Add license.
86980
86981 2004-12-15  Stepan Kasal  <address@hidden>
86982
86983         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
86984
86985 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
86986
86987         * modules/getcwd (Files): Add m4/d-ino.m4.
86988         Suggested by Mark D. Baushke.
86989
86990 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86991
86992         * lib/getdate.y (textint): New member "negative".
86993         (time_zone_hhmm): New function.
86994         Expect 14 shift-reduce conflicts, not 13.
86995         (o_colon_minutes): New rule.
86996         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
86997         (yylex): Set the "negative" member of signed numbers.
86998
86999 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87000
87001         * doc/getdate.texi (Time of day items, Time zone items):
87002         Describe new formats +00:00, UTC+00:00.
87003
87004 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87005
87006         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87007         spurious "-l"s.  Problem reported by Stepan Kasal.
87008
87009 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87010
87011         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87012         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87013
87014 2004-12-04  Simon Josefsson  <jas@extundo.com>
87015
87016         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87017         Vandoorselaere <yoann@prelude-ids.org>.
87018
87019 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87020
87021         Changes imported from coreutils.
87022         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87023         exist.
87024         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87025
87026 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87027
87028         Changes imported from coreutils.
87029         * lib/hard-locale.c: Assume <locale.h> exists.
87030         Include "strdup.h".
87031         (GLIBC_VERSION): New macro.
87032         (hard_locale): Assume setlocale exists.
87033         Rewrite to avoid #ifdef.
87034         Use strdup rather than malloc + strcpy.
87035         * lib/human.c: Assume <locale.h> exists.
87036         (human_readable): Assume localeconv exists.
87037
87038 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87039
87040         * modules/hard-locale (Depends-on): Add strdup.
87041
87042 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87043
87044         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87045         convert T2, not T.  (Imported from libc.)
87046
87047 2004-11-30  Simon Josefsson  <jas@extundo.com>
87048
87049         * modules/restrict (License): Change to LGPL.
87050
87051 2004-11-30  Simon Josefsson  <jas@extundo.com>
87052
87053         * m4/restrict.m4: Add copyright and copying conditions.
87054
87055 2004-11-30  Simon Josefsson  <jas@extundo.com>
87056
87057         * m4/base64.m4: New file.
87058
87059 2004-11-30  Simon Josefsson  <jas@extundo.com>
87060
87061         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87062         base64.
87063
87064         * tests/test-base64.c: New file.
87065
87066         * modules/base64: New file.
87067
87068 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87069
87070         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87071         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87072
87073         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87074
87075 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87076
87077         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87078         (__getcwd.c): Don't restore errno; glibc doesn't.
87079         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87080         first, falling back to our code only if its results look suspicious.
87081         Ensure that the resulting buffer is only as large as necessary.
87082
87083         * lib/readutmp.c: Include readutmp.h first.
87084         Include <errno.h>, since readutmp.h no longer does that.
87085         * lib/readutmp.h: Don't include <errno.h>,
87086         <sys/param.h>, <time.h>; not needed to establish interface.
87087         (errno): Remove decl.
87088         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87089         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87090         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87091
87092 2004-11-28  Simon Josefsson  <jas@extundo.com>
87093
87094         * lib/base64.h, base64.c: New file.
87095
87096 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87097
87098         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87099
87100 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87101
87102         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87103         (Depends-on): Remove pathmax, same.  Add mempcpy.
87104         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87105         (Makefile.am): Append getcwd.h to lib_SOURCES.
87106         (Include): Add getcwd.h.
87107         (Maintainer): Change from Jim Meyering to "all, glibc",
87108         since getdate now uses intended-for-glibc code.
87109         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87110         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87111
87112 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87113
87114         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87115         HP's ANSI C compiler.
87116         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87117         Declaring int functions causes warnings on some modern systems and
87118         shouldn't be needed to compile on ancient ones.
87119         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87120         defined.
87121
87122         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87123         with the following changes.
87124         (__set_errno): Parenthesize properly.
87125         Include <stdbool.h>.
87126         (MIN, MAX, MATCHING_INO): New macros.
87127         (__getcwd): Define with prototype, not K&R form.
87128         Use heuristics to allocate default buffer on stack if possible.
87129         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87130         behavior, and to avoid the PATH_MAX limit when computing
87131         ../../../../...
87132         Use MATCHING_INO to compare inode number to file.
87133         Check for arithmetic overflow in size calculations.
87134         Fix bug in reallocation of dot array that caused getcwd to fail
87135         on directories nested deeper than 75.
87136         Be more careful about saving errno on error.
87137         Do not use realloc; use only free+malloc, as this is a bit
87138         more flexible and avoids a needless copy operation.
87139         Do not inspect st_dev and st_ino for symbolic links; POSIX
87140         doesn't specify the latter.
87141         Check for closedir errors.
87142         Avoid needless casts.
87143         Use "#ifdef weak_alias" around weak_alias, to be like other
87144         glibc code.
87145         The following changes to getcwd.c have effect only when used in
87146         gnulib; they have no effect inside glibc proper.
87147         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87148         as alloca isn't used.
87149         (alloca, __alloca): Likewise.
87150         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87151         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87152         unconditionally, as gnulib assumes C89 or better.
87153         Do not include <sys/param.h>.
87154         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87155         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87156         better.
87157         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87158         Include <dirent.h> in a way that is compatible with modern Autoconf.
87159         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87160         New macros, if not already defined.
87161         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87162         Use "_LIBC", not "defined _LIBC", for consistency.
87163         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87164         a mempcpy module.
87165         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87166         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87167         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87168         credit only to Jim Meyering and adjust the copyright dates.
87169         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87170         <stdlib.h>, <unistd.h>, "pathmax.h".
87171         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87172         (INITIAL_BUFFER_SIZE): Remove.
87173         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87174
87175 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87176
87177         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87178         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87179         Use the _ONCE methods, for efficiency.
87180         Check for fcntl.h.  In test program, include <errno.h>
87181         and <fcntl.h> if available.  Remove old K&R cruft from
87182         test program.  Check for common errors in GNU/Linux,
87183         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87184         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87185         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87186         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87187         name accordingly.
87188         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87189         accommodate new getcwd.c.
87190         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87191         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87192         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87193         that's all we need now.
87194
87195 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87196
87197         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87198         argp-parse.c depends on getopt internals, that means we should
87199         always use our getopt, to be on the safe side.
87200         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87201         order not to spoil the result of an eventual previous invocation
87202         of gl_GETOPT_SUBSTITUTE.
87203
87204 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87205
87206         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87207         redefinition warnings. To avoid them, include the defines
87208         in `#if !defined __need_getopt ... #endif'. The only place
87209         where __getopt_argv_const is used is in definitions
87210         of getopt_long and getopt_long_only below, which are as well
87211         protected by `#ifndef __need_getopt'.
87212         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87213         __need_getopt after including <stdio.h> and <unistd.h> These
87214         headers might have defined it.
87215
87216 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87217
87218         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87219
87220 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87221
87222         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87223         (futimens): New function, which uses futimes if available.
87224         (futimens, utimens): Support timespec==NULL, with same semantics
87225         as utime and utimens.
87226         * lib/utimens.h (futimens): New decl.
87227
87228 2004-11-23  Jim Meyering  <jim@meyering.net>
87229
87230         * lib/getopt_.h: Remove trailing blanks.
87231
87232 2004-11-23  Jim Meyering  <jim@meyering.net>
87233
87234         * lib/__fpending.c: Add comment.
87235
87236 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87237
87238         * modules/canonicalize (Depends-on): Add xreadlink.
87239         Problem reported by James Youngman.
87240
87241 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87242
87243         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87244         New macros.
87245         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87246         optopt): Use them instead of invoking ## directly; otherwise, the
87247         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87248
87249 2004-11-19  Bruno Haible  <bruno@clisp.org>
87250
87251         * lib/strtok_r.c: Move comments from here...
87252         * lib/strtok_r.h: ... to here.
87253
87254 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87255
87256         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87257         implementations that mishandle size_t overflow.
87258
87259 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87260
87261         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87262         might fail.  Problem reported by Yoann Vandoorselaere.
87263         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87264         implementations that mishandle size_t overflow.
87265
87266 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87267
87268         * modules/canon-host (Depends-on): Add strdup.
87269
87270 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87271
87272         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87273
87274 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87275
87276         * lib/canon-host.c: Include "strdup.h".
87277         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87278         Use strdup instead of malloc/strcpy to duplicate strings.
87279
87280         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87281         (human_space_before_unit): New constant.
87282         * lib/human.c (human_readable): Support it.
87283
87284         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87285         (xgetcwd): Set errno correctly when failing.
87286         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87287         the failure is actually due to a PATH_MAX problem.
87288
87289         Further getopt changes to make it more likely that glibc will
87290         buy the changes back.
87291         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87292         (getopt): Use it, so to preserve glibc semantic
87293         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87294         when compiling for libc.
87295         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87296         (getopt_long, getopt_long_only): Use it.
87297
87298         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87299         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87300         (getopt): Argv is now char * const *, as per standard.
87301         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87302         not char *__getopt_argv_const *.
87303         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87304         _getopt_long_only_r): Likewise.
87305         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87306         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87307         _getopt_long_r, _getopt_long_only_r): Likewise.
87308         * lib/getopt_.h (__getopt_argv_const): Remove.
87309         (getopt): Argv is now char * const *, as per standard.
87310
87311         * lib/getdate.y (tORDINAL): New token.
87312         (day, relunit): Allow it for relative times.
87313         (relative_time_table): Use tORDINAL for ordinals.
87314
87315 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87316
87317         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87318         Document that "second" isn't allowed as an ordinal number.
87319
87320 2004-11-16  Jim Meyering  <jim@meyering.net>
87321
87322         * modules/closeout (Depends-on): Add fpending.
87323
87324 2004-11-15  Jim Meyering  <jim@meyering.net>
87325
87326         * lib/closeout.c: Include "__fpending.h" once again.
87327         Include <stdbool.h>.
87328         (close_stdout): Don't fail just because stdout was closed initially,
87329         since some programs don't write to stdout in the normal course of
87330         operation (other than --version and --help), and we don't want this
87331         function to make e.g. `touch file >&-' fail.
87332         But do fail if it was closed and someone has tried to write to it.
87333         E.g., `printf foo >&-' must fail.
87334
87335 2004-11-13  Jim Meyering  <jim@meyering.net>
87336
87337         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87338
87339 2004-11-12  Simon Josefsson  <jas@extundo.com>
87340
87341         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87342         small doc fix is still pending.
87343
87344 2004-11-11  Simon Josefsson  <jas@extundo.com>
87345
87346         * modules/strtok_r: New file.
87347
87348         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87349         strtok_r.
87350
87351 2004-11-11  Simon Josefsson  <jas@extundo.com>
87352
87353         * m4/strtok_r.m4: New file.
87354
87355         * m4/getopt.m4: Replace opterr.
87356
87357 2004-11-11  Simon Josefsson  <jas@extundo.com>
87358
87359         * lib/strtok_r.h, strtok_r.c: New file.
87360
87361 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87362
87363         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87364         of replacing opterr, getopt, etc.  This should handle the
87365         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87366
87367 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87368
87369         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87370         we can stop lying to compilers about the constness of argv when we
87371         are compiled outside glibc.
87372         (getopt, getopt_long, getopt_long_only): Use it.
87373         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87374         _getopt_internal, getopt): Likewise.
87375         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87376         _getopt_long_only_r): Likewise.
87377         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87378         _getopt_long_r, _getopt_long_only_r): Likewise.
87379
87380         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87381         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87382         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87383         the other external symbols.
87384         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87385         declaration, since the above renaming now works around collisions.
87386
87387 2004-11-11  Jim Meyering  <jim@meyering.net>
87388
87389         * lib/linebreak.c: Remove trailing blanks.
87390         * lib/alloca_.h: Likewise.
87391         * lib/acosl.c: Likewise.
87392         * lib/euidaccess.c: Likewise.
87393         * lib/allocsa.h: Likewise.
87394
87395 2004-11-10  Simon Josefsson  <jas@extundo.com>
87396
87397         * m4/getaddrinfo.m4: New file.
87398
87399 2004-11-10  Simon Josefsson  <jas@extundo.com>
87400
87401         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87402
87403 2004-11-10  Simon Josefsson  <jas@extundo.com>
87404
87405         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87406         getaddrinfo.
87407
87408         * modules/getaddrinfo: New file.
87409
87410 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87411
87412         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87413
87414 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87415
87416         * lib/mktime.c (SHR): New macro, which is a portable
87417         substitute for >> that should work even on Crays.
87418         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87419         Problem reported by Mark D. Baushke in
87420         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87421         * lib/getdate.y (SHR): Likewise.
87422         (tm_diff): Use it.
87423         * lib/strftime.c (SHR): Likewise.
87424         (tm_diff): Use it.
87425         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87426         quote_these_too, so that right shifts are well defined.  All uses
87427         changed.
87428
87429 2004-11-10  Jim Meyering  <jim@meyering.net>
87430
87431         Ensure that no close failure goes unreported.
87432         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87433         return early when it seems there's nothing to flush.
87434         Don't include __fpending.h.
87435
87436 2004-11-10  Jim Meyering  <jim@meyering.net>
87437
87438         * modules/closeout (Depends-on): Remove fpending.
87439
87440 2004-11-10  Jim Meyering  <jim@meyering.net>
87441
87442         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87443
87444 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87445
87446         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87447         gl_FUNC_STRFTIME.
87448         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87449         and AC_REQUIRE when possible, to avoid duplicate checks.
87450         Check for <wchar.h>.
87451
87452 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87453
87454         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87455
87456 2004-11-09  Bruno Haible  <bruno@clisp.org>
87457
87458         * m4/sockpfaf.m4: New file.
87459
87460 2004-11-05  Bruno Haible  <bruno@clisp.org>
87461
87462         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87463         Reported by Mark D. Baushke <mdb@cvshome.org>.
87464
87465 2004-11-04  Bruno Haible  <bruno@clisp.org>
87466
87467         2004-09-11  Bruno Haible  <bruno@clisp.org>
87468                 * allocsa.valgrind: New file.
87469         2004-02-06  Bruno Haible  <bruno@clisp.org>
87470                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87471                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87472                 Reported by Christopher Seip <chris.seip@hp.com>.
87473
87474 2004-11-04  Bruno Haible  <bruno@clisp.org>
87475
87476         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87477         (Makefile.am): Distribute it.
87478
87479 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87480
87481         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87482         with errno == ERANGE if the buffer is too small.
87483         Problem reported by Mark D. Baushke.
87484
87485 2004-11-03  Albert Chin  <china@thewrittenword.com>
87486             Paul Eggert  <eggert@cs.ucla.edu>
87487
87488         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87489         equivalent, substitute $ac_type for equivalent type rather than
87490         blindly using uint32_t *always* which won't work if uint32_t is not
87491         available.  Define _UINT32_T to work around typedef of uint32_t if
87492         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87493         2.5.1.
87494
87495 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87496
87497         * m4/jm-macros.m4: Sync from coreutils.
87498         (gl_MACROS): Check for mbrlen, for pathchk.
87499         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87500
87501 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87502
87503         * lib/xreadlink.c (MAXSIZE): New macro.
87504         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87505         size does not exceed MAXSIZE.  Avoid cast.
87506         As suggested by Mark D. Baushke in
87507         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87508         if readlink fails with buffer size just under MAXSIZE, try again
87509         with MAXSIZE.
87510
87511 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87512
87513         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87514
87515 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87516         and  Paul Eggert  <eggert@cs.ucla.edu>
87517
87518         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87519         (get_date): Overparenthesize to avoid GCC warning.
87520
87521 2004-11-02  Bruno Haible  <bruno@clisp.org>
87522
87523         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87524         returns void.
87525
87526 2004-11-02  Bruno Haible  <bruno@clisp.org>
87527
87528         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87529         function returns void.
87530
87531 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87532
87533         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87534         fflush_unlocked, flockfile, funlockfile, funlockfile,
87535         fputs_unlocked, putc_unlocked.
87536
87537 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87538
87539         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87540         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87541         already declared.
87542
87543 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87544
87545         * modules/getdate (Files): Add doc/getdate.texi.
87546         (Depends-on): Add setenv, xalloc.
87547
87548 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87549
87550         * lib/getdate.y: Add support for TZ="foo" within a date string.
87551         Fix some bugs near time_t boundaries.  Reject dates with
87552         out-of-range components, e.g., "Sept 31".
87553         Include <stdlib.h>, "setenv.h", "xalloc.h".
87554         (ISDIGIT_LOCALE): Remove; unused.
87555         Note that the TZ and time functions used here are not reentrant.
87556         (mktime_ok, get_tz): New functions.
87557         (TZBUFSIZE): New constant.
87558         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87559         This requires that we sometimes generate our own TZ="XXX..." setting.
87560
87561 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87562
87563         * doc/getdate.texi: New file, from coreutils with modifications for
87564         the new TZ parsing.
87565
87566 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87567
87568         * lib/mktime.c (not_equal_tm): Remove redundant check.
87569
87570 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87571
87572         * modules/regex (lib_SOURCES): Add regex.c.
87573         Reported by James Youngman in
87574         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87575
87576 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87577
87578         * lib/getdate.y: Use Bison 1.875 features, and some minor
87579         code cleanups.  This change does not affect semantics.
87580         Don't include <stdlib.h>; no longer needed.
87581         Don't include unlocked-io.h; only the "#if TEST" code uses
87582         stdio, and performance isn't crucial there.
87583         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87584         Bison 1.875 features as described below.
87585         All uses of "PC." replaced by "pc->".
87586         (YYSTYPE): Add a forward declaration.
87587         (yylex, yyerror): Use full prototypes in forward decls.
87588         Use "%pure-parser" rather than obsolescent "%pure_parser".
87589         Use %parse-param and %lex-param instead of obsolescent
87590         YYPARSE_PARAM and YYLEX_PARAM.
87591         (meridian_table, month_and_day_table, time_units_table,
87592         relative_time_table, time_zone_table, military_table,
87593         lookup_zone, lookup_word, get_date):
87594         Use NULL instead of 0 where appropriate.
87595         (to_hour): Avoid abort (), to avoid a dependency on
87596         stdlib.h.
87597         (yyerror, yylex): Now accepts parser_control * arg.
87598         (main) [TEST]: Use '\0' rather than 0 for char.
87599
87600 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87601
87602         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
87603
87604 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87605
87606         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
87607         It's now the caller's responsibility to handle the case where
87608         !HAVE_GETPAGESIZE && !defined getpagesize.
87609
87610         * lib/mktime.c (leapyear): Arg is long int, not int.
87611
87612 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
87613
87614         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
87615
87616 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
87617
87618         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
87619         missing.  Problem reported by James Youngman.
87620
87621 2004-10-16  Simon Josefsson  <jas@extundo.com>
87622
87623         * gnulib-tool: Fix comments.  Fix parse problem.
87624         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
87625
87626 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
87627
87628         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
87629         implementation of getopt_long.  Problem reported by Alexander Taler in:
87630         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
87631
87632 2004-10-15  Bruno Haible  <bruno@clisp.org>
87633
87634         * gnulib-tool: Untabify. Initialize supplied_libname.
87635         (func_usage): More homogenous output.
87636         (func_modules_transitive_closure, func_modules_to_filelist,
87637         func_emit_lib_Makefile_am): New functions.
87638         (func_import): New function, extracted from big case statement. Use
87639         func_get_license, func_modules_transitive_closure,
87640         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
87641         opt_lgpl. Don't use test -a, as it's not portable.
87642         (func_create_testdir): Use func_modules_transitive_closure,
87643         func_modules_to_filelist, func_emit_lib_Makefile_am.
87644
87645 2004-10-15  Bruno Haible  <bruno@clisp.org>
87646
87647         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
87648
87649 2004-10-15  Bruno Haible  <bruno@clisp.org>
87650
87651         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
87652         the portions belonging to each module.
87653         Suggested by Derek Robert Price <derek@ximbiot.com>.
87654
87655 2004-10-12  Simon Josefsson  <jas@extundo.com>
87656
87657         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87658         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
87659         to real functions.
87660
87661 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87662
87663         * modules/vsnprintf: New file.
87664
87665 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87666
87667         * m4/vsnprintf.m4: New file.
87668
87669 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87670
87671         * lib/vsnprintf.h: New file.
87672         * lib/vsnprintf.c: New file.
87673
87674 2004-10-11  Bruno Haible  <bruno@clisp.org>
87675
87676         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
87677         vsnprintf.
87678
87679 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
87680
87681         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
87682
87683 2004-10-07  Bruno Haible  <bruno@clisp.org>
87684
87685         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
87686         fits into the provided buffer.
87687
87688 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87689
87690         * lib/diacrit.c, diacrit.h: Add GPL notice.
87691
87692         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
87693         notice.
87694         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
87695         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
87696         This avoids a potential constant-folding bug.
87697
87698 2004-10-05  Bruno Haible  <bruno@clisp.org>
87699
87700         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
87701         for the declaration of strsep.
87702
87703 2004-10-05  Bruno Haible  <bruno@clisp.org>
87704
87705         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
87706
87707 2004-10-04  Simon Josefsson  <jas@extundo.com>
87708
87709         * modules/memmem: New file.
87710         * tests/test-memmem.c: New file.
87711         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
87712
87713 2004-10-04  Simon Josefsson  <jas@extundo.com>
87714
87715         * m4/memmem.m4: New file.
87716
87717 2004-10-04  Simon Josefsson  <jas@extundo.com>
87718
87719         * lib/memmem.h: New file.
87720         * lib/memmem.c: New file, taken from glibc.
87721
87722 2004-10-04  Simon Josefsson  <jas@extundo.com>
87723
87724         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
87725         '#ifdef USE_UNLOCKED_IO'.
87726
87727 2004-10-04  Simon Josefsson  <jas@extundo.com>
87728
87729         * config/srclist.txt: Add memmem from glibc.
87730
87731 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87732
87733         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
87734
87735         * modules/argmatch, modules/argp, modules/closeout, modules/error,
87736         modules/exclude, modules/getdate, modules/getline,
87737         modules/getndelim2, modules/getpass, modules/getpass-gnu,
87738         modules/getusershell, modules/linebuffer, modules/md5,
87739         modules/mountlist, modules/posixtm, modules/readtokens,
87740         modules/readutmp, modules/regex, modules/sha1,
87741         modules/version-etc, modules/yesno:
87742         Remove dependency on unlocked-io.
87743
87744 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87745
87746         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
87747
87748         * m4/unlocked-io.m4: Add copyright notice.
87749         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
87750
87751 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87752
87753         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
87754         * lib/xmalloc.c (xmemdup): Likewise.
87755         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
87756         XFREE): Remove these long-obsolescent macros.
87757         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
87758         * lib/xstrdup.c: Remove.
87759
87760         * lib/regex.c (re_comp): Cast gettext return value to char *,
87761         Problem reported by Martin Neitzel via Mark D. Baushke.
87762
87763 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87764
87765         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
87766         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
87767         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
87768         regex.c, sha1.c, version-etc.c, yesno.c:
87769         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
87770         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
87771         the includer's responsibility.
87772
87773         Sync from coreutils.
87774
87775         * lib/modechange.c (mode_compile): Don't decrement a pointer that
87776         points to the start of a string, as the C Standard says the
87777         resulting behavior is undefined.
87778
87779         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
87780         simple -> simple_backups, numbered_existing ->
87781         numbered_existing_backups, numbered -> numbered_backups
87782         to avoid shadowing problems.  All uses changed.
87783         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
87784         * lib/backupfile.c (check_extension, numbered_backup):
87785         Rename locals to avoid shadowing 'basename'.
87786         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
87787         once.
87788
87789         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
87790         * lib/.cvsignore: Add getopt.h.
87791
87792 2004-10-04  Bruno Haible  <bruno@clisp.org>
87793
87794         * modules/README: New file.
87795         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
87796         not a module.
87797
87798 2004-10-02  Jim Meyering  <jim@meyering.net>
87799
87800         * lib/dirfd.h, getpagesize.h: Add copyright notice.
87801
87802 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87803
87804         * modules/strsep: New file.
87805
87806 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87807
87808         * m4/strsep.m4: New file.
87809
87810 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87811
87812         * lib/strsep.h: New file.
87813         * lib/strsep.c: New file.
87814
87815 2004-10-01  Simon Josefsson  <jas@extundo.com>
87816
87817         * lib/snprintf.c (snprintf): Handle size==0.
87818
87819 2004-10-01  Simon Josefsson  <jas@extundo.com>
87820             Bruno Haible  <bruno@clisp.org>
87821
87822         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
87823         (snprintf): Declare 'args'.
87824
87825 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
87826
87827         * lib/snprintf.c: Remove comments as to why each header is needed.
87828
87829 2004-10-01  Bruno Haible  <bruno@clisp.org>
87830
87831         * MODULES.html.sh: Add strsep.
87832
87833 2004-09-30  Simon Josefsson  <jas@extundo.com>
87834
87835         * modules/snprintf: New file.
87836
87837 2004-09-30  Simon Josefsson  <jas@extundo.com>
87838
87839         * m4/snprintf.m4: New file.
87840
87841 2004-09-30  Simon Josefsson  <jas@extundo.com>
87842
87843         * lib/snprintf.h, lib/snprintf.c: New files.
87844
87845 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87846
87847         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
87848         (hol_entry_help): Never translate an empty string.
87849         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
87850         * lib/argp.h (OPTION_NO_TRANS): New option.
87851
87852 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87853
87854         * modules/argp (Maintainer): Replace Simon Josefsson
87855         by Sergey Poznyakoff.
87856
87857 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87858
87859         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
87860         changes merged back into glibc.
87861
87862 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87863
87864         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
87865
87866 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
87867
87868         * lib/xvasprintf.c: Include xalloc.h.
87869         (xvasprintf): Use xalloc_die, not xmalloc_die.
87870
87871 2004-09-29  Bruno Haible  <bruno@clisp.org>
87872
87873         * modules/alloca-opt: New file, derived from modules/alloca.
87874         * modules/allocsa: Depend on alloca-opt instead of alloca.
87875         * modules/setenv: Likewise.
87876         * modules/vasnprintf: Likewise.
87877         * MODULES.html.sh: Add alloca-opt.
87878
87879 2004-09-28  Simon Josefsson  <jas@extundo.com>
87880
87881         * gnulib-tool: New parameter --lgpl, to asseert that modules are
87882         LGPL, and to replace license template from GPL to LGPL.
87883
87884 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87885
87886         * modules/dummy: Change license to LGPL.
87887
87888 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87889
87890         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
87891
87892 2004-09-24  Simon Josefsson  <jas@extundo.com>
87893
87894         * modules/minmax (License): Change from GPL to LGPL.
87895
87896 2004-09-23  Simon Josefsson  <jas@extundo.com>
87897
87898         * gnulib-tool (--import): Typo.
87899
87900 2004-09-23  Simon Josefsson  <jas@extundo.com>
87901
87902         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
87903
87904 2004-09-22  Bruno Haible  <bruno@clisp.org>
87905
87906         * modules/*: Add 'License' field.
87907         * gnulib-tool: Accept --extract-license option.
87908         (func_get_license): New function.
87909
87910 2004-09-21  Bruno Haible  <bruno@clisp.org>
87911
87912         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
87913         Reported by Simon Josefsson.
87914
87915 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87916
87917         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
87918         gl_AC_TYPE_LONG_LONG.
87919
87920 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87921
87922         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
87923
87924 2004-09-18  Simon Josefsson  <jas@extundo.com>
87925         and  Paul Eggert  <eggert@cs.ucla.edu>
87926
87927         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
87928         calls with autoreconf.  Define GL_LIB.
87929
87930 2004-09-14  Karl Berry  <karl@gnu.org>
87931
87932         * config/srclist.txt: unsync setenv.c, sigh.
87933
87934 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87935
87936         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
87937         Problem reported by Bruno Haible in:
87938         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
87939
87940 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87941
87942         * config/srclist.txt: Comment out argp-pvh.c.
87943
87944 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
87945
87946         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
87947         in case some system header has #define'd it.  Problem reported by
87948         Soeren D. Schulze in
87949         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
87950
87951 2004-09-09  Karl Berry  <karl@gnu.org>
87952
87953         * regex.[ch]: delete from the root.  These were supposed to be
87954                 synced with emacs cvs, but this has not happened for about
87955                 a year, and anyway nothing else uses emacs regex.[ch].
87956                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
87957                 lib/regex[.ch] is untouched.
87958
87959 2004-09-09  Bruno Haible  <bruno@clisp.org>
87960
87961         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
87962
87963 2004-09-09  Bruno Haible  <bruno@clisp.org>
87964
87965         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
87966         modifications.
87967         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
87968
87969 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87970
87971         * modules/xvasprintf: New file.
87972         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
87973
87974 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87975
87976         * lib/xvasprintf.h: New file.
87977         * lib/xvasprintf.c: New file.
87978         * lib/xasprintf.c: New file.
87979
87980 2004-09-08  Bruno Haible  <bruno@clisp.org>
87981
87982         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
87983
87984 2004-09-08  Bruno Haible  <bruno@clisp.org>
87985
87986         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
87987         length is > INT_MAX.
87988         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
87989         more.
87990
87991 2004-09-08  Bruno Haible  <bruno@clisp.org>
87992
87993         * lib/stdint_.h: New file, taken from GNU clisp.
87994
87995 2004-09-08  Bruno Haible  <bruno@clisp.org>
87996             Oskar Liljeblad  <oskar@osk.mine.nu>
87997
87998         * modules/stdint: New file.
87999         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88000
88001 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88002
88003         Import from coreutils.
88004         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88005         strings on unbounded length.  alloca's performance benefits aren't
88006         that important here.
88007         (V_STRDUP): Remove.
88008         (parse_with_separator): New function, with most of the internals
88009         of the old parse_user_spec.  Allow user to omit both user and group,
88010         for compatibility with FreeBSD.
88011         Clone only the user name, not the entire spec.
88012         Do not set *uid, *gid unless entirely successful.
88013         Avoid memory leak in some failing cases.
88014         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88015         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88016         (parse_user_spec): Rewrite to use parse_with_separator.
88017
88018 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88019
88020         * modules/userspec: Don't depend on alloca.
88021
88022 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88023
88024         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88025
88026 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88027
88028         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88029         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88030         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88031
88032 2004-08-16  Simon Josefsson  <jas@extundo.com>
88033
88034         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88035         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88036         Add --dry-run for --import.
88037         Let user provided command line parameters override configure.ac
88038         settings.
88039
88040 2004-08-12  Simon Josefsson  <jas@extundo.com>
88041
88042         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88043         as discussed with Paul Eggert in threads rooted at
88044         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88045         and
88046         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88047         Before, the test was empty, and relied on ELIDE_CODE in source
88048         code.)
88049         (gl_PREREQ_GETOPT): New macro.
88050         (gl_GETOPT): Use them.
88051
88052 2004-08-12  Simon Josefsson  <jas@extundo.com>
88053
88054         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88055         * lib/getopt_.h: Renamed from getopt.h.
88056
88057 2004-08-12  Simon Josefsson  <jas@extundo.com>
88058
88059         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88060         Change default library name from libfoo to libgnu.
88061         Now, if you have a configure.ac that says:
88062                 gl_SOURCE_BASE(gl)
88063                 gl_M4_BASE(gl/m4)
88064                 gl_MODULES(error getopt etcetera)
88065                 gl_INIT
88066         you can import all you need by running:
88067                 ../gnulib/gnulib-tool --import
88068
88069         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88070         (Makefile.am): Rewrite, use logic from argz.
88071         (Include): Use <getopt.h> instead of "getopt.h".
88072
88073 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88074
88075         * modules/argp (Files): Add m4/unlocked-io.m4.
88076         (Depends-on): Add extensions.
88077
88078 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88079
88080         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88081         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88082         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88083         Check for program_invocation_name, program_invocation_short_name,
88084         flockfile, funlockfile, features.h, _getopt_long_only_r.
88085
88086 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88087
88088         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88089         its complicated substitute.
88090         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88091         and program_invocation_name.
88092         (__argp_basename) [!_LIBC]: Remove; the only use was
88093         replaced by its body.
88094         (__argp_short_program_name): Change condition from
88095         !defined __argp_short_program_name to
88096         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88097         to match argp-namefrob.h.
88098         (__argp_failure): Don't assume strerror_r returns char *.
88099         * lib/argp-parse.c (N_): Define unconditionally.
88100         (argp_default_options): Fill out initializers with 0 to avoid
88101         gcc warnings.
88102
88103 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88104
88105         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88106         getopt1.c.
88107
88108 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88109
88110         Merge from coreutils.
88111
88112         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88113
88114         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88115         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88116
88117 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88118
88119         Merge from coreutils.
88120
88121         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88122         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88123         for Reliant Unix 5.43.
88124
88125         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88126         (union fooround): Use uintmax_t, not long int.
88127         The rest is a merge from libc:
88128         [defined _LIBC]: Include <shlib-compat.h>.
88129         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88130
88131         * lib/settime.c (settime): Recode to avoid warning with
88132         Sun Forte C 6U2.
88133
88134         * lib/strverscmp.c: Convert to UTF-8.
88135
88136 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88137
88138         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88139         m4/uintmax_t.m4.
88140
88141 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88142
88143         * modules/xalloc-die: New file.
88144         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88145
88146         * modules/md5 (Files): Add m4/uint32_t.m4.
88147         * modules/sha1: Renamed from modules/sha.
88148         (Files):
88149         Rename lib/sha.h to lib/sha1.h.
88150         Rename lib/sha.c to lib/sha1.c.
88151         Rename m4/sha.m4 to m4/sha1.m4.
88152         (lib_SOURCES): Likewise.
88153         (configure.ac): Rename gl_SHA to gl_SHA1.
88154         (Include): sha.h -> sha1.h.
88155
88156 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88157
88158         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88159         * m4/sha1.m4: Renamed from sha.m4.
88160         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88161
88162 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88163
88164         * lib/obstack.h (obstack_empty_p):
88165         Don't assume that chunk->contents is suitably aligned.
88166         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88167         Likewise. Problem reported by Benno in
88168         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88169
88170         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88171         readable.  This could be improved further but it'd take some work.
88172
88173 2004-08-08  Simon Josefsson  <jas@extundo.com>
88174
88175         * modules/xgethostname (Depends-on): Remove exit and error (not
88176         used).
88177
88178         * modules/getpass-gnu: Add getpass.h.
88179         (Depends-on): Add stdbool.
88180         * modules/getpass: Add getpass.h.
88181
88182 2004-08-08  Simon Josefsson  <jas@extundo.com>
88183
88184         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88185         Check getpass declaration.
88186
88187 2004-08-08  Simon Josefsson  <jas@extundo.com>
88188
88189         * lib/xgethostname.c: Don't include error.h (not used).
88190
88191         * lib/getpass.h: Add.
88192         * lib/getpass.c: Include getpass.h first.
88193
88194 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88195
88196         * lib/xalloc-die.c: New file.
88197         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88198         All uses removed.
88199         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88200         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88201         xalloc-die.c.
88202         (_, N_, xalloc_die): Move to xalloc-die.c.
88203         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88204         so that we needn't mess with xalloc_msg_memory_exhausted.
88205
88206         * lib/sha1.h: Renamed from sha.h.
88207         (SHA1_H): Renamed from _SHA_H.
88208         (sha1_ctx): Renamed from sha_ctx.
88209         (sha1_init_ctx): Renamed from sha_init_ctx.
88210         (sha1_process_block): Renamed from sha_process_block.
88211         (sha1_process_bytes): Renamed from sha_process_bytes.
88212         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88213         (sha1_read_ctx): Renamed from sha_read_ctx.
88214         (sha1_stream): Renamed from sha_stream.
88215         (sha1_buffer): Renamed from sha_buffer.
88216         * lib/sha1.c: Likewise; renamed from sha.c.
88217         Do not include <sys/types.h>.
88218         Include <stddef.h> rather than <stdlib.h>.
88219
88220 2004-08-08  Bruno Haible  <bruno@clisp.org>
88221
88222         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88223         FILESYSTEM_PREFIX_LEN.
88224         * lib/progreloc.c: Likewise.
88225         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88226
88227 2004-08-06  Simon Josefsson  <jas@extundo.com>
88228
88229         * modules/progname (Depends-on): Don't depend on stdbool.
88230
88231 2004-08-06  Simon Josefsson  <jas@extundo.com>
88232
88233         * modules/getsubopt: New file.
88234         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88235         getsubopt.
88236
88237 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88238
88239         More merge from coreutils.
88240
88241         * m4/utimens.m4, m4/utimecmp.m4: New files.
88242         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88243         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88244         prereq.m4, sha.m4: Import changes from coreutils.
88245
88246 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88247
88248         More merge from coreutils.
88249         * modules/raise, modules/readtokens0, modules/utimens:
88250         * modules/utimecmp, module/xnanosleep: New files.
88251         * modules/strftime: Add lib/strftime.h.
88252         Change include from <time.h> to "strftime.h".
88253         * modules/yesno: Add lib/yesno.h.
88254         * modules/backupfile: Remove lib/addext.c.
88255         * modules/euidaccess: Add stat-macros.h.
88256         * modules/canonicalize, modules/euidaccess,
88257         modules/filemode, modules/lchown, modules/makepath,
88258         modules/rmdir, modules/stat: Likewise.
88259
88260 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88261
88262         Merge from tar.
88263         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88264         SIZE_MAX is a valid preprocessor constant.
88265         (__argp_basename): Change from "#ifndef _LIBC"
88266         to "#ifndef __argp_short_program_name", so that
88267         we don't compile these functions for tar.
88268
88269         More merges from coreutils.
88270         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88271         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88272         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88273         * lib/addext.c: Remove; no longer needed.
88274         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88275         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88276         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88277         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88278         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88279         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88280         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88281         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88282         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88283         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88284         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88285         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88286         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88287         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88288         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88289         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88290         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88291         Import changes from coreutils.
88292
88293 2004-08-05  Simon Josefsson  <jas@extundo.com>
88294
88295         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88296
88297 2004-08-05  Simon Josefsson  <jas@extundo.com>
88298
88299         * m4/getsubopt.m4: New file.
88300
88301 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88302
88303         Merge from coreutils.
88304
88305         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88306         * m4/getcwd-path-max.m4: New files.
88307
88308         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88309         FILESYSTEM_PREFIX_LEN ->
88310         FILE_SYSTEM_PREFIX_LEN.
88311         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88312         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88313         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88314         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88315
88316         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88317         prerequisite modules now handle the DOS stuff.
88318         Don't check for unistd.h.
88319
88320 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88321
88322         Merge from coreutils.
88323
88324         * lib/.gdb-history: Remove; this doesn't belong here.
88325
88326         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88327         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88328         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88329         * lib/getcwd.c: New files.
88330
88331         * lib/dirname.h: Include <stdbool.h>.
88332         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88333         for consistency with POSIX terminology.  All uses changed.
88334         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88335         (strip_trailing_slashes): Use bool for booleans.
88336         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88337
88338         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88339         sometimes returns a positive errno value even when it succeeds.
88340         (print_errno_message) [!LIBC]: Fall back on strerror if
88341         __strerror_r fails.
88342
88343         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88344         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88345         (longest_relative_suffix): New function.
88346         (path_concat): Use it.  Assume first argument is not NULL.
88347         Port to DOS.  Omit redundant separators.
88348         Report an error instead of returning NULL.
88349         Use mempcpy instead of memcpy.
88350         (xpath_concat): Remove: not declared or used.
88351
88352         * lib/same.h: Include <stdbool.h>
88353         (same_name): Return bool, not int.
88354         * lib/same.c (same_name): Likewise.
88355         (errno): Don't declare; we assume C89 or better now.
88356
88357         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88358         if not already defined.
88359
88360         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88361         * lib/dup-safer.c (errno): Likewise.
88362
88363 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88364
88365         Merge from coreutils.
88366         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88367         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88368         * modules/path-concat: Don't depend on strdup.
88369
88370 2004-08-03  Simon Josefsson  <jas@extundo.com>
88371
88372         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88373         * lib/progname.h: Don't include stdbool.h.
88374
88375 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88376
88377         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88378         * MODULES.html.sh (func_all_modules): Remove fatal.
88379
88380 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88381
88382         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88383
88384 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88385
88386         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88387         working.
88388
88389 2004-08-02  Simon Josefsson  <jas@extundo.com>
88390
88391         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88392         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88393         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88394
88395 2004-08-01  Simon Josefsson  <jas@extundo.com>
88396
88397         * lib/xgetdomainname.c: Include stdlib.h, for free().
88398
88399 2004-07-19  Bruno Haible  <bruno@clisp.org>
88400
88401         * MODULES.html.sh (func_all_modules): Add dummy.
88402
88403 2004-07-16  Simon Josefsson  <jas@extundo.com>
88404
88405         * modules/dummy: New file.
88406
88407 2004-07-16  Simon Josefsson  <jas@extundo.com>
88408
88409         * lib/dummy.c: New file.
88410
88411 2004-07-16  Bruno Haible  <bruno@clisp.org>
88412
88413         * lib/backupfile.h: Add extern "C" for C++.
88414         * lib/closeout.h: Likewise.
88415         * lib/copy-file.h: Likewise.
88416         * lib/findprog.h: Likewise.
88417         * lib/full-write.h: Likewise.
88418         * lib/pathname.h: Likewise.
88419         * lib/progname.h: Likewise.
88420         * lib/stpcpy.h: Likewise.
88421         * lib/stpncpy.h: Likewise.
88422         * lib/strcase.h: Likewise.
88423         * lib/strstr.h: Likewise.
88424         * lib/xalloc.h: Likewise.
88425
88426         * lib/mbswidth.h: Add extern "C" for C++.
88427         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88428
88429 2004-07-13  Robert Millan  <robertmh@gnu.org>
88430
88431         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88432
88433 2004-07-09  Simon Josefsson  <jas@extundo.com>
88434
88435         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88436         failed without this.)
88437
88438 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88439
88440         * modules/chown (Files): Add lib/fchown-stub.c, since
88441         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88442
88443 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88444
88445         * lib/fchown-stub.c: New file.
88446
88447 2004-06-24  Jim Meyering  <jim@meyering.net>
88448
88449         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88450
88451 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88452
88453         * modules/argz: Omit "#include".
88454
88455         * MODULES.html.sh (func_all_modules): Add calloc, to match
88456         2004-06-01 addition of calloc module.
88457
88458 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88459
88460         * m4/argz.m4: New file, which is autoupdated from libtool.
88461
88462 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88463
88464         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88465         libtool.
88466
88467 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88468
88469         * config/srclist-update: Don't insist on "USA." before the
88470         close-comment, as libtool omits the period and puts the */ on a
88471         separate line.
88472         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88473         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88474
88475 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88476
88477         * modules/argz: New file.
88478         * MODULES.html.sh (func_all_modules): Add argz.
88479
88480 2004-06-12  Jim Meyering  <jim@meyering.net>
88481         and  Paul Eggert  <eggert@cs.ucla.edu>
88482
88483         * modules/hash (Files): Add lib/xalloc.h.
88484         * modules/pipe (Depends-on): Add wait-process.
88485         * modules/stat (Depends-on): Add xalloc.
88486         * modules/userspec (Files): Add lib/userspec.h.
88487         * modules/xstrto
88488
88489         Upgrade from gettext-0.13.
88490         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88491         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88492         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88493
88494 2004-06-10  Jim Meyering  <jim@meyering.net>
88495
88496         * lib/calloc.c: New file.
88497
88498 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88499
88500         * lib/getdate.y (yylex): Allow space between sign and number.
88501         Problem reported by Dan Jacobson.
88502
88503 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88504
88505         Merge from coreutils CVS.
88506
88507         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88508         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88509         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88510         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88511         xstrtol.m4: Fix copyright date and/or serial number.
88512
88513         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88514         See if we need an fchown replacement.
88515         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88516         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88517         and use the replacement function if we detect either defect.
88518
88519         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88520         gl_UTIMECMP.
88521
88522 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88523         and  Jim Meyering  <jim@meyering.net>
88524
88525         Merge from coreutils CVS.
88526
88527         * lib/stat-macros.h: New file, with contents from file-type.h
88528         and coreutils' system.h.
88529         * lib/file-type.c: Include "stat-macros.h".
88530         * lib/file-type.h (file_type): Move all macro definitions to new file,
88531         stat-macros.h.
88532
88533         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88534         Wrap old code with this conditional.
88535         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88536         function that does not dereference symlinks.
88537         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88538
88539         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88540         dependency problems.
88541         (xreadlink): Accept new arg SIZE, for efficiency.
88542         All decls and uses changed.
88543         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88544
88545         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88546         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88547
88548         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88549         sysexits.h.
88550
88551 2004-06-01  Jim Meyering  <jim@meyering.net>
88552
88553         * m4/calloc.m4: New file.
88554
88555 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88556
88557         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88558         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88559         Also, fix a typo in a diagnostic.
88560
88561 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88562
88563         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88564         or AC_FUNC_REALLOC.
88565
88566 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88567
88568         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88569         macros to be defined.
88570         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88571         the allocator returns NULL because the requested size is zero.
88572
88573 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88574
88575         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88576         var.  Add comment explaining why libc still defines it.  This
88577         merges the following patch from glibc:
88578         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88579
88580 2004-05-20  Andreas Schwab  <schwab@suse.de>
88581
88582         * m4/free.m4: Replace free if it not known to work, not the other
88583         way round.
88584
88585 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
88586
88587         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
88588         present in glibc since revision 1.1 of this file.
88589         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
88590         obstack_alignment_mask, obstack_alloc, obstack_base,
88591         obstack_blank, obstack_blank_fast, obstack_chunk_size,
88592         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
88593         obstack_grow0, obstack_init, obstack_int_grow,
88594         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
88595         obstack_next_free, obstack_object_size, obstack_ptr_grow,
88596         obstack_ptr_grow_fast, obstack_room): Remove declarations of
88597         nonexistent functions.
88598
88599 2004-05-18  Karl Berry  <karl@gnu.org>
88600
88601         * config/srclist.txt: break link for vasnprintf.c.
88602
88603 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88604
88605         Port obstack to the AS/400, where pointers are 16 bytes wide and
88606         you cannot cast an integer to a valid pointer.  This patch is
88607         currently waiting to be integrated into glibc; see
88608         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
88609
88610         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
88611         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
88612         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
88613         (struct obstack): temp member is now a union of a pointer and
88614         an integer, instead of an integer.  All integer uses changed.
88615         This does not affect the physical layout of struct obstack,
88616         except on hosts (like the AS/400) where the size or alignment of
88617         void * is greater than that of ptrdiff_t.
88618         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
88619         __STDC__)]: Store temporary in pointer member of union, not
88620         integer member.
88621         * lib/obstack.c: Include <stddef.h>, for offsetof.
88622         (struct fooalign): Remove; it doesn't need a name.
88623         (union fooround): Change double to long double, and add void *.
88624         (DEFAULT_ALIGNMENT): Use offsetof to compute.
88625         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
88626         not a macro.  Hence the values are always int; so remove all
88627         casts-to-int in uses.
88628
88629 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88630
88631         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
88632         we can get this patch merged into glibc.
88633
88634 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88635             Paul Eggert  <eggert@cs.ucla.edu>
88636
88637         * m4/argp: Depend on alloca.
88638
88639 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88640             Paul Eggert  <eggert@cs.ucla.edu>
88641
88642         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
88643         freecoding.
88644
88645 2004-05-17  Bruno Haible  <bruno@clisp.org>
88646
88647         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
88648         precision that consists of a '.' followed by an empty digit string.
88649         Patch by Tor Lillqvist <tml@iki.fi>.
88650
88651 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88652
88653         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
88654         for backward compatibility with older code.  We need our own
88655         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
88656         it under some other name, and our alloca.h will define it.
88657
88658 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88659             Derek Price  <derek@ximbiot.com>
88660
88661         * lib/alloca.c: Include <alloca.h>, to get our interface.
88662         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
88663         include <alloca.h> first.  Use C89 prototype for alloca; this
88664         requires including <stddef.h> for size_t.  Use extern "C" if C++.
88665         Use #elif for simplicity, since we can assume C89 now.
88666         Don't try to source the system alloca.h since it will not be found
88667         and to prevent recursively including its replacement.
88668         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
88669         * lib/regex.c: Likewise.
88670
88671 2004-05-16  Derek Price  <derek@ximbiot.com>
88672             Paul Eggert  <eggert@cs.ucla.edu>
88673
88674         getline cleanup.  This changes the getndelim2 API: both order of
88675         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
88676         no delimiter).
88677
88678         * lib/getline.c: Don't include stddef.h or stdio.h, since our
88679         interface does that.
88680         (getline): Always use getdelim, so that we don't have two
88681         copies of this code.
88682         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
88683         if available.
88684         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
88685         (GETNDELIM2_MAXIMUM): New macro.
88686         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
88687         instead of the old practice of delim2==0.  All callers changed.
88688         Return -1 on overflow, instead of returning junk.
88689         Do not set *linesize unless allocation succeeds.
88690         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
88691         that we include sys/types.h.
88692         * lib/getnline.h: Likewise.
88693         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
88694         (getndelim2): Reorder arguments.
88695         * lib/getnline.c (getnline, getndelim):
88696         Don't discard the NMAX argument.
88697         (getnline): Invoke getndelim, to avoid code duplication.
88698         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
88699         of (size_t) -1 by callers of the getnline family.
88700
88701 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88702
88703         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
88704         Check for gettimeofday.
88705         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
88706         Check for settimeofday, stime.
88707
88708 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88709
88710         * lib/nanosleep.c (suspended): Change its type from int to
88711         sig_atomic_t volatile.
88712         (first_call): Make it private to rpl_nanosleep, and have it
88713         be zero initially as that's a bit faster.
88714         (my_usleep): Round up fractional times instead of truncating them,
88715         as this is the usual meaning for 'sleep'.
88716
88717         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
88718         doesn't work.
88719         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
88720         (ENOSYS): Define if not defined.
88721         (settime): Fall back on stime if it exists and settimeofday fails.
88722         But don't bother with fallbacks if a method fails with errno == EPERM.
88723
88724 2004-05-11  Jim Meyering  <jim@meyering.net>
88725
88726         Prior to this change, the save_cwd caller required read access to the
88727         current directory on most systems (ones with the fchdir function).
88728
88729         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
88730         fails, try write-only, and finally, resort to using xgetcwd.
88731
88732 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88733
88734         * lib/obstack.c, obstack.h: Import changes from libc.
88735
88736 2004-04-28  Bruno Haible  <bruno@clisp.org>
88737
88738         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
88739         also implicitly appends .exe to executables.
88740         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
88741         accepts Windows pathnames.
88742         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88743         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88744         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88745         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88746         Reported by Derek Robert Price <derek@ximbiot.com>.
88747
88748 2004-04-21  Karl Berry  <karl@gnu.org>
88749
88750         * config/srclist.txt (localcharset.c): break sync.
88751
88752 2004-04-20  Paul Eggert  <eggert@twinsun.com>
88753
88754         * m4/host-os.m4: Add a copyright notice.
88755
88756 2004-04-20  Jim Meyering  <jim@meyering.net>
88757
88758         Change UTILS_ to gl_ in AC_DEFINE'd names.
88759         Change utils_- and jm_-prefixed variables, too.
88760         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
88761         UTILS_FUNC_MKDIR_TRAILING_SLASH.
88762         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
88763
88764         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
88765         Don't emit trailing blanks.
88766         Also rename jm_-prefixed variables to have gl_ prefix.
88767
88768         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
88769         Also rename jm_-prefixed variables to have gl_ prefix.
88770
88771         * m4/jm-macros.m4: Reflect the renamings.
88772         * m4/prereq.m4: Likewise.
88773
88774 2004-04-20  Jim Meyering  <jim@meyering.net>
88775
88776         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
88777         memory.
88778
88779 2004-04-20  Jim Meyering  <jim@meyering.net>
88780             Bruno Haible  <bruno@clisp.org>
88781
88782         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
88783         memory when realloc fails.
88784
88785 2004-04-19  Jim Meyering  <jim@meyering.net>
88786
88787         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
88788         now that readutmp.c may call `free (0)'.
88789
88790 2004-04-19  Bruno Haible  <bruno@clisp.org>
88791
88792         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
88793         * m4/inttypes_h.m4: Likewise.
88794         * m4/stdint_h.m4: Likewise.
88795         * m4/intmax_t.m4: Likewise.
88796         * m4/uintmax_t.m4: Likewise.
88797
88798 2004-04-18  Jim Meyering  <jim@meyering.net>
88799
88800         * m4/prereq.m4: Don't forbid jm_ prefix.
88801
88802         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
88803         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
88804         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
88805         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
88806         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
88807         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
88808         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
88809         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
88810         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
88811         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
88812         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
88813         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
88814         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
88815         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
88816         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
88817         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
88818         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
88819         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
88820         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
88821
88822 2004-04-18  Jim Meyering  <jim@meyering.net>
88823
88824         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
88825         failure, don't leak memory and do call END_UTMP_ENT.
88826
88827 2004-04-16  Jim Meyering  <jim@meyering.net>
88828
88829         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
88830         coreutils' stat program.
88831         (gl_PREREQ): Don't require jm_PREREQ_STAT.
88832
88833 2004-04-11  Paul Eggert  <eggert@twinsun.com>
88834
88835         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
88836         C89.
88837         (CHAR_BIT): Remove, since we assume C89.
88838         Include <stdint.h> if available, as per current Autoconf CVS advice.
88839
88840 2004-03-31  Jim Meyering  <jim@meyering.net>
88841
88842         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
88843         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
88844         * m4/xalloc.m4: Likewise.
88845
88846 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88847
88848         Merge from coreutils.
88849
88850         * m4/inttostr.m4: New file.
88851         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
88852         Require AM_STDBOOL_H and gl_TIMESPEC instead.
88853         Require gl_CLOCK_TIME.
88854         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
88855
88856 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88857
88858         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
88859         not bool, to be more consistent with Unix conventions.
88860         Suggested by Bruno Haible.
88861
88862         Merge from coreutils.
88863
88864         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
88865         * lib/umaxtostr.c: New files.
88866
88867         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
88868         the usual <time.h> dance.
88869         (get_date): Change signature to support fractional time stamps.
88870         All callers changed.
88871         * lib/getdate.y: Include "getdate.h" first, as we can now
88872         assume C89 and don't need to worry about 'const'.
88873         Similarly, include "unlocked-io.h" near start, not in middle.
88874         Include <limits.h>.
88875         (textint.value): Use long int rather than int.
88876         (textint.digits): Use size_t rather than int.
88877         (BILLION, LOG10_BILLION): New constants.
88878         (parser_control): New member rel_ns.  Members day_ordinal,
88879         time_zone, month, day, hour, minutes, rel_year, rel_month,
88880         rel_day, rel_hour, rel_minutes, rel_seconds
88881         are now long int, not int.  Member seconds is now struct timespec,
88882         not int.  New member timespec_seen.  Members dates_seen, days_seen,
88883         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
88884         not int.
88885         (%union.intval): Now long int, not int.
88886         New member timespec.
88887         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
88888         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
88889         (spec): Now is a timespec or an item list.
88890         (timespec, items): New nonterminals.
88891         (time, rel, relunit, number, get_date):
88892         Add support for fractional seconds.
88893         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
88894         (gmtime, localtime, mktime): Remove decls; not needed with C89.
88895         (to_hour): First arg is now long int, not int.
88896         (to_year): Returns long int, not int.
88897         Don't treat year -70 like 70.
88898         (tm_diff): Returns long int, not int.
88899         (lookup_word): Use bool instead of int when appropriate.
88900         (yylex): Use size_t for count, not int.
88901         Detect overflow when parsing large integer constants.
88902         Add support for fractions.
88903         (get_date): Make pointers 'const' if possible.
88904         Use more-portable code to detect integer overflow.
88905         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
88906         Don't use ctime; it's not reliable if the year has >4 digits.
88907
88908         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
88909         This is for compatibility with BSD.
88910
88911         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
88912         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
88913         From coreutils' system.h.
88914
88915         * lib/userspec.c: Don't include "posixver.h".
88916         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
88917         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
88918         compatible extension.  Simplify code by removing a boolean int
88919         that was always nonzero if a string was nonnull.
88920
88921 2004-03-30  Jim Meyering  <jim@meyering.net>
88922
88923         Merge from coreutils.
88924
88925         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
88926         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
88927         on some systems one must include <grp.h> before it.
88928         Reported by Christian Krackowizer.
88929
88930 2004-03-30  Jim Meyering  <jim@meyering.net>
88931
88932         Merge from coreutils.
88933
88934         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
88935
88936         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
88937         an empty input stream.
88938
88939         * lib/readtokens.c: Include <stdbool.h>.
88940         (readtoken): Use `size_t' rather than int/long.
88941         All callers adjusted.
88942         Use `bool' rather than `int' where appropriate.
88943         Use memset rather than an explicit loop.
88944         Use x2nrealloc rather than xrealloc.
88945         Allow the use of `\0' as a delimiter.
88946         (readtokens): Likewise.
88947         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
88948
88949 2004-03-30  Jim Meyering  <jim@meyering.net>
88950
88951         * m4/realloc.m4: Remove file, since now it does no more than
88952         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
88953         the `configure.ac' section of module/realloc.
88954         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
88955
88956 2004-03-30  Bruno Haible  <bruno@clisp.org>
88957
88958         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
88959         nonnull.
88960
88961 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88962
88963         Merge changes to getloadavg.c from coreutils and Emacs.
88964
88965         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
88966         Define to an expression, not to the empty string.
88967         Include cloexec.h and xalloc.h.
88968         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
88969         Use set_cloexec_flag rather than rolling our own.
88970         * lib/cloexec.c, lib/cloexec.h: New files.
88971
88972 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88973
88974         * m4/cloexec.m4: New file.
88975
88976 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88977
88978         * lib/getopt.h: Sync with libc CVS.
88979
88980 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88981             Bruno Haible  <bruno@clisp.org>
88982
88983         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
88984         mbswidth.
88985
88986 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88987             Bruno Haible  <bruno@clisp.org>
88988
88989         * lib/mbswidth.h: Include <wchar.h> only if
88990         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
88991         <wchar.h>.
88992         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
88993
88994 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88995
88996         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
88997         Sync with libc CVS.
88998         * lib/getopt_int.h: New file, also synced from libc.
88999
89000 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89001
89002         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89003         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89004         Bring back getopt.c, getopt.h, getopt1.c.
89005
89006 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89007
89008         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89009         All uses changed.  Check for sa_sigaction member; this fixes
89010         a bug first reported by Jason Andrade in
89011         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89012
89013 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89014
89015         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89016         '#if' expressions.  Unlike the code it replaces, it does not
89017         depend on (defined _SC_PAGESIZE).  However, it does depend on
89018         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89019         first reported by Jason Andrade in
89020         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89021
89022 2004-02-25  Simon Josefsson  <jas@extundo.com>
89023
89024         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89025
89026 2004-02-25  Simon Josefsson  <jas@extundo.com>
89027
89028         * lib/strdup.h: New file.
89029         * lib/strdup.c: Include it.
89030         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89031         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89032
89033 2004-02-23  Karl Berry  <karl@gnu.org>
89034
89035         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89036         (from fencepost.gnu.org:/gd/gnuorg).
89037
89038 2004-02-23  Karl Berry  <karl@gnu.org>
89039
89040         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89041         * config/srclist.txt: add maintain/standards documents.
89042
89043 2004-02-18  Bruno Haible  <bruno@clisp.org>
89044
89045         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89046         Reported by Derek Robert Price <derek@ximbiot.com>.
89047
89048 2004-02-16  Karl Berry  <karl@gnu.org>
89049
89050         * config/mkinstalldirs, install-sh: update from automake.
89051
89052 2004-02-06  Karl Berry  <karl@gnu.org>
89053
89054         * m4/po.m4: update from gettext 0.14.1.
89055
89056 2004-02-06  Karl Berry  <karl@gnu.org>
89057
89058         * lib/config.charset: update from gettext 0.14.1.
89059
89060 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89061
89062         Add comments and code, prompted by suggestions from Bruno Haible
89063         for sh-quote.
89064         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89065         describing the enum quoting_style values.
89066         * lib/quotearg.c (quotearg_alloc): New function.
89067         (quotearg_buffer_restyled): Treat lone { and } as special.
89068         Treat = as special.  Work around bug with older shells
89069         that "see" a '\' that is really the 2nd byte of a multibyte char.
89070         Quote empty string with shell_quoting_style.
89071
89072 2004-02-03  Bruno Haible  <bruno@clisp.org>
89073
89074         * m4/pipe.m4: New file, from GNU gettext.
89075
89076 2004-02-03  Bruno Haible  <bruno@clisp.org>
89077
89078         * lib/pipe.h: New file, from GNU gettext.
89079         * lib/pipe.c: New file, from GNU gettext.
89080
89081 2004-01-27  Bruno Haible  <bruno@clisp.org>
89082
89083         * m4/execute.m4: New file, from GNU gettext.
89084
89085 2004-01-27  Bruno Haible  <bruno@clisp.org>
89086
89087         * lib/execute.h: New file, from GNU gettext.
89088         * lib/execute.c: New file, from GNU gettext.
89089         * lib/w32spawn.h: New file, from GNU gettext.
89090
89091 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89092
89093         Merge from diffutils.
89094
89095         * lib/file-type.c (file_type): Add typed memory objects.
89096         * lib/file-type.h (S_TYPEISTMO): New macro.
89097
89098         * lib/c-stack.h (c_stack_action): Remove argv argument.
89099         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89100         (die): Don't calculate message unless segv_action returns.
89101         (get_stack_location, min_address_from_argv, max_address_from_argv,
89102         volatile stack_base, volatile_stack_size): Remove.
89103         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89104         that every segmentation violation is a stack overflow.  (Ouch!)
89105         See Debian bug 136249 (still outstanding) for more info about why
89106         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89107
89108 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89109
89110         Exit-status fix from coreutils.
89111
89112         Use exit_failure consistently in place of EXIT_FAILURE,
89113         so that program exit statuses are consistent on failure.
89114
89115         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89116         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89117         * lib/argmatch.h: Comment fix to match the above.
89118         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89119         Now a macro referring to exit_failure, instead of a separate
89120         variable.  Include "exitfail.h" to get it.
89121         * lib/xstrtol.h: Include "exitfail.h".
89122         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89123
89124         * lib/long-options.c (parse_long_options): Use prototype
89125         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89126         for clarity.
89127
89128 2004-01-21  Jim Meyering  <jim@meyering.net>
89129
89130         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89131         so as not to conflict with a different-sized __mktime_internal
89132         function in GNU libc.
89133         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89134         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89135
89136 2004-01-20  Karl Berry  <karl@gnu.org>
89137
89138         * config/config.guess: update from config.
89139
89140         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89141
89142 2004-01-20  Bruno Haible  <bruno@clisp.org>
89143
89144         Safer stack allocation.
89145         * lib/setenv.c: Include allocsa.h.
89146         (alloca): Remove fallback definition.
89147         (freea): Remove macro.
89148         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89149         instead of freea.
89150
89151 2004-01-20  Bruno Haible  <bruno@clisp.org>
89152
89153         * m4/eealloc.m4: New file, from GNU gettext.
89154
89155 2004-01-20  Bruno Haible  <bruno@clisp.org>
89156
89157         * m4/allocsa.m4: New file, from GNU gettext.
89158
89159 2004-01-20  Bruno Haible  <bruno@clisp.org>
89160
89161         * lib/xallocsa.h: New file, from GNU gettext.
89162         * lib/xallocsa.c: New file, from GNU gettext.
89163
89164 2004-01-20  Bruno Haible  <bruno@clisp.org>
89165
89166         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89167
89168 2004-01-20  Bruno Haible  <bruno@clisp.org>
89169
89170         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89171         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89172         specially.
89173
89174 2004-01-20  Bruno Haible  <bruno@clisp.org>
89175
89176         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89177         patch.
89178
89179 2004-01-20  Bruno Haible  <bruno@clisp.org>
89180
89181         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89182
89183 2004-01-20  Bruno Haible  <bruno@clisp.org>
89184
89185         * lib/eealloc.h: New file.
89186
89187 2004-01-20  Bruno Haible  <bruno@clisp.org>
89188
89189         * lib/binary-io.h: Avoid warnings on Cygwin.
89190
89191 2004-01-20  Bruno Haible  <bruno@clisp.org>
89192
89193         * lib/allocsa.h: New file, from GNU gettext.
89194         * lib/allocsa.c: New file, from GNU gettext.
89195
89196 2004-01-18  Karl Berry  <karl@gnu.org>
89197
89198         * doc/gpl.texi, doc/lgpl.texi: new files.
89199
89200 2004-01-18  Karl Berry  <karl@gnu.org>
89201
89202         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89203         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89204
89205 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89206
89207         Merge from coreutils.
89208
89209         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89210         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89211         (gl_DEFAULT_POSIX2_VERSION): Move
89212         the documentation from 'configure' into 'config.hin',
89213         so that 'configure --help' isn't burdened by it and
89214         we don't have to worry about its formatting there.
89215         Reword the documentation so that it's more succinct
89216         and can be run together into a single paragraph.
89217         * m4/same.m4 (gl_SAME): Check for pathconf.
89218
89219 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89220
89221         Merge from coreutils.
89222
89223         * lib/posixver.c: Include posixver.h.
89224
89225         * lib/same.c: Include <stdbool.h>, <limits.h>.
89226         (_POSIX_NAME_MAX): Define if not defined.
89227         (MIN): New macro.
89228         (same_name): If file names are silently truncated, report
89229         that the file names are the same if they are the same after
89230         the silent truncation.
89231
89232         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89233         conversion function.
89234         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89235         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89236         longer needed.
89237
89238 2004-01-15  Jim Meyering  <jim@meyering.net>
89239
89240         Merge from coreutils.
89241
89242         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89243         if no library is required.
89244         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89245         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89246         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89247         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89248         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89249         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89250         value, $ac_cv_search_crypt, if it's "none required".
89251         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89252         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89253         not gl_FUNC_GETLOADAVG.
89254         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89255         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89256
89257 2004-01-15  Jim Meyering  <jim@meyering.net>
89258
89259         Merge from coreutils.
89260
89261         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89262         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89263         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89264
89265         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89266         optional configure-time default.
89267
89268         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89269
89270         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89271
89272 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89273
89274         Merge from coreutils.
89275
89276         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89277         value, $ac_cv_search_nanosleep, if it's "none required".
89278
89279 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89280
89281         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89282         with like-named macro in fnmatch.c.
89283         (EXT): Use an internal constant instead.
89284
89285         Merge fnmatch patches from glibc.
89286         * lib/fnmatch.c (mbsinit): Remove define.
89287         Add libc_hidden_ver (__fnmatch, fnmatch).
89288         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89289         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89290
89291 2004-01-14  Karl Berry  <karl@gnu.org>
89292
89293         * config/install-sh: update from automake.
89294
89295 2004-01-13  Karl Berry  <karl@gnu.org>
89296
89297         * config/install-sh: update from automake.
89298
89299 2004-01-09  Karl Berry  <karl@gnu.org>
89300
89301         * config/install-sh: update from automake.
89302
89303 2004-01-05  Karl Berry  <karl@gnu.org>
89304
89305         * config/config.{sub,guess}: update from config.
89306
89307 2003-12-31  Karl Berry  <karl@gnu.org>
89308
89309         * config/depcomp: update from automake.
89310
89311 2003-12-14  Karl Berry  <karl@gnu.org>
89312
89313         * lib/config.charset: update from gettext-runtime.
89314
89315 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89316
89317         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89318         Bug reported by Alfred M. Szmidt.
89319
89320 2003-12-03  Bruno Haible  <bruno@clisp.org>
89321
89322         * m4/gettext.m4: Upgrade from gettext-0.13.
89323         * m4/po.m4: Upgrade from gettext-0.13.
89324         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89325         * m4/intmax.m4: New file, from gettext-0.13.
89326         * m4/printf-posix.m4: New file, from gettext-0.13.
89327
89328 2003-11-29  Karl Berry  <karl@gnu.org>
89329
89330         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89331
89332 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89333             Bruno Haible  <bruno@clisp.org>
89334
89335         * lib/printf-parse.h: Don't include sys/types.h.
89336         (ARG_NONE): New macro.
89337         (char_directive): Change type of *arg_index fields to size_t.
89338         * lib/printf-parse.c: Don't include sys/types.h.
89339         (SSIZE_MAX): Remove macro.
89340         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89341         Remove unnecessary overflow check.
89342         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89343         fields.
89344
89345 2003-11-25  Bruno Haible  <bruno@clisp.org>
89346
89347         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89348
89349 2003-11-25  Bruno Haible  <bruno@clisp.org>
89350
89351         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89352         gt_TYPE_SSIZE_T.
89353
89354 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89355
89356         * modules/alloca: Remove dependency on xalloc.
89357
89358 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89359
89360         * lib/alloca.c: Remove dependency on xalloc module.
89361         (xalloc_die): Remove.
89362         (memory_full) [!defined emacs]: New macro.
89363         [!defined emacs]: Don't include xalloc.h.
89364         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89365         address arithmetic overflows.  Change datatypes a bit to avoid
89366         unnecessary casts.
89367
89368 2003-11-22  Jim Meyering  <jim@meyering.net>
89369
89370         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89371         s/size/size_t/.
89372
89373 2003-11-21  Karl Berry  <karl@gnu.org>
89374
89375         * config/config.{sub,guess}: update from config.
89376
89377 2003-11-18  Karl Berry  <karl@gnu.org>
89378
89379         * config/config.{sub,guess}: update from config.
89380
89381         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89382
89383 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89384
89385         * README: Mention that S+T cannot overflow if S is the size of
89386         an existing object and T is sufficiently small.
89387
89388 2003-11-17  Jim Meyering  <jim@meyering.net>
89389
89390         On systems without utime and without a utimes function capable of
89391         dealing with a NULL struct utimbuf* argument, this utime replacement
89392         could -- in unusual circumstances -- leak a file descriptor.
89393         * lib/utime.c: Include <unistd.h> and <errno.h>.
89394         (utime_null): Be sure to close `fd' and to preserve errno.
89395         Reported by Geoff Collyer via Arnold Robbins.
89396
89397 2003-11-17  Bruno Haible  <bruno@clisp.org>
89398
89399         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89400         (Depends-on): Add xsize.
89401
89402 2003-11-17  Bruno Haible  <bruno@clisp.org>
89403
89404         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89405
89406 2003-11-17  Bruno Haible  <bruno@clisp.org>
89407
89408         * lib/vasnprintf.c (alloca): Remove fallback definition.
89409         (freea): Remove definition.
89410         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89411         Reported by Paul Eggert.
89412
89413 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89414             Bruno Haible  <bruno@clisp.org>
89415
89416         Protect against address arithmetic overflow.
89417         * lib/printf-args.h: Include stddef.h.
89418         (arguments): Change type of field 'count' to size_t.
89419         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89420         'unsigned int' where appropriate.
89421         * lib/printf-parse.h: Include sys/types.h.
89422         (char_directive): Change type of *arg_index fields to ssize_t.
89423         (char_directives): Change type of fields 'count', max_*_length to
89424         size_t.
89425         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89426         (SSIZE_MAX): Define fallback value.
89427         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89428         instead of 'int' where appropriate. Check a_allocated, d_allocated
89429         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89430         * lib/vasnprintf.c: Include xsize.h.
89431         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89432         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89433         overflow. Avoid wraparound when converting a width or precision from
89434         decimal to binary.
89435
89436 2003-11-16  Bruno Haible  <bruno@clisp.org>
89437
89438         Update from GNU gettext.
89439         * lib/printf-parse.c: Generalize to it can be compiled for wide
89440         strings.
89441         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89442         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89443         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89444         SNPRINTF): New macros.
89445         Don't include <alloca.h> if the file is used inside libintl.
89446         (local_wcslen): New function, for Solaris 2.5.1.
89447         (VASNPRINTF): Use it instead of wcslen.
89448
89449 2003-11-16  Bruno Haible  <bruno@clisp.org>
89450
89451         * lib/xsize.h (xmax): New function.
89452         (xsum, xsum3, xsum4): Declare as "pure" functions.
89453
89454 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89455
89456         * modules/xalloc (Files): Undo latest change, since xalloc.h
89457         no longer needs SIZE_MAX or PTRDIFF_MAX.
89458
89459 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89460
89461         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89462         gl_PTRDIFF_MAX.
89463
89464 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89465
89466         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89467         "return", to pacify some unknown compiler.  Problem reported
89468         by Joerg Schilling.
89469
89470 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89471
89472         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89473         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89474         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89475         heuristic is just as accurate as far as we know, and it removes a
89476         dependency on size_max.m4 and ptrdiff_max.m4.
89477
89478 2003-11-11  Bruno Haible  <bruno@clisp.org>
89479
89480         * modules/xsize (Files): Add m4/size_max.m4.
89481         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89482
89483 2003-11-11  Bruno Haible  <bruno@clisp.org>
89484
89485         * m4/size_max.m4: New file.
89486         * m4/ptrdiff_max.m4: New file.
89487         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89488         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89489         (gl_XALLOC): Invoke it.
89490
89491 2003-11-11  Bruno Haible  <bruno@clisp.org>
89492
89493         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89494         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89495         defined.
89496
89497 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89498
89499         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89500         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89501         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89502         From Bruno Haible.
89503         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89504         not (size_t) -1, since it's defined here.
89505
89506 2003-11-09  Karl Berry  <karl@gnu.org>
89507
89508         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89509
89510 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89511
89512         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89513         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89514         Reject sizes of exactly SIZE_MAX bytes.
89515         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89516         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89517
89518 2003-11-05  Bruno Haible  <bruno@clisp.org>
89519
89520         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89521         SIZE_MAX defined in <limits.h> on Solaris.
89522
89523 2003-11-04  Jim Meyering  <jim@meyering.net>
89524
89525         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89526         variable names, rather than @VAR@.
89527         * modules/poll: Likewise.
89528
89529 2003-11-04  Bruno Haible  <bruno@clisp.org>
89530
89531         * modules/xsize: New file.
89532         * modules/linebreak: Depend on xsize.
89533         * MODULES.html.sh (func_all_modules): Add xsize.
89534
89535 2003-11-04  Bruno Haible  <bruno@clisp.org>
89536
89537         * m4/xsize.m4: New file.
89538
89539 2003-11-04  Bruno Haible  <bruno@clisp.org>
89540
89541         * lib/xsize.h: New file.
89542         * lib/linebreak.c: Include xsize.h.
89543         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89544         argument for overflow.
89545         Suggested by Paul Eggert.
89546
89547 2003-11-03  Karl Berry  <karl@gnu.org>
89548
89549         * config/config.{guess,sub}: update from config.
89550
89551 2003-11-03  Jim Meyering  <jim@meyering.net>
89552
89553         * modules/userspec (lib_SOURCES): Add userspec.h.
89554         (Include): Add "userspec.h".
89555         Improve description.
89556
89557 2003-11-03  Jim Meyering  <jim@meyering.net>
89558
89559         * lib/userspec.c: Include "userspec.h".
89560         * lib/userspec.h: New file.
89561
89562 2003-11-03  Bruno Haible  <bruno@clisp.org>
89563
89564         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89565
89566 2003-11-03  Bruno Haible  <bruno@clisp.org>
89567
89568         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89569         available, to avoid (extremely rare) race condition.
89570         Suggested by Paul Eggert.
89571
89572 2003-11-02  Karl Berry  <karl@gnu.org>
89573
89574         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89575
89576 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89577
89578         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89579         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89580         (read_filesystem_list): Set and use me_type_malloced.
89581         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89582         whatever the type happens to be), for brevity and consistency.
89583         Check for size calculation overflow on Alphas running OSF/1.
89584
89585 2003-10-31  Jim Meyering  <jim@meyering.net>
89586
89587         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
89588
89589         * lib/linebuffer.c: Include <string.h> for declaration of memset.
89590
89591 2003-10-30  Paul Eggert  <eggert@twinsun.com>
89592             Bruno Haible  <bruno@clisp.org>
89593
89594         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
89595         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
89596
89597 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
89598
89599         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
89600         netbsd*-gnu*.  Suggested by Robert Millan.
89601
89602 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89603
89604         * modules/group-member: Depend on stdbool.
89605
89606 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89607
89608         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
89609
89610 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89611
89612         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
89613         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
89614         after the 'gnu' in these cases.  This fixes some bugs in the
89615         previous change, and is based on suggestions by Robert Millan.
89616
89617 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89618
89619         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
89620         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
89621         no longer needed.
89622         * lib/quotearg.c (quotearg_n_options): Use it.
89623         * lib/group-member.c: Include <stdbool.h>.
89624         (free_group_info): Arg is now const *; don't free arg.
89625         (get_group_info): Now returns bool and accepts struct group_info *,
89626         rather than returning a malloc'ed struct group_info *.
89627         All uses changed.  Check for overflow in internal size calculation.
89628
89629         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
89630         rather than xmalloc/xrealloc.
89631         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
89632         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
89633         conformance bug: the old code used a pointer after freeing the
89634         storage that it addressed.
89635         * lib/hash.c (hash_initialize): Simplify the code by using
89636         xalloc_oversized rather than doing it by hand.
89637         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
89638         the buffer preserved.  Use free and xmalloc instead.
89639         * lib/quotearg.c (quotearg_n_options): Likewise.
89640         Use a simpler test for size overflow.  Don't use xalloc_oversized
89641         because unsigned int might be wider than size_t (!); this suggests
89642         that we should switch from unsigned int to size_t for slot numbers.
89643
89644 2003-10-28  Paul Eggert  <eggert@twinsun.com>
89645
89646         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
89647         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
89648         NetBSD kernels.  Requested by Richard Stallman.
89649
89650 2003-10-27  Paul Eggert  <eggert@twinsun.com>
89651
89652         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
89653         to allocate the returned structure.  Do not allocate a subarray,
89654         as x2nrealloc will do that.
89655         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
89656         instead of xnrealloc.
89657         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
89658
89659 2003-10-27  Bruno Haible  <bruno@clisp.org>
89660
89661         * lib/stdbool_.h: Better support for BeOS.
89662
89663 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89664
89665         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
89666         now uses inline.
89667
89668 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89669
89670         * lib/xalloc.h (xalloc_oversized): New static inline function, for
89671         callers that want to do their own size-overflow checking.  Include
89672         <stdbool.h>, since xalloc_oversized returns bool.
89673         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
89674         to use xalloc_oversized.
89675
89676         Add two functions x2realloc, x2nrealloc, for programs that grow
89677         arrays dynamically by doubling their sizes.
89678         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
89679         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
89680         New functions.
89681
89682         Port to C99 semantics for 'inline' of external functions.
89683         Bug reported by Bruno Haible.
89684         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
89685         with the old contents of xnmalloc.
89686         (xnmalloc, xmalloc): Use it.
89687         (xnrealloc_inline): New static inline function,
89688         with the old contents of xnrealloc.
89689         (xnrealloc, xrealloc): Use it.
89690
89691         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
89692         that.
89693
89694 2003-10-26  Karl Berry  <karl@gnu.org>
89695
89696         * config/srclist.txt (COPYING.DOC): no longer available from
89697         /gd/gnuorg; don't know where the ultimate source is.
89698
89699 2003-10-25  Paul Eggert  <eggert@twinsun.com>
89700
89701         Fix several address-calculation bugs in the hash modules,
89702         plus some minor code cleanup.
89703
89704         * lib/hash.h: Include <stdbool.h>, for bool.
89705         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
89706         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
89707         hash_get_n_entries, hash_get_max_bucket_length,
89708         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
89709         hash_rehash): Use size_t rather than unsigned.
89710         * lib/hash.c (struct hash_table, hash_get_n_buckets,
89711         hash_get_n_buckets_used, hash_get_n_entries,
89712         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
89713         hash_get_entries, hash_do_for_each, hash_string, is_prime,
89714         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
89715         Likewise.
89716         (SIZE_MAX): Define if not defined.
89717         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
89718         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
89719         hash_print):
89720         Use const * when possible.
89721         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
89722         (check_tuning): Fix bug: if tuning parameters were very close to
89723         0 or 1, rounding errors could have caused subscript violations.
89724         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
89725         (hash_initialize): Add 'fail:' label
89726         to free table and return NULL, and use it to simplify code.
89727         Use calloc rather than clearing the storage ourself.
89728         (hash_initialize, hash_rehash): Check for arithmetic overflow in
89729         buffer size calculations.
89730         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
89731         Include <stddef.h>, for size_t.
89732         * lib/hash-pjw.c (hash_pjw): Likewise.
89733         Switch to method described by Bruno Haible.
89734         Include <limits.h>, for CHAR_BIT.
89735         (SIZE_BITS): New macro.
89736
89737 2003-10-23  Paul Eggert  <eggert@twinsun.com>
89738
89739         * m4/getline.m4 (AM_FUNC_GETLINE):
89740         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
89741         hosts.  Problem reported by Derek Robert Price in
89742         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
89743         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
89744         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
89745
89746 2003-10-21  Paul Eggert  <eggert@twinsun.com>
89747
89748         * lib/getndelim2.c (getndelim2): When size calculation overflows,
89749         ceiling the allocation at NMAX bytes rather than silently
89750         discarding input bytes before NMAX is reached.  This makes
89751         a difference only if NMAX exceeds SIZE_MAX / 2.
89752
89753         * lib/obstack.c: Merge from glibc.
89754         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
89755         Add libc_hidden_def (_obstack_newchunk).
89756         (_obstack_free) [! defined _LIBC]: Remove.
89757         [defined _LIBC]: Make a strong alias from obstack_free, rather than
89758         a clone of the function body.
89759         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
89760         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
89761
89762         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
89763         glibc.
89764         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
89765         arg to memcpy.
89766
89767         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
89768         (obstack_ptr_grow_fast, obstack_int_grow_fast):
89769         Don't use lvalue casts, as GCC plans to remove support for them
89770         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
89771         was also present in the non-GCC version, indicating that this
89772         code had always been buggy and had never been widely used.
89773         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
89774         Use the fast variant of each macro, rather than copying the
89775         definiens of the fast variant; that way, we'll be more likely to
89776         catch future bugs in the fast variants.
89777
89778 2003-10-20  Bruno Haible  <bruno@clisp.org>
89779
89780         * modules/wait-process: New file.
89781         * MODULES.html.sh (func_all_modules): Add wait-process.
89782
89783 2003-10-20  Bruno Haible  <bruno@clisp.org>
89784
89785         * m4/wait-process.m4: New file.
89786
89787 2003-10-20  Bruno Haible  <bruno@clisp.org>
89788
89789         * lib/wait-process.h: New file, from GNU gettext.
89790         * lib/wait-process.c: New file, from GNU gettext.
89791
89792 2003-10-19  Jim Meyering  <jim@meyering.net>
89793
89794         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
89795         HPUX 10.20.
89796
89797 2003-10-18  Karl Berry  <karl@gnu.org>
89798
89799         * config/config.guess: update from config.
89800
89801 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89802
89803         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
89804         (getgroups): First arg is int, not size_t.
89805         Don't let 'free' mangle errno.
89806
89807 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89808
89809         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
89810
89811 2003-10-16  Karl Berry  <karl@gnu.org>
89812
89813         * config/config.{guess,sub}: update from config.
89814
89815 2003-10-16  Jim Meyering  <jim@meyering.net>
89816
89817         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
89818         memcpy.
89819
89820 2003-10-15  Paul Eggert  <eggert@twinsun.com>
89821
89822         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
89823         (SIZE_MAX): Remove.
89824         (new_exclude, add_exclude_file): Initial size no longer needs to
89825         be a power of 2.
89826         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
89827         our own address arithmetic overflow checking.
89828
89829         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
89830         (fnmatch): Do not alloca more than 2000 wide characters;
89831         instead, use malloc for large buffers.
89832         Check for address arithmetic overflow, and return -1
89833         with errno set to ENOMEM in that case.
89834         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
89835         (NEW_PATTERN): Do not alloca more than 8000 bytes;
89836         instead, return -1.  Check for address arithmetic overflow.
89837
89838 2003-10-14  Paul Eggert  <eggert@twinsun.com>
89839
89840         Handle invalid suffixes and overflow independently, so that
89841         callers can treat them independently as needed.  Fix some bugs in
89842         suffix handling, e.g., "100k@" was not diagnosed as an invalid
89843         suffix for a human-readable blocksize.  The major caller-visible
89844         change is the addition of a new
89845         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
89846         that both overflow and suffix chars were found.
89847
89848         * lib/human.c (humblock): Don't check separately for invalid suffix
89849         char; that is xstrtoumax's job (now that its bug is fixed).
89850         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
89851         INTMAX_MAX]: New macros.
89852         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
89853         TYPE_MAXIMUM): New macros.
89854         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
89855         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
89856         if overflow occurs, as it's what __strtol does and it's more useful
89857         in practice.
89858         (__xstrtol): If __strtol reports some error other than ERANGE,
89859         reflect it to the caller as LONGINT_INVALID.  If it reports
89860         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
89861         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
89862         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
89863         value.
89864         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
89865         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
89866         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
89867         [defined UINTMAX_MAX]: New macros.
89868
89869 2003-10-14  Bruno Haible  <bruno@clisp.org>
89870
89871         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
89872
89873 2003-10-14  Bruno Haible  <bruno@clisp.org>
89874
89875         * m4/sig_atomic_t: New file, from GNU gettext.
89876         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
89877
89878 2003-10-14  Bruno Haible  <bruno@clisp.org>
89879
89880         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
89881         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
89882         Also use volatile where needed.
89883
89884 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89885
89886         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
89887         Change maintainer from Bruno Haible to 'all'.
89888
89889 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89890
89891         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
89892
89893 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89894
89895         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
89896         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
89897         and define in terms of the other primitives.
89898         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
89899         (SIZE_MAX): Define if not already defined.
89900         (array_size_overflow): New function.
89901         (xalloc_die): Abort instead of exiting if 'error' returns.
89902         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
89903         (xmalloc, xrealloc): Use them.
89904         (xcalloc): Check for address arithmetic overflow.
89905         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
89906         a bit faster than strcpy.
89907
89908 2003-10-10  Simon Josefsson  <jas@extundo.com>
89909
89910         * modules/argp (Depends-on): Add restrict and strcase.
89911
89912 2003-10-10  Simon Josefsson  <jas@extundo.com>
89913
89914         * m4/argp.m4: Add AC_C_INLINE.
89915
89916 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89917
89918         Merge getpass from libc, plus a few fixes.
89919
89920         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
89921         Include <stdbool.h>.
89922         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
89923         __fsetlocking to empty.
89924         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
89925         do include <bits/libc-lock.h>.
89926         Do not include <fcntl.h>; not needed.
89927         [_LIBC]: Include <wchar.h>.
89928         (NOTCANCEL_MODE): New macro.
89929         (flockfile, funlockfile) [_LIBC]: New macros.
89930         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
89931         [!_LIBC]: New macros.
89932         (call_fclose): New function.
89933         (getpass): Use it.  Save tty stream separately; this simplifies the
89934         code and makes it more reliable if stdin happens to equal stdout.
89935         Invoke __fsetlocking on tty.
89936         Handle thread cancellation if needed.
89937         Namespace cleanup (use __tcgetattr, __getline).
89938         Use bool for Booleans.
89939         [USE_IN_LIBIO]: Handle wide streams.
89940         [!_LIBC]: Unconditionally do the fseek, since we don't know what
89941         stream might go where.
89942
89943         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
89944         doesn't have to include <stdio.h> before us.
89945         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
89946         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
89947         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
89948         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
89949         if not declared, so that we can use getpass.c code from libc without
89950         rewriting it.
89951         (flockfile, ftrylockfile, funlockfile): New macros.
89952
89953 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89954
89955         * modules/getpass: Depend on stdbool.
89956
89957 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89958
89959         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
89960
89961 2003-10-07  Karl Berry  <karl@gnu.org>
89962
89963         * config/config.{guess,sub}: update from config.
89964
89965 2003-10-06  Jim Meyering  <jim@meyering.net>
89966             Bruno Haible  <bruno@clisp.org>
89967
89968         This lets translators provide better translations for the
89969         "Written by ..." part of --version output.
89970         * lib/version-etc.h: Include stdarg.h.
89971         (version_etc_copyright): Declare as readonly.
89972         (version_etc): Make this function variadic with a NULL-terminated list
89973         of author name strings.
89974         (version_etc_va): New declaration.
89975         * lib/version-etc.c: Include stdarg.h, stdlib.h.
89976         (version_etc_copyright): Declare as readonly.
89977         (version_etc_va): New function. Provide a different translatable string
89978         for each possible number of authors < 10. Abbreviate when there are 10
89979         authors or more.
89980         (version_etc): Make this function variadic. Call version_etc_va.
89981         Suggestion from Gary V. Vaughan.
89982
89983         * lib/long-options.h (parse_long_options): Change prototype: the
89984         authors string is moved to the end and becomes variadic.
89985         * lib/long-options.c: Include stdarg.h.
89986         (parse_long_options): Make this function variadic, too.
89987         Call version_etc_va, not version_etc.
89988
89989 2003-10-06  Bruno Haible  <bruno@clisp.org>
89990
89991         * modules/version-etc-2: Remove file.
89992         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
89993
89994 2003-10-06  Bruno Haible  <bruno@clisp.org>
89995
89996         * modules/fatal-signal: New file.
89997         * MODULES.html.sh (func_all_modules): Add fatal-signal.
89998
89999 2003-10-06  Bruno Haible  <bruno@clisp.org>
90000
90001         * m4/fatal-signal.m4: New file.
90002         * m4/signalblocking.m4: New file, from GNU gettext.
90003
90004 2003-10-06  Bruno Haible  <bruno@clisp.org>
90005
90006         * lib/version-etc-2.h: Remove file.
90007         * lib/version-etc-2.c: Remove file.
90008
90009 2003-10-06  Bruno Haible  <bruno@clisp.org>
90010
90011         * lib/fatal-signal.h: New file, from GNU gettext.
90012         * lib/fatal-signal.c: New file, from GNU gettext.
90013
90014 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90015
90016         * README: Rework advice for preventing empty .o files.
90017         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90018         not <sys/types.h>.
90019
90020 2003-10-04  Karl Berry  <karl@gnu.org>
90021
90022         * lib/argp*: update from libc.
90023
90024 2003-10-04  Karl Berry  <karl@gnu.org>
90025
90026         * config/config.{guess,sub}: update from config.
90027
90028 2003-10-02  Bruno Haible  <bruno@clisp.org>
90029
90030         * modules/lchown (Include): Add lchown.h.
90031         * modules/time_r (Include): Use "..." syntax.
90032         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90033
90034 2003-10-01  Simon Josefsson  <jas@extundo.com>
90035
90036         * MODULES.html.sh (func_all_modules): Move gethostname from section
90037         'based on' to section 'lacking' POSIX:2001.
90038
90039 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90040
90041         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90042         to output mode on the same stream.
90043
90044 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90045
90046         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90047         Fix arg typo in previous patch.
90048
90049 2003-09-28  Jim Meyering  <jim@meyering.net>
90050
90051         * lib/error.c: Correct cpp indentation.
90052
90053 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90054
90055         * modules/free: New file.
90056
90057 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90058
90059         * m4/free.m4: New file.
90060
90061 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90062
90063         * lib/minmax.h (MIN, MAX)
90064         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90065         Omit the special code that used __typeof__, since we worry that
90066         it could be more trouble than it's worth.  See:
90067         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90068         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90069
90070         * lib/free.c: New file.
90071
90072 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90073
90074         Trivial fixes to Makefile.am parts of module listings.
90075         * modules/strstr: Append strstr.h to lib_SOURCES.
90076         * modules/strcase: Likewise, for strcase.h.
90077
90078 2003-09-27  Karl Berry  <karl@gnu.org>
90079
90080         * config/mkinstalldirs: update from automake.
90081
90082 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90083
90084         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90085         (error_tail): Do not loop, reallocating temporary buffer, since
90086         the output cannot contain more wide characters than the input
90087         contains bytes, the size must be big enough already.  This avoids
90088         one potential size overflow calculation.  Check for size overflow
90089         when calculating temporary buffer size.  Free temporary buffer
90090         when done, if it was allocated with malloc; this plugs a memory
90091         leak.  Remove casts from void * to pointers, that are no longer
90092         needed now that we're assuming C89 or better.
90093
90094         Merge error changes from glibc.
90095
90096         * lib/error.c, error.h: Update copyright notice header to match glibc.
90097         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90098         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90099         Disable cancellation while printing error.
90100         * lib/error.h: Prepend __ to parameter names.
90101
90102 2003-09-26  Jim Meyering  <jim@meyering.net>
90103
90104         * lib/error.c (error_tail): Move some declarations
90105         into inner scope where the local variables are used.
90106
90107 2003-09-26  Bruno Haible  <bruno@clisp.org>
90108
90109         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90110         stpncpy().
90111         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90112
90113 2003-09-26  Bruno Haible  <bruno@clisp.org>
90114
90115         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90116         (stpncpy): Define as alias for gnu_stpncpy.
90117         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90118
90119 2003-09-25  Simon Josefsson  <jas@extundo.com>
90120
90121         * lib/xgetdomainname.h: New file.
90122         * lib/xgetdomainname.c: New file.
90123
90124 2003-09-25  Simon Josefsson  <jas@extundo.com>
90125             Bruno Haible  <bruno@clisp.org>
90126
90127         * modules/getdomainname: New file.
90128         * modules/xgetdomainname: New file.
90129         * MODULES.html.sh (func_all_modules): Add getdomainname,
90130         xgetdomainname.
90131
90132 2003-09-25  Simon Josefsson  <jas@extundo.com>
90133             Bruno Haible  <bruno@clisp.org>
90134
90135         * m4/getdomainname.m4: New file.
90136
90137 2003-09-25  Simon Josefsson  <jas@extundo.com>
90138             Bruno Haible  <bruno@clisp.org>
90139
90140         * lib/getdomainname.h: New file.
90141         * lib/getdomainname.c: New file.
90142
90143 2003-09-25  Karl Berry  <karl@gnu.org>
90144
90145         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90146
90147 2003-09-25  Karl Berry  <karl@gnu.org>
90148
90149         * config/install-sh: update from automake.
90150
90151 2003-09-25  Bruno Haible  <bruno@clisp.org>
90152
90153         * modules/version-etc-2: New file, from modules/version-etc with
90154         modifications.
90155         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90156
90157 2003-09-25  Bruno Haible  <bruno@clisp.org>
90158
90159         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90160         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90161
90162 2003-09-24  Simon Josefsson  <jas@extundo.com>
90163
90164         * modules/xgethostname: Add xgethostname.h.
90165
90166 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90167
90168         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90169         the buffer associated with the argument.  Bug reported by
90170         Simon Josefsson.
90171
90172 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90173
90174         * README: Document assumptions that 'int' is at least 32 bits
90175         wide, that integer arithmetic is 2's complement without overflow,
90176         that there are no holes in integer values, that adding sizes of
90177         two nonoverlapping objects can't overflow, and that all-bits-zero
90178         yields scalar zero.  Fix spelling and capitalization typos.
90179
90180 2003-09-19  Karl Berry  <karl@gnu.org>
90181
90182         * lib/argp.h: update from libc.
90183
90184 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90185
90186         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90187         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90188         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90189
90190 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90191
90192         * gnulib-tool: Use "test -h", not "test -L", for portability
90193         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90194         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90195         (sed_extract_prog): Issue s commands one-by-one, rather than
90196         using \| in one s command.
90197
90198 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90199
90200         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90201         input error, instead of returning NULL the next time we are called
90202         (and therefore losing track of errno).
90203
90204 2003-09-16  Bruno Haible  <bruno@clisp.org>
90205
90206         * gnulib-tool (func_create_testdir): Warn about duplicated
90207         dependencies.
90208
90209 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90210
90211         * modules/argmatch, modules/fatal, modules/obstack,
90212         modules/xalloc, modules/xgethostname: Sort dependencies by
90213         importance, not alphabetically.
90214
90215 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90216
90217         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90218         fails, so that the caller gets the proper errno.
90219
90220         * lib/readutmp.c (read_utmp): Likewise.
90221         Check for fstat error.  Close stream and free storage
90222         when failing.
90223
90224 2003-09-14  Karl Berry  <karl@gnu.org>
90225
90226         * config/srclist.txt (strdup.c): disable for c89 changes.
90227
90228 2003-09-14  Jim Meyering  <jim@meyering.net>
90229
90230         * lib/getloadavg.c: Correct cpp indentation.
90231         * lib/strdup.c: Likewise.
90232         * lib/vasnprintf.c: Likewise.
90233
90234 2003-09-14  Bruno Haible  <bruno@clisp.org>
90235
90236         * modules/fwriteerror: New file.
90237         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90238
90239 2003-09-14  Bruno Haible  <bruno@clisp.org>
90240
90241         * lib/fwriteerror.h: New file.
90242         * lib/fwriteerror.c: New file.
90243
90244 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90245
90246         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90247         modules/xgethostname, modules/xalloc: Depend on exit.
90248
90249 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90250
90251         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90252
90253         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90254         and AC_MINIX, too, so that their extensions are available.
90255
90256         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90257         This macro has been superseded by gl_BACKUPFILE.
90258
90259         More patches to assume C89 or better.
90260
90261         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90262
90263         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90264         unconditionally.
90265         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90266         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90267         Include <string.h>, <stdlib.h> unconditionally.
90268         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90269         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90270         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90271         headers or for string.h.
90272         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90273         or strtoul.
90274
90275         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90276         headers.
90277         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90278         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90279         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90280         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90281         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90282         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90283         memcpy, memset.
90284         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90285         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90286         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90287         strtol.
90288         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90289         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90290         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90291         strtoul.
90292
90293 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90294
90295         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90296         * lib/obstack.c [!defined _LIBC]: Likewise.
90297         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90298         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90299         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90300
90301         More changes to assume C89 or better.
90302
90303         * lib/error.c (error_tail): Assume vprintf.
90304
90305         * lib/argmatch.c (getenv): Remove decl.
90306         * lib/progreloc.c (get_full_program_name): Define via prototype.
90307         * lib/setenv.c (clearenv): Likewise.
90308         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90309         needed.
90310         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90311         (malloc, memcpy): Remove decls.
90312         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90313         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90314         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90315         (memcpy): Remove macro.
90316         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90317         (__P): Remove.  All uses removed.
90318         (PTR): Remove.  All uses changed to void *.
90319         (CHAR_BIT, NULL): Remove.
90320         (spaces, zeros, memset_space, memset_zero)
90321         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90322         Remove.
90323         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90324         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90325         Define with prototype.
90326         Remove now-unnecessary prototype decl.
90327         (extra_args_spec): Assume ANSI C.  All uses changed.
90328         (extra_args_spec_iso): Remove.
90329         (my_strftime, emacs_strftimeu): Define via prototype.
90330         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90331         unconditionally.
90332         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90333         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90334         (strtoul, strtol): Remove decls.
90335         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90336         LONG_MAX): Remove.
90337         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90338         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90339         (LOCALE_PARAM_PROTO): New macro.
90340         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90341         (INTERNAL (strtol), strtol): Define with a prototype.
90342         (PARAMS): Remove.  All uses removed.
90343         * lib/tempname.c: Include <string.h> unconditionally.
90344         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90345         * lib/xgethostname.c (main): Define with a prototype.
90346         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90347         Include <stdlib.h> unconditionally.
90348         (calloc, malloc, realloc, free): Remove decls.
90349         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90350         Include <stdlib.h> unconditionally.  Sort include file names.
90351         (strtod): Remove.
90352         (xstrtod): Define with a prototype.
90353         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90354         (strtol, strtoul): Remove decls.
90355
90356 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90357
90358         More patches to assume C89 or better.
90359         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90360         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90361         string.h, memchr, STDC_HEADERS.
90362
90363 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90364
90365         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90366         Include <stdlib.h>, <string.h> unconditionally.
90367         Remove now-unnecessary cast to char *.
90368         * lib/strnlen.c: Include <string.h> unconditionally.
90369         * lib/yesno.c (yesno): Define with a prototype.
90370
90371 2003-09-11  Bruno Haible  <bruno@clisp.org>
90372
90373         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90374
90375 2003-09-10  Jim Meyering  <jim@meyering.net>
90376
90377         * lib/error.c: Correct indentation of cpp directives.
90378
90379 2003-09-10  Bruno Haible  <bruno@clisp.org>
90380
90381         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90382         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90383         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90384         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90385         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90386         <stdlib.h> and <string.h> checks.
90387         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90388         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90389
90390 2003-09-10  Bruno Haible  <bruno@clisp.org>
90391
90392         * lib/strcspn.c: Include <string.h> unconditionally.
90393         * lib/strpbrk.c: Include <string.h> unconditionally.
90394         * lib/strstr.c: Include <string.h> unconditionally.
90395         * lib/unicodeio.c: Include <string.h> unconditionally.
90396         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90397         * lib/unsetenv.c: Likewise.
90398         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90399         * lib/yesno.c: Include <stdlib.h> unconditionally.
90400         (rpmatch): Add prototype.
90401
90402 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90403
90404         More patches to assume C89 or better.
90405         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90406         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90407         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90408         or for string.h.
90409         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90410         stdlib.h.
90411         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90412         C headers.
90413         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90414         string.h.
90415         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90416         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90417         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90418         or for string.h.
90419         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90420         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90421         C headers.
90422         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90423         memcpy.
90424         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90425         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90426         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90427         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90428         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90429         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90430         string.h, free.
90431         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90432         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90433         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90434         C headers, or for string.h.
90435         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90436         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90437         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90438         headers, memory.h, stdlib.h, string.h, strings.h.
90439         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90440         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90441         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90442         strchr.
90443         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90444         headers, memory.h, string.h.
90445         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90446         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90447         free.
90448         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90449         headers.
90450         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90451         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90452         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90453         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90454         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90455
90456 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90457
90458         More K&R removal.
90459
90460         * lib/acosl.c (main): Use a prototype.
90461         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90462         tanl.c: Likewise.
90463
90464         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90465
90466         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90467         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90468         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90469         with a prototype.
90470         * lib/getopt.c (const): Remove macro.
90471         Include <string.h> unconditionally.
90472         (my_index): Remove; all uses changed to strchr.
90473         (strlen): Remove decl.
90474         (exchange): Remove forward decl; no longer needed.
90475         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90476         Define with prototype.
90477         * lib/getopt1.c (const): Remove macro.
90478         (getopt_long, getopt_long_only, main): Define with prototype.
90479
90480         * lib/getugroups.c: Include <string.h> unconditionally.
90481
90482         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90483         (getusershell, setusershell, endusershell, readname, main):
90484         Define with prototypes.
90485
90486         * lib/group-member.c: Include group-member.h first.
90487         Include <stdlib.h> unconditionally.
90488
90489         * lib/hard-locale.c: Include hard-locale.h first.
90490         Include <stdlib.h>, <string.h> unconditionally.
90491
90492         * lib/hash.c (free, malloc): Remove decls.
90493         Include <stdlib.h> unconditionally.
90494
90495         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90496         (getenv): Do not declare.
90497
90498         * lib/idcache.c: Include <string.h> unconditionally.
90499
90500         * lib/long-options.c: Include long-options.h first, to test interface.
90501         Include <stdlib.h> unconditionally.
90502
90503         * lib/makepath.c: Include makepath.h first, to test interface.
90504         Include <stdlib.h> and <string.h> unconditionally.
90505
90506         * lib/linebuffer.c: Include <stdlib.h>.
90507         (free): Remove decl.
90508
90509         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90510         stddef.h. rpl_malloc returns void *, not char *.
90511         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90512         prototype.
90513
90514         * lib/md5.h: Include <limits.h> unconditionally.
90515         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90516         (__P): Remove; all uses removed.
90517         * lib/md5.c: Include "md5.h" first.
90518         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90519         md5_buffer, md5_process_bytes, md5_process_block):
90520         Define with prototypes.
90521         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90522         * lib/sha.c: Include "sha.h" first.
90523         Include <stdlib.h>, <string.h> unconditionally.
90524
90525         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90526         * lib/memcmp.c (__ptr_t): Likewise.
90527         * lib/memrchr.c (__ptr_t): Likewise.
90528         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90529         Include <string.h> unconditionally.
90530         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90531         * lib/memchr.c: Include <stdlib.h> unconditionally.
90532         * lib/memchr.c (LONG_MAX): Remove.
90533         * lib/memrchr.c (LONG_MAX): Likewise.
90534         * lib/memchr.c (__memchr): Define via a prototype.
90535         * lib/memrchr.c (__memrchr): Likewise.
90536         * lib/memcmp.c (__P): Remove, and remove all uses.
90537         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90538         Remove forward decls; no longer needed.
90539         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90540         Use types required by C89 in prototype.
90541
90542         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90543         * lib/savedir.c: Likewise.
90544         * lib/mkdir.c (free): Remove decl.
90545         * lib/rmdir.c (rmdir): Define with a prototype.
90546         * lib/savedir.c: Include savedir.h first, to test interface.
90547
90548         * lib/mktime.c (STDC_HEADERS): Remove.
90549         Include <stdlib.h>, <string.h> unconditionally.
90550
90551         * lib/modechange.c: Include <stdlib.h> unconditionally.
90552         (malloc): Remove decl.
90553
90554         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90555         (free): Remove decl.
90556
90557         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90558         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90559         (This type really should be intptr_t, but that's a C99ism.)
90560         (_obstack_memcpy): Remove: all uses changed to memcpy.
90561         Include <string.h> unconditionally.
90562         (struct obstack): Assume __STDC__ for types of members
90563         chunkfun, freefun, extra_arg.
90564         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90565         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90566         obstack_begin, obstack_specify_allocation,
90567         obstack_specify_allocation_with_arg, obstack_chunkfun,
90568         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90569         Remove unprototyped decls and the macros that use them.
90570         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90571         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90572         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90573         (defined __STDC__ && __STDC__)]:
90574         Remove nonprototyped code.
90575         Include <stdlib.h> unconditionally.
90576         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90577         _obstack_allocated_p, _obstack_free, obstack_free,
90578         _obstack_memory_used, print_and_abort):
90579         Define using prototypes.
90580         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90581         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90582         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90583         obstack_next_free, obstack_object_size, obstack_room) [0]:
90584         Remove unused, unprototyped code.
90585
90586         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
90587
90588         * lib/physmem.c (physmem_total, physmem_available, main): Define
90589         with prototypes.
90590
90591         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
90592         (main): Define with a prototype.
90593
90594         * lib/posixver.c (getenv): Remove decl.
90595
90596         * lib/putenv.c (malloc): Returns void *, not char *.
90597         Include <string.h> unconditionally.
90598         (strchr, memcpy, NULL): Do not define.
90599
90600         * lib/readtokens.c: Include readtokens.h first, to test interface.
90601         Include <stdlib.h>, <string.h> unconditionally.
90602         (init_tokenbuffer): Define with a prototype.
90603
90604         * lib/regex.c (PARAMS): Remove.  All uses removed.
90605         All uses of _RE_ARGS removed, too.
90606         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
90607         unconditionally.
90608         (bzero): Assume memset exists.
90609         (memcmp, memcpy, NULL): Remove.
90610         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
90611         char, or assignments to local vars of type signed char.
90612         (init_syntax_once, PREFIX(extract_number_and_incr),
90613         PREFIX(print_partial_compiled_pattern),
90614         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
90615         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
90616         PREFIX(regex_grow_registers), PREFIX(regex_compile),
90617         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
90618         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
90619         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
90620         wcs_compile_range, byte_compile_range, truncate_wchar,
90621         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
90622         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
90623         count_mbs_length, wcs_re_match_2_internal,
90624         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
90625         PREFIX(alt_match_null_string_p),
90626         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
90627         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
90628         regfree, PREFIX(extract_number)): Define with prototype.  Remove
90629         now-unnecessary declaration, if any.
90630         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
90631         regcomp, regexec):
90632         Remove now-unnecessary casts among pointer types.
90633         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
90634
90635         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
90636         (free): Remove decl.
90637
90638         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
90639
90640         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
90641         (free): Remove decl.
90642
90643         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
90644         * lib/xgetcwd.c: Likewise.
90645
90646         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
90647         (free): Remove decl.
90648
90649         * lib/strchrnul.c (strchrnul): Define with a prototype.
90650         Fix bug: c_in was not converted to char before searching.
90651
90652         The following changes are not K&R related:
90653
90654         * lib/group-member.h: Include <sys/types.h>, so that this file is
90655         self-contained.
90656         * lib/makepath.h: Likewise.
90657
90658         * lib/getusershell.c (readname, default_index, line_size, readname):
90659         Use size_t, not int, for sizes.
90660         (readname): If the size overflows, report an error instead of
90661         looping forever.
90662
90663 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90664
90665         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
90666         libc.
90667
90668 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90669
90670         * README: New section: portability guidelines.
90671
90672 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90673
90674         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
90675         C89 spec.
90676
90677 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90678
90679         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
90680
90681 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90682
90683         Assume C89 or better; remove K&R cruft.
90684         A few of these changes were first proposed by Derek Robert Price
90685         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
90686
90687         * lib/addext.c: Include <string.h> unconditionally.
90688         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
90689         Don't declare getenv or malloc.
90690
90691         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
90692         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
90693         (NULL): Remove.
90694         (find_stack_direction, alloca): Use prototypes.
90695
90696         * lib/atexit.c (atexit): Define using a prototype.
90697
90698         * lib/basename.c, dirname.c, stripslash.c:
90699         Include <string.h> unconditionally.
90700
90701         * lib/bcopy.c: Include <stddef.h>.
90702         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
90703
90704         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
90705
90706         * lib/error.h (error, error_at_line, error_print_progname)
90707         [! (defined (__STDC__) && __STDC__)]: Remove decls.
90708         * lib/error.c: Include error.h first, to check interface.
90709         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90710         (VA_START): Remove; all uses changeed to va_start.
90711         (exit, strerror): Remove decls.
90712         (error_print_progname): Prototype uncondionally.
90713         Don't include <errno.h>; no longer needed.
90714         (private_strerror): Remove.
90715         (error_tail): Always define.
90716         (error, error_at_line): Assume C89 or better; always use prototypes.
90717         * lib/fatal.c: Include "fatal.h" first, to test interface.
90718         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90719         (VA_START): Remove; all uses changed to va_start.
90720         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
90721         this case.
90722         (exit): Remove decl.
90723         (fatal): Prototype unconditionally.  Assume va_start works.
90724         Abort at end, to pacify gcc.
90725
90726         * lib/euidaccess.c (main): Define with a prototype.
90727
90728         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
90729
90730         * lib/exitfail.c: Include <stdlib.h> unconditionally.
90731
90732         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
90733         prototypes.
90734         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
90735         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
90736         (getenv): Remove decl.
90737         (fnmatch): Define using a prototype.
90738         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
90739         (FCT): Define using a prototype.
90740
90741         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
90742
90743         * lib/gethostname.c: Include <stddef.h>.
90744         (gethostname): Define with prototype.  Length is size_t, not int.
90745
90746 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90747
90748         Assume C89 or better; remove K&R cruft.
90749         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
90750         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
90751         string.h, getenv, malloc.
90752         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
90753         headers.
90754         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
90755         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
90756         do not check for strerror.
90757         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
90758         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
90759         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
90760         do not check for doprnt or vprintf.
90761         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
90762         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
90763
90764 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90765
90766         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
90767         getversion.c should have been removed then, but was accidentally
90768         preserved.
90769
90770         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
90771         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
90772
90773 2003-09-08  Karl Berry  <karl@gnu.org>
90774
90775         * config/config.sub, config.guess, srclistvars.sh: update from savannah
90776                 config, forget about prep.
90777
90778         * config/depcomp, missing: update from automake.
90779
90780 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90781
90782         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
90783         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90784
90785 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90786
90787         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
90788         copy_tm_result.  Bug reported by Simon Josefsson in
90789         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90790
90791 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90792
90793         * m4/time_r.m4: New file.
90794         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
90795         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
90796         is. Check for timegm declaration.
90797         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
90798         Do not check for gmtime_r.
90799         Replace mktime if __mktime_internal does not exist and if mktime
90800         hasn't been replaced already.
90801
90802 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90803
90804         * lib/time_r.c, lib/time_r.h: New files.
90805
90806         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
90807         __localtime_r.
90808         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
90809         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
90810
90811         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
90812         __gmtime_r.
90813         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
90814         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
90815         Include <time_r.h>.
90816
90817         * lib/timegm.c: Switch to glibc implementation, with the following
90818         changes:
90819         [defined HAVE_CONFIG_H]: Include <config.h>.
90820         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
90821         (__mktime_internal) [!defined _LIBC]: New decl.
90822         (__gmtime_r) [!defined _LIBC]: New macro and function.
90823         (timegm): Use a prototype, since gnulib assumes C89.
90824         Do not bother declaring tmp to be const, as it's not really usefu.
90825         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
90826         (timegm): Declare only if HAVE_DECL_TIMEGM.
90827
90828 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90829
90830         * MODULES.html.sh (func_all_modules): Add time_r.
90831         * modules/time_r: New file.
90832         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
90833         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
90834
90835 2003-09-03  Paul Eggert  <eggert@twinsun.com>
90836
90837         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
90838         Bug reported by Lute Kamstra in
90839         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
90840
90841         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
90842         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
90843         course with correspondingly smaller numbers for tomorrow and
90844         yesterday.  From Tadayoshi Funaba.  Originally installed into
90845         sh-utils on 1999-08-07, but the patch got lost (I guess during the
90846         coreutils merge?).
90847
90848 2003-08-31  Simon Josefsson  <jas@extundo.com>
90849
90850         * modules/timegm: New file.
90851         * MODULES.html.sh (func_all_modules): Add timegm.
90852
90853 2003-08-31  Simon Josefsson  <jas@extundo.com>
90854
90855         * m4/timegm.m4: New file.
90856
90857 2003-08-31  Simon Josefsson  <jas@extundo.com>
90858
90859         * lib/timegm.h: New file.
90860         * lib/timegm.c: New file.  Based on
90861         wget-1.8.2/src/http.c:mktime_from_utc.
90862
90863 2003-08-31  Karl Berry  <karl@gnu.org>
90864
90865         * lib/argp.h: update from libc.
90866
90867 2003-08-28  Bruno Haible  <bruno@clisp.org>
90868
90869         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
90870         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
90871         followed by '#define fnmatch fnmatch_posix' gives an error.
90872
90873 2003-08-28  Bruno Haible  <bruno@clisp.org>
90874
90875         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
90876         warning on QNX, which defines O_BINARY to 000000.
90877
90878 2003-08-27  Jim Meyering  <jim@meyering.net>
90879
90880         * m4/mkstemp.m4: Require that the system mkstemp be able to create
90881         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
90882         would fail after 32.  Reported by Danny Levinson.  Details here:
90883         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
90884
90885 2003-08-24  Bruno Haible  <bruno@clisp.org>
90886
90887         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
90888         MSVC7 <stdio.h> is included later.
90889
90890 2003-08-22  Simon Josefsson  <jas@extundo.com>
90891
90892         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
90893
90894 2003-08-20  Karl Berry  <karl@gnu.org>
90895
90896         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
90897
90898 2003-08-20  Bruno Haible  <bruno@clisp.org>
90899
90900         * modules/progname: New file.
90901         * MODULES.html.sh (func_all_modules): Add progname.
90902
90903 2003-08-20  Bruno Haible  <bruno@clisp.org>
90904
90905         * lib/progname.h: New file, from GNU gettext.
90906         * lib/progname.c: New file, from GNU gettext.
90907         * lib/progreloc.c: New file, from GNU gettext.
90908
90909 2003-08-19  Jim Meyering  <jim@meyering.net>
90910
90911         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
90912         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
90913
90914 2003-08-19  Bruno Haible  <bruno@clisp.org>
90915
90916         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
90917         more.
90918
90919 2003-08-19  Bruno Haible  <bruno@clisp.org>
90920
90921         * lib/xstrdup.c: Assume <string.h> exists.
90922
90923 2003-08-18  Paul Eggert  <eggert@twinsun.com>
90924
90925         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
90926         in makefile rules.
90927
90928 2003-08-18  Jim Meyering  <jim@meyering.net>
90929
90930         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
90931         * m4/lib-ld.m4: Likewise.
90932
90933 2003-08-18  Jim Meyering  <jim@meyering.net>
90934
90935         * lib/setenv.h: Indent nested cpp directive.
90936         * lib/vasnprintf.c: Remove trailing blanks.
90937
90938 2003-08-17  Simon Josefsson  <jas@extundo.com>
90939
90940         * modules/xstrndup: New file.
90941         * MODULES.html.sh (func_all_modules): Add xstrndup.
90942
90943 2003-08-17  Simon Josefsson  <jas@extundo.com>
90944
90945         * modules/argp: Fix autoconf macro name. Add more dependencies.
90946
90947 2003-08-17  Simon Josefsson  <jas@extundo.com>
90948
90949         * m4/xstrndup.m4: New file.
90950
90951 2003-08-17  Simon Josefsson  <jas@extundo.com>
90952
90953         * m4/argp.m4: New file.
90954
90955 2003-08-17  Simon Josefsson  <jas@extundo.com>
90956             Bruno Haible  <bruno@clisp.org>
90957
90958         * lib/xstrndup.h: New file.
90959         * lib/xstrndup.c: New file.
90960
90961 2003-08-17  Bruno Haible  <bruno@clisp.org>
90962
90963         * modules/strndup (Files, Include): Add lib/strndup.h.
90964
90965 2003-08-17  Bruno Haible  <bruno@clisp.org>
90966
90967         * modules/euidaccess (Files): Add lib/euidaccess.h.
90968
90969 2003-08-17  Bruno Haible  <bruno@clisp.org>
90970
90971         * lib/strndup.h: New file.
90972
90973 2003-08-17  Bruno Haible  <bruno@clisp.org>
90974
90975         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
90976         like AC_GNU_SOURCE.
90977         * modules/extensions (configure.ac): Comment out the invocation of
90978         gl_USE_SYSTEM_EXTENSIONS.
90979
90980 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90981
90982         Merges from coreutils, etc.
90983         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
90984         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
90985         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
90986         fixing a typo.
90987         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
90988         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
90989
90990 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90991
90992         Document merge from coreutils.
90993         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
90994         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
90995         * modules/utime: Add m4/utimes-null.m4.
90996
90997 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90998
90999         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91000         space, undoing this 2003-08-12 change:
91001         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91002
91003 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91004
91005         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91006         strtoul.c from libc, undoing this 2003-08-12 change:
91007         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91008
91009 2003-08-16  Jim Meyering  <jim@meyering.net>
91010
91011         Merges from coreutils.
91012         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91013         prefix.  Adjust cache variables similarly.  Create 500 rather than
91014         just 300 files, to exercise bug on Darwin6.5, too.
91015         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91016         $missing_dir.
91017         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91018         AM_SYS_POSIX_TERMIOS.
91019         Reported by mkc@mathdogs.com.
91020         Also change use of $am_cv_sys_posix_termios
91021         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91022         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91023         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91024         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91025         in /proc/mounts until it finds one with matching device number.  This
91026         is unnecessary when the FILE argument *is* a mount point.  No stat call
91027         is necessary in that case.  So, disable the statvfs-testing code on
91028         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91029         as RedHat bug# 84846.
91030         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91031         to 1MB, so as not to render systems with no stack size limit (e.g.,
91032         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91033         Include <unistd.h>.  On some systems,
91034         it is required for the definition of _SC_PAGESIZE.
91035
91036 2003-08-16  Jim Meyering  <jim@meyering.net>
91037
91038         Merge from coreutils.
91039         * lib/xstrtoimax.c: #else #if -> #elif.
91040         * lib/xstrtoumax.c: Likewise.
91041
91042 2003-08-16  Jim Meyering  <jim@meyering.net>
91043
91044         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91045         * m4/utimes.m4: Removed.
91046         * m4/utimes-null.m4: Renamed from utimes.m4.
91047
91048         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91049         to 1MB, so as not to render systems with no stack size limit (e.g.,
91050         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91051         Include <unistd.h>.  On some systems,
91052         it is required for the definition of _SC_PAGESIZE.
91053
91054 2003-08-16  Jim Meyering  <jim@meyering.net>
91055         and Paul Eggert  <eggert@cs.ucla.edu>
91056
91057         Merges from coreutils, etc.
91058
91059         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91060         using the latest version from cvs.  This avoids problems with #line
91061         directives using a vendor (Sun) compiler.
91062         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91063         Don't set GETGROUPS_LIB here; now it's
91064         done via getgroups.m4's wrapper function.
91065         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91066         rather than just in sh-util/configure.in, so that the
91067         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91068         same.
91069         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91070         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91071         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91072         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91073         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91074         Remove code that is now done by the newly-required macros.
91075         Append $(EXEEXT) to DF_PROG.
91076         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91077         Do not invoke or require the following here,
91078         since prereq.m4 or some gnulib .m4 now does this for us:
91079         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91080         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91081         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91082         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91083         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91084         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91085         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91086         AC_FUNC_OBSTACK.
91087         Do not replace the following functions, as this is now the job
91088         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91089         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91090         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91091         atexit getpass, strdup, getpagesize.
91092         Replace 'raise'.
91093         Do not check for the following functions, as this is now the job
91094         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91095         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91096         setregid.
91097         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91098         Check for sys/sysctl.h.
91099         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91100         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91101         of checking for ssize_t ourselves.
91102
91103         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91104         Require every macro that gnulib/modules/* suggests for us.
91105         (jm_PREREQ_ADDEXT): New macro.
91106         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91107         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91108
91109         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91110         (gl_PHYSMEM): Use it.
91111         Also check for `table' function.
91112         Check for new headers and functions.
91113         Add check for sys/sysmp.h.
91114         With suggestions from Kaveh Ghazi.
91115         Ignore headers that are present but cannot be compiled.  This
91116         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91117         C 5.4.
91118
91119 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91120
91121         Document merge from coreutils.
91122         * modules/userspec: Depend on posixver.
91123         * modules/strftime: Depend on tzset.
91124
91125 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91126
91127         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91128         rather than tab, after '#' in shell-script copyright notices.
91129         Suggested by Bruno Haible.
91130
91131 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91132
91133         * config/srclist-update: Use three spaces, rather than tab, after '#'
91134         in shell-script copyright notices.  Suggested by Bruno Haible.
91135         Remove unnecessary parenthesization in regular expression.
91136
91137 2003-08-15  Jim Meyering  <jim@meyering.net>
91138
91139         Merge from coreutils.
91140         * lib/xgethostname.c: Include <stdlib.h>.
91141         (xghostname): Don't exit for anything other than memory-related
91142         failure; just return NULL.
91143         * lib/userspec.c: Include "posixver.h".
91144         (parse_user_spec): Accept `.' as a separator only
91145         in pre-POSIX-200112 mode.
91146         * lib/strtoimax.c: Use #elif rather than #else #if.
91147         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91148         Remove function, now that we can rely on a working tzset function.
91149         [!_LIBC]: Ensure that the required autoconf test has been run.
91150         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91151         Use underlying_strftime for %r.
91152         * lib/sha.c: Merge in some clean-up and optimization changes from
91153         glibc.
91154         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91155         Ensure that it is a multiple of 64.
91156         Rearrange loop exit tests so as to avoid performing an
91157         additional fread after encountering an error or EOF.
91158         * lib/realloc.c: Update copyright date.
91159
91160 2003-08-15  Jim Meyering  <jim@meyering.net>
91161         and Paul Eggert  <eggert@twinsun.com>
91162
91163         Merge from coreutils.
91164         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91165         member but strut utmpx does not.  Needed for AIX 4.3.3.
91166         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91167
91168 2003-08-15  Jim Meyering  <jim@meyering.net>
91169         and Paul Eggert  <eggert@cs.ucla.edu>
91170
91171         Merges from coreutils, etc.
91172         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91173         Require gl_FUNC_TZSET_CLOBBER.
91174         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91175         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91176         members.
91177
91178 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91179
91180         Help the merge from coreutils.
91181         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91182         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91183         * m4/tzset.m4: Use it too.
91184
91185 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91186
91187         * modules/tzset: New file.
91188
91189 2003-08-14  Jim Meyering  <jim@meyering.net>
91190
91191         Merges from coreutils.
91192         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91193         variable names, rather than @FNMATCH_H@.
91194         * modules/alloca: Likewise for $(ALLOCA_H).
91195
91196         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91197         the three copies of the literal target, `fnmatch.h'.
91198         * modules/alloca (alloca.h): Likewise.
91199
91200 2003-08-14  Jim Meyering  <jim@meyering.net>
91201
91202         Merge from coreutils.
91203         * m4/tzset.m4: New file.
91204         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91205         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91206         otherwise, AIX 5.1 systems would end up using the latter.
91207         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91208         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91209         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91210         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91211
91212 2003-08-14  Jim Meyering  <jim@meyering.net>
91213
91214         Merge from coreutils.
91215         * lib/obstack.h: Whitespace changes.
91216         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91217         and xcalloc return values.
91218         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91219         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91220         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91221         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91222         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91223         error from mntctl.
91224         Use mntctl's return value to drive the entry-processing loop, since
91225         we can't rely on the value of the vmt_length member in the last
91226         entry.  On some systems doing so could result in exhausting
91227         virtual memory.  Based in part on a patch from Mike Jetzer.
91228
91229 2003-08-14  Jim Meyering  <jim@meyering.net>
91230         and Paul Eggert  <eggert@twinsun.com>
91231
91232         Merges from coreutils, plus other fixes.
91233         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91234         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91235         for credits and details.  Thanks to Kaveh Ghazi for helping
91236         to keep these files in sync.
91237         (ARRAY_SIZE): Define it.
91238         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91239         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91240         (memcasecmp): Don't assume size_t fits in unsigned int.
91241         Remove casts and duplicate code.
91242         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91243         (memcpy): Remove definition.
91244         Merge in some clean-up and optimization changes from glibc.
91245         [BLOCKSIZE]: Move definition to top of file.
91246         Ensure that it is a multiple of 64.
91247         Rearrange loop exit tests so as to avoid performing an
91248         additional fread after encountering an error or EOF.
91249         * lib/md5.h (md5_uintptr): Define.
91250         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91251         return to the initial working directory.  Preserve errno
91252         for caller.
91253         * lib/idcache.c: Include "xalloc.h".
91254         (xmalloc, xrealloc): Remove decls.
91255         (getuser): Remove casts no longer required in C89.
91256         * lib/human.c: Include stdio.h, for sprintf.
91257         * lib/group-member.c: Include "xalloc.h".
91258         (xmalloc, xrealloc): Remove decls.
91259         (get_group_info): Remove casts no longer required in C89.
91260         * lib/getusershell.c (readname): Remove casts no longer required in
91261         C89.
91262         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91263         * lib/getline.c: Whitespace fix, from coreutils.
91264
91265 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91266
91267         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91268         Check for isascii.
91269
91270         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91271         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91272         Undo previous (whitespace-only) change.
91273
91274 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91275
91276         * lib/exclude.c: Include <ctype.h>
91277         (IN_CTYPE_DOMAIN): New macro.
91278         (is_space): New fn.
91279         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91280         and empty lines.
91281
91282         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91283         Undo previous (whitespace-only) change.
91284
91285 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91286
91287         * config/srclist-update: Change update back to the old behavior,
91288         leaving whitespace alone.  Use one 'sed' command rather than a
91289         pipeline.
91290         (fixlicense): Now a variable, not a function.
91291         (remove_trailing_blanks): Remove.
91292         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91293         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91294         Undo previous (whitespace-only) change.
91295
91296 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91297
91298         Merge from coreutils.
91299         * modules/euidaccess: Add lib_SOURCES, include for new
91300         file euidaccess.h
91301
91302 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91303
91304         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91305         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91306         Normalize leading white space and remove trailing white space.
91307
91308         Merge from coreutils
91309         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91310
91311         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91312         0.12.1.  These files are now being upgraded automatically by
91313         ../config/srclist-update.
91314
91315 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91316
91317         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91318         Normalize leading white space and remove trailing white space.
91319         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91320         notice, as per ../config/srclist-update.
91321
91322         Merge from coreutils.
91323         * lib/euidaccess.h: New file.
91324         * lib/euidaccess.c: Include it.
91325         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91326         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91327         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91328
91329 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91330
91331         * config/srclist-update: Add copyright notice.
91332         (remove_id_lines, remove_trailing_blanks): New constants.
91333         (fixfile): Use them to normalize spacing a bit in copied files.
91334         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91335         Normalize leading white space and remove trailing white space.
91336
91337         * config/texinfo.tex: Sync with texinfo.
91338
91339         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91340         strtoul.c from libc, to merge coreutils whitespace changes.
91341
91342         * config/srclist.txt: Get the following m4 files from gettext:
91343         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91344         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91345         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91346         wint_t.m4.
91347
91348 2003-08-12  Karl Berry  <karl@gnu.org>
91349
91350         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91351         been made.
91352
91353 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91354
91355         * modules/gnu-source, m4/gnu-source.m4:
91356         Remove; we're assuming Autoconf 2.54 or later now.
91357         Suggested by Bruno Haible.
91358         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91359
91360 2003-08-11  Bruno Haible  <bruno@clisp.org>
91361
91362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91363
91364 2003-08-11  Bruno Haible  <bruno@clisp.org>
91365
91366         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91367         (vasnprintf): Use it instead of wcslen.
91368
91369 2003-08-11  Bruno Haible  <bruno@clisp.org>
91370
91371         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91372         value to ensure that _Bool promotes to int. Use #define for _Bool when
91373         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91374
91375 2003-08-10  Karl Berry  <karl@gnu.org>
91376
91377         * lib/regex.h: update from libc (whitespace fix).
91378
91379 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91380
91381         Merge some files from coreutils.  These changes were
91382         originally made by Jim Meyering.
91383         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91384         many older Unixes require this.
91385         * lib/alloca.c (alloca): Remove cast to argument of free;
91386         no longer needed in C89.
91387         * lib/alloca_.h, regex.h: Fix white space to match
91388         what GNU indent does.
91389
91390 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91391
91392         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91393         apparently Emacs's Unicode mode got confused before my 2003-08-05
91394         checkin.
91395
91396 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91397
91398         * m4/extensions.m4: New file.
91399         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91400         Require gl_USE_SYSTEM_EXTENSIONS.
91401         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91402         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91403
91404 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91405
91406         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91407         * modules/extensions, modules/gnu-source: New files.
91408         * modules/timespec, modules/unlocked-io: Depend on extensions.
91409
91410 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91411
91412         * modules/restrict: New file.
91413         * MODULES.html.sh (func_all_modules): Add restrict.
91414         * modules/regex: Depend on restrict.
91415
91416 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91417
91418         * m4/restrict.m4: New file.
91419         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91420
91421 2003-08-07  Bruno Haible  <bruno@clisp.org>
91422
91423         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91424         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91425
91426 2003-08-07  Bruno Haible  <bruno@clisp.org>
91427
91428         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91429         makes the module 'getndelim2' compatible with the module 'getline'.
91430
91431 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91432
91433         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91434         byte with "\201" to avoid glitches when editing that source file
91435         with multi-gnome-terminal.
91436
91437 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91438
91439         * lib/bumpalloc.h: Remove.
91440
91441 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91442
91443         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91444         * modules/bumpalloc: Remove.
91445
91446 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91447
91448         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91449         GNU coding style.
91450
91451         Merge from coreutils.
91452         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91453         1. From glibc.
91454         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91455         from Karl Berry, implemented by Jim Meyering.
91456         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91457         from Dmitry V. Levin.
91458         Remove anachronistic cast of xrealloc.
91459         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91460         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91461         type. Otherwise, it wouldn't compile with at least /bin/cc on
91462         ymp-cray-unicos9.0.2.X.
91463         Combine two mostly-identical uses of alloca into one.
91464         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91465
91466 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91467
91468         [From Emacs.]
91469
91470         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91471         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91472         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91473         obsolete NLIST_NAME_UNION.
91474         [__GNU__]: Undef BSD and FSCALE.
91475         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91476
91477 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91478
91479         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91480         an enum type, so that it's guaranteed to promote to int.  See:
91481         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91482
91483 2003-08-03  Karl Berry  <karl@gnu.org>
91484
91485         * config/depcomp: update from automake.
91486
91487 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91488
91489         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91490         (strerror): Don't assume that a printable int fits in 14 bytes.
91491
91492 2003-07-31  Bruno Haible  <bruno@clisp.org>
91493
91494         * modules/getpass-gnu: New file.
91495         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91496
91497 2003-07-31  Bruno Haible  <bruno@clisp.org>
91498
91499         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91500
91501 2003-07-24  Karl Berry  <karl@gnu.org>
91502
91503         * config/missing: update from automake.
91504
91505 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91506             Bruno Haible  <bruno@clisp.org>
91507
91508         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91509         * lib/getline.c (getline, getdelim): Likewise.
91510         Remove _GNU_SOURCE define; now it's defined in config.h through
91511         m4/getline.m4.
91512
91513 2003-07-23  Karl Berry  <karl@gnu.org>
91514
91515         * config/config.sub: update from prep.
91516
91517 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91518
91519         * modules/xalloc (Depends-on): Add exitfail.
91520         * modules/xmemcoll: Likewise.
91521
91522 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91523
91524         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91525         over-parenthesization in macros.
91526
91527         Sync with coreutils.
91528
91529         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91530         required by C99.
91531
91532         Use `exit_failure' for xalloc and xmemcoll instead of their own
91533         private exit-failure variables.
91534         * lib/xalloc.h (xalloc_exit_failure): Remove.
91535         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91536         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91537         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91538         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91539         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91540
91541 2003-07-20  Jim Meyering  <jim@meyering.net>
91542
91543         * modules/closeout (Depends-on): Add exitfail.
91544         Suggestion from Bruno Haible.
91545
91546 2003-07-19  Karl Berry  <karl@gnu.org>
91547
91548         * config/config.sub: update from prep.
91549
91550 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91551
91552         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91553         Remove.
91554         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91555         to test that it can stand by itself.  Include "exitfail.h".
91556         Clients should set exit_failure instead.
91557         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91558
91559 2003-07-18  Bruno Haible  <bruno@clisp.org>
91560
91561         * modules/getndelim2: New file.
91562         * modules/getline: Share files with module getndelim2.
91563         * modules/getnline: Depend on getndelim2 instead of sharing files with
91564         it. Add getnline.c to lib_SOURCES.
91565         * MODULES.html.sh (func_all_modules): Add getndelim2.
91566
91567 2003-07-18  Bruno Haible  <bruno@clisp.org>
91568
91569         * m4/getndelim2.m4: New file.
91570         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91571         invoke gl_PREREQ_GETNDELIM2.
91572         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91573         gl_PREREQ_GETNDELIM2.
91574         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91575         gl_GETNDELIM2.
91576
91577 2003-07-18  Bruno Haible  <bruno@clisp.org>
91578
91579         * lib/getndelim2.h: New file.
91580         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91581         getndelim2.h.
91582         (getndelim2): Make non-static. Change return type to ssize_t.
91583         * lib/getline.h: Change argument names.
91584         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
91585         * lib/getnline.c: Include getndelim2.h.
91586
91587 2003-07-18  Andreas Schwab  <schwab@suse.de>
91588
91589         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
91590
91591 2003-07-17  Karl Berry  <karl@gnu.org>
91592
91593         * config/config.sub: update from prep.
91594
91595 2003-07-17  Bruno Haible  <bruno@clisp.org>
91596
91597         * modules/getnline: New file.
91598         * modules/getline: Add lib/getndelim2.c to source file list.
91599         * MODULES.html.sh (func_all_modules): Add getnline.
91600
91601 2003-07-17  Bruno Haible  <bruno@clisp.org>
91602
91603         * m4/getnline.m4: New file.
91604
91605 2003-07-17  Bruno Haible  <bruno@clisp.org>
91606
91607         * m4/Makefile.am.in: Remove file.
91608         * m4/Makefile.am: Remove file.
91609         * m4/Makefile.in: Remove file.
91610
91611 2003-07-17  Bruno Haible  <bruno@clisp.org>
91612
91613         * lib/getnline.h: New file.
91614         * lib/getnline.c: New file.
91615         * lib/getndelim2.c: New file, extracted from getline.c.
91616         (getndelim2): Renamed from getdelim2, with added nmax argument.
91617         * lib/getline.c: Include getndelim2.c.
91618         (getdelim2): Moved out to getndelim2.c.
91619         (getline, getdelim): Update.
91620
91621 2003-07-17  Bruno Haible  <bruno@clisp.org>
91622
91623         * lib/Makefile.am: Remove file.
91624         * lib/Makefile.in: Remove file.
91625
91626 2003-07-17  Bruno Haible  <bruno@clisp.org>
91627
91628         * configure.in: Remove file.
91629         * Makefile.in: Remove file.
91630
91631 2003-07-17  Bruno Haible  <bruno@clisp.org>
91632
91633         * MODULES.html.sh: Put the </BODY> right before </HTML>.
91634
91635 2003-07-16  Karl Berry  <karl@gnu.org>
91636
91637         * config/srclist-update: was running fixlicense twice, which caused
91638                 texinfo.tex to be nullified for some reason.  Simplify,
91639                 $gplsrc is no longer needed as far as I can see?
91640
91641 2003-07-16  Jim Meyering  <jim@meyering.net>
91642
91643         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
91644
91645 2003-07-15  Paul Eggert  <eggert@twinsun.com>
91646
91647         * config/srclist.txt: Get the following files from gettext-runtime/intl
91648         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
91649         ref-del.sin.  From Bruno Haible.
91650         * config/srclist-update (fixfile): Change grep pattern again, since the
91651         previous fix didn't work (there was another trailing $).  Use
91652         '[$]' to escape the $s.
91653
91654 2003-07-15  Karl Berry  <karl@gnu.org>
91655
91656         * lib/vasnprintf.c: update from gettext.
91657
91658 2003-07-15  Karl Berry  <karl@gnu.org>
91659
91660         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
91661         gets expanded when surrounded by '$'.
91662
91663 2003-07-15  Jim Meyering  <jim@meyering.net>
91664
91665         * modules/save-cwd: Don't depend on error.  From Derek Price.
91666
91667 2003-07-15  Jim Meyering  <jim@meyering.net>
91668
91669         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
91670
91671 2003-07-14  Simon Josefsson  <jas@extundo.com>
91672
91673         * modules/mempcpy: New file.
91674         * MODULES.html.sh (func_all_modules): Add mempcpy.
91675
91676 2003-07-14  Simon Josefsson  <jas@extundo.com>
91677
91678         * m4/mempcpy.m4: New file.
91679
91680 2003-07-14  Simon Josefsson  <jas@extundo.com>
91681
91682         * lib/mempcpy.h: New file.
91683         * lib/mempcpy.c: New file.
91684
91685 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91686
91687         * modules/getdate, modules/posixtm: Depend on mktime.
91688
91689 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91690
91691         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
91692         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
91693         unicodeio.c, unicodeio.h, unlocked-io.h:
91694         Switch from LGPL to GPL.
91695
91696 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91697
91698         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
91699         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
91700         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
91701         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
91702         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
91703         updated automatically by ../config/srclist-update.  This changes
91704         their license from LPGL to GPL.
91705
91706 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91707
91708         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
91709         assumed to refer to the root of the most recent stable gettext version.
91710         * config/srclistvars.sh: Add defaults for eggert.
91711         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
91712         Match "This program" as well as "The program".  This is needed
91713         for gettext.
91714
91715 2003-07-14  Jim Meyering  <jim@meyering.net>
91716
91717         Don't emit diagnostics.  Let callers do that.
91718         * lib/save-cwd.c: Don't include "error.h".
91719         (save_cwd): Don't call error.  Ensure that errno is valid
91720         when returning nonzero.
91721
91722         * lib/save-cwd.h (restore_cwd): Update prototype.
91723         * lib/save-cwd.c (restore_cwd): Remove two parameters.
91724         Simplify.  Don't call error upon failure.  Let callers do that.
91725         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
91726         when auditing is enabled.  But don't bother updating the #if.
91727
91728 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
91729
91730         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
91731         it breaks C++ compilation.
91732         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
91733
91734 2003-07-10  Simon Josefsson  <jas@extundo.com>
91735
91736         * modules/strchrnul (Makefile.am): Add strchrnul.h.
91737
91738 2003-07-10  Jim Meyering  <jim@meyering.net>
91739
91740         * m4/clock_time.m4: Remove trailing blank.
91741         * m4/intmax_t.m4: Likewise.
91742
91743 2003-07-10  Jim Meyering  <jim@meyering.net>
91744
91745         * lib/vasnprintf.c: Remove trailing blanks.
91746         Make cpp indentation consistent.
91747
91748 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91749
91750         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
91751         posixver.c, strftime.c, strnlen.c, strverscmp.c:
91752         Switch from LGPL to GPL.
91753
91754 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91755
91756         * config/srclist.txt: Sort sublists.  Add
91757         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
91758         that differ from gnulib for one reason or another; we'd like this list
91759         to be smaller but for now let's document what we have.
91760
91761 2003-07-08  Paul Eggert  <eggert@twinsun.com>
91762
91763         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
91764         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
91765         and sweeter "eval x=$x".
91766         * config/srclist.txt: Get lib/argp* from glibc.
91767
91768 2003-07-07  Paul Eggert  <eggert@twinsun.com>
91769
91770         * lib/mktime.c: Fix some boundary cases and remove need for floating
91771         point.
91772
91773         Issue a compile-time diagnostic if time_t is floating point, or if
91774         two's complement arithmetic is not in effect, or if arithmetic
91775         right shift does not propagate the sign.  These assumptions were
91776         all in the original code but they weren't checked.
91777
91778         (TIME_T_MIDPOINT, verify): New macros.
91779         (__isleap): Remove; it has integer overflow problems.
91780         (leapyear): New function, without those problems.
91781         (ydhms_tm_diff): Remove; splitting into two parts.
91782         (ydhms_diff): New function, containing the arithmetic part of
91783         the old ydhms_tm_diff function.  Issue a compile-time
91784         diagnostic if we are not using C99 integer division.
91785         Avoid casts when possible.
91786         (guess_time_tm): New function, containing the checking part of
91787         the old ydhms_tm_diff function.  Return the new value, rather than
91788         the difference between it and the old.  Accept a new argument T
91789         so that *T specifies the old value.  Check for overflow in the result.
91790
91791         (__mktime_internal): Use a time_t offset, not a long int offset.
91792         This undoes the 2003-06-04 change, which is no longer needed now
91793         that we have better overflow checking.
91794         (localtime_offset): Likewise.
91795
91796         (__mktime_internal): Avoid harmful overflow on hosts where time_t
91797         and long are 64-bit but int is only 32-bit.
91798         (ydhms_diff): Use long int to store year1 and yday1.
91799         Issue a compile-time diagnostic if long int is not wide enough.
91800
91801         (__mktime_internal): Use long int to store adjusted year and yday.
91802         Use plain C rather than preprocessor commands, if that doesn't
91803         affect efficiency.
91804         Check for overflow (and try to repair) after each probe
91805         rather than checking only at the very end.  This avoids some bugs
91806         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
91807         does not equal GMT offset at maximum time).
91808         Use integer to check for overflow rather than floating point; this
91809         is more portable to non-IEEE hosts, and is a tad faster.
91810         When we detect that we are oscillating between two values,
91811         don't check whether tm_isdst has the requested value, since
91812         we already know the answer.  When tm_isdst has the wrong value,
91813         use a different heuristic to find the right one, based on the
91814         extreme values actually observed in practice in tz2003a,
91815         rather than the (overly optimistic) "previous 3 calendar quarters".
91816
91817         (not_equal_tm, print_tm, check_result): Use "const T" rather than
91818         "T const" to accommodate glibc style.
91819         (check_result): Use less-confusing report format.  "long" -> "long int.
91820         (main): Likewise.
91821         Don't loop if the iteration overflows time_t.
91822         Allow a negative step in the iteration.
91823
91824 2003-07-06  Karl Berry  <karl@gnu.org>
91825
91826         * config/depcomp: update from automake.
91827         * config/config.sub: update from prep.
91828
91829 2003-07-03  Karl Berry  <karl@gnu.org>
91830
91831         * config/config.guess: update from prep.
91832
91833 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91834
91835         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
91836         xreadlink.c now includes it unconditionally.
91837
91838 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91839
91840         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
91841         having it depend on HAVE_SYS_TYPES_H.
91842
91843 2003-07-01  Bruno Haible  <bruno@clisp.org>
91844
91845         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
91846         <sys/types.h> should be sufficient.
91847         Reported by Paul Eggert.
91848
91849 2003-06-26  Karl Berry  <karl@gnu.org>
91850
91851         * config/depcomp: update from automake.
91852
91853 2003-06-26  Bruno Haible  <bruno@clisp.org>
91854
91855         * modules/human: Depend on module stdbool.
91856
91857 2003-06-25  Bruno Haible  <bruno@clisp.org>
91858
91859         * modules/readlink: New file.
91860         * modules/xreadlink: Depend on it.
91861         * MODULES.html.sh (func_all_modules): Add readlink.
91862
91863 2003-06-25  Bruno Haible  <bruno@clisp.org>
91864
91865         * m4/readlink.m4: New file.
91866
91867 2003-06-25  Bruno Haible  <bruno@clisp.org>
91868
91869         * lib/readlink.c: New file.
91870
91871 2003-06-22  Karl Berry  <karl@gnu.org>
91872
91873         * config/srclist.txt: update mkinstalldirs from automake.
91874         * config/mkinstalldirs: update.
91875
91876 2003-06-22  Bruno Haible  <bruno@clisp.org>
91877
91878         Portability to mingw32.
91879         * m4/ssize_t.m4: New file, from GNU gettext.
91880         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
91881         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
91882
91883 2003-06-22  Bruno Haible  <bruno@clisp.org>
91884
91885         * modules/safe-read: Add m4/ssize_t.m4.
91886         * modules/xreadlink: Add m4/ssize_t.m4.
91887
91888 2003-06-20  Bruno Haible  <bruno@clisp.org>
91889
91890         Assume C89, so PARAMS isn't needed.
91891         * lib/unicodeio.h (PARAMS): Remove.
91892         * lib/unicodeio.c: Don't use PARAMS.
91893
91894 2003-06-18  Karl Berry  <karl@gnu.org>
91895
91896         * config/config.{guess,sub}: update from prep.
91897
91898 2003-06-18  Jim Meyering  <jim@meyering.net>
91899
91900         Merge changes from coreutils.
91901         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
91902         Remove explicit declarations of xmalloc and realloc.
91903         Include xalloc.h.
91904         (read_utmp): Remove anachronistic cast of xmalloc.
91905
91906 2003-06-17  Paul Eggert  <eggert@twinsun.com>
91907
91908         Assume C89, so PARAMS isn't needed.
91909         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
91910         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
91911         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
91912         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
91913         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
91914         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
91915         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
91916         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
91917         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
91918         lib/xstrtod.h, lib/xstrtol.h: Likewise.
91919         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
91920         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
91921         no longer needed. Anyway, config.h should always be included before any
91922         other file.
91923
91924 2003-06-11  Simon Josefsson  <jas@extundo.com>
91925
91926         * modules/sysexits: New file.
91927         * MODULES.html.sh (func_all_modules): Add sysexits.
91928
91929 2003-06-11  Simon Josefsson  <jas@extundo.com>
91930
91931         * lib/sysexit_.h: New file.
91932
91933 2003-06-11  Derek Price  <derek@ximbiot.com>
91934
91935         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
91936         necessary.
91937
91938 2003-06-11  Bruno Haible  <bruno@clisp.org>
91939
91940         * m4/sysexits.m4: New file.
91941
91942 2003-06-10  Simon Josefsson  <jas@extundo.com>
91943
91944         * lib/argp.h: New file, from glibc.
91945         * lib/argp-ba.c: New file, from glibc.
91946         * lib/argp-eexst.c: New file, from glibc.
91947         * lib/argp-fmtstream.c: New file, from glibc.
91948         * lib/argp-fmtstream.h: New file, from glibc.
91949         * lib/argp-fs-xinl.c: New file, from glibc.
91950         * lib/argp-help.c: New file, from glibc.
91951         * lib/argp-namefrob.h: New file, from glibc.
91952         * lib/argp-parse.c: New file, from glibc.
91953         * lib/argp-pv.c: New file, from glibc.
91954         * lib/argp-pvh.c: New file, from glibc.
91955         * lib/argp-xinl.c: New file, from glibc.
91956
91957 2003-06-10  Simon Josefsson  <jas@extundo.com>
91958
91959         * modules/strchrnul: New file.
91960
91961 2003-06-10  Simon Josefsson  <jas@extundo.com>
91962
91963         * modules/argp: New file.
91964
91965 2003-06-10  Simon Josefsson  <jas@extundo.com>
91966
91967         * m4/strchrnul.m4: New file.
91968
91969 2003-06-10  Simon Josefsson  <jas@extundo.com>
91970
91971         * lib/strchrnul.h: New file.
91972         * lib/strchrnul.c: New file.
91973
91974 2003-06-10  Bruno Haible  <bruno@clisp.org>
91975
91976         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
91977
91978 2003-06-07  Karl Berry  <karl@gnu.org>
91979
91980         * config/config.{guess,sub}: update from prep.
91981
91982 2003-06-07  Jim Meyering  <jim@meyering.net>
91983
91984         * modules/strtod: Use $(...) notation, not @...@ for
91985         AC_REPLACE'd variables.
91986         * modules/localcharset: Likewise.
91987
91988 2003-06-07  Jim Meyering  <jim@meyering.net>
91989
91990         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
91991         in place of my name in the copyright comment.
91992         Remove definition and uses of __P.
91993
91994         From coreutils.
91995         * lib/stat.c: Don't declare xmalloc explicitly.
91996         Instead, include "xalloc.h".
91997         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
91998         xrealloc, and xcalloc return values.
91999         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92000         Improve comment.
92001         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92002
92003 2003-06-07  Bruno Haible  <bruno@clisp.org>
92004
92005         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92006         avoid AC_CONFIG_LINKS.
92007         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92008         fnmatch.h, to avoid AC_CONFIG_LINKS.
92009         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92010
92011 2003-06-07  Bruno Haible  <bruno@clisp.org>
92012
92013         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92014         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92015         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92016         directory.
92017         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92018         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92019         directory.
92020
92021 2003-06-06  Jim Meyering  <jim@meyering.net>
92022
92023         Merge from coreutils.
92024         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92025         Consolidate declarations and initializations of *_base* locals.
92026
92027         Merge from coreutils.
92028         This avoids a core dump on systems without GNU putenv,
92029         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92030         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92031         (unsetenv): New static function, from GNU libc.
92032         (rpl_putenv): Use it.
92033
92034         * lib/modechange.c: Remove trailing blanks.
92035
92036         Merge from coreutils.
92037         * lib/fsusage.c: Remove declaration of statfs.
92038         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92039
92040         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92041
92042 2003-06-06  Jim Meyering  <jim@meyering.net>
92043
92044         * lib/stdbool_.h: Renamed from stdbool.h.in.
92045
92046 2003-06-06  Jim Meyering  <jim@meyering.net>
92047             Bruno Haible  <bruno@clisp.org>
92048
92049         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92050         Adjust Makefile.am snippet not to redirect directly to target.
92051         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92052
92053 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92054
92055         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92056         mismatch, look in future quarters as well as past.  This fixes a
92057         bug when processing fall-backwards gaps immediately after a long
92058         period of daylight-saving time.
92059
92060         * lib/mktime.c: Assume freestanding C89 or better.
92061         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92062         (__P): Remove; not used.
92063         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92064         (mktime, not_equal_tm, print_tm, check_result,
92065         main): Use prototypes.  Use const * where appropriate.
92066         (main): Fix typo in testing code that uncovered by above changes.
92067         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92068
92069 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92070
92071         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92072         locale.h, localeconv.  This merges changes from coreutils.
92073
92074         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92075         It can be removed after the next Autoconf is released.
92076         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92077         needed.
92078
92079 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92080
92081         * lib/mktime.c: Fix Debian bug 177940
92082         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92083         (localtime_offset): Now long int, not time_t, because we want it
92084         to be guaranteed to be signed.  All uses changed.
92085         (__mktime_internal): If overflow would occur when adding offset,
92086         don't add it.
92087
92088         Merge 'human' changes from coreutils.  Rewrite to support
92089         locale-specific notations like thousands separators.
92090         * lib/human.c: Simplify authorship notice.
92091         Include human.h immediately after config.h.
92092         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92093         <limits.h>: Do not include, since human.h does.
92094         (SIZE_MAX, UINTMAX_MAX): New macros.
92095         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92096         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92097         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92098         (power_letter): Renamed from suffixes.
92099         (generate_suffix_backwards): Remove.
92100         (adjust_value): Now takes int style (because of human.h changes)
92101         and long double value (for greater precision on some platforms).
92102         (group_number): New function.
92103         (human_readable): Use it.  Use integer options, not enum.
92104         Put the options before the sizes in the arg list.
92105         Support all the new options.
92106         The old human_readable function has been removed;
92107         use inttostr.h instead.
92108         (human_readable, default_block_size, humblock):
92109         Use uintmax_t, not int, for block sizes.
92110         (human_readable_inexact, block_size_types): Remove.
92111         (block_size_opts): New constant.
92112         (human_options): Renamed from human_block_size, with new signature
92113         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92114         * lib/human.h: Add copyright and authorship notice.
92115         Include <limits.h> and <stdbool.h> unconditionally.
92116         (PARAMS): Remove.  All uses removed.
92117         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92118         (enum human_inexact_style): Remove tag; now a nameless enum.
92119         (human_floor, human_ceiling, human_round_to_even): Now have
92120         values 2, 0, 1 rather than -1, 1, 0.
92121         (human_group_digits, human_suppress_point_zero, human_autoscale,
92122         human_base_1024, human_SI, human_B): New constants.
92123         (human_readable_inexact, human_block_size): Remove.
92124         (human_readable): Size args are now uintmax_t, not int.
92125         (human_options): New decl.
92126
92127         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92128         unnecessary now that we assume C89 or better.  This change
92129         imported from coreutils.
92130
92131         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92132         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92133         in the 2003-05-30 sync from glibc.
92134
92135         .h files should stand alone, but we shouldn't include <sys/types.h>
92136         if we can get away with just <stddef.h>.
92137
92138         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92139         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92140         rather than <sys/types.h>, as we merely need size_t.
92141         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92142         to get size_t.
92143         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92144         Include <stdio.h>, to get FILE.
92145         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92146         memcasecmp.h has included <stddef.h> and all we need is size_t.
92147         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92148         our interface, instead of including <sys/types.h>
92149
92150 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92151
92152         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92153         now, as glibc mktime is buggy on non-glibc systems.
92154
92155 2003-06-03  Karl Berry  <karl@gnu.org>
92156
92157         * config/config.sub: update from prep.
92158
92159 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92160
92161         [from coreutils]
92162         Fix some minor time-related bugs with POSIX time arguments.
92163         Some valid time stamps were being rejected (notably -1, and
92164         time stamps before 1900 on 64-bit hosts).  And some invalid
92165         time stamps were being accepted, e.g. September 31.
92166
92167         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92168         that we can return (time_t) -1 successfully.
92169         * lib/posixtm.c: Likewise.
92170         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92171         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92172         (t): Remove static var.
92173         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92174         of static var.  All uses changed.
92175         (year): Do not reject years before 1900; they can occur with
92176         64-bit time_t.
92177         (posix_time_parse): Do not check for out-of-range components;
92178         that is now the caller's responsibility, since our checks were
92179         only approximations.
92180         (posixtime): Use mktime to check for out-of-range components,
92181         since it knows them exactly.
92182         If mktime returns (time_t) -1, check whether an error actually occurred
92183         by invoking localtime on -1.
92184         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92185         posixtime failures better.
92186         Improve the test data (in comments only).
92187
92188 2003-06-02  Karl Berry  <karl@gnu.org>
92189
92190         * config/mkinstalldirs (version): new variable.
92191         (--version): new option.
92192         (usage): improve message.
92193
92194 2003-05-30  Karl Berry  <karl@gnu.org>
92195
92196         * lib/mktime.c: update from libc.
92197
92198 2003-05-30  Bruno Haible  <bruno@clisp.org>
92199
92200         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92201         * config/config.rpath: Upgrade to gettext-0.12.1.
92202
92203 2003-05-30  Bruno Haible  <bruno@clisp.org>
92204
92205         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92206         * m4/nls.m4: New file, from gettext-0.12.1.
92207         * m4/po.m4: New file, from gettext-0.12.1.
92208         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92209
92210 2003-05-30  Bruno Haible  <bruno@clisp.org>
92211
92212         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92213         * lib/localcharset.h: Likewise.
92214         * lib/localcharset.c: Likewise.
92215
92216 2003-05-29  Karl Berry  <karl@gnu.org>
92217
92218         * config/config.rpath: update from gettext.
92219
92220 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92221
92222         Assume the headers required for C89 freestanding compilers.
92223         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92224         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92225         * m4/human.m4 (gl_HUMAN): Likewise.
92226         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92227         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92228         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92229         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92230         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92231         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92232
92233 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92234
92235         Assume the headers required for C89 freestanding compilers.
92236         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92237         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92238         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92239         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92240         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92241         define, since <limits.h> is guaranteed to do that.
92242         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92243         * lib/exclude.c: Include <stdbool.h> unconditionally.
92244         * lib/tempname.c: Include <stddef.h> unconditionally.
92245         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92246         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92247         <stddef.h> does that.
92248         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92249         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92250         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92251         needed.
92252         * lib/xstrtol.c: Likewise.
92253         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92254         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92255
92256         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92257         warnings on some platforms.
92258
92259         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92260         arbitrarily.
92261
92262 2003-05-26  Jim Meyering  <jim@meyering.net>
92263
92264         Merge in a change from coreutils:
92265         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92266         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92267         that condition, rather than `-1' which is slightly misleading.
92268         Change the name of the cache variable to have the gl_ prefix.
92269         Prompted by a patch from Richard Dawe for DJGPP.
92270
92271 2003-05-24  Karl Berry  <karl@gnu.org>
92272
92273         * config/config.guess: update from prep.
92274
92275 2003-05-22  Karl Berry  <karl@gnu.org>
92276
92277         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92278
92279 2003-05-20  Karl Berry  <karl@gnu.org>
92280
92281         * config/config.guess: update from prep.
92282
92283 2003-05-18  Karl Berry  <karl@gnu.org>
92284
92285         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92286         might actually be set by the user.
92287
92288         * config/depcomp, install-sh, mdate-sh: update from automake.
92289
92290 2003-05-17  Bruno Haible  <bruno@clisp.org>
92291
92292         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92293         invalid expansion for AC_EGREP_CPP.
92294         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92295         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92296         Suggested by Akim Demaille <akim@epita.fr> in
92297         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92298
92299 2003-05-12  Jim Meyering  <jim@meyering.net>
92300
92301         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92302         the space-padded-by-default conversion specifiers, %e, %k, %l.
92303
92304 2003-05-12  Bruno Haible  <bruno@clisp.org>
92305
92306         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92307         the string is longer than 4 KB.
92308
92309 2003-05-11  Karl Berry  <karl@gnu.org>
92310
92311         * config/config.{guess,sub}: update from prep.
92312
92313 2003-05-09  Bruno Haible  <bruno@clisp.org>
92314
92315         * modules/error: Add m4/strerror_r.m4 to file list.
92316
92317 2003-05-03  Bruno Haible  <bruno@clisp.org>
92318
92319         Upgrade to Unicode-4.0.
92320         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92321         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92322         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92323         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92324         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92325         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92326         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92327         Change width of U+E0100..U+E01EF from 1 to 0.
92328
92329 2003-04-25  Jim Meyering  <jim@meyering.net>
92330
92331         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92332         of type size_t, not int.
92333
92334 2003-04-25  Bruno Haible  <bruno@clisp.org>
92335
92336         * lib/copy-file.c: Include <stddef.h>, for size_t.
92337
92338 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92339
92340         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92341         code which expansion is under static control.  Patch imported from
92342         Akim Demaille's patch to Bison; see
92343         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92344
92345 2003-04-14  Bruno Haible  <bruno@clisp.org>
92346
92347         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92348
92349 2003-04-11  Jim Meyering  <jim@meyering.net>
92350
92351         Merge changes from Coreutils.
92352
92353         2003-03-22  Jim Meyering  <jim@meyering.net>
92354
92355         * lib/strftime.c (widen): Cast alloca return value to proper type.
92356
92357         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92358
92359         From GNU libc.
92360         * lib/strftime.c (my_strftime): Handle very large width
92361         specifications for numeric values correctly.  Improve checks for
92362         overflow.
92363
92364         2003-01-19  Jim Meyering  <jim@meyering.net>
92365
92366         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92367         definitions.
92368         (nl_get_alt_digit) [! defined my_strftime]: Define.
92369         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92370         _nl_get_alt_digit and _nl_get_walt_digit.
92371
92372         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92373         libc. These changes have no effect outside of _LIBC.
92374
92375 2003-04-10  Bruno Haible  <bruno@clisp.org>
92376
92377         * modules/findprog: New file.
92378         * MODULES.html.sh (func_all_modules): Add it.
92379
92380 2003-04-10  Bruno Haible  <bruno@clisp.org>
92381
92382         * m4/findprog.m4: New file.
92383         * m4/eaccess.m4: New file.
92384
92385 2003-04-10  Bruno Haible  <bruno@clisp.org>
92386
92387         * lib/findprog.h: New file, from GNU gettext.
92388         * lib/findprog.c: New file, from GNU gettext.
92389
92390 2003-04-05  Jim Meyering  <jim@meyering.net>
92391
92392         Merge changes from Coreutils.
92393
92394         * lib/exclude.h (PARAMS): Remove definition and uses.
92395         * lib/exclude.c: Remove uses of `PARAMS'.
92396
92397         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92398         Add test-cases for DOS filenames. Declare program_name.
92399         (main): Set up program_name.  Patch by Rich Dawe.
92400
92401         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92402         error from mntctl.
92403         Use mntctl's return value to drive the entry-processing loop, since
92404         we can't rely on the value of the vmt_length member in the last
92405         entry.  On some systems doing so could result in exhausting
92406         virtual memory.  Based in part on a patch from Mike Jetzer.
92407
92408 2003-04-04  Bruno Haible  <bruno@clisp.org>
92409
92410         * modules/linebreak: New file.
92411         * MODULES.html.sh (func_all_modules): Add it.
92412
92413 2003-04-04  Bruno Haible  <bruno@clisp.org>
92414
92415         * m4/linebreak.m4: New file.
92416
92417 2003-04-04  Bruno Haible  <bruno@clisp.org>
92418
92419         * lib/linebreak.h: New file, from GNU gettext.
92420         * lib/linebreak.c: New file, from GNU gettext with slight
92421         modifications.
92422         * lib/lbrkprop.h: New file, from GNU gettext.
92423
92424 2003-04-03  Bruno Haible  <bruno@clisp.org>
92425
92426         * modules/utf8-ucs4: New file.
92427         * modules/utf16-ucs4: New file.
92428         * modules/ucs4-utf8: New file.
92429         * modules/ucs4-utf16: New file.
92430         * MODULES.html.sh (func_all_modules): Add them.
92431
92432 2003-04-03  Bruno Haible  <bruno@clisp.org>
92433
92434         * m4/utf-ucs4.m4: New file.
92435         * m4/ucs4-utf.m4: New file.
92436
92437 2003-04-03  Bruno Haible  <bruno@clisp.org>
92438
92439         * lib/utf8-ucs4.h: New file, from GNU gettext.
92440         * lib/utf16-ucs4.h: New file, from GNU gettext.
92441         * lib/ucs4-utf8.h: New file, from GNU gettext.
92442         * lib/ucs4-utf16.h: New file, from GNU gettext.
92443
92444 2003-04-02  Bruno Haible  <bruno@clisp.org>
92445
92446         * modules/binary-io: New file.
92447         * MODULES.html.sh (func_all_modules): Add it.
92448
92449 2003-04-02  Bruno Haible  <bruno@clisp.org>
92450
92451         * lib/binary-io.h: New file, from GNU gettext.
92452
92453 2003-04-01  Bruno Haible  <bruno@clisp.org>
92454
92455         * modules/pathname: New file.
92456         * MODULES.html.sh (func_all_modules): Add it.
92457
92458 2003-04-01  Bruno Haible  <bruno@clisp.org>
92459
92460         * lib/pathname.h: New file, from GNU gettext.
92461         * lib/concatpath.c: New file, from GNU gettext.
92462
92463 2003-03-30  Bruno Haible  <bruno@clisp.org>
92464
92465         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92466
92467 2003-03-30  Bruno Haible  <bruno@clisp.org>
92468
92469         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92470         function chown() doesn't exist.
92471
92472 2003-03-28  Bruno Haible  <bruno@clisp.org>
92473
92474         * modules/copy-file: New file.
92475         * MODULES.html.sh (func_all_modules): Add it.
92476
92477 2003-03-28  Bruno Haible  <bruno@clisp.org>
92478
92479         * m4/copy-file.m4: New file.
92480
92481 2003-03-28  Bruno Haible  <bruno@clisp.org>
92482
92483         * lib/copy-file.h: New file, from GNU gettext.
92484         * lib/copy-file.c: New file, from GNU gettext.
92485
92486 2003-03-18  Jim Meyering  <jim@meyering.net>
92487
92488         * lib/quote.c (quote_n): Fix typo in comment.
92489
92490 2003-03-18  Bruno Haible  <bruno@clisp.org>
92491
92492         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92493         checking.
92494         * m4/onceonly_2_57.m4: Likewise.
92495
92496 2003-03-17  Bruno Haible  <bruno@clisp.org>
92497
92498         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92499         (m4_quote): Remove macro.
92500         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92501
92502 2003-03-14  Jim Meyering  <jim@meyering.net>
92503
92504         Merge changes from Coreutils.
92505         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92506         to be const, in order to avoid warnings.
92507         (obstack_room): Likewise.
92508         (obstack_empty_p): Likewise.
92509
92510 2003-03-14  Bruno Haible  <bruno@clisp.org>
92511
92512         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92513         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92514
92515 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92516
92517         Merge changes from Bison.
92518         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92519         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92520         when compiling Bison 1.875's `bitset bset = obstack_alloc
92521         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92522         * lib/hash.c: Include <stdbool.h> unconditionally.
92523
92524 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92525
92526         * m4/onceonly.m4 (m4_quote): New macro.
92527         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92528         Quote AC_FOREACH variable-expansions properly.
92529
92530 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92531
92532         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92533
92534 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92535
92536         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92537         Reported by Bruce Becker; see:
92538         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92539
92540 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92541             Bruno Haible  <bruno@clisp.org>
92542
92543         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92544         Reported by John Hughes, see
92545         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92546
92547 2003-02-20  Bruno Haible  <bruno@clisp.org>
92548
92549         * MODULES.html.sh (func_all_modules): Add poll.
92550
92551 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92552
92553         * modules/poll: New file.
92554
92555 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92556
92557         * lib/poll_.h: New file.
92558         * lib/poll.c: New file.
92559
92560 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92561
92562         * m4/poll.m4: New file.
92563
92564 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92565
92566         * modules/mathl: New file.
92567
92568 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92569
92570         * lib/mathl.h: New file.
92571         * lib/acosl.c: New file.
92572         * lib/asinl.c: New file.
92573         * lib/atanl.c: New file.
92574         * lib/ceill.c: New file.
92575         * lib/cosl.c: New file.
92576         * lib/expl.c: New file.
92577         * lib/floorl.c: New file.
92578         * lib/frexpl.c: New file.
92579         * lib/ldexpl.c: New file.
92580         * lib/logl.c: New file.
92581         * lib/sincosl.c: New file.
92582         * lib/sinl.c: New file.
92583         * lib/sqrtl.c: New file.
92584         * lib/tanl.c: New file.
92585         * lib/trigl.c: New file.
92586         * lib/trigl.h: New file.
92587
92588 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92589
92590         * m4/mathl.m4: New file.
92591
92592 2003-02-18  Bruno Haible  <bruno@clisp.org>
92593
92594         * MODULES.html.sh (func_all_modules): Add mathl.
92595
92596 2003-02-17  Bruno Haible  <bruno@clisp.org>
92597
92598         * modules/mkdtemp: New module.
92599         * MODULES.html.sh (func_all_modules): Add it.
92600
92601 2003-02-17  Bruno Haible  <bruno@clisp.org>
92602
92603         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
92604
92605 2003-02-17  Bruno Haible  <bruno@clisp.org>
92606
92607         * lib/mkdtemp.h: New file, from GNU gettext.
92608         * lib/mkdtemp.c: New file, from GNU gettext.
92609
92610 2003-02-02  Jim Meyering  <jim@meyering.net>
92611
92612         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
92613         e.g. glibc-2.2.93.
92614
92615 2003-01-31  Bruno Haible  <bruno@clisp.org>
92616
92617         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
92618         'rpl_rename'.
92619         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
92620         'rpl_strnlen'.
92621         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
92622         'rpl_strtod'.
92623         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
92624         'rpl_utime'.
92625
92626 2003-01-31  Bruno Haible  <bruno@clisp.org>
92627
92628         * lib/rename.c: #undef rename before defining rpl_rename.
92629         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
92630
92631 2003-01-30  Bruno Haible  <bruno@clisp.org>
92632
92633         * modules/vasnprintf, modules/vasprintf: New modules.
92634         * MODULES.html.sh (func_all_modules): Add them.
92635
92636 2003-01-30  Bruno Haible  <bruno@clisp.org>
92637
92638         * m4/signed.m4: New file, from GNU gettext.
92639         * m4/longdouble.m4: New file, from GNU gettext.
92640         * m4/wchar_t.m4: New file, from GNU gettext.
92641         * m4/wint_t.m4: New file, from GNU gettext.
92642         * m4/vasnprintf.m4: New file.
92643         * m4/vasprintf.m4: New file.
92644
92645 2003-01-30  Bruno Haible  <bruno@clisp.org>
92646
92647         * lib/printf-args.h: New file, from GNU gettext.
92648         * lib/printf-args.c: New file, from GNU gettext.
92649         * lib/printf-parse.h: New file, from GNU gettext.
92650         * lib/printf-parse.c: New file, from GNU gettext.
92651         * lib/vasnprintf.h: New file, from GNU gettext.
92652         * lib/vasnprintf.c: New file, from GNU gettext.
92653         * lib/asnprintf.c: New file, from GNU gettext.
92654         * lib/vasprintf.h: New file, from GNU gettext with modifications.
92655         * lib/vasprintf.c: New file, from GNU gettext.
92656         * lib/asprintf.c: New file, from GNU gettext.
92657
92658 2003-01-29  Bruno Haible  <bruno@clisp.org>
92659
92660         * modules/stpncpy: New module.
92661         * MODULES.html.sh (func_all_modules): Add it.
92662
92663 2003-01-29  Bruno Haible  <bruno@clisp.org>
92664
92665         * m4/stpncpy.m4: New file.
92666
92667 2003-01-29  Bruno Haible  <bruno@clisp.org>
92668
92669         * lib/stpncpy.h: New file, from GNU gettext with modifications.
92670         * lib/stpncpy.c: New file, from GNU gettext with modifications.
92671
92672 2003-01-28  Bruno Haible  <bruno@clisp.org>
92673
92674         * modules/c-ctype: New module.
92675         * MODULES.html.sh (func_all_modules): Add it.
92676
92677 2003-01-28  Bruno Haible  <bruno@clisp.org>
92678
92679         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
92680         Paul Eggert.
92681         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
92682         Paul Eggert.
92683
92684 2003-01-27  Bruno Haible  <bruno@clisp.org>
92685
92686         * modules/xsetenv: New module.
92687         * MODULES.html.sh (func_all_modules): Add it.
92688
92689 2003-01-27  Bruno Haible  <bruno@clisp.org>
92690
92691         * lib/xsetenv.h: New file, from GNU gettext.
92692         * lib/xsetenv.c: New file, from GNU gettext.
92693
92694 2003-01-23  Jim Meyering  <jim@meyering.net>
92695
92696         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
92697         from working on systems without dirfd (at least Irix and OSF1/Tru64).
92698
92699 2003-01-23  Bruno Haible  <bruno@clisp.org>
92700
92701         * modules/minmax: New module.
92702         * MODULES.html.sh (func_all_modules): Add it.
92703
92704 2003-01-23  Bruno Haible  <bruno@clisp.org>
92705
92706         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
92707         Eggert.
92708
92709 2003-01-22  Bruno Haible  <bruno@clisp.org>
92710
92711         * modules/exit: New module.
92712         * MODULES.html.sh (func_all_modules): Add it.
92713
92714 2003-01-22  Bruno Haible  <bruno@clisp.org>
92715
92716         * lib/exit.h: New file, from GNU gettext.
92717
92718 2003-01-19  Bruno Haible  <bruno@clisp.org>
92719
92720         * gnulib-tool: Recognize option --extract-maintainer.
92721         (func_get_maintainer): New function.
92722         * modules/*: Add Maintainer entry.
92723
92724 2003-01-16  Jim Meyering  <jim@meyering.net>
92725
92726         * m4/regex.m4: The `regex' struct is both input and output.
92727         Initialize it before each use.  Patch by Tim Waugh.
92728
92729 2003-01-16  Bruno Haible  <bruno@clisp.org>
92730
92731         * MODULES.html.sh: Add a table of contents. Add the module name as
92732         leftmost column. Add hyperlinks.
92733
92734 2003-01-15  Bruno Haible  <bruno@clisp.org>
92735
92736         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
92737
92738 2003-01-15  Bruno Haible  <bruno@clisp.org>
92739
92740         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
92741         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
92742         suffix.
92743
92744 2003-01-15  Bruno Haible  <bruno@clisp.org>
92745
92746         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
92747
92748 2003-01-15  Bruno Haible  <bruno@clisp.org>
92749
92750         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
92751         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
92752
92753 2003-01-14  Jim Meyering  <jim@meyering.net>
92754
92755         * lib/same.c (same_name): Tweak a comment.
92756
92757 2003-01-14  Bruno Haible  <bruno@clisp.org>
92758
92759         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
92760         when a string comparison is sufficient.
92761
92762 2003-01-14  Bruno Haible  <bruno@clisp.org>
92763
92764         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
92765         'unsigned int'.
92766
92767 2003-01-14  Bruno Haible  <bruno@clisp.org>
92768
92769         * lib/hash-pjw.c: Add comment about low quality of this function.
92770
92771 2003-01-13  Bruno Haible  <bruno@clisp.org>
92772
92773         * modules/stpcpy: Distribute lib/stpcpy.h.
92774         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
92775
92776 2003-01-13  Bruno Haible  <bruno@clisp.org>
92777
92778         * modules/*: Add a description.
92779         * modules/strpbrk: Fix Makefile.am snippet.
92780         * modules/strtoimax: Fix dependencies.
92781         * modules/strtoumax: Likewise.
92782
92783 2003-01-13  Bruno Haible  <bruno@clisp.org>
92784
92785         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
92786         * modules/alloca (Makefile.am): All object files depend on alloca.h.
92787         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
92788
92789 2003-01-13  Bruno Haible  <bruno@clisp.org>
92790
92791         * gnulib-tool (func_create_testdir): Store config/* files in the main
92792         directory.
92793         * config.rpath: Move to ...
92794         * config/config.rpath: ... here.
92795         * modules/gettext: Contains config/config.rpath, not config.rpath.
92796         * modules/iconv: Likewise.
92797
92798 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92799
92800         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92801         to avoid collisions with libcurses and libreadline.
92802
92803         * m4/getstr.m4: Remove.
92804         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
92805
92806 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92807
92808         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92809         to avoid collisions with libcurses and libreadline.
92810
92811         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
92812         * lib/getstr.h, getstr.c: Remove.
92813         * lib/getline.c: Include "getline.h", to check interface.
92814         Move body of old getstr.c here: this defines MIN_CHUNK and
92815         declares getdelim2, which is renamed from getstr.
92816         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
92817
92818         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
92819         All uses changed.
92820         * lib/linebuffer.h: Likewise.
92821         (readline): Remove backward-compatibility macro.
92822
92823 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92824
92825         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92826         to avoid collisions with libcurses and libreadline.
92827         * getstr: Remove.
92828         * MODULES.html.sh: Remove getstr.
92829         * modules/getline: Depend on unlocked-io, not getstr.
92830
92831 2003-01-12  Jim Meyering  <jim@meyering.net>
92832
92833         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
92834
92835 2003-01-10  Bruno Haible  <bruno@clisp.org>
92836
92837         * modules/alloca: Change Makefile.am requirements. Simplify Include
92838         requirements. Add lib/alloca_.h to file list.
92839
92840 2003-01-10  Bruno Haible  <bruno@clisp.org>
92841
92842         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
92843
92844 2003-01-10  Bruno Haible  <bruno@clisp.org>
92845
92846         * lib/alloca_.h: New file.
92847         * lib/getdate.y: Unconditionally include alloca.h.
92848         * lib/makepath.c: Likewise.
92849         * lib/setenv.c: Likewise.
92850         * lib/userspec.c: Likewise.
92851
92852 2003-01-09  Karl Berry  <karl@gnu.org>
92853
92854         * MODULES.html.sh: include `dirname $0` in PATH, to find
92855         gnulib-tool.
92856
92857 2003-01-09  Bruno Haible  <bruno@clisp.org>
92858
92859         * modules/stdbool: Change configure.ac, Makefile.am requirements.
92860         Simplify Include requirements. Add lib/stdbool.h.in to file list.
92861
92862 2003-01-09  Bruno Haible  <bruno@clisp.org>
92863
92864         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
92865
92866 2003-01-09  Bruno Haible  <bruno@clisp.org>
92867
92868         * lib/stdbool.h.in: New file.
92869
92870 2003-01-09  Bruno Haible  <bruno@clisp.org>
92871
92872         * gnulib-tool (func_all_modules): Ignore files ending in ~.
92873         * MODULES.html.sh: Likewise.
92874
92875 2003-01-08  Jim Meyering  <jim@meyering.net>
92876
92877         * lib/full-write.c: Undefine and define-away `const' after inclusion
92878         of errno.h, not before.  Suggestion from Bruno Haible.
92879
92880 2003-01-08  Bruno Haible  <bruno@clisp.org>
92881
92882         * modules/full-read: Depend on full-write.
92883
92884 2003-01-08  Bruno Haible  <bruno@clisp.org>
92885
92886         * lib/safe-read.c: Include specification header first, to ensure its
92887         selfcontainedness.
92888         * lib/full-write.c: Likewise.
92889
92890 2003-01-07  Jim Meyering  <jim@meyering.net>
92891
92892         * lib/full-write.c: Rework so that it may serve to define full_read,
92893         too.
92894         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
92895
92896 2003-01-07  Bruno Haible  <bruno@clisp.org>
92897
92898         * lib/strtoimax.c: Include <stdint.h> as an alternative to
92899         <inttypes.h>.
92900         * lib/xstrtol.h: Likewise.
92901         * lib/xstrtoimax.c: Likewise.
92902         * lib/xstrtoumax.c: Likewise.
92903         * lib/human.h: Likewise.
92904
92905         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
92906         on systems that have <inttypes.h> but not <stdint.h>.
92907
92908 2003-01-07  Bruno Haible  <bruno@clisp.org>
92909
92910         * MODULES.html.sh: Add copyright notice.
92911         (missed_files): Omit CVS directory entries.
92912         (func_module): Make it work with sed-3.02.
92913         * MODULES.txt: Remove file.
92914
92915 2003-01-06  Jim Meyering  <jim@meyering.net>
92916
92917         * lib/version-etc.c: Update year in translatable copyright string.
92918
92919 2003-01-03  Karl Berry  <karl@gnu.org>
92920
92921         * config/config.{guess,sub}: update from prep.
92922
92923 2003-01-02  Karl Berry  <karl@gnu.org>
92924
92925         * doc/COPYING.DOC: belatedly updated to 1.2.
92926
92927 2003-01-01  Karl Berry  <karl@gnu.org>
92928
92929         * gnulib-tool (func_verify_module): report module name $module in
92930         error message, not $1.
92931         * gnulib-tool (create-testdir): don't complain if destdir couldn't
92932         be created, only if it doesn't exist.
92933         * gnulib-tool (last_checkin_date): don't expand the $Date here.
92934
92935 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92936
92937         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
92938
92939 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92940
92941         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
92942         memcmp if strcoll doesn't work.
92943
92944 2002-12-31  Bruno Haible  <bruno@clisp.org>
92945
92946         * lib/utime.c (utime_null): No need to call ftruncate if the file was
92947         nonempty.
92948
92949 2002-12-31  Bruno Haible  <bruno@clisp.org>
92950
92951         * lib/memcoll.c (STRCOLL): New macro.
92952         (memcoll): Use it.
92953
92954 2002-12-31  Bruno Haible  <bruno@clisp.org>
92955
92956         * lib/localcharset.h: New file.
92957         * lib/localcharset.c: Include it.
92958         * lib/unicodeio.c: Likewise.
92959
92960 2002-12-31  Bruno Haible  <bruno@clisp.org>
92961
92962         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
92963         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
92964
92965 2002-12-31  Bruno Haible  <bruno@clisp.org>
92966
92967         * lib/getline.h: Include <stddef.h>, for size_t.
92968
92969         * lib/unicodeio.h: Include <stddef.h>, for size_t.
92970         * lib/unicodeio.c: Don't include <stddef.h>.
92971
92972 2002-12-31  Bruno Haible  <bruno@clisp.org>
92973
92974         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
92975         HAVE_TM_ZONE.
92976
92977 2002-12-24  Karl Berry  <karl@gnu.org>
92978
92979         * config/config.guess: update from prep.
92980
92981 2002-12-24  Bruno Haible  <bruno@clisp.org>
92982
92983         General infrasructure.
92984         * m4/README: Rewritten.
92985         * m4/onceonly.m4: New file.
92986         * m4/onceonly_2_57.m4: New file.
92987
92988         Module atexit.
92989         * m4/atexit.m4: New file.
92990
92991         Module strtod.
92992         * m4/strtod.m4: New file.
92993
92994         Module strtol.
92995         * m4/strtol.m4: New file.
92996
92997         Module strtoul.
92998         * m4/strtoul.m4: New file.
92999
93000         Module memchr.
93001         * m4/memchr.m4: New file.
93002
93003         Module memcmp.
93004         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93005         (jm_FUNC_MEMCMP): Invoke it.
93006
93007         Module memcpy.
93008         * m4/memcpy.m4: New file.
93009
93010         Module memmove.
93011         * m4/memmove.m4: New file.
93012
93013         Module memset.
93014         * m4/memset.m4: New file.
93015
93016         Module strcspn.
93017         * m4/strcspn.m4: New file.
93018
93019         Module strpbrk.
93020         * m4/strpbrk.m4: New file.
93021
93022         Module strstr.
93023         * m4/strstr.m4: New file.
93024
93025         Module strerror.
93026         * m4/strerror.m4: New file.
93027
93028         Module mktime.
93029         * m4/mktime.m4: Renamed from jm-mktime.m4.
93030         (gl_PREREQ_MKTIME): New macro.
93031         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93032
93033         Module malloc.
93034         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93035         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93036         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93037
93038         Module realloc.
93039         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93040         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93041         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93042
93043         Module strftime.
93044         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93045         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93046         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93047         gl_TM_GMTOFF.
93048         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93049
93050         Module xalloc.
93051         * m4/xalloc.m4: New file.
93052
93053         Module alloca.
93054         * m4/alloca.m4: New file.
93055
93056         Module putenv.
93057         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93058         (jm_FUNC_PUTENV): Invoke it.
93059
93060         Module setenv.
93061         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93062         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93063         when invoked twice.
93064         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93065         gt_FUNC_SETENV.
93066
93067         Module memrchr.
93068         * m4/memrchr.m4: New file.
93069
93070         Module stpcpy.
93071         * m4/stpcpy.m4: New file.
93072
93073         Module strcase.
93074         * m4/strcase.m4: New file.
93075
93076         Module strdup.
93077         * m4/strdup.m4: New file.
93078
93079         Module strnlen.
93080         * m4/strnlen.m4: New file.
93081
93082         Module strndup.
93083         * m4/strndup.m4: New file.
93084
93085         Module xstrtod.
93086         * m4/xstrtod.m4: New file.
93087
93088         Module xstrtol.
93089         * m4/xstrtol.m4: New file.
93090
93091         Module getdate.
93092         * m4/getdate.m4: New file.
93093
93094         Module unlocked-io.
93095         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93096         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93097         * m4/jm-glibc-io.m4n: Remove file.
93098
93099         Module long-options.
93100         * m4/long-options.m4: New file.
93101
93102         Module md5.
93103         * m4/md5.m4: New file.
93104
93105         Module sha.
93106         * m4/sha.m4: New file.
93107
93108         Module getstr.
93109         * m4/getstr.m4: New file.
93110
93111         Module getline.
93112         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93113         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93114         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93115         simply getline. Infoke gl_PREREQ_GETLINE.
93116
93117         Module obstack.
93118         * m4/obstack.m4: New file.
93119
93120         Module hash.
93121         * m4/hash.m4: New file.
93122
93123         Module readtokens.
93124         * m4/readtokens.m4: New file.
93125
93126         Module strverscmp.
93127         * m4/strverscmp.m4: New file.
93128
93129         Module stdbool.
93130         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93131         OSF/1.
93132
93133         Module strtoll.
93134         * m4/strtoll.m4: New file.
93135
93136         Module strtoull.
93137         * m4/strtoull.m4: New file.
93138
93139         Module strtoimax.
93140         * m4/strtoimax.m4: New file.
93141
93142         Module strtoumax.
93143         * m4/strtoumax.m4: New file.
93144
93145         Module xstrtoimax.
93146         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93147         jm_AC_PREREQ_XSTRTOIMAX.
93148         Moved the strtol prerequisites to strtol.m4.
93149         Moved the strtoll prerequisites to strtoll.m4.
93150         Moved the strtoimax prerequisites to strtoimax.m4.
93151
93152         Module xstrtoumax.
93153         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93154         jm_AC_PREREQ_XSTRTOUMAX.
93155         Moved the strtoul prerequisites to strtoul.m4.
93156         Moved the strtoull prerequisites to strtoull.m4.
93157         Moved the strtoumax prerequisites to strtoumax.m4.
93158
93159         Module chown.
93160         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93161         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93162
93163         Module dup2.
93164         * m4/dup2.m4: New file.
93165
93166         Module ftruncate.
93167         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93168         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93169
93170         Module getgroups.
93171         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93172         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93173
93174         Module gettimeofday.
93175         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93176         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93177         gl_PREREQ_GETTIMEOFDAY.
93178
93179         Module mkdir.
93180         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93181         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93182
93183         Module mkstemp.
93184         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93185         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93186         jm_AC_TYPE_UINTMAX_T.
93187         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93188
93189         Module stat.
93190         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93191         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93192
93193         Module lstat.
93194         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93195         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93196
93197         Module timespec.
93198         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93199         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93200         * m4/st_mtim.m4: Indentation.
93201
93202         Module nanosleep.
93203         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93204         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93205         gl_PREREQ_NANOSLEEP.
93206
93207         Module regex.
93208         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93209         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93210         (gl_REGEX): New macro.
93211
93212         Module rename.
93213         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93214         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93215
93216         Module rmdir.
93217         * m4/rmdir.m4: New file.
93218
93219         Module utime.
93220         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93221         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93222         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93223
93224         Module dirname.
93225         * m4/dirname.m4: New file.
93226
93227         Module getopt.
93228         * m4/getopt.m4: New file.
93229
93230         Module unistd-safer.
93231         * m4/unistd-safer.m4: New file.
93232
93233         Module fnmatch.
93234         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93235         declaration.
93236         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93237         (gl_FUNC_FNMATCH_POSIX): New macro.
93238         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93239         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93240         simply fnmatch.
93241
93242         Module exclude.
93243         * m4/exclude.m4: New file.
93244
93245         Module human.
93246         * m4/human.m4: New file.
93247
93248         Module acl.
93249         * m4/acl.m4: Nop.
93250
93251         Module backupfile.
93252         * m4/backupfile.m4: New file.
93253         * m4/d-ino.m4: Indentation.
93254
93255         Module fsusage.
93256         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93257         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93258         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93259
93260         Module dirfd.
93261         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93262         requirements.
93263
93264         Module euidaccess.
93265         * m4/euidaccess.m4: New file.
93266
93267         Module file-type.
93268         * m4/file-type.m4: New file.
93269
93270         Module fileblocks.
93271         * m4/fileblocks.m4: New file.
93272
93273         Module filemode.
93274         * m4/filemode.m4: New file.
93275
93276         Module isdir.
93277         * m4/isdir.m4: New file.
93278
93279         Module lchown.
93280         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93281         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93282
93283         Module makepath.
93284         * m4/makepath.m4: New file.
93285
93286         Module modechange.
93287         * m4/modechange.m4: New file.
93288
93289         Module mountlist.
93290         * m4/mountlist.m4: New file.
93291         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93292         Indentation.
93293
93294         Module path-concat.
93295         * m4/path-concat.m4: New file.
93296
93297         Module pathmax.
93298         * m4/pathmax.m4: New file.
93299
93300         Module same.
93301         * m4/same.m4: New file.
93302
93303         Module save-cwd.
93304         * m4/save-cwd.m4: New file.
93305
93306         Module savedir.
93307         * m4/savedir.m4: New file.
93308
93309         Module xgetcwd.
93310         * m4/xgetcwd.m4: New file.
93311         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93312
93313         Module xreadlink.
93314         * m4/xreadlink.m4: New file.
93315
93316         Module safe-read.
93317         * m4/safe-read.m4: New file.
93318
93319         Module safe-write.
93320         * m4/safe-write.m4: New file.
93321
93322         Module closeout.
93323         * m4/closeout.m4: New file.
93324
93325         Module stdio-safer.
93326         * m4/stdio-safer.m4: New file.
93327
93328         Module getpass.
93329         * m4/getpass.m4: New file.
93330
93331         Module getugroups.
93332         * m4/getugroups.m4: New file.
93333
93334         Module group-member.
93335         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93336         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93337
93338         Module idcache.
93339         * m4/idcache.m4: New file.
93340
93341         Module userspec.
93342         * m4/userspec.m4: New file.
93343
93344         Module gettime.
93345         * m4/clock_time.m4: New file.
93346         * m4/gettime.m4: New file.
93347
93348         Module settime.
93349         * m4/settime.m4: New file.
93350
93351         Module posixtm.
93352         * m4/posixtm.m4: New file.
93353
93354         Module gethostname.
93355         * m4/gethostname.m4: New file.
93356
93357         Module canon-host.
93358         * m4/canon-host.m4: New file.
93359
93360         Module gettext.
93361         * m4/codeset.m4: New file, from gettext-0.11.5.
93362         * m4/gettext.m4: New file, from gettext-0.11.5.
93363         * m4/glibc21.m4: New file, from gettext-0.11.5.
93364         * m4/iconv.m4: New file, from gettext-0.11.5.
93365         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93366         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93367         * m4/inttypes.m4: New file, from gettext-0.11.5.
93368         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93369         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93370         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93371         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93372         * m4/lib-link.m4: New file, from gettext-0.11.5.
93373         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93374         * m4/progtest.m4: New file, from gettext-0.11.5.
93375         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93376         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93377         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93378
93379         Module localcharset.
93380         * m4/localcharset.m4: New file.
93381
93382         Module hard-locale.
93383         * m4/hard-locale.m4: New file.
93384
93385         Module mbswidth.
93386         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93387         onceonly macros.
93388         * m4/mbrtowc.m4: Add comment.
93389
93390         Module memcasecmp.
93391         * m4/memcasecmp.m4: New file.
93392
93393         Module memcoll.
93394         * m4/memcoll.m4: New file.
93395
93396         Module unicodeio.
93397         * m4/unicodeio.m4: New file.
93398
93399         Module rpmatch.
93400         * m4/rpmatch.m4: New file.
93401
93402         Module yesno.
93403         * m4/yesno.m4: New file.
93404
93405         Module exitfail.
93406         * m4/exitfail.m4: New file.
93407
93408         Module c-stack.
93409         * m4/c-stack.m4 (gl_C_STACK): New macro.
93410         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93411
93412         Module error.
93413         * m4/error.m4 (gl_ERROR): New macro.
93414         (jm_PREREQ_ERROR): Use onceonly macros.
93415
93416         Module fatal.
93417         * m4/fatal.m4: New file.
93418
93419         Module getloadavg.
93420         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93421         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93422
93423         Module getpagesize.
93424         * m4/getpagesize.m4: New file.
93425
93426         Module getusershell.
93427         * m4/getusershell.m4: New file.
93428
93429         Module physmem.
93430         * m4/physmem.m4: New file.
93431
93432         Module posixver.
93433         * m4/posixver.m4: New file.
93434
93435         Module quotearg.
93436         * m4/quotearg.m4: New file.
93437
93438         Module quote.
93439         * m4/quote.m4: New file.
93440
93441         Module readutmp.
93442         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93443
93444         Module sig2str.
93445         * m4/sig2str.m4: New file.
93446
93447         Other.
93448         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93449         ulonglong.m4.
93450         * m4/intmax_t.m4: New file.
93451         * m4/d-type.m4: Indentation.
93452         * m4/jm-macros.m4: Update.
93453         * m4/prereq.m4 (jm_PREREQ): Update.
93454         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93455         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93456         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93457         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93458         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93459         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93460         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93461         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93462         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93463         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93464         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93465         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93466         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93467         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93468         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93469         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93470         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93471         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93472         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93473
93474 2002-12-24  Bruno Haible  <bruno@clisp.org>
93475
93476         * MODULES.txt: Update according to m4/ changes.
93477
93478         Module gettext.
93479         * config.rpath: New file, from gettext-0.11.5.
93480
93481         * modules/*: New module descriptions.
93482         * gnulib-tool: New file.
93483         * MODULES.html.sh: New file.
93484
93485 2002-12-21  Karl Berry  <karl@gnu.org>
93486
93487         * doc/fdl.texi: update to version 1.2.
93488
93489 2002-12-19  Karl Berry  <karl@gnu.org>
93490
93491         * config/config.guess: update from prep.
93492
93493 2002-12-18  Bruno Haible  <bruno@clisp.org>
93494
93495         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93496         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93497
93498 2002-12-17  Bruno Haible  <bruno@clisp.org>
93499
93500         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93501         stdlib.h, string.h.
93502
93503 2002-12-17  Bruno Haible  <bruno@clisp.org>
93504
93505         * lib/canon-host.c (strdup): Remove unused declaration.
93506
93507         * lib/fsusage.c: Include full_read.h.
93508         (get_fs_usage): Use full_read instead of safe_read.
93509
93510         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93511
93512 2002-12-12  Karl Berry  <karl@gnu.org>
93513
93514         * config/config.guess: update from prep.
93515
93516 2002-12-11  Bruno Haible  <bruno@clisp.org>
93517
93518         * m4/setenv.m4: New file, from gettext-0.11.5.
93519
93520 2002-12-11  Bruno Haible  <bruno@clisp.org>
93521
93522         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93523         not unsetenv().
93524         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93525         modifications:
93526
93527         2002-12-11  Bruno Haible  <bruno@clisp.org>
93528
93529                 * setenv.c (alloca): Fall back to malloc.
93530                 (freea): New macro.
93531                 (setenv): Use freea() to free memory allocated with alloca().
93532
93533         2002-11-13  Bruno Haible  <bruno@clisp.org>
93534
93535                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93536                 function declarations.
93537                 * unsetenv.c (unsetenv): Likewise.
93538
93539         2002-03-04  Bruno Haible  <bruno@clisp.org>
93540
93541                 Portability to AIX 4.3.3.
93542                 * unsetenv.c: New file, extracted from setenv.c.
93543                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93544
93545         2001-12-20  Bruno Haible  <bruno@clisp.org>
93546
93547                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93548                 use malloc instead. For SunOS 4.
93549
93550         2001-12-11  Bruno Haible  <bruno@clisp.org>
93551
93552                 * setenv.c: Declare alloca.
93553                 (compar_fn_t): New typedef.
93554                 (KNOWN_VALUE, STORE_VALUE): Use it.
93555
93556         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93557         setenv.h.
93558
93559 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93560
93561         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93562         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93563         Choose values that are less likely to collide with system fnmatch
93564         options.
93565         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93566         defined (e.g., a pure POSIX system).
93567         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93568         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93569
93570 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93571
93572         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93573         a pain in practice to deal with generated m4 files.  This change
93574         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93575
93576         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93577         and jm-glibc-io.m4, as they are no longer a special case.
93578         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93579         kludge and the auto-generation stuff.  Check only whether the
93580         functions are declared, not whether they exist, since older hosts
93581         that don't declare the functions can't use the optimization anyway.
93582
93583 2002-12-06  Jim Meyering  <jim@meyering.net>
93584
93585         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
93586
93587         Merge in changes from libc's misc/error.c, in preparation
93588         for the merge of gnulib's changes back into libc.
93589
93590         * lib/error.c (_): Define only if not already defined.
93591         Move definition to follow all #include directives.
93592         Include unlocked-io.h only if !_LIBC.
93593         [_LIBC]: Include <libio/libioP.h>.
93594         [USE_IN_LIBIO]: Include <libio/iolibio.h>
93595         (fflush): Tweak definition to use INTUSE.
93596         (putc): Define.
93597
93598 2002-12-05  Paul Eggert  <eggert@twinsun.com>
93599
93600         * lib/alloca.c [defined emacs]: Include "lisp.h".
93601         (xalloc_die) [defined emacs]: New macro.
93602         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
93603         [! defined emacs]: Include <xalloc.h>.
93604         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
93605         (pointer): Typedef to POINTER_TYPE *.
93606         (malloc): Remove decl; we now always use xmalloc.
93607         (alloca): Use old-style definition, since Emacs needs this.
93608         Check for arithmetic overflow when computing combined size.
93609
93610 2002-12-04  Paul Eggert  <eggert@twinsun.com>
93611
93612         Do not generate unlocked-io.h automatically, since it's easier to
93613         maintain it by hand.
93614
93615         * lib/unlocked-io.h: New file, from GNU diffutils,
93616         but with proper copyright notice and attribution.
93617         * lib/gen-uio: Remove.
93618         * lib/Makefile.am: Add copyright notice.
93619         (libfetish_a_SOURCES): Add unlocked-io.h.
93620         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
93621         (DISTCLEANFILES, io_functions): Remove macros.
93622         (EXTRA_DIST): Remove gen_uio.
93623         (unlocked-io.h): Remove rule.
93624
93625 2002-12-04  Jim Meyering  <jim@meyering.net>
93626
93627         Reflect the fact that stat.c and lstat.c are no longer generated.
93628         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
93629         (DISTCLEANFILES): Likewise.
93630         (EXTRA_DIST): Likewise.
93631         (all_local): Don't depend on stat.c or lstat.c.
93632         (stat.c, lstat.c): Remove rules.
93633         (EXTRA_DIST): Remove xstat.in.
93634
93635         * lib/xstat.in: Remove file.  Contents moved into stat.c.
93636         * lib/stat.c: New file.  Contents mostly from xstat.in.
93637         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
93638         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
93639
93640         * lib/safe-read.c: Rework so that it may serve to define safe_write,
93641         too.
93642         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
93643
93644 2002-12-03  Jim Meyering  <jim@meyering.net>
93645
93646         * lib/safe-read.c, safe-write.c: Change variable names and comments,
93647         but not semantics, to minimize the differences between these two files.
93648         (safe_read): Change comment to mention SAFE_READ_ERROR.
93649
93650         * lib/safe-read.c (IS_EINTR): Define.
93651         (safe_read): Use IS_EINTR in place of in-function cpp directives.
93652
93653 2002-12-02  Jim Meyering  <jim@meyering.net>
93654
93655         * lib/safe-read.c (EINTR): Define.
93656         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93657         (INT_MAX): Provide fallback.
93658         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
93659
93660         * lib/safe-read.h (SAFE_READ_ERROR): Define.
93661
93662 2002-12-02  Bruno Haible  <bruno@clisp.org>
93663
93664         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
93665         Define, taken from safe-read.c.
93666         (INT_MAX): Provide fallback.
93667         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
93668         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
93669
93670         * lib/safe-read.c (EINTR): Remove definition.
93671         (safe_read): Don't use EINTR if it is absent.
93672
93673 2002-12-01  Jim Meyering  <jim@meyering.net>
93674
93675         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
93676         zero.
93677         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
93678
93679 2002-11-27  Paul Eggert  <eggert@twinsun.com>
93680
93681         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
93682         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
93683         with `if (! (value < limit)) abort ();', for readability.
93684
93685 2002-11-26  Karl Berry  <karl@gnu.org>
93686
93687         * lib/strdup.c: copy from libc again, with jim's ok.
93688         * lib/.cppi-disable: re-add strdup.c
93689
93690 2002-11-25  Karl Berry  <karl@gnu.org>
93691
93692         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
93693         instead of "strtol.c".
93694
93695 2002-11-25  Karl Berry  <karl@gnu.org>
93696
93697         * config/install-sh: update from automake for variable quoting, $0 in
93698         error msgs, etc.
93699
93700         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
93701         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
93702         entry.
93703
93704 2002-11-25  Jim Meyering  <jim@meyering.net>
93705
93706         * lib/mktime.c: Sync from libc, now that it has the latest fix.
93707
93708 2002-11-24  Karl Berry  <karl@gnu.org>
93709
93710         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
93711         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
93712
93713 2002-11-24  Jim Meyering  <jim@meyering.net>
93714
93715         Update from coreutils:
93716
93717         * lib/mktime.c: Merge in changes from libc.
93718
93719         Avoid a link-time failure on some Linux systems.
93720         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
93721         (otherwise).
93722         (__mon_yday): Declare with the STATIC attribute.
93723         (__mktime_internal): Likewise.
93724         Based on a report from Greg Schafer.
93725
93726 2002-11-23  Jim Meyering  <jim@meyering.net>
93727
93728         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
93729         Use `unsigned', not `int', as type of index.
93730
93731         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
93732
93733         * lib/fsusage.c: Remove unneeded parentheses around operands of
93734         `defined'.
93735
93736 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93737
93738         * lib/quotearg.h: Allow multiple inclusion by surrounding with
93739         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
93740         so that we can be included first.
93741         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
93742         * lib/quotearg.c: Include quotearg.h immediately after config.h.
93743         No need to include stddef.h or sys/types.h any more.
93744         Surround local include files with "", not "<>".
93745         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
93746         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
93747         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
93748         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
93749         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
93750         (ISPRINT): Remove; no longer needed now that we assume C89.
93751
93752         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
93753         Preserve errno.
93754
93755         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
93756         quotearg_char): Use SIZE_MAX rather than
93757         (size_t) -1 when we are talking about "infinity".
93758
93759         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
93760
93761 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93762
93763         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
93764         hint that one should use `if (! x) abort ();' rather than `assert
93765         (x);', and anyway it's one less thing to worry about configuring.
93766         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
93767         hash_rehash, hash_insert): Use abort rather than assert.
93768
93769 2002-11-22  Bruno Haible  <bruno@clisp.org>
93770
93771         * lib/safe-read.h: Assume C89. Add comments.
93772         (safe_read): Change return type to size_t.
93773         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
93774         byte counts > SSIZE_MAX correctly.
93775         * lib/safe-write.h: New file.
93776         * lib/safe-write.c: New file.
93777         * lib/full-read.h: New file.
93778         * lib/full-read.c: New file.
93779         * lib/full-write.h: Assume C89. Add comments.
93780         * lib/full-write.c: Include safe-write.h.
93781         (full_write): Rewritten to use safe_write.
93782         Suggested by Jim Meyering and Paul Eggert.
93783
93784 2002-11-21  Jim Meyering  <jim@meyering.net>
93785
93786         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
93787
93788         Merge in changes from the coreutils.
93789
93790         2002-09-25  Paul Eggert  <eggert@twinsun.com>
93791         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
93792         <stdint.h>.
93793         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
93794         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
93795         int.  Work more efficiently if X is the same width as uintmax_t.
93796         Do not compare X to -1, to avoid bogus compiler warning.
93797         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
93798         Don't assume that f_frsize and f_bsize are the same type.
93799
93800         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
93801         warning on FreeBSD.
93802
93803         * lib/makepath.c (make_path): Restore umask *before* creating the final
93804         component.
93805         (make_path): Minor reformatting.
93806
93807         * lib/xmalloc.c: Adjust to work with new autoconf macros,
93808         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
93809         HAVE_MALLOC/HAVE_REALLOC.
93810
93811         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
93812         dummy ones.  At least on GNU/Linux systems, `auto' means something
93813         else.
93814         From Michael Stone.
93815
93816 2002-11-21  Bruno Haible  <bruno@clisp.org>
93817
93818         Remove case insensitive option matching.
93819         * lib/argmatch.h (argcasematch): Remove declaration.
93820         (ARGCASEMATCH): Remove macro.
93821         (__xargmatch_internal): Remove case_sensitive argument.
93822         (XARGMATCH): Update.
93823         (XARGCASEMATCH): Remove macro.
93824         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
93825         case_sensitive argument.
93826         (argcasematch): Remove function.
93827         (__xargmatch_internal): Remove case_sensitive argument.
93828         (main): Use XARGMATCH instead of XARGCASEMATCH.
93829
93830         * lib/xmalloc.c: Change compile-time error message. Add comment about
93831         required autoconf version.
93832
93833 2002-11-20  Paul Eggert  <eggert@twinsun.com>
93834
93835         Merge argmatch cleanups from Bison.  Assume C89.
93836
93837         * lib/argmatch.c: Include config.h here, not in argmatch.h.
93838         Include stdlib.h, for EXIT_FAILURE.
93839         Always include <string.h>, since we assume C89.
93840         (EXIT_FAILURE): Remove pre-C89 bug workaround.
93841         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
93842         Include <stddef.h> instead, since it's all we need for size_t.
93843         (PARAMS): Remove.  All uses removed.
93844         (ARRAY_CARDINALITY): Do not bother to #undef.
93845         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
93846         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93847         Remove unnecessary parentheses.
93848         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93849         Insert necessary parentheses.
93850         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
93851         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
93852
93853 2002-11-19  Bruno Haible  <bruno@clisp.org>
93854
93855         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
93856         * lib/mbswidth.h: Include <stddef.h>, for size_t.
93857
93858         * lib/mbswidth.h (PARAMS): Remove macro.
93859         (mbswidth, mbsnwidth): Use ANSI C function declarations.
93860         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
93861
93862         * lib/gcd.h (PARAMS): Remove macro.
93863         (gcd): Use ANSI C function declarations.
93864         * lib/gcd.c (gcd): Likewise.
93865
93866 2002-11-15  Bruno Haible  <bruno@clisp.org>
93867
93868         * lib/strcspn.c: Include <stddef.h>.
93869         (strcspn): Use ANSI C function declaration. Change return type to
93870         size_t. Use NULL.
93871         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
93872         (strpbrk): Use NULL.
93873         * lib/strpbrk.h (PARAMS): Remove macro.
93874         (strpbrk): Use ANSI C function declaration.
93875         * lib/strstr.c: Don't include <sys/types.h>.
93876         * lib/strstr.h (PARAMS): Remove macro.
93877         (strstr): Use ANSI C function declarations.
93878
93879 2002-11-14  Karl Berry  <karl@gnu.org>
93880
93881         * config/mkinstalldirs: `do' on separate line, instead of
93882         `for var; do'.
93883
93884 2002-11-06  Bruno Haible  <bruno@clisp.org>
93885
93886         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
93887         * lib/gcd.c (gcd): Likewise.
93888
93889 2002-11-05  Bruno Haible  <bruno@clisp.org>
93890
93891         * lib/gcd.h: New file, from gettext-0.11.5.
93892         * lib/gcd.c: New file, from gettext-0.11.5.
93893
93894 2002-11-05  Bruno Haible  <bruno@clisp.org>
93895
93896         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93897         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93898         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93899         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93900
93901         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
93902         <libintl.h>.
93903         * lib/makepath.c: Include gettext.h instead of <locale.h> and
93904         <libintl.h>.
93905
93906         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
93907         * lib/human.c: Include gettext.h instead of <libintl.h>.
93908         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
93909         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
93910         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
93911         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
93912         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
93913         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
93914         (textdomain): Remove definition.
93915         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
93916
93917         * lib/long-options.c: Remove include of <libintl.h> and definition of
93918         _.
93919         * lib/same.c: Remove include of <libintl.h> and definition of _.
93920
93921 2002-11-04  Owen Taylor  <otaylor@redhat.com>
93922
93923         * lib/config.charset: A few additions for Solaris.
93924
93925 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93926
93927         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
93928         * lib/localcharset.c (locale_charset): Declare as extern "C".
93929
93930 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93931
93932         * lib/config.charset: msdos in uk_UA uses CP1125.
93933
93934 2002-11-04  Bruno Haible  <bruno@clisp.org>
93935
93936         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
93937         * lib/strcase.h: New file, from GNU gettext-0.11.5.
93938         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
93939         * lib/strstr.h: New file, from GNU gettext-0.11.5.
93940         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
93941
93942 2002-11-04  Bruno Haible  <bruno@clisp.org>
93943
93944         * lib/localcharset.c (locale_charset): Don't return an empty string.
93945
93946 2002-11-04  Bruno Haible  <bruno@clisp.org>
93947
93948         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
93949         aliases.
93950
93951 2002-11-04  Bruno Haible  <bruno@clisp.org>
93952
93953         * lib/config.charset: Update for newest glibc. Add canonical names
93954         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
93955
93956 2002-11-04  Bruno Haible  <bruno@clisp.org>
93957
93958         * lib/config.charset: Add support for NetBSD.
93959
93960 2002-11-04  Bruno Haible  <bruno@clisp.org>
93961
93962         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
93963
93964 2002-11-01  Bruno Haible  <bruno@clisp.org>
93965
93966         * configure.in: Add AC_CONFIG_AUX_DIR call.
93967         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
93968         test/Makefile.
93969         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
93970
93971 2002-09-28  Karl Berry  <karl@gnu.org>
93972
93973         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
93974         installed automake until the next release, since changes have been
93975         made.
93976
93977 2002-09-25  Karl Berry  <karl@gnu.org>
93978
93979         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
93980         * lib/getopt*: copy from libc/posix.
93981         * lib/gettext.h: copy from gettext.
93982         * lib/.cppi-disable: add strdup.c, gettext.h.
93983
93984 2002-09-25  Karl Berry  <karl@gnu.org>
93985
93986         * config/srclist.txt: enable gettext.h check.
93987         * config/config.{guess,sub}: update from prep.
93988         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
93989                 from automake 1.6.3.
93990         See srclist*.
93991
93992 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
93993
93994         * regex.c (PATFETCH): Remove the translating fetch.
93995         (PATFETCH_RAW): Rename to PATFETCH.
93996         (set_image_of_range): New fun.
93997         (SET_RANGE_TABLE_WORK_AREA): Use it.
93998         (regex_compile): Don't translate the pattern chars so eagerly.
93999         Only do it when inserting an `exactn' bytecode or when handling
94000         a char-range.
94001         (mutually_exclusive_p): Avoid empty statement.
94002
94003 2002-07-06  Jim Meyering  <meyering@lucent.com>
94004
94005         * m4/README: Don't mention Makefile.am.in.
94006         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94007
94008 2002-07-01  Jim Meyering  <meyering@lucent.com>
94009
94010         * lib/c-stack.c: Include sys/time.h.
94011         From Volker Borchert.
94012
94013 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94014
94015         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94016
94017 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94018
94019         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94020         New macro.  Use it uniformly instead of
94021         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94022         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94023         reported by Vin Shelton.
94024
94025 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94026
94027         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94028         Do not assume SA_SIGINFO behavior.
94029         Bug reported by Jim Meyering on NetBSD 1.5.2.
94030
94031 2002-06-22  Jim Meyering  <meyering@lucent.com>
94032
94033         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94034         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94035
94036         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94037         now that configure.ac uses AC_GNU_SOURCE.
94038         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94039         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94040
94041         Update to latest tools.  Suggestions from Paul Eggert.
94042         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94043         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94044         * m4/fnmatch.m4: Likewise.
94045         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94046         to AC_HEADER_STDBOOL
94047
94048 2002-06-22  Jim Meyering  <meyering@lucent.com>
94049
94050         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94051         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94052
94053 2002-06-22  Jim Meyering  <meyering@lucent.com>
94054
94055         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94056
94057         * lib/exitfail.c, exitfail.h: Likewise.
94058         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94059
94060         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94061         of fnmatch.h.
94062         (EXTRA_DIST): Add fnmatch_loop.c.
94063         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94064
94065         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94066         * lib/fnmatch.c: Update from diffutils-2.8.2.
94067         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94068         * lib/fnmatch.h: Remove file.
94069
94070 2002-06-21  Jim Meyering  <meyering@lucent.com>
94071
94072         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94073         * m4/mbrtowc.m4: Likewise.
94074
94075         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94076         * m4/mbswidth.m4: Reflect name change:
94077         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94078         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94079
94080         * m4/lib-link.m4: Update from gettext-0.11.2.
94081         * m4/gettext.m4: Likewise.
94082
94083         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94084         From Alfred M. Szmidt.
94085
94086 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94087
94088         * lib/file-type.h: Report an error if neither S_ISREG nor
94089         S_IFREG is defined, instead of using a test specific to glibc
94090         2.2.  This should be safe, since POSIX requires S_ISREG and
94091         Unix Version 7 had S_IFREG.  We don't need to check for
94092         <sys/types.h> since we don't use any symbols that it defines.
94093
94094 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94095
94096         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94097         $@-t, so that each temporary file name is unique and valid in the first
94098         8 characters, for operation under DOS.
94099
94100 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94101
94102         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94103
94104 2002-06-15  Jim Meyering  <meyering@lucent.com>
94105
94106         Work even with DJGPP 2.03, which lacks support for symlinks.
94107         From Richard Dawe.
94108         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94109         is defined.
94110         * lib/lchown.c (S_ISLNK): Likewise.
94111
94112 2002-06-15  Jim Meyering  <meyering@lucent.com>
94113
94114         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94115         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94116         have been included before this file.
94117
94118 2002-06-14  Jim Meyering  <meyering@lucent.com>
94119
94120         * lib/file-type.h: Use the version from diffutils-2.8.2.
94121         * lib/file-type.c: Likewise.
94122
94123 2002-06-07  Jim Meyering  <meyering@lucent.com>
94124
94125         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94126         They're needed at least for NetBSD 1.5.2.
94127         ($statxfs_includes): Include those same headers.
94128         ($statxfs_includes): Include sys/vfs.h if available.
94129         ($statxfs_includes): Likewise for sys/statvfs.h.
94130         Check for the following members in both structs statfs and statvfs:
94131         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94132
94133 2002-06-01  Jim Meyering  <meyering@lucent.com>
94134
94135         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94136         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94137
94138 2002-05-28  Jim Meyering  <meyering@lucent.com>
94139
94140         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94141         Reported by Volker Borchert.
94142
94143 2002-05-27  Jim Meyering  <meyering@lucent.com>
94144
94145         Fix a problem seen only on nonconforming systems whereby ls.c's
94146         use of localtime, and then of gettimeofday would cause trouble:
94147         the localtime call used to initialize rpl_gettimeofday's save
94148         mechanism would clobber ls's current local time information so
94149         that in any long listing the first file would always be listed
94150         with date 1970-01-01.  Analysis by Volker Borchert.
94151
94152         * lib/gettimeofday.c (localtime): Undefine.
94153         (rpl_localtime): New function.
94154
94155 2002-05-27  Jim Meyering  <meyering@lucent.com>
94156
94157         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94158         localtime.
94159
94160         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94161         use the replacement function; it wouldn't resolve at link time.
94162         Reported by Volker Borchert.
94163
94164 2002-05-22  Jim Meyering  <meyering@lucent.com>
94165
94166         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94167         file-type.h.
94168         * lib/file-type.h: New file.
94169         * lib/file-type.c (file_type): New file/function.  Extracted from
94170         diffutils.
94171
94172 2002-04-30  Jim Meyering  <meyering@lucent.com>
94173
94174         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94175
94176 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94177
94178         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94179
94180 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94181
94182         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94183         Do not check for alloca.h (no longer used) or stdbool.h (was never
94184         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94185
94186 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94187
94188         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94189
94190 2002-04-29  Jim Meyering  <meyering@lucent.com>
94191
94192         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94193         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94194         Use AC_FUNC_STRNLEN here instead.
94195
94196         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94197         With autoconf-2.53a, it's part of AC_PROG_CC.
94198
94199 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94200
94201         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94202         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94203
94204 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94205
94206         * lib/sig2str.h, lib/sig2str.c: New files.
94207         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94208
94209 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94210
94211         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94212         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94213         of 127, since 64 is the largest conceivable number for ancient
94214         nonstandard hosts.
94215         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94216
94217 2002-04-28  Jim Meyering  <meyering@lucent.com>
94218
94219         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94220
94221 2002-04-24  Jim Meyering  <meyering@lucent.com>
94222
94223         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94224         (jm_PREREQ): Use it.
94225
94226         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94227         mach/mach.h fcntl.h.
94228         Check for this function: setlocale.
94229
94230 2002-04-24  Jim Meyering  <meyering@lucent.com>
94231
94232         * lib/gettext.h: New file, from Gettext.
94233         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94234         (libfetish_a_SOURCES): Add gettext.h.
94235
94236 2002-04-16  Jim Meyering  <meyering@lucent.com>
94237
94238         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94239         ut_pid, ut_id, ut_exit.
94240
94241 2002-04-16  Jim Meyering  <meyering@lucent.com>
94242
94243         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94244         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94245         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94246
94247 2002-04-12  Jim Meyering  <meyering@lucent.com>
94248
94249         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94250         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94251         existence of the getmntinfo function.  Needed for Darwin 5.3.
94252
94253         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94254         This is necessary at least on Darwin 5.3.
94255
94256         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94257         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94258         strnlen.o in the library, and that makes some versions of ranlib
94259         object.
94260
94261 2002-04-12  Jim Meyering  <meyering@lucent.com>
94262
94263         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94264
94265 2002-04-09  Jim Meyering  <meyering@lucent.com>
94266
94267         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94268         to be more precise.  Rather than saying we're checking whether the
94269         function `works', say what we're testing.
94270         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94271         Reported by Bruno Haible.
94272
94273 2002-03-10  Jim Meyering  <meyering@lucent.com>
94274
94275         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94276         Suggestion from Santiago Vila.
94277
94278 2002-03-08  Jim Meyering  <meyering@lucent.com>
94279
94280         * lib/rename.c: Mention that this wrapper is needed also on
94281         mips-dec-ultrix4.4 systems.
94282
94283 2002-03-02  Jim Meyering  <meyering@lucent.com>
94284
94285         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94286         not HAVE_CLOCK_SETTIME.
94287
94288 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94289
94290         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94291         Check for clock_settime.
94292
94293 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94294
94295         * lib/nanosleep.h: Rename to....
94296         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94297
94298         * lib/gettime.c: New file.
94299         * lib/settime.c: New file.
94300         * lib/stime.c: Remove.
94301
94302         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94303         timespec.h.  Remove nanosleep.h.
94304
94305 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94306
94307         * m4/acl.m4: New file.
94308         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94309         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94310
94311 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94312
94313         * lib/acl.c, lib/acl.h: New files.
94314         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94315
94316 2002-02-24  Jim Meyering  <meyering@lucent.com>
94317
94318         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94319         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94320         cause trouble.  Reported by Nelson Beebe.
94321
94322 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94323
94324         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94325         compilers that don't know that xalloc_die never returns.
94326
94327 2002-02-20  Jim Meyering  <meyering@lucent.com>
94328
94329         * lib/getdate.c: Regenerate using bison-1.33.
94330
94331 2002-02-17  Jim Meyering  <meyering@lucent.com>
94332
94333         * config/config.guess (main): Don't use `head -1'; it's no longer
94334         portable. Use `sed 1q' instead.
94335
94336 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94337
94338         * m4/codeset.m4: Upgrade to gettext-0.11.
94339         * m4/gettext.m4: Upgrade to gettext-0.11.
94340         * m4/glibc21.m4: Upgrade to gettext-0.11.
94341         * m4/iconv.m4: Upgrade to gettext-0.11.
94342         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94343         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94344         * m4/lib-ld.m4: New file, from gettext-0.11.
94345         * m4/lib-link.m4: New file, from gettext-0.11.
94346         * m4/lib-prefix.m4: New file, from gettext-0.11.
94347         * m4/progtest.m4: Upgrade to gettext-0.11.
94348
94349 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94350
94351         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94352         (jm_PREREQ): Use it.
94353
94354 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94355
94356         * lib/posixver.c, lib/posixver.h: New files.
94357         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94358
94359 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94360             Bruno Haible  <bruno@clisp.org>
94361
94362         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94363         (fwrite_success_callback): New declaration.
94364         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94365         print_unicode_char. Call failure callback instead of error.
94366         (fwrite_success_callback): New function.
94367         (exit_failure_callback): New function.
94368         (fallback_failure_callback): New function.
94369         (print_unicode_char): Call unicode_to_mb.
94370
94371 2002-01-26  Jim Meyering  <meyering@lucent.com>
94372
94373         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94374         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94375
94376 2002-01-26  Jim Meyering  <meyering@lucent.com>
94377
94378         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94379
94380 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94381
94382         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94383
94384 2002-01-22  Jim Meyering  <meyering@lucent.com>
94385
94386         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94387         Otherwise, some versions of automake would omit the rule that makes
94388         Makefile from Makefile.in.
94389
94390 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94391
94392         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94393         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94394         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94395         (memcoll): Set errno to zero if there is no error.
94396
94397         * lib/quotearg.c (quotearg_buffer_restyled):
94398         Fix bug with quoting buffers containing NUL when backslashing escapes.
94399         This bug was exposed by the other changes in this patch.
94400         (quotearg_n_options): New arg ARGSIZE.
94401         All callers changed.
94402         (quoting_options_from_style): New function.
94403         (quotearg_n_style): Use it.
94404         (quotearg_n_style_mem): New function.
94405
94406         * lib/quotearg.h (quotearg_n_style_mem): New function.
94407
94408 2002-01-19  Jim Meyering  <meyering@lucent.com>
94409
94410         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94411         Remove useless quotes: DF_PROG="df".
94412         * m4/strnlen.m4: New file.
94413
94414 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94415
94416         * lib/backupfile.c (ISDIGIT): Comment fix.
94417         * lib/getdate.y (ISDIGIT): Likewise.
94418         * lib/posixtm.c (ISDIGIT, year): Likewise.
94419         * lib/strverscmp.c (ISDIGIT): Likewise.
94420         * lib/userspec.c (ISDIGIT): Likewise.
94421
94422 2002-01-16  Jim Meyering  <meyering@lucent.com>
94423
94424         * lib/getdate.y: Add three semicolons, each just before a closing
94425         brace. Bison (as of version 1.31) no longer papers over that mistake.
94426
94427 2002-01-05  Jim Meyering  <meyering@lucent.com>
94428
94429         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94430
94431 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94432
94433         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94434         not silently exit merely because the output buffer happens to
94435         have nothing pending.
94436
94437 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94438
94439         See the big note in ../ChangeLog.
94440         * lib/human.c (suffixes): Prefer K to k for 1024.
94441         (generate_suffix_backwards): New function.
94442         (human_readable_inexact): Use it.
94443         * lib/xstrtol.c (__xstrtol): If there is no number but there
94444         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94445         Accept 'K' as well as 'k'.
94446
94447 2001-12-15  Jim Meyering  <meyering@lucent.com>
94448
94449         * lib/regex.h (__restrict_arr): Update from libc.
94450
94451         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94452         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94453         (STREQ): Define.
94454
94455 2001-12-14  Jim Meyering  <meyering@lucent.com>
94456
94457         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94458         Suggestion from Bruno Haible.
94459
94460 2001-12-10  Jim Meyering  <meyering@lucent.com>
94461
94462         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94463         xrealloc, Instead, include "xalloc.h".
94464         (initbuffer): Don't cast xmalloc return value to char*.
94465         (readline): Reword comment.
94466         Don't cast xrealloc return value to char*
94467         Return NULL, not 0.
94468
94469 2001-12-09  Jim Meyering  <meyering@lucent.com>
94470
94471         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94472         about `signed and unsigned type in conditional expression'.
94473         * lib/posixtm.c (posix_time_parse): Likewise.
94474
94475         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94476
94477         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94478         to avoid a pedantic warning.
94479
94480         * lib/getstr.c: Don't include assert.h.
94481         (getstr): Remove warning-evoking assertions.
94482         Return -1 if offset parameter is out of bounds.
94483         Change the type of a local from int to size_t.
94484
94485         * lib/strftime.c (my_strftime_localtime_r): Include this function
94486         definition in the `#if ! HAVE_TM_GMTOFF' block.
94487
94488         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94489         Include xalloc.h instead.
94490
94491 2001-12-02  Jim Meyering  <meyering@lucent.com>
94492
94493         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94494         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94495         included.
94496
94497         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94498         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94499
94500 2001-11-30  Akim Demaille  <akim@epita.fr>
94501
94502         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94503         before being defined.
94504
94505 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94506
94507         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94508         First arg is int, not unsigned.
94509         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94510         (SIZE_MAX, UINT_MAX): New macros.
94511         (quotearg_n_options): Abort if N is negative.
94512         Avoid overflow check on hosts where size_t is 64 bits and int
94513         is 32 bits, as overflow is impossible there.
94514         Fix off-by-one typo that caused unnecessary reallocation.
94515
94516 2001-11-27  Jim Meyering  <meyering@lucent.com>
94517
94518         * lib/tempname.c: Merge with version from libc.
94519         * lib/regex.c: Likewise.
94520
94521         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94522         systems for which STDC_HEADERS is 0, it was not included, resulting in
94523         a warning about an integer-to-pointer conversion problem with getenv.
94524         Reported by Volker Borchert.
94525
94526 2001-11-26  Jim Meyering  <meyering@lucent.com>
94527
94528         * lib/gtod.h: Remove file.
94529         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94530         * lib/gettimeofday.c: Don't include gtod.h.
94531         (GTOD_init): Remove function.
94532         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94533         Suggestion from Volker Borchert.
94534
94535 2001-11-23  Jim Meyering  <meyering@lucent.com>
94536
94537         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94538         it.
94539         * lib/hash.c (struct hash_table): Define it here instead.
94540
94541 2001-11-22  Jim Meyering  <meyering@lucent.com>
94542
94543         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94544
94545 2001-11-20  Jim Meyering  <meyering@lucent.com>
94546
94547         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94548         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94549
94550 2001-11-19  Jim Meyering  <meyering@lucent.com>
94551
94552         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94553         directory.  Use "conftestXXXXXX" as the template.
94554         Suggestion from Paul Eggert.
94555
94556         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94557         immediately, so the test doesn't mistakenly hit the max-open-files
94558         limit.
94559
94560 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94561
94562         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94563         (TEMPORARIES): New macro.
94564         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94565         removes an artificial limitation (e.g. HP-UX 10.20, where
94566         TMP_MAX is 17576).
94567
94568 2001-11-18  Jim Meyering  <meyering@lucent.com>
94569
94570         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94571
94572 2001-11-18  Jim Meyering  <meyering@lucent.com>
94573
94574         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94575         on SunOS 4.
94576
94577         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94578         files will be created before anything else.
94579
94580 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94581
94582         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94583         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94584
94585 2001-11-17  Jim Meyering  <meyering@lucent.com>
94586
94587         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
94588         Prompted by a report from Bob Proulx.
94589
94590         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
94591         Instead, require UTILS_FUNC_MKSTEMP.
94592
94593 2001-11-17  Jim Meyering  <meyering@lucent.com>
94594
94595         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
94596         Now, that's done as part of AC_FUNC_STRTOD.
94597
94598 2001-11-17  Jim Meyering  <meyering@lucent.com>
94599
94600         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
94601         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
94602         rather than group writable.  Patch by Juan F. Codagnone.
94603
94604         * lib/readtokens.c: Remove explicit declarations of xmalloc and
94605         xrealloc, Instead, include "xalloc.h".
94606
94607         * lib/mountlist.c: Include unlocked-io.h after all system headers.
94608         Remove explicit declarations of xmalloc, xrealloc,
94609         and xstrdup.  Instead, include "xalloc.h".
94610
94611         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
94612         unlocked-io.h.
94613         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
94614         Likewise.
94615         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
94616
94617         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
94618         Reported by Padraig Brady.
94619
94620         * lib/mkstemp.c: #undef mkstemp.
94621         Include config.h.
94622         (rpl_mkstemp): Rename from mkstemp.
94623         Protoize.
94624
94625 2001-11-16  Jim Meyering  <meyering@lucent.com>
94626
94627         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
94628         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
94629         determine the amount of total physical memory, use pstat_getstatic.
94630         HPUX-11 doesn't define _SC_PHYS_PAGES.
94631         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
94632         If sysconf couldn't be used to determine the amount of available
94633         physical memory, use both pstat_getstatic and pstat_getdynamic.
94634         Based on a patch from Bob Proulx.
94635
94636 2001-11-10  Jim Meyering  <meyering@lucent.com>
94637
94638         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
94639         (jm_PREREQ): Use it.
94640
94641 2001-11-09  Jim Meyering  <meyering@lucent.com>
94642
94643         * m4/jm-macros.m4: Require autoconf-2.52f.
94644         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
94645         Use these AC_-prefixed names, not the AM_-prefixed ones.
94646
94647         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
94648
94649 2001-11-05  Jim Meyering  <meyering@lucent.com>
94650
94651         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
94652
94653 2001-11-04  Jim Meyering  <meyering@lucent.com>
94654
94655         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
94656         $DEFS.
94657
94658 2001-11-03  Jim Meyering  <meyering@lucent.com>
94659
94660         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
94661         of AC_DEFUN.
94662
94663         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
94664         know the name of the variable in the macro definition.
94665
94666 2001-11-03  Jim Meyering  <meyering@lucent.com>
94667
94668         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
94669         in argmatch_to_argument call.
94670
94671         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
94672         argument.
94673
94674         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
94675         e.g., a fault due to an attempt to free a NULL pointer.
94676
94677 2001-11-01  Jim Meyering  <meyering@lucent.com>
94678
94679         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
94680         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
94681
94682 2001-11-01  Jim Meyering  <meyering@lucent.com>
94683
94684         * lib/dirfd.c, lib/dirfd.h: New files.
94685         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
94686
94687         * lib/hash.c (hash_print) [TESTING]: Clean up.
94688
94689 2001-10-22  Paul Eggert  <eggert@twinsun.com>
94690
94691         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
94692         to avoid a warning if -Wall.
94693
94694 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
94695
94696         * README: New file
94697         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
94698         (per RMS's instructions, this is now the canonical source)
94699         * lgpl/, gpl/: New directories.
94700
94701 2001-10-21  Paul Eggert  <eggert@twinsun.com>
94702
94703         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
94704
94705 2001-10-21  Jim Meyering  <meyering@lucent.com>
94706
94707         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
94708         this code would end up calling gettext even in packages built
94709         with --disable-nls.
94710         * lib/getopt.c (_): Likewise.
94711         * lib/regex.c (_): Likewise.
94712
94713 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94714
94715         * m4/error.m4 (jm_PREREQ_ERROR):
94716         Do not invoke AC_CHECK_FUNCS with strerror_r, as
94717         AC_FUNC_STRERROR_R does that.
94718         Check for strerror declaration.
94719
94720         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
94721         are supposed to have them these days.
94722         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
94723         Merge changes from latest Autoconf CVS.
94724         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
94725         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
94726         POSIX decided to standardize on the int flavor of strerror_r.
94727
94728 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94729
94730         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
94731         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
94732         Use strerror_r that is only a macro, even if it is not a function.
94733         (strerror): Check for HAVE_DECL_STRERROR before declaring.
94734         (private_strerror): Use prototypes, not old-style function definition.
94735         (print_errno_message): New function.
94736         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
94737         char*-flavored one.
94738         (error_tail, error, error_at_line): Use it.
94739
94740 2001-10-11  Jim Meyering  <meyering@lucent.com>
94741
94742         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
94743         and quote_n (1, ... to avoid clobbering a buffer.
94744
94745 2001-10-05  Jim Meyering  <meyering@lucent.com>
94746
94747         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
94748         hash-pjw.h.
94749         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
94750         * lib/hash-pjw.h: New file.
94751
94752 2001-09-30  Jim Meyering  <meyering@lucent.com>
94753
94754         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
94755         `struct fsstat' has the `f_fstypename' member.
94756         Use that to define FS_TYPE, which is now used to make
94757         the getfsstat link test tighter.
94758
94759 2001-09-30  Jim Meyering  <meyering@lucent.com>
94760
94761         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
94762         Include <sys/ucred.h>, for Apple Darwin.
94763         Include sys/mount.h and sys/fs_types.h only if available.
94764         (FS_TYPE): Define.
94765         (read_filesystem_list): Use FS_TYPE.
94766
94767 2001-09-29  Paul Eggert  <eggert@twinsun.com>
94768
94769         * lib/exclude.c (excluded_filename): 0 -> false, since it's
94770         a boolean context.
94771
94772 2001-09-29  Jim Meyering  <meyering@lucent.com>
94773
94774         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94775         [one-argument getmntent function]): Include stdio.h before mntent.h.
94776         SunOS 4.1.x needs it for the declaration of `FILE'.
94777         Patch by Volker Borchert.
94778
94779         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94780         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
94781         sys/fs_types.h, and make the link-test for getfsstat guard #include
94782         directives with appropriate #if HAVE_*_H tests so that we can
94783         detect getfsstat on Apple Darwin1.3.7 systems.
94784         Reported by Nelson Beebe.
94785         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
94786
94787 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94788
94789         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94790         #defines strtoimax.  Also treat the other strto* functions
94791         like strtoimax.
94792
94793         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94794         Check for strtoul and strtoumax,
94795         as those declarations are made even in the signed case.
94796         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
94797         Likewise, for strtol and strtoimax.
94798
94799 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94800
94801         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94802         #defines strtoimax.  Also treat the other strto* functions
94803         like strtoimax.
94804
94805         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
94806         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
94807         (strtoimax, strtoumax): Do not declare if already defined as a macro.
94808
94809 2001-09-26  Jim Meyering  <meyering@lucent.com>
94810
94811         Most macros in unlocked-io.h had the wrong number of arguments.
94812         * lib/gen-uio: New script.
94813         (USE_UNLOCKED_IO): Define to 1 if not already defined.
94814         * lib/unlocked-io.hin: Remove file.
94815         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
94816         rather than trying to embed it here.
94817         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
94818         Reported by Padraig Brady.
94819
94820 2001-09-25  Volker Borchert  <bt@teknon.de>
94821
94822         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
94823         `result'.
94824
94825 2001-09-24  Jim Meyering  <meyering@lucent.com>
94826
94827         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
94828
94829 2001-09-23  Jim Meyering  <meyering@lucent.com>
94830
94831         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
94832         instead of the mere test for existence of mntent.h.  The latter
94833         would get a false-positive on AIX 3.4 systems.
94834         In the outer getmntent if-block, don't die if neither of the getmntent
94835         tests succeeds.  Instead, just fall through and continue with the
94836         remaining tests.
94837
94838 2001-09-23  Jim Meyering  <meyering@lucent.com>
94839
94840         * lib/mountlist.c: Remove useless parentheses in #if directives.
94841         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
94842         the deprecated MOUNTED symbol is no longer defined in mntent.h.
94843
94844 2001-09-22  Jim Meyering  <meyering@lucent.com>
94845
94846         * m4/gettext.m4: New file.  From gettext.
94847         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
94848         * m4/progtest.m4: Likewise
94849         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
94850         * m4/glibc21.m4: Likewise.
94851
94852         * m4/libintl.m4: Remove.  No longer used.
94853
94854 2001-09-22  Jim Meyering  <meyering@lucent.com>
94855
94856         * lib/localcharset.c: Update from latest gettext.
94857         * lib/config.charset: Likewise.
94858
94859 2001-09-20  Jim Meyering  <meyering@lucent.com>
94860
94861         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
94862         strtoimax.
94863         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
94864         strtoumax.
94865
94866 2001-09-20  Jim Meyering  <meyering@lucent.com>
94867
94868         * lib/xstrtol.c (strtoimax): Guard declaration with
94869         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
94870         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
94871         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
94872         (strtoumax): Likewise, for completeness (it wasn't necessary).
94873
94874 2001-09-17  Paul Eggert  <eggert@twinsun.com>
94875
94876         * lib/strtoimax.c (HAVE_LONG_LONG):
94877         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
94878         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
94879         to work around bug in IBM C compiler.
94880
94881 2001-09-17  Jim Meyering  <meyering@lucent.com>
94882
94883         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
94884         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
94885         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
94886         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
94887         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
94888         whenever the right hand side need not be expanded by the shell.
94889
94890 2001-09-16  Paul Eggert  <eggert@twinsun.com>
94891
94892         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
94893         library.  It's not correct, as some older glibcs are buggy.
94894         fnmatch wasn't fixed until glibc 2.2.
94895
94896         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
94897         special shell magic here.
94898
94899 2001-09-16  Jim Meyering  <meyering@lucent.com>
94900
94901         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
94902         * m4/jm-macros.m4: Require it.
94903
94904 2001-09-16  Jim Meyering  <meyering@lucent.com>
94905
94906         * lib/mkdir.c: New file.
94907
94908 2001-09-15  Jim Meyering  <meyering@lucent.com>
94909
94910         * m4/jm-macros.m4: Check for help2man.
94911
94912 2001-09-11  Jim Meyering  <meyering@lucent.com>
94913
94914         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
94915         The body, by Paul Eggert, was moved here from configure.in.
94916         * m4/jm-macros.m4: Require UTILS_HOST_OS.
94917
94918 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94919
94920         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
94921         (jm_PREREQ): Use it.
94922
94923 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94924
94925         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
94926         Use ssize_t, not int, to store result of readlink.
94927         Check for ssize_t overflow as well as size_t overflow,
94928         as POSIX says the result of readlink is implementation-defined
94929         when ssize_t overflows.
94930         Remove unnecessary cast to char*.
94931         Use free+malloc instead of realloc, as the storage doesn't need
94932         to be preserved and it's clearer and can be more efficient that way.
94933         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
94934         * lib/xreadlink.h (xreadlink): Update prototype.
94935
94936 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94937
94938         * lib/xgetcwd.c: Revert some of the previous change; intead,
94939         fix the HAVE_GETCWD_NULL code to behave more like the
94940         !HAVE_GETCWD_NULL code used to.
94941
94942         Include "xalloc.h".
94943         (xgetcwd): Do not return NULL when memory is exhausted; instead,
94944         invoke xalloc_die.
94945
94946 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94947
94948         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
94949         sys/param.h, as pathmax.h includes them.
94950
94951 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94952
94953         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
94954         (jm_PREREQ_XGETCWD): New macro.
94955
94956         * m4/getcwd.m4: New file.
94957
94958 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94959
94960         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
94961         like the HAVE_GETCWD_NULL code.
94962         Include pathmax.h if not HAVE_GETCWD.
94963         Do not include xalloc.h.
94964         (INITIAL_BUFFER_SIZE): New symbol.
94965         Do not use xmalloc / xrealloc, since the caller is responsible for
94966         handling errors.  Preserve errno around `free' during failure.
94967         Do not overrun buffer when using getwd.
94968
94969 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94970
94971         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
94972         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
94973         getcwd (NULL, 0).
94974
94975 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94976
94977         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
94978         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
94979         spotted by Jim Meyering.
94980
94981 2001-09-03  Jim Meyering  <meyering@lucent.com>
94982
94983         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
94984         failure.
94985
94986 2001-09-02  Jim Meyering  <meyering@lucent.com>
94987
94988         * lib/error.c: Update from GNU libc.
94989
94990 2001-09-01  Jim Meyering  <meyering@lucent.com>
94991
94992         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
94993         Used by df.
94994
94995 2001-09-01  Jim Meyering  <meyering@lucent.com>
94996
94997         * lib/xreadlink.c: New file.
94998         * lib/xreadlink.h: New file.
94999         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95000         xreadlink.h.
95001
95002         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95003         doesn't conflict with sparc Solaris 7's definition in
95004         /usr/include/sys/int_types.h.
95005
95006         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95007         files.
95008         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95009         and strncasecmp as r-values.  Unixware didn't have declarations.
95010
95011 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95012
95013         * lib/xstrtol.h: Add copyright notice.
95014         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95015         LONGINT_INVALID_SUFFIX_CHAR.
95016
95017 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95018
95019         * lib/xstrtol.c (strtoimax): New decl.
95020
95021 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95022
95023         * lib/xgetcwd.c: Don't include pathmax.h.
95024         Include stdlib.h and unistd.h if available.
95025         Include xalloc.h.
95026         (xmalloc, xstrdup, free): Remove decls.
95027         (xgetcwd): Don't assume sizes fit in unsigned.
95028         Check for overflow when computing sizes.
95029         Simplify reallocation code.
95030
95031 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95032
95033         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95034         a directory's st_size can have an arbitrary value, so the old
95035         usage could waste an arbitrary amount of memory.  All uses
95036         changed.
95037         * lib/savedir.h: Update prototype.
95038
95039 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95040
95041         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95042
95043         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95044         old strtoimax.c.
95045
95046         Also, make the following further changes to make this file's
95047         configuration more similar to that of strtol.c:
95048         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95049         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95050         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95051         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95052         changed to signed values.
95053
95054         And make the following changes as well:
95055         Fix copyright notice, as 1999 was missing.
95056         (verify): New macro.
95057         (strtoimax): Check sizes at compile-time, not run-time.
95058         Prefer strtol to strtoll if both work.
95059         (main): Remove; it was not that useful and was a pain to maintain.
95060
95061         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95062
95063 2001-08-31  Jim Meyering  <meyering@lucent.com>
95064
95065         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95066         Use an initial, malloc'd, buffer of length 128 rather than
95067         a statically allocated one of length 1024.
95068
95069 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95070
95071         Simplify code, partly by assuming autoconf 2.52 semantics.
95072
95073         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95074
95075         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95076         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95077         All uses removed.
95078         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95079         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95080         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95081         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95082         jm_AC_HEADER_INTTYPES_H.
95083         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95084
95085         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95086
95087         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95088         Quote first arg of AC_DEFUN.
95089         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95090         since they are needed to parse the include file even if we need
95091         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95092         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95093         but with opposite signedness.
95094
95095 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95096
95097         Merge 'exclude' changes from tar 1.13.22.
95098         This fixes one or two unlikely storage allocation overflow bugs,
95099         but doesn't change user-visible behavior otherwise.
95100
95101 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95102
95103         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95104         (jm_PREREQ_EXCLUDE): New macro.
95105
95106 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95107
95108         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95109         tm to be declared.
95110
95111 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95112
95113         * lib/hash.c: Remove '2001' from copyright notice.
95114
95115 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95116
95117         * lib/full-write.h: New file.
95118         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95119         * lib/full-write.c: Correct credits, as cccp.c no longer
95120         exists and anyway it was so heavily changed from the old cccp
95121         code as to be unrecognizable.  Include full-write.h.
95122         (full_write): Return size_t, with short writes meaning failure.
95123         All callers changed.  This fixes a bug with large buffers
95124         on 64-bit hosts.
95125         * lib/utime.c: Include full-write.h.
95126
95127 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95128
95129         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95130         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95131         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95132         Include if available.
95133         (<xalloc.h>): Include
95134         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95135         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95136         collide with FNM macros.
95137         (struct patopts): New struct.
95138         (struct exclude): Use it, as exclude patterns now come with options.
95139         (new_exclude): Support above changes.
95140         (new_exclude, add_exclude_file):
95141         Initial size must now be a power of two to simplify overflow checking.
95142         (free_exclude, fnmatch_no_wildcards): New function.
95143         (excluded_filename): No longer requires options arg, as the options
95144         are determined by add_exclude.  Now returns bool, not int.
95145         (excluded_filename, add_exclude):
95146         Add support for the fancy new exclusion options.
95147         (add_exclude, add_exclude_file): Now takes int options arg.
95148         Check for arithmetic overflow when computing sizes.
95149         (add_exclude_file): xrealloc might modify errno, so don't
95150         realloc until after errno might be used.
95151
95152         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95153         New macros.
95154         (free_exclude): New decl.
95155         (add_exclude, add_exclude_file): Now takes int options arg.
95156         (excluded_filename): No longer requires options arg, as the options
95157         are determined by add_exclude.  Now returns bool, not int.
95158
95159 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95160
95161         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95162
95163 2001-08-27  Jim Meyering  <meyering@lucent.com>
95164
95165         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95166
95167         * lib/version-etc.c (N_): Remove definition.
95168         Revert most of last change.
95169         Instead, simply don't mark the `Copyright...' string for translation.
95170         Based on advice from Paul Eggert.
95171
95172         * lib/strtoxmax.c: Tweak comment.
95173
95174 2001-08-26  Jim Meyering  <meyering@lucent.com>
95175
95176         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95177
95178         * m4/xstrtoimax.m4: New file.
95179         * m4/xstrtoumax.m4: Add comments explaining why we
95180         AC_REPLACE_FUNCS(strtol).
95181
95182 2001-08-26  Jim Meyering  <meyering@lucent.com>
95183
95184         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95185         of copyright with `%s' so translators don't get an untranslated
95186         message in 2002.
95187         (COPYRIGHT_YEAR): Define.
95188         (version_etc): Use fprintf rather than fputs.
95189         Suggestion from Ulrich Drepper.
95190
95191         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95192
95193         * lib/strtoll.c: New file, from GNU libc.
95194         * lib/xstrtoimax.c: New file.
95195
95196         * lib/xstrtol.h: Add xstrtoimax.
95197         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95198         * lib/strtoimax.c: New file.  Likewise, but first define
95199         STRTOUXMAX_SIGNED.
95200
95201         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95202         ...
95203         * lib/strtoxmax.c: ... then renamed to this.
95204
95205 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95206
95207         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95208         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95209         (jm_AC_TYPE_INTMAX_T): New macro.
95210         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95211
95212         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95213
95214         * m4/longlong.m4: Renamed from ulonglong.m4.
95215         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95216         * m4/uintmax_t.m4: Removed.
95217
95218 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95219
95220         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95221         Port to Solaris 8, where 'sed' requires a space after the 'r'
95222         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95223         Redirect output to $tmp just once.
95224
95225 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95226
95227         * lib/addext.c (<errno.h>): Include.
95228         (errno): Declare if not defined.
95229         (addext): Work correctly when pathconf returns -1 and leaves
95230         errno alone because there is no limit.  Also, work even if
95231         pathconf returns a value greater than SIZE_MAX.
95232
95233 2001-08-12  Jim Meyering  <meyering@lucent.com>
95234
95235         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95236         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95237         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95238         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95239         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95240         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95241         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95242         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95243         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95244         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95245         utime.m4, utimes.m4, xstrtoumax.m4:
95246         Quote the first argument in each use of AC_DEFUN.
95247
95248 2001-08-12  Jim Meyering  <meyering@lucent.com>
95249
95250         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95251         Simply `return getcwd (NULL, 0);'.
95252         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95253         Use 1300 as initial value for length, not PATH_MAX.
95254
95255         * lib/pathmax.h: Clean up cpp syntax.
95256
95257 2001-08-12  Jim Meyering  <meyering@lucent.com>
95258
95259         * lib/gettimeofday.c: New file.
95260         * lib/gtod.h: New file.
95261         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95262
95263 2001-08-05  Jim Meyering  <meyering@lucent.com>
95264
95265         * m4/jm-macros.m4: Require autoconf-2.52.
95266
95267 2001-08-04  Jim Meyering  <meyering@lucent.com>
95268
95269         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95270         stmt, to get in sync with glibc.
95271
95272 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95273
95274         The following changes are from gettext 0.10.39 as maintained by
95275         Bruno Haible.
95276
95277         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95278         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95279         with inverted sense.  All uses changed.
95280
95281         * lib/mbswidth.c: Don't include <limits.h>.
95282         Include <stdlib.h> and <string.h> unconditionally.
95283         (iswcntrl, mbsinit, ISCNTRL): New macros.
95284         (mbsnwidth): Use K&R style function declarations.
95285         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95286         can optimize it when MB_CUR_MAX == 1.
95287         The width of control characters is zero, not 1.
95288
95289 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95290
95291         The following changes are from gettext 0.10.39 as maintained by
95292         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95293
95294         * m4/codeset.m4: Upgrade to serial AM1.
95295         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95296         all uses changed.  Quote first arg of AC_DEFUN.
95297         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95298
95299         * m4/iconv.m4: Upgrade to serial AM2.
95300         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95301         Add --with-libconv-prefix.
95302         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95303         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95304         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95305         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95306         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95307
95308         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95309         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95310         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95311         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95312         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95313         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95314         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95315         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95316         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95317
95318         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95319         string.h any more.
95320
95321         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95322         not the default value.
95323
95324         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95325         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95326         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95327         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95328         Also check for iswcntrl, used for wcwidth fallback.
95329         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95330         to Autoconf 2.13.
95331
95332 2001-08-03  Jim Meyering  <meyering@lucent.com>
95333
95334         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95335         as it was in the original.  Reported by Paul Eggert.
95336
95337 2001-07-16  Jim Meyering  <meyering@lucent.com>
95338
95339         * m4/gettimeofday.m4: New file.
95340         Prompted by a report from Bernhard Baehr.
95341
95342 2001-07-15  Jim Meyering  <meyering@lucent.com>
95343
95344         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95345         stuff. Now it's in ../Makefile.cfg.
95346
95347 2001-07-15  Jim Meyering  <meyering@lucent.com>
95348
95349         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95350         (BUILT_SOURCES): Add unlocked-io.h.
95351         (io_functions): Define.
95352         (unlocked-io.h): New rule.
95353         (DISTCLEANFILES): Add unlocked-io.h.
95354         (all-local): Depend on unlocked-io.h, to ensure it is created.
95355
95356         * lib/unlocked-io.hin: New file
95357
95358         * lib/regex.c: Update from glibc.
95359
95360 2001-07-05  Jim Meyering  <meyering@lucent.com>
95361
95362         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95363         recommendation.
95364         (libfetish_a_SOURCES): Put all .h files here instead.
95365         Remove a thus-exposed (better checks in automake) duplicate and
95366         two unnecessary .h files.
95367
95368 2001-07-04  Jim Meyering  <meyering@lucent.com>
95369
95370         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95371         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95372         distcheck failure.
95373
95374 2001-07-02  Jim Meyering  <meyering@lucent.com>
95375
95376         The following changes were prompted by suggestions from Bruno Haible.
95377
95378         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95379         is now generated.
95380         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95381         definition of EXTRA_DIST.
95382         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95383         ensure that the generated file is created/updated whenever the list
95384         of $(unlocked_functions) is changed.
95385         (jm-glibc-io.m4): New rule.
95386         (unlocked-io.h): New rule -- currently unused.
95387
95388 2001-06-24  Jim Meyering  <meyering@lucent.com>
95389
95390         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95391         unmatched right bracket, rather than kludging it with an extra,
95392         falsely-matching quote in a comment.  Patch by Akim Demaille.
95393
95394 2001-06-11  Jim Meyering  <meyering@lucent.com>
95395
95396         * lib/regex.c: Update from GNU libc.
95397
95398 2001-05-27  Jim Meyering  <meyering@lucent.com>
95399
95400         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95401         Check for ut_type in struct utmp.
95402
95403 2001-05-27  Jim Meyering  <meyering@lucent.com>
95404
95405         * lib/readutmp.h (UT_TYPE): Define.
95406
95407 2001-05-24  Jim Meyering  <meyering@lucent.com>
95408
95409         * lib/argmatch.c: Include "quote.h".
95410         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95411         quote function.  Reported by Göran Uddeborg.
95412
95413 2001-05-22  Jim Meyering  <meyering@lucent.com>
95414
95415         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95416         now that we use the package-supplied version unconditionally.
95417         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95418
95419 2001-05-21  Jim Meyering  <meyering@lucent.com>
95420
95421         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95422         shell syntax errors.
95423
95424 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95425
95426         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95427
95428 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95429
95430         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95431         Don't bother to check library strftime, since
95432         we'll be using our own my_strftime function anyway.
95433         Define my_strftime instead of strftime.
95434
95435 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95436
95437         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95438         which is not yet declared.
95439
95440 2001-05-15  Jim Meyering  <meyering@lucent.com>
95441
95442         * m4/regex.m4: Use proper quoting so brackets appear in the test
95443         program.
95444         Reported by, and with help from, Bruno Haible.
95445
95446 2001-05-13  Jim Meyering  <meyering@lucent.com>
95447
95448         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95449         undefined.
95450
95451 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95452
95453         dirname code cleanup.  base_name now behaves more compatibly
95454         with POSIX basename when given file names that have trailing
95455         slashes, and similarly for dir_name.  Add new primitives
95456         base_len and dir_len.  Put the directory-name-related decls
95457         into dirname.h.
95458
95459         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95460         * lib/backupfile.c (base_name): Likewise.
95461         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95462         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95463         * lib/makepath.c (strip_trailing_slashes): Likewise.
95464         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95465         ISSLASH): Likewise.
95466         * lib/rename.c (strip_trailing_slashes): Likewise.
95467         * lib/same.c (base_name): Likewise.
95468         * lib/stripslash.c (ISSLASH): Likewise.
95469
95470         * lib/addext.c: Include <dirname.h> after size_t is defined.
95471         * lib/backupfile.c: Likewise.
95472
95473         * lib/addext.c (addext): Use base_len to trim redundant
95474         trailing slashes instead of doing it ourselves.
95475         But do not trim the last slash if it is not redundant.
95476
95477         * lib/backupfile.c (find_backup_file_name,
95478         max_backup_version): Use base_len instead of rolling it ourselves.
95479         Handle the case of "" and (on DOS) "C:" correctly.
95480
95481         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95482         needed. Include <string.h>, <dirname.h>.
95483         (base_name): Allow file names ending in slashes, other than names
95484         that are all slashes.  In this case, return the basename followed
95485         by the slashes.  This is more general, and can be used in places
95486         where the original base_name purposely had an assertion failure.
95487         (base_len): New function.
95488
95489         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95490         Do not include <assert.h>; no longer needed.
95491         Include xalloc.h.
95492         (memrchr): Remove decl.
95493         (dir_name_r): Remove.
95494         (dir_len): Renamed from dirlen.  All callers changed.
95495         Rewrite in terms of base_name, for simplicity and consistency.
95496         (dir_name): Never return NULL.  All callers changed.
95497         Do not include <stdlib.h> in test program; no longer needed.
95498         return 0; is fine for test program.
95499
95500         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95501         New macros.
95502         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95503
95504         * lib/path-concat.c (path_concat): Use base_len to compute
95505         base length, not strlen; this means we cannot rely on memcpy
95506         to null-terminate.
95507
95508         * lib/same.c (STREQ): Remove.
95509         (same_name): Handle the case where the basename ends in trailing '/'.
95510
95511         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95512         a slash was stripped.  Do not strip the last slash after a
95513         file system prefix.
95514
95515 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95516
95517         * lib/Makefile.am (libfetish_a_SOURCES):
95518         Add strftime.c, since we now compile it on all hosts.
95519
95520         * lib/strftime.c (my_strftime):
95521         Define to nstrftime if emacs, but only if my_strftime is not defined.
95522         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95523         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95524         Add one more extra argument: a nanoseconds value.
95525         All uses changed.
95526         (ns): New macro.
95527         (my_strftime function): Add %N format.
95528         (emacs_strftimeu): Renamed from emacs_strftime,
95529         with extra ut argument.
95530
95531 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95532
95533         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95534
95535 2001-04-21  Jim Meyering  <meyering@lucent.com>
95536
95537         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95538         doesn't interfere.
95539
95540 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95541
95542         * m4/ftruncate.m4: Check for chsize.
95543         Link with ftruncate.o unconditionally if ftruncate is missing.
95544         This was required when cross-compiling to i586-mingw32msvc.
95545
95546 2001-04-08  Jim Meyering  <meyering@lucent.com>
95547
95548         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95549         recomputed; that's necessary when the offset spans a DST transition.
95550         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95551
95552 2001-04-02  Jim Meyering  <meyering@lucent.com>
95553
95554         * lib/regex.h, regex.c: Update from GNU libc.
95555
95556 2001-03-24  Jim Meyering  <meyering@lucent.com>
95557
95558         * m4/jm-macros.m4: Require autoconf-2.49d.
95559
95560 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95561
95562         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95563
95564 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95565
95566         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95567
95568 2001-03-17  Jim Meyering  <meyering@lucent.com>
95569
95570         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95571         now that the version in autoconf is equivalent.
95572         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95573
95574         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95575         Suggestion from Akim Demaille.
95576
95577         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95578         (jm_PREREQ_TEMPNAME): New function.
95579
95580 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95581
95582         * lib/tempname.c (uint64_t): Define to uintmax_t if
95583         not defined, and if UINT64_MAX is not defined.
95584         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
95585         Reported by John David Anglin.
95586
95587 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
95588
95589         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
95590         resolve alias if codeset is empty.
95591         * lib/config.charset (BeOS): Use wildcard syntax.
95592
95593 2001-03-13  Jim Meyering  <meyering@lucent.com>
95594
95595         * lib/path-concat.c (path_concat)
95596         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
95597         concatenating e.g., `C:' and `foo'.
95598         From Bruno Haible.
95599
95600 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95601
95602         * lib/localcharset.c (locale_charset): Don't use
95603         setlocale(LC_CTYPE,NULL). Don't return NULL.
95604         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
95605
95606 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95607
95608         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
95609         support for DOS/DJGPP.
95610
95611 2001-03-01  Paul Eggert  <eggert@twinsun.com>
95612
95613         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
95614         lacks mkstemp.  Compile our own tempname.c if we compile our own
95615         mkstemp.c, as mkstemp relies on tempname.
95616
95617 2001-03-01  Jim Meyering  <meyering@lucent.com>
95618
95619         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
95620         AH_VERBATIM really does output its argument verbatim.
95621
95622 2001-02-28  Paul Eggert  <eggert@twinsun.com>
95623
95624         * lib/Makefile.am (libfetish_a_SOURCES):
95625         Add dup-safer.c, fopen-safer.c.
95626         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
95627
95628         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
95629         * lib/unistd-safer.h: New files.
95630
95631 2001-02-25  Paul Eggert  <eggert@twinsun.com>
95632
95633         The mkstemp replacement is taken from glibc 2.2.2, with some
95634         portability fixes for use outside glibc, as follows:
95635
95636         * lib/tempname.c (struct_stat64): New macro.
95637         (direxists, __gen_tempname): Use it.
95638         This avoids a portability problem with Solaris 8.
95639
95640         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
95641         (<stddef.h>, <stdint.h>, <string.h>):
95642         Include only if STDC_HEADERS || _LIBC.
95643         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
95644         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
95645         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
95646         (__set_errno): Define this macro if <errno.h> doesn't.
95647         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
95648         Define these macros if <stdio.h> doesn't.
95649         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
95650         Define these macros if <sys/stat.h>
95651         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
95652         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
95653         __xstat64): Define if not _LIBC.
95654         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
95655         (__gen_tempname): Invoke gettimeofday only if
95656         HAVE_GETTIMEOFDAY || _LIBC;
95657         otherwise, fall back on plain "time".
95658         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
95659
95660         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
95661
95662         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
95663
95664 2001-02-18  Paul Eggert  <eggert@twinsun.com>
95665
95666         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
95667
95668 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95669
95670         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
95671         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
95672         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
95673         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95674
95675 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95676
95677         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
95678         Remove workaround macros for hosts that have mbrtowc but not
95679         mbstate_t, as we now insist on proper declarations for both
95680         before using mbrtowc.
95681
95682 2001-02-17  Jim Meyering  <meyering@lucent.com>
95683
95684         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
95685         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
95686         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
95687         UnixWare 7.1.1.
95688
95689         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
95690         rather than AC_CACHE_VAL.
95691
95692 2001-02-17  Jim Meyering  <meyering@lucent.com>
95693
95694         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
95695         around included file name.
95696
95697         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
95698
95699         * lib/strftime.c: Update from GNU libc (the only changes were to
95700         comments).
95701
95702 2001-02-17  Jim Meyering  <meyering@lucent.com>
95703
95704         * lib/regex.c: Update from libc.
95705
95706 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
95707
95708         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
95709         clash.
95710
95711 2001-02-16  Paul Eggert  <eggert@twinsun.com>
95712
95713         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
95714         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
95715         Reported by Mark Hounschell via Paul Eggert.
95716
95717 2001-02-07  Jim Meyering  <meyering@lucent.com>
95718
95719         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
95720
95721 2001-02-05  Jim Meyering  <meyering@lucent.com>
95722
95723         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
95724         it includes the patch required for `large file' support with at least
95725         HP-UX's 10.20 /bin/cc.
95726
95727 2001-02-03  Jim Meyering  <meyering@lucent.com>
95728
95729         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
95730         AS_IF, now that it works once again (mysteriously).
95731         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95732
95733 2001-01-30  Jim Meyering  <meyering@lucent.com>
95734
95735         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
95736         * m4/chown.m4: Rename conftestchown to conftest.chown.
95737         * m4/rename.m4: s/conftestdir/conftest.d1/ and
95738         s/conftestdir2/conftest.d2/.
95739         * m4/utimes.m4: s/conftestdata/conftest.data/
95740         Inspired by Pavel Roskin's change in autoconf.
95741
95742 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
95743
95744         * lib/config.charset: Update for FreeBSD 4.2.
95745
95746 2001-01-27  Jim Meyering  <meyering@lucent.com>
95747
95748         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
95749         a use of AS_IF.
95750         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95751
95752 2001-01-26  Jim Meyering  <meyering@lucent.com>
95753
95754         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
95755         quotearg.c includes it.
95756
95757 2001-01-26  Jim Meyering  <meyering@lucent.com>
95758
95759         * lib/quotearg.c: Include stddef.h.
95760         * lib/quote.c: Include stddef.h.
95761         Reported by Axel Kittenberger.
95762
95763         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
95764         line in double quotes so that it evokes a better diagnostic.
95765         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
95766         Reported by Axel Kittenberger.
95767
95768 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
95769
95770         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
95771         as if it was a `charset'.
95772
95773 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95774
95775         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
95776         has const.
95777
95778 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95779
95780         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
95781         to avoid a warning.  Add back 'const' to inptr.
95782
95783 2001-01-20  Jim Meyering  <meyering@lucent.com>
95784
95785         Be sure that headers are checked before used in code compiled
95786         for the type checks.
95787         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
95788         In place of that, invoke jm_CHECK_ALL_TYPES.
95789         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
95790         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
95791         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
95792         The check for ssize_t was mistakenly run before the test for unistd.h.
95793
95794         The configure-time check for stdbool.h was missing.
95795         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
95796         (jm_PREREQ_HASH): New function.
95797
95798 2001-01-17  Jim Meyering  <meyering@lucent.com>
95799
95800         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
95801         for autoconf-2.49c.
95802         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
95803
95804 2001-01-16  Jim Meyering  <meyering@lucent.com>
95805
95806         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
95807         From Bruno Haible.
95808
95809 2001-01-14  Jim Meyering  <meyering@lucent.com>
95810
95811         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
95812         foo and bar.  Create conftestdir/ in the script, not in the C code.
95813         Remove directories in the script, not in the C code.
95814         Remove conftestdir{,2} before trying to create the directory.
95815         Make the entire configure script fail if the mkdir fails.
95816
95817 2001-01-14  Jim Meyering  <meyering@lucent.com>
95818
95819         * lib/rename.c: New file.  From Volker Borchert.
95820         Include stdlib.h, string.h or strings.h, and xalloc.h.
95821         Use strip_trailing_slashes rather than open-coding it.
95822
95823 2001-01-03  Paul Eggert  <eggert@twinsun.com>
95824
95825         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
95826
95827 2001-01-03  Jim Meyering  <meyering@lucent.com>
95828
95829         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
95830         of local `inptr' to avoid warning with some system declarations of
95831         iconv.
95832
95833 2001-01-02  Volker Borchert  <bt@teknon.de>
95834
95835         * m4/rename.m4: New file.
95836         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
95837
95838 2001-01-01  Jim Meyering  <meyering@lucent.com>
95839
95840         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
95841         even on systems with utmpx.h.  It's necessary for the declaration of
95842         utmp's ut_user member.  Reported by Andreas Jaeger.
95843
95844         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
95845         available. They are required for the declarations of getgrgid and
95846         getpwuid resp.
95847         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
95848         Reported by Andreas Jaeger.
95849
95850 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
95851
95852         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
95853         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
95854         so `make install' also works in VPATH builds.
95855
95856 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
95857
95858         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
95859         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
95860         can be used in subdirectories.
95861
95862 2000-12-29  Paul Eggert  <eggert@twinsun.com>
95863
95864         * lib/modechange.c: Do not assume that mode_t uses the
95865         traditional octal encoding.  E.g. "chmod 1 FOO" should set
95866         the other-execute bit of FOO even if S_IXOTH != 1.
95867
95868         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
95869         WOTH, XOTH, ALLM): New macros.
95870         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
95871          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
95872         Use them.
95873         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
95874         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
95875         (mode_compile):
95876         No need to use uintmax_t; unsigned long is long enough.
95877         Don't bother to get suffix since we don't use it.
95878
95879 2000-12-26  Jim Meyering  <meyering@lucent.com>
95880
95881         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
95882         better with autoheader.
95883
95884 2000-12-24  Jim Meyering  <meyering@lucent.com>
95885
95886         * lib/hash.c (is_prime): Return explicit boolean values.
95887         (hash_get_first): Return NULL to appease Irix5.6's 89.
95888         Reported by Nelson Beebe.
95889
95890 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
95891
95892         * lib/localcharset.c (locale_charset): Add support for Win32.
95893
95894 2000-12-18  Paul Eggert  <eggert@twinsun.com>
95895
95896         * lib/physmem.h, lib/physmem.c: New files.
95897
95898         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
95899         (noinst_HEADERS): Add physmem.h.
95900
95901         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
95902         't' for compatibility with Solaris 8 sort.
95903
95904 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
95905
95906         * lib/config.charset: Add support for BeOS.
95907
95908 2000-12-17  Jim Meyering  <meyering@lucent.com>
95909
95910         * m4/dos.m4 (jm_AC_DOS): New file and macro.
95911         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
95912
95913 2000-12-16  Jim Meyering  <meyering@lucent.com>
95914
95915         This bug had a serious impact on chown: `chown N:M FILE' (for integer
95916         N and M) would have treated it like `chown N:N FILE'.
95917
95918         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
95919
95920 2000-12-16  Jim Meyering  <meyering@lucent.com>
95921
95922         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
95923         SHELLS_FILE to a file name that's useful on djgpp systems.
95924         Include stdlib.h.
95925         (ADDITIONAL_DEFAULT_SHELLS): Define.
95926         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
95927         Based mostly on a patch from Prashant TR.
95928
95929 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
95930
95931         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
95932         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
95933         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
95934
95935 2000-12-08  Andreas Schwab  <schwab@suse.de>
95936
95937         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
95938         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
95939
95940 2000-12-07  Jim Meyering  <meyering@lucent.com>
95941
95942         * lib/stripslash.c (ISSLASH): Define.
95943         (strip_trailing_slashes): Use ISSLASH rather than comparing against
95944         `/'.
95945         From Prashant TR.
95946
95947         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
95948         (dir_name_r): Declare this function as static.
95949         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
95950         manifest itself on a name containing a mix of slashes and
95951         backslashes.
95952         Make this function work with names starting with a DOS-style
95953         drive letter and colon prefix.
95954         (dir_name): Append `.' if necessary.
95955         Based mostly on patches from Prashant TR and Eli Zaretskii.
95956
95957         * lib/dirname.h (dir_name_r): Remove prototype.
95958
95959 2000-12-06  Paul Eggert  <eggert@twinsun.com>
95960
95961         * m4/off_t-format.m4: Remove this file.
95962         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
95963
95964 2000-12-06  Jim Meyering  <meyering@lucent.com>
95965
95966         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
95967         replacement strtoull, we may well need the replacement strtoul, too.
95968         Check for declarations of strtoul and strtoull.
95969         Check for strtol.  Mainly as a cue to cause automake to include
95970         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
95971         Check for limits.h -- strtol.c needs it.
95972
95973 2000-12-05  Jim Meyering  <meyering@lucent.com>
95974
95975         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
95976
95977 2000-12-04  Jim Meyering  <meyering@lucent.com>
95978
95979         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
95980         Also include memory.h, stdlib.h, unistd.h if appropriate.
95981         Reported by Andreas Jaeger (conflicting declaration of malloc).
95982
95983 2000-12-02  Jim Meyering  <meyering@lucent.com>
95984
95985         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
95986         * m4/jm-macros.m4 (jm_MACROS): require it.
95987
95988 2000-12-02  Jim Meyering  <meyering@lucent.com>
95989
95990         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
95991
95992 2000-12-01  Paul Eggert  <eggert@twinsun.com>
95993
95994         * lib/memrchr.c: Include <config.h> before any system include file.
95995
95996 2000-11-30  Jim Meyering  <meyering@lucent.com>
95997
95998         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
95999
96000 2000-11-30  Jim Meyering  <meyering@lucent.com>
96001
96002         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96003
96004 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96005
96006         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96007
96008 2000-11-26  Jim Meyering  <meyering@lucent.com>
96009
96010         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96011
96012 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96013
96014         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96015         size of (size_t) -1; it's not portable.
96016
96017 2000-11-17  Jim Meyering  <meyering@lucent.com>
96018
96019         * lib/strstr.c: Update from GNU libc.
96020
96021 2000-11-17  Akim Demaille  <akim@epita.fr>
96022
96023         * lib/obstack.h: Formatting changes.
96024         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96025         prevent type checking.
96026         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96027         cast the value to (void *): assigning a `foo *' to a `void *'
96028         variable is valid.
96029         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96030
96031 2000-11-16  Jim Meyering  <meyering@lucent.com>
96032
96033         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96034
96035 2000-11-11  Jim Meyering  <meyering@lucent.com>
96036
96037         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96038
96039 2000-11-10  Jim Meyering  <meyering@lucent.com>
96040
96041         * lib/obstack.h: Update from GNU libc.
96042         * lib/obstack.c: Likewise.
96043
96044 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96045
96046         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96047
96048 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96049
96050         * lib/getusershell.c (setusershell): Use rewind rather than
96051         fseek/fseeko, to avoid configuration hassles with fseeko.
96052         Don't bother opening SHELLS_FILE if shellstream is NULL;
96053         it's not necessary.
96054
96055 2000-11-05  Jim Meyering  <meyering@lucent.com>
96056
96057         * lib/makepath.h (make_dir): Declare.
96058         * lib/makepath.c (make_dir): Remove `static' attribute.
96059         Tweak a comment.
96060
96061 2000-11-04  Jim Meyering  <meyering@lucent.com>
96062
96063         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96064
96065 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96066
96067         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96068         last one in a bucket, advance to the next bucket.
96069
96070 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96071
96072         * lib/fnmatch.c: Do not comment out all the code if we are using
96073         the GNU C library, because in some cases we are replacing buggy
96074         code in the GNU C library itself.
96075
96076 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96077
96078         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96079         (regex_compile): Catch bogus \(\1\).
96080
96081 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96082
96083         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96084         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96085         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96086
96087 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96088
96089         * lib/error.h, getline.h, modechange.h:
96090         Remove "2000" from Copyright line, as the file hasn't been
96091         changed this year other than in the copyright notice.
96092
96093         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96094         was changed this year.
96095
96096 2000-10-29  Jim Meyering  <meyering@lucent.com>
96097
96098         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96099         renaming.
96100         * m4/ls-mntd-fs.m4: Likewise
96101
96102 2000-10-29  Jim Meyering  <meyering@lucent.com>
96103
96104         * lib/xstat.in: Fix grammar in comment.
96105
96106 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96107
96108         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96109         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96110         doesn't define __restrict_arr.
96111
96112 2000-10-28  Jim Meyering  <meyering@lucent.com>
96113
96114         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96115         (jm_PREREQ_MEMCHR): New function.
96116
96117 2000-10-28  Jim Meyering  <meyering@lucent.com>
96118
96119         * lib/memchr.c: Update from libc.
96120         Adjust for portability:
96121         [HAVE_STDLIB_H]: Include stdlib.h.
96122         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96123         Undef __memchr, too.
96124         [!weak_alias]: Define __memchr to memchr.
96125
96126         * lib/regex.c: Update from libc.
96127         * lib/regex.h: Likewise.
96128         * lib/getopt1.c: Likewise.
96129         * lib/memcmp.c: Likewise.
96130
96131         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96132         Avoid using fseek, when possible -- it's broken by design.
96133         Patch by Ulrich Drepper.
96134
96135 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96136
96137         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96138         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96139         Giving in to popular pressure to shut up the compiler with casts.
96140
96141 2000-10-26  Jim Meyering  <meyering@lucent.com>
96142
96143         * lib/strftime.c: Update from libc.
96144
96145 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96146
96147         * regex.c: More `unsigned char' -> `re_char' changes.
96148         Also change several `int' into `re_wchar_t'.
96149         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96150         (PUSH_FAILURE_POINTER): Don't cast any more.
96151         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96152         We want GCC to complain, since this piece of code makes
96153         re_match non-reentrant, which *should* be fixed.
96154         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96155         (EXTEND_BUFFER): Use RETALLOC.
96156         (SET_LIST_BIT): Don't cast.
96157         (re_wchar_t): New type.
96158         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96159         that those two functions will always properly return.
96160         (IMMEDIATE_QUIT_CHECK): Cast to void.
96161         (analyse_first): Use recursion rather than an explicit stack.
96162         (re_compile_fastmap): Can't fail anymore.
96163         (re_search_2): Don't check re_compile_fastmap for failure.
96164         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96165         Now also sets the new value (passed in a new argument).
96166         (re_match_2_internal): Use it.
96167         Also, use a new var `reg' of type size_t when looping through regs
96168         rather than reuse the inappropriate `mcnt'.
96169
96170 2000-10-25  Jim Meyering  <meyering@lucent.com>
96171
96172         * lib/obstack.c: Update from libc.
96173
96174 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96175
96176         * regex.c (regex_compile): Change the way of handling a range from
96177         a char less than 256 to a char not less than 256.
96178
96179 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96180
96181         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96182         NT-Emacs only.
96183         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96184         so that re_search functions only quit when callers expect them to.
96185
96186 2000-10-23  Jim Meyering  <meyering@lucent.com>
96187
96188         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96189         wrong.  That set_locale call must not have any side effects.
96190         From Paul Eggert.
96191
96192 2000-10-22  Jim Meyering  <meyering@lucent.com>
96193
96194         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96195         [CYCLIC]: Remove now-unused definition.
96196
96197         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96198         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96199         Suggestion from Ulrich Drepper.
96200
96201 2000-10-21  Jim Meyering  <meyering@lucent.com>
96202
96203         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96204         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96205         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96206
96207 2000-10-21  Jim Meyering  <meyering@lucent.com>
96208
96209         * lib/dirname.c (memrchr): Declare if necessary.
96210         (dir_name): Remove the restriction that there be no
96211         trailing slashes.  Now, this code skips past them, effectively
96212         ignoring them.
96213         [TEST_DIRNAME] (main): New unit tests.
96214
96215         * lib/memrchr.c: New file from GNU libc.
96216         Undef __memrchr, too.
96217         [!weak_alias]: Define __memrchr to memrchr.
96218         Guard weak_alias use with `#ifdef weak_alias'.
96219
96220 2000-10-21  Jim Meyering  <meyering@lucent.com>
96221
96222         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96223         (dir_name): Use dir_name_r.
96224         * lib/dirname.h (dir_name_r): Declare it.
96225
96226 2000-10-17  Jim Meyering  <meyering@lucent.com>
96227
96228         * lib/quote.h (PARAMS): Define and use.
96229         Reported by Akim Demaille.
96230
96231         * lib/getopt.c: Update from libc.
96232
96233 2000-10-16  Jim Meyering  <meyering@lucent.com>
96234
96235         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96236         setlocale.
96237         From Jan Fedak.
96238
96239 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96240
96241         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96242
96243 2000-09-25  Jim Meyering  <meyering@lucent.com>
96244
96245         * lib/md5.h (rol): Define (from GnuPG).
96246
96247         * lib/sha.c: Give credit (GnuPG) where due.
96248         (M): Use rol rather than open-coding it.
96249         Add a FIXME comment.
96250
96251 2000-09-21  Jim Meyering  <meyering@lucent.com>
96252
96253         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96254         Reported by Michael Stone.
96255
96256 2000-09-20  Jim Meyering  <meyering@lucent.com>
96257
96258         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96259         (noinst_HEADERS): Add sha.h.
96260         Based on code from Scott G. Miller and from GnuPG.
96261
96262 2000-09-18  Jim Meyering  <meyering@lucent.com>
96263
96264         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96265         LIBS. Otherwise, everyone ends up linking with -lelf for some
96266         configurations.
96267         Reported by Mike Stone.
96268
96269 2000-09-15  Jim Meyering  <meyering@lucent.com>
96270
96271         * lib/regex.c: Update from libc.
96272
96273 2000-09-10  Jim Meyering  <meyering@lucent.com>
96274
96275         * lib/getopt.c (_getopt_internal): Update from glibc.
96276
96277 2000-09-09  Jim Meyering  <meyering@lucent.com>
96278
96279         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96280         think it should be used as a general replacement for isascii.
96281         * lib/fnmatch.c: Likewise.
96282         * lib/mbswidth.c: Likewise
96283         * lib/regex.c: Likewise.
96284
96285         Don't use atoi.
96286         * lib/userspec.c: Include sys/param.h and limits.h.
96287         Include xstrtol.h.
96288         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96289         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96290         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96291         UID, GID.  Check range.
96292
96293 2000-09-06  Jim Meyering  <meyering@lucent.com>
96294
96295         * lib/getopt.c (_getopt_internal): Update from glibc.
96296
96297 2000-08-30  Jim Meyering  <meyering@lucent.com>
96298
96299         * lib/strftime.c: Merge in changes from GNU libc.
96300
96301 2000-08-26  Jim Meyering  <meyering@lucent.com>
96302
96303         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96304         * m4/fpending.m4: New file.
96305
96306 2000-08-26  Jim Meyering  <meyering@lucent.com>
96307
96308         * lib/closeout.c: Include "__fpending.h".
96309         (close_stdout_status): Return right away if there's nothing to flush.
96310
96311         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96312         * lib/__fpending.c: New file.
96313         * lib/__fpending.h: New file.
96314
96315 2000-08-20  Jim Meyering  <meyering@lucent.com>
96316
96317         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96318         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96319         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96320
96321 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96322
96323         Improve fileutils installation on systems where running
96324         programs (like install) can't be unlinked.
96325         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96326         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96327
96328 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96329
96330         Standardize on "memory exhausted" instead of "Memory exhausted"
96331         or "virtual memory exhausted".
96332         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96333         "virtual memory exhausted".
96334         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96335         our own message.
96336         * lib/userspec.c (parse_user_spec): Likewise.
96337         * lib/bumpalloc.h: comment fix
96338         * lib/same.c, userspec.c: Include xalloc.h.
96339
96340         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96341         not char *const and pointing to a constant array.
96342         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96343         (xrealloc): Comment fix.
96344
96345         * lib/userspec.c (parse_user_spec):
96346         Don't translate a message until just before returning,
96347         to avoid unnecessary translation.
96348
96349 2000-08-07  Jim Meyering  <meyering@lucent.com>
96350
96351         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96352         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96353         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96354         getgroups.c, gethostname.c, getopt.h, group-member.c,
96355         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96356         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96357         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96358         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96359         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96360         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96361         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96362         yesno.c: Back out Copyright date changes for each file with no change
96363         this year.  This eases coordination with other programs using the same
96364         source code modules.  From Paul Eggert.
96365
96366 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96367
96368         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96369         not char, for compatibility with glibc 2.1.3 strftime.c.
96370
96371 2000-08-03  Greg McGary  <greg@mcgary.org>
96372
96373         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96374         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96375         (EXTEND_BUFFER): Use them.
96376
96377 2000-08-01  Jim Meyering  <meyering@lucent.com>
96378
96379         * lib/dirname.c (ISSLASH): Define.
96380         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96381         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96382         both `\' and `/' may be use as path separators.
96383         Based on a patch from Prashant TR.
96384
96385 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96386
96387         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96388         slot vector a constant, since it might get modified.
96389
96390 2000-07-31  Jim Meyering  <meyering@lucent.com>
96391
96392         * lib/xmalloc.c: Use `virtual memory exhausted', not
96393         `Memory exhausted'.
96394         * lib/obstack.c (print_and_abort): Likewise.
96395
96396 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96397
96398         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96399         buffer, so that the caller can always quote one small
96400         component of a "memory exhausted" message in slot 0.
96401         From a suggestion by Jim Meyering.
96402
96403 2000-07-30  Jim Meyering  <meyering@lucent.com>
96404
96405         * lib/makepath.c (make_path): Quote the other instance, too.
96406
96407         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96408         (STATIC_BUF_SIZE): Define.
96409         (quotearg_n_options): Use only statically allocated storage when
96410         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96411         than STATIC_BUF_SIZE.
96412
96413 2000-07-29  Jim Meyering  <meyering@lucent.com>
96414
96415         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96416         * lib/dirname.c (dir_name): Likewise.
96417
96418         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96419         `/'.
96420
96421         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96422         (dir_name): Assert that there are no trailing slashes.
96423
96424 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96425
96426         * lib/mbswidth.h (mbswidth): Add a flags argument.
96427         (mbswidth): New declaration.
96428         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96429         * lib/mbswidth.c (mbswidth): Add a flags argument.
96430         (mbsnwidth): New function.
96431
96432 2000-07-24  Jim Meyering  <meyering@lucent.com>
96433
96434         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96435
96436 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96437
96438         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96439
96440 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96441
96442         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96443         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96444         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96445         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96446         invoke multibyte primitives.
96447
96448 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96449
96450         * lib/quotearg.c:
96451         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96452         so that mbstate_t is always defined.
96453
96454         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96455         be 1 in at least one GCC installation, and this configuration
96456         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96457         performance on hosts that have mbrtowc but have only unibyte
96458         locales, but I assume these hosts are rare.
96459
96460 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96461
96462         * lib/mbswidth.c (_XOPEN_SOURCE):
96463         Don't define; this causes problems on Solaris 7.
96464         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96465
96466 2000-07-23  Jim Meyering  <meyering@lucent.com>
96467
96468         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96469         too: getgrgid, getpwuid, getuid.
96470
96471 2000-07-23  Jim Meyering  <meyering@lucent.com>
96472
96473         * lib/basename.c (base_name): Add an assertion.
96474
96475 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96476
96477         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96478         shadow its mbsinit function.
96479
96480 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96481
96482         * lib/mbswidth.h: New file.
96483         * lib/mbswidth.c: New file.
96484         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96485         (noinst_HEADERS): Add mbswidth.h.
96486
96487 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96488
96489         * lib/config.charset: Add support for FreeBSD. Improve support for
96490         HP-UX and IRIX 6.
96491
96492 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96493
96494         * m4/mbswidth.m4: New file.
96495         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96496
96497 2000-07-15  Jim Meyering  <meyering@lucent.com>
96498
96499         * lib/makepath.c: Include quote.h.
96500         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96501         corresponding argument in a `quote (...)' call.
96502         Give better diagnostics.
96503
96504         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96505         (noinst_HEADERS): Add quote.h.
96506
96507         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96508         from tar's src/misc.c.
96509         * lib/quote.h: New file.  Prototypes for same.
96510
96511 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96512
96513         From a suggestion by Bruno Haible.
96514         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96515         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96516         to decide whether to define the BeOS workaround macro;
96517         this adjusts to the change to AC_MBSTATE_T.
96518
96519 2000-07-14  Jim Meyering  <meyering@lucent.com>
96520
96521         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96522         jm_AC_TYPE_UINTMAX_T.
96523
96524 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96525
96526         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96527
96528         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96529         quotearg_buffer_restyled): Add support for
96530         clocale_quoting_style.  Undo previous change to
96531         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96532         and "{RIGHT QUOTATION MARK}" msgids.
96533
96534 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96535
96536         From a suggestion by Bruno Haible.
96537         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96538         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96539         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96540         and mbstate_t, to a single-part test that simply defines mbstate_t.
96541         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96542         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96543
96544 2000-07-10  Jim Meyering  <meyering@lucent.com>
96545
96546         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96547
96548         * m4/gnu-source.m4: Output to confdefs.h directly.
96549         Suggestion from Akim Demaille.
96550
96551 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96552
96553         The old behavior of quoting `like this' doesn't look good with
96554         newer, ISO-style fonts.  See:
96555         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96556
96557         Instead, quote "like this" by default.  Let the translator
96558         tailor the locale-specific quoting behavior by providing
96559         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96560
96561         * lib/quotearg.c (N_): New macro.
96562         (gettext_default): New function.
96563         (quotearg_buffer_restyled): Use
96564         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96565         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96566
96567 2000-07-09  Jim Meyering  <meyering@lucent.com>
96568
96569         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96570         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96571
96572         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96573         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96574
96575 2000-07-09  Jim Meyering  <meyering@lucent.com>
96576
96577         * lib/Most files: Update copyright dates to include 2000.
96578
96579 2000-07-08  Jim Meyering  <meyering@lucent.com>
96580
96581         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96582         if not defined.
96583         (xgethostname): Remove now-unnecessary #ifdef.
96584         Move declaration of `err' into loop where it's used.
96585
96586 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96587         and Bruno Haible  <haible@clisp.cons.org>
96588
96589         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
96590         only if the test for an object-type mbstate_t fails.  This
96591         prevents us from mistakenly reporting that mbstate_t is a
96592         system object type after we "#define mbstate_t int" to work
96593         around its lack.
96594
96595 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96596         and Bruno Haible  <haible@clisp.cons.org>
96597
96598         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
96599
96600 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96601
96602         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
96603         to strerror_r.
96604         Include <ctype.h> for use of isalpha.
96605
96606 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96607
96608         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
96609         by allocating a larger buffer. Test the gethostname return value for
96610         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
96611         returns an error and ENAMETOOLONG isn't defined.
96612
96613 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96614
96615         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
96616         dimension.
96617
96618 2000-07-04  Jim Meyering  <meyering@lucent.com>
96619
96620         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
96621         of the deprecated AC_CHECKING.
96622
96623 2000-07-04  Jim Meyering  <meyering@lucent.com>
96624
96625         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
96626         Reported by Bruno Haible.
96627
96628 2000-07-04  Jim Meyering  <meyering@lucent.com>
96629
96630         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
96631         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
96632         lacks mbrtowc.
96633
96634 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96635
96636         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
96637         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
96638
96639 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96640         and Bruno Haible  <haible@clisp.cons.org>
96641
96642         * lib/quotearg.c (mbrtowc):
96643         Assign to *pwc, and return 1 only if result is nonzero.
96644         (iswprint): Use ISPRINT when substituting our own mbrtowc.
96645
96646 2000-07-03  Jim Meyering  <meyering@lucent.com>
96647
96648         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
96649
96650 2000-07-03  Jim Meyering  <meyering@lucent.com>
96651
96652         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
96653         This is necessary to get a definition of e.g., UTMP_FILE on
96654         HP-UX 10.20.
96655         From Bob Proulx.
96656
96657 2000-07-02  Jim Meyering  <meyering@lucent.com>
96658
96659         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
96660
96661         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
96662         AC_LIBOBJ(function_name).
96663         * m4/chown.m4: Likewise.
96664         * m4/fnmatch.m4: Likewise.
96665         * m4/ftruncate.m4: Likewise.
96666         * m4/getgroups.m4: Likewise.
96667         * m4/getline.m4: Likewise.
96668         * m4/group-member.m4: Likewise.
96669         * m4/jm-macros.m4: Likewise.
96670         * m4/lstat.m4: Likewise.
96671         * m4/malloc.m4: Likewise.
96672         * m4/memcmp.m4: Likewise.
96673         * m4/nanosleep.m4: Likewise.
96674         * m4/putenv.m4: Likewise.
96675         * m4/realloc.m4: Likewise.
96676         * m4/regex.m4: Likewise.
96677         * m4/stat.m4: Likewise.
96678         * m4/strftime.m4: Likewise.
96679
96680 2000-07-02  Jim Meyering  <meyering@lucent.com>
96681
96682         * lib/quotearg.c (mbstate_t): Don't define here.
96683
96684 2000-07-02  Jim Meyering  <meyering@lucent.com>
96685
96686         * lib/nanosleep.c (SIGCONT): Define if not already defined.
96687
96688 2000-07-01  Jim Meyering  <meyering@lucent.com>
96689
96690         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
96691
96692 2000-07-01  Jim Meyering  <meyering@lucent.com>
96693
96694         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
96695         problem.
96696
96697 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96698
96699         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
96700         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
96701
96702 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96703
96704         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
96705         per change in ../m4/ls-mntd-fs.m4.
96706         (read_filesystem_list): Ignore symbolic links.
96707
96708 2000-06-29  Jim Meyering  <meyering@lucent.com>
96709
96710         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
96711         for declaration of strcmp.
96712
96713         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
96714
96715         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
96716         Avoid warning by casting result to `char *' to remove `const'.
96717
96718 2000-06-28  Jim Meyering  <meyering@lucent.com>
96719
96720         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
96721         included by quotearg.c, for which we perform this test.  From
96722         Bruno Haible.
96723
96724 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96725
96726         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
96727         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
96728         <utmpx.h> exists, put readutmp.o into LIBOBJS.
96729
96730 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96731
96732         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
96733
96734 2000-06-26  Paul Eggert  <eggert@twinsun.com>
96735
96736         savedir now sets errno on failure and invokes xmalloc to get memory.
96737         Fix a couple of other minor bugs while we're at it.
96738
96739         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
96740         (NAMLEN): Remove macro.
96741         (malloc, realloc): Remove decls.
96742         (stpcpy): Likewise.
96743         ("xalloc.h"): Include.
96744         (NAME_SIZE_DEFAULT): New macro.
96745         (savedir): Use xmalloc / xrealloc to allocate memory.
96746         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
96747         Skip "" directory entries.
96748         Use strlen to calculate directory entry length, since the old method
96749         is rarely used these days and isn't worth supporting.
96750         Don't use a pointer after freeing it.
96751         Check for integer overflow when calculating allocation size.
96752         Use memcpy to copy entries, instead of stpcpy.
96753         Set errno properly when returning NULL.
96754         Check for readdir error.
96755
96756 2000-06-26  Jim Meyering  <meyering@lucent.com>
96757
96758         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
96759
96760 2000-06-25  Jim Meyering  <meyering@lucent.com>
96761
96762         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
96763         Linux header bug when _XOPEN_SOURCE is defined to 500.
96764
96765 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96766
96767         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
96768         deficiency.
96769
96770 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96771
96772         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
96773         Include xalloc.h.
96774         Don't include <stdlib.h>.  Don't declare malloc, realloc.
96775
96776 2000-06-24  Jim Meyering  <meyering@lucent.com>
96777
96778         * m4/strerror_r.m4: Revive this file -- to try out an experimental
96779         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
96780         for which strerror does return char*, but which lacks a conveniently
96781         accessible declaration of the function.  If the compile-test says
96782         strerror_r doesn't work, then resort to a `run'-test that works on
96783         BeOS and segfaults on DEC Unix.
96784
96785 2000-06-24  Jim Meyering  <meyering@lucent.com>
96786
96787         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
96788
96789 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96790
96791         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
96792         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
96793
96794 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96795
96796         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
96797         (mbrtowc, mbstate_t): Define substitutes if
96798         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
96799         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
96800         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
96801
96802 2000-06-23  Jim Meyering  <meyering@lucent.com>
96803
96804         * m4/afs.m4: Add missing AC_MSG_RESULT.
96805         Reported by Bruno Haible.
96806
96807         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
96808         Suggestion from Bruno Haible.
96809
96810 2000-06-23  Jim Meyering  <meyering@lucent.com>
96811
96812         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
96813
96814 2000-06-21  Jim Meyering  <meyering@lucent.com>
96815
96816         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
96817
96818 2000-06-21  Jim Meyering  <meyering@lucent.com>
96819
96820         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
96821         (noinst_HEADERS): Add getstr.h.
96822
96823         * lib/getline.c (getstr): Move into a separate file.
96824         * lib/getstr.c (getstr): New file, extracted from getline.c, with
96825         the following changes: new parameter, delim2; both delim[12]
96826         parameters have type `int', not `char'.  The latter would lose
96827         with 8-bit delimiters.
96828         * lib/getstr.h: New file.
96829
96830 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96831
96832         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
96833         than 1024, return a memory chunk of least possible size, instead
96834         of size PATH_MAX + 2. In the loop, increment the size proportionally.
96835         Use free/xmalloc instead of xrealloc to avoid copying for very long
96836         paths.
96837
96838 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96839
96840         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
96841         the empty string.
96842
96843 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96844
96845         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
96846         address, not strdup.  Include <stdlib.h> and don't declare free().
96847
96848 2000-06-19  Jim Meyering  <meyering@lucent.com>
96849
96850         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
96851
96852 2000-06-18  Jim Meyering  <meyering@lucent.com>
96853
96854         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
96855
96856         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
96857         `checking whether...' message to be consistent with that of the
96858         lstat test.
96859
96860 2000-06-18  Jim Meyering  <meyering@lucent.com>
96861
96862         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
96863         Besides, these days every porting target provides a mkdir function.
96864
96865         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
96866         needed. (this snippet comes from src/system.h).
96867
96868 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
96869
96870         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
96871
96872 2000-06-15  Paul Eggert  <eggert@twinsun.com>
96873
96874         * lib/human.c (adjust_value): New function.
96875         (human_readable_inexact): Apply rounding style even when
96876         printing approximate values.
96877
96878 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96879
96880         * lib/human.c (human_readable_inexact): Allow an input block
96881         size that is not a multiple of the output block size, and vice versa.
96882         Reported by Piergiorgio Sartor.
96883
96884 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96885
96886         * lib/getdate.y (get_date): Apply relative times after time
96887         zone indicator, not before.  Reported by Todd A. Jacobs.
96888
96889 2000-06-13  Jim Meyering  <meyering@lucent.com>
96890
96891         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
96892
96893         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
96894
96895 2000-06-12  Paul Eggert  <eggert@twinsun.com>
96896
96897         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
96898
96899 2000-06-12  Jim Meyering  <meyering@lucent.com>
96900
96901         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
96902         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
96903         optional argument.
96904         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
96905         the optional argument, `lib'.
96906
96907 2000-06-08  Jim Meyering  <meyering@lucent.com>
96908
96909         * m4/largefile.m4: Remove file (now that it's part of autoconf).
96910
96911 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96912
96913         Rewrite largefile configuration so that we don't need to run
96914         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
96915         AC_CANONICAL_HOST in configure.in -- jmm]
96916
96917         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
96918         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
96919         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
96920         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
96921         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
96922         All uses changed.
96923         Instead of inspecting the output of getconf, try to compile the
96924         test program without and with the macro definition.
96925         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
96926         for getconf.  Instead, check for the needed flags by compiling
96927         test programs.
96928
96929 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96930
96931         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
96932
96933 2000-06-04  Jim Meyering  <meyering@lucent.com>
96934
96935         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
96936         SunOS 4.1.4 for which gid_t is an unsigned type.
96937
96938 2000-06-03  Jim Meyering  <meyering@lucent.com>
96939
96940         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
96941         now that autoconf requires that.
96942
96943         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
96944         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
96945         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
96946
96947 2000-06-03  Jim Meyering  <meyering@lucent.com>
96948
96949         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
96950
96951 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96952
96953         * m4/glibc21.m4: New file.
96954         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
96955
96956 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96957
96958         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
96959         newer, don't install charset.alias.
96960         * lib/config.charset: Change the Linux/glibc rules so they become empty
96961         on glibc-2.1 or newer.
96962
96963 2000-06-02  Jim Meyering  <meyering@lucent.com>
96964
96965         * lib/mountlist.c: Back out last change.  Instead, do this...
96966         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
96967         me_dummy member using the same `ignore'-testing code.
96968         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
96969         fs_type strings.
96970         From Mark D. Roth.
96971
96972 2000-05-29  Jim Meyering  <meyering@lucent.com>
96973
96974         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
96975         mounts with the `ignore' attribute.  Based on a patch from
96976         Mark D. Roth.
96977
96978 2000-05-28  Jim Meyering  <meyering@lucent.com>
96979
96980         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
96981         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96982         * m4/stat.m4: Likewise.
96983         * m4/lstat.m4: Likewise.
96984         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
96985
96986         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
96987         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
96988
96989 2000-05-26  Jim Meyering  <meyering@lucent.com>
96990
96991         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
96992
96993 2000-05-24  Jim Meyering  <meyering@lucent.com>
96994
96995         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
96996         autoconf requires that.
96997         * m4/lib-check.m4: Likewise.
96998         * m4/jm-macros.m4: Likewise.
96999         * m4/strftime.m4: Likewise.
97000
97001         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97002         AC_CHECK_DECLS, now that autoconf requires that.
97003
97004 2000-05-22  Jim Meyering  <meyering@lucent.com>
97005
97006         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97007         * m4/lstat.m4: Likewise.
97008
97009 2000-05-22  Jim Meyering  <meyering@lucent.com>
97010
97011         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97012
97013 2000-05-20  Jim Meyering  <meyering@lucent.com>
97014
97015         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97016         (jm_PREREQ): Use it.
97017
97018 2000-05-18  Jim Meyering  <meyering@lucent.com>
97019
97020         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97021         back, too, since it may have been modified by allocate_entry.
97022         (hash_delete): Rewrite to use neither the assignment operator
97023         nor the comma operator in an if-expression.
97024
97025 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97026
97027         * lib/closeout.c:
97028         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97029         Remove; no longer needed.
97030         "quotearg.h": Add include.
97031         (file_name): Do not bother to explicitly initialize to NULL; it's less
97032         efficient on some hosts.
97033         (close_stdout_status): Remove test as to whether stdout was already
97034         closed; it breaks for the case "echo x | sort >&-".
97035         Quote file name colons.
97036         Do not assume that _("write error") lacks format strings.
97037
97038 2000-05-15  Jim Meyering  <meyering@lucent.com>
97039
97040         * lib/version-etc.c (version_etc_copyright): Update the copyright
97041         string used in all --version output.
97042
97043 2000-05-14  Jim Meyering  <meyering@lucent.com>
97044
97045         * lib/closeout.c (close_stdout_set_file_name): New function.
97046         (close_stdout_status): Use new file-scoped global.
97047         Return right away if fstat says the stdout file descriptor is invalid.
97048         * lib/closeout.h (close_stdout_set_file_name): Declare.
97049
97050 2000-05-10  Jim Meyering  <meyering@lucent.com>
97051
97052         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97053         (close_stdout_set_status): New function.
97054         * lib/closeout.h (close_stdout_set_status): Declare.
97055
97056 2000-05-09  Jim Meyering  <meyering@lucent.com>
97057
97058         * m4/gettext.m4: Rename this...
97059         * m4/libintl.m4: ...to this.
97060
97061 2000-05-08  Jim Meyering  <meyering@lucent.com>
97062
97063         * lib/long-options.c: Don't include closeout.h.
97064         (parse_long_options): Don't call close_stdout for --version.
97065
97066 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97067
97068         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97069         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97070         2.1.3 bug.  This avoids a clash when files like regex.c define
97071         _GNU_SOURCE.
97072
97073 2000-05-06  Jim Meyering  <meyering@lucent.com>
97074
97075         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97076         (AC_REPLACE_FUNCS): Add strnlen.
97077
97078         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97079         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97080
97081         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97082         AC_SEARCH_LIBS call for nanosleep.
97083         (LIB_NANOSLEEP): Set and AC_SUBST.
97084
97085 2000-05-06  Jim Meyering  <meyering@lucent.com>
97086
97087         * lib/strnlen.c: Undefine __strnlen and strnlen.
97088         [!weak_alias]: Define __strnlen to strnlen.
97089
97090         * lib/atexit.c: New file, from libiberty.
97091
97092 2000-05-06  Jim Meyering  <meyering@lucent.com>
97093
97094         * lib/closeout.c (close_stdout_status): Also check for errors on the
97095         stderr stream.
97096
97097 2000-05-05  Jim Meyering  <meyering@lucent.com>
97098
97099         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97100         AC_SEARCH_LIBS call for clock_gettime.
97101         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97102
97103         * m4/search-libs.m4: Update from autoconf.
97104
97105         su doesn't work on Solaris 2.6.
97106         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97107         <shadow.h>.  Reported by Dragos Harabor.
97108
97109 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97110
97111         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97112         memcpy instead of xmalloc, xrealloc, path_concat.
97113         (locale_charset): Treat empty environment variables as absent.
97114         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97115
97116 2000-05-04  Jim Meyering  <meyering@lucent.com>
97117
97118         * lib/getopt.c: Update from glibc.
97119         * lib/obstack.c: Likewise.
97120         * lib/obstack.h: Likewise.
97121         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97122         file
97123
97124         * lib/regex.h: Likewise.
97125         * lib/strndup.c: Likewise.
97126         * lib/strnlen.c: New file, from glibc.
97127
97128 2000-05-03  Jim Meyering  <meyering@lucent.com>
97129
97130         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97131
97132 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97133
97134         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97135         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97136         compile-time test, rather than inspecting host and OS, to
97137         decide whether to define _LARGEFILE_SOURCE.
97138
97139 2000-05-01  Jim Meyering  <meyering@lucent.com>
97140
97141         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97142
97143         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97144         Based on a patch from Bruno Haible.
97145
97146 2000-05-01  Jim Meyering  <meyering@lucent.com>
97147
97148         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97149
97150 2000-04-29  Jim Meyering  <meyering@lucent.com>
97151
97152         * lib/path-concat.c: Declare strdup only if it's not defined.
97153         * lib/canon-host.c: Likewise.
97154
97155 2000-04-28  Jim Meyering  <meyering@lucent.com>
97156
97157         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97158         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97159         is included first, then limits.h is included by locale.h by libintl.h.
97160         From John David Anglin.
97161
97162 2000-04-25  Jim Meyering  <meyering@lucent.com>
97163
97164         * lib/makepath.c (S_IRWXUGO): Define.
97165         (make_path): Always perform explicit chmod if MODE specifies any
97166         of the `special' permission bits.  Prompted by a bug report against
97167         install from Mate Wierdl and Joost van Baal.
97168
97169 2000-04-18  Jim Meyering  <meyering@lucent.com>
97170
97171         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97172         (jm_PREREQ): Use it.
97173
97174 2000-04-18  Jim Meyering  <meyering@lucent.com>
97175
97176         * lib/README: New file.
97177
97178         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97179         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97180
97181 2000-04-17  Jim Meyering  <meyering@lucent.com>
97182
97183         Get it right :-)
97184         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97185         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97186         Suggestion from Akim Demaille.
97187
97188 2000-04-17  Jim Meyering  <meyering@lucent.com>
97189
97190         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97191         the definition of it to rpl_strftime also defined-away the system's
97192         declaration.
97193
97194 2000-04-15  Jim Meyering  <meyering@lucent.com>
97195
97196         Use `C' to denote so-called `contiguous' files, the same way
97197         that tar does.
97198         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97199         (ftypelet): Use S_ISCTG.
97200         From Michael Deutschmann.
97201
97202 2000-04-14  Jim Meyering  <meyering@lucent.com>
97203
97204         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97205         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97206         clobbered.
97207
97208 2000-04-14  Jim Meyering  <meyering@lucent.com>
97209
97210         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97211
97212 2000-04-13  Jim Meyering  <meyering@lucent.com>
97213
97214         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97215         AH_VERBATIM to insert required #ifndef into config.h.in.
97216         Suggestion from Akim Demaille.
97217
97218 2000-04-12  Jim Meyering  <meyering@lucent.com>
97219
97220         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97221         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97222         Christian Krackowizer.
97223
97224         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97225         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97226         (AC_SYS_LARGEFILE): Require.
97227         (AM_C_PROTOTYPES): Require.
97228
97229 2000-04-08  Jim Meyering  <meyering@lucent.com>
97230
97231         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97232         names don't conflict.  Reported by Eli Zaretskii.
97233
97234 2000-04-07  Jim Meyering  <meyering@lucent.com>
97235
97236         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97237         sys/types.h, to work around system header problems on AIX 3.2.5.
97238         From Bruno Haible.
97239
97240 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97241
97242         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97243         bug.  Deal with the different error behavior of Irix iconv.
97244
97245 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97246
97247         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97248         IRIX if the installer said otherwise.
97249
97250 2000-04-05  Jim Meyering  <meyering@lucent.com>
97251
97252         Portability tweaks required for ultrix4.3.
97253         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97254         (jm_CHECK_DECLS): Add getutent to the list of functions.
97255         (_jm_DECL_HEADERS): Add utmpx.h.
97256         From John David Anglin.
97257
97258         * m4/strftime.m4: Back out the 2000-04-02 change.
97259         Instead of that change, simply undefine putenv in the test program.
97260
97261 2000-04-05  Jim Meyering  <meyering@lucent.com>
97262
97263         Portability tweaks required for ultrix4.3.
97264         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97265         getutent.
97266         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97267         * lib/canon-host.c: Declare strdup.
97268         * lib/path-concat.c: Likewise.
97269         From John David Anglin.
97270
97271 2000-04-04  Jim Meyering  <meyering@lucent.com>
97272
97273         Be more DOS 8.3-friendly.
97274         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97275         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97276         * lib/Makefile.am: Reflect renaming.
97277         Reported by Eli Zaretskii.
97278
97279         Use a temporary file name that won't clash with `charset.alias'
97280         in the DOS 8.3 name space.
97281         * lib/Makefile.am (charset_tmp): Define.
97282         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97283         (uninstall-local): Likewise.
97284         Reported by Eli Zaretskii.
97285
97286 2000-04-03  Jim Meyering  <meyering@lucent.com>
97287
97288         * m4/gettext.m4: Fix typo in comment.
97289
97290         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97291         textutils/configure.in).  Suggestion from Paul Eggert.
97292         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97293
97294 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97295
97296         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97297         variable in the shell rather than using putenv, which isn't
97298         portable.  This avoids the configure-time inter-test dependency
97299         on the potentially-renamed putenv function.
97300
97301 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97302
97303         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97304         before checking struct stat.st_blksize, so that
97305         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97306
97307 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97308
97309         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97310         since strftime.c uses HAVE_STRFTIME to decide whether to use
97311         the underlying strftime.
97312
97313 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97314
97315         * lib/time/strftime.c (my_strftime): Make sure we call the system
97316         strftime, not ourselves, when invoking the underlying strftime.
97317
97318 2000-03-24  Jim Meyering  <meyering@lucent.com>
97319
97320         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97321         (charset_alias): Define.
97322         (install-exec-local): Factor out common code.
97323         (uninstall-local): Split lines longer than 80.
97324         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97325         (SUFFIXES): Define.
97326         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97327         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97328
97329 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97330
97331         * lib/config.charset: Output a line containing "Packages using this
97332         file".
97333         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97334         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97335         ref-del.sed): New rules.
97336
97337 2000-03-17  Jim Meyering  <meyering@lucent.com>
97338
97339         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97340         Otherwise, include <strings.h>
97341
97342 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97343
97344         * lib/unicodeio.c (utf8_wctomb): New function.
97345         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97346         format instead of in UCS-4 with platform dependent endianness.
97347
97348 2000-03-10  Jim Meyering  <meyering@lucent.com>
97349
97350         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97351         From Marco Franzen.
97352
97353 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97354
97355         * lib/savedir.c (savedir): Work even if directory size is
97356         negative; this can happen with some screwy NFS configurations.
97357
97358 2000-03-06  Jim Meyering  <meyering@lucent.com>
97359
97360         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97361         if it's NULL (because we ran out of memory).  From Bruno Haible.
97362
97363 2000-03-05  Jim Meyering  <meyering@lucent.com>
97364
97365         * lib/localcharset.c ("path-concat.h"): Include.
97366         (get_charset_aliases): Use path_concat instead of ANSI string
97367         concatenation.
97368
97369         * lib/unicodeio.h (PARAMS): Define.
97370         Use it to guard prototype.
97371
97372 2000-03-04  Jim Meyering  <meyering@lucent.com>
97373
97374         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97375         for lib/localcharset.c.
97376
97377 2000-03-04  Jim Meyering  <meyering@lucent.com>
97378
97379         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97380         installing into it.
97381         (uninstall-local): Uncomment this rule so `make distcheck' works
97382         once again.
97383
97384         * lib/unicodeio.c (<errno.h>): Include it.
97385         (errno): Declare if not defined.
97386
97387         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97388
97389         * lib/config.charset: New version, incorporating remarks from a linux
97390         i18n mailing list.  From Bruno Haible.
97391
97392 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97393
97394         * m4/codeset.m4: New file.
97395         * m4/iconv.m4: New file.
97396         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97397
97398 2000-03-03  Jim Meyering  <meyering@lucent.com>
97399
97400         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97401
97402 2000-03-02  Jim Meyering  <meyering@lucent.com>
97403
97404         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97405         the messages come out on separate lines.
97406
97407         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97408         rather than jm_CHECK_DECLARATIONS.
97409         * m4/decl.m4: Remove now-unused file.
97410
97411         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97412         geteuid.
97413
97414 2000-03-02  Jim Meyering  <meyering@lucent.com>
97415
97416         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97417
97418 2000-03-01  Jim Meyering  <meyering@lucent.com>
97419
97420         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97421         * lib/unicodeio.c: Likewise.
97422
97423 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97424
97425         * lib/config.charset: New file.
97426         * lib/localcharset.c: New file.
97427         * lib/unicodeio.h, lib/unicodeio.c: New files.
97428         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97429         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97430         (noinst_HEADERS): Add unicodeio.h.
97431         (all-local, install-exec-local, charset.alias): New targets.
97432
97433 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97434
97435         * lib/quotearg.c (ALERT_CHAR): New macro.
97436         (quotearg_buffer_restyled): Use it.
97437
97438 2000-02-27  Jim Meyering  <meyering@lucent.com>
97439
97440         * m4/check-decl.m4: Add getenv to the list.
97441
97442 2000-02-27  Jim Meyering  <meyering@lucent.com>
97443
97444         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97445         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97446
97447         * lib/backupfile.c: Guard inclusion of stdlib.h with
97448         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97449         Declare malloc if needed.
97450
97451         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97452         `#ifndef HAVE_DECL..'
97453         now that autoconf always defines the HAVE_DECL_ symbols.
97454         * lib/human.c: Likewise.
97455         * lib/same.c: Likewise.
97456         * lib/strtoumax.c: Likewise.
97457
97458         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97459         declaration check was not run.
97460         * lib/hash.c: Likewise.
97461         * lib/human.c: Likewise.
97462         * lib/same.c: Likewise.
97463         * lib/strtoumax.c: Likewise.
97464
97465         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97466         `.', then first look up the entire `.'-containing string as a login
97467         name.
97468
97469 2000-02-23  Jim Meyering  <meyering@lucent.com>
97470
97471         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97472         in place of my hack.
97473
97474 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97475
97476         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97477         (textint): New typedef.
97478         (parser_control): Member year changed from int to textint.
97479         All uses changed.
97480         (YYSTYPE): Removed; replaced by %union with int and textint members.
97481         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97482         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97483         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97484         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97485         (date, number, to_year): Use width of number in digits, not its value,
97486         to determine whether it's a 2-digit year, or a 2-digit time.
97487         (yylex): Store number of digits of numeric tokens.
97488         Reported by John Kendall.
97489
97490         (parser_control): Changed from struct parser_control to typedef (for
97491         consistency).  All uses changed.
97492
97493         (tID): Removed; not used.
97494         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97495
97496 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97497
97498         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97499         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97500
97501 2000-02-12  Jim Meyering  <meyering@lucent.com>
97502
97503         * lib/userspec.c (ISDIGIT): Define it.
97504         (isdigit): Remove definition.
97505         (is_number): Use ISDIGIT, not isdigit.
97506         <libintl.h>: Include.
97507         (_ and N_): Define.
97508         (parse_user_spec): Mark translatable strings.
97509
97510 2000-02-10  Jim Meyering  <meyering@lucent.com>
97511
97512         With these changes, nanosleep.[ch] are finally enough like the other
97513         lib/* replacement files to compile on a few more losing systems.
97514
97515         * lib/nanosleep.h: Don't include config.h.
97516         Remove prototype from declaration of nanosleep.
97517         (PARAMS): Remove now-unneeded definition.
97518         * lib/nanosleep.c: #undef nanosleep.
97519         (rpl_nanosleep): Rename from nanosleep.
97520
97521 2000-02-10  Jim Meyering  <meyering@lucent.com>
97522
97523         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97524         gnu_nanosleep to rpl_nanosleep.
97525
97526 2000-02-09  Jim Meyering  <meyering@lucent.com>
97527
97528         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97529         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97530
97531 2000-02-08  Akim Demaille  <akim@epita.fr>
97532
97533         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97534         `[' and `]' and remove uses of `changequote'.
97535         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97536         (AC_SYS_LARGEFILE): Likewise.
97537         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97538         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97539         of changequote.
97540         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97541         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97542         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97543         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97544
97545 2000-02-05  Jim Meyering  <meyering@lucent.com>
97546
97547         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97548         Remove explicit use of AC_HEADER_TIME.  It is required by
97549         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97550         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97551         in autoconf whereby the expansion of the latter ended up preceding
97552         the expansion of its prerequisite, AC_HEADER_TIME.
97553         Reported by Volker Borchert.
97554
97555 2000-02-03  Jim Meyering  <meyering@lucent.com>
97556
97557         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97558
97559 2000-02-03  Jim Meyering  <meyering@lucent.com>
97560
97561         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97562         rather than with `#if HAVE_UTMPNAME'.
97563
97564 2000-02-02  Jim Meyering  <meyering@lucent.com>
97565
97566         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97567         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97568         Reported by Eli Zaretskii.
97569
97570 2000-02-01  Jim Meyering  <meyering@lucent.com>
97571
97572         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97573
97574 2000-01-31  Jim Meyering  <meyering@lucent.com>
97575
97576         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97577         functions.  Add the time.h and sys/time.h headers along with the
97578         AC_REQUIRE'ment of AC_HEADER_TIME.
97579
97580 2000-01-31  Jim Meyering  <meyering@lucent.com>
97581
97582         * lib/nanosleep.h (nanosleep): Guard declaration with
97583         `#if ! HAVE_DECL_NANOSLEEP'.
97584         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
97585         the declaration in that vendor's sys/timers.h.
97586         Reported by Christian Krackowizer.
97587
97588         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
97589         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
97590         (ISPRINT): Likewise.
97591         Reported by Tom Tromey.
97592
97593 2000-01-30  Jim Meyering  <meyering@lucent.com>
97594
97595         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
97596
97597         * m4/prereq.m4 (utmp_includes): Define.
97598         Check for ut_user and ut_name members in both struct utmpx
97599         and struct utmp.
97600
97601 2000-01-30  Jim Meyering  <meyering@lucent.com>
97602
97603         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
97604         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
97605         header files where only utmpx.ut_user is declared.
97606
97607         * lib/readutmp.h (UT_USER): Define.
97608
97609 2000-01-29  Jim Meyering  <meyering@lucent.com>
97610
97611         * m4/lib-check.m4: New file containing library-related checks from
97612         fileutils and sh-utils (textutils had none).
97613
97614 2000-01-28  Jim Meyering  <meyering@lucent.com>
97615
97616         * m4/perl.m4: Change format of warning message to look more like that
97617         from the missing script.  Suggestion from François Pinard.
97618
97619 2000-01-25  Jim Meyering  <meyering@lucent.com>
97620
97621         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
97622         well as time.h in the compile check.
97623         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
97624         Fix typo in cross-compiling case: s/yes/no/.
97625
97626 2000-01-23  Jim Meyering  <meyering@lucent.com>
97627
97628         * m4/jm-macros.m4: Move df-related tests here from
97629         fileutils/configure.in
97630
97631         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
97632         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
97633
97634         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
97635         s/space/ac_fsusage_space/.
97636         (jm_FILE_SYSTEM_USAGE): Take two parameters.
97637
97638         * m4/ftruncate.m4: New file (derived from part of
97639         fileutils/configure.in).
97640         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
97641         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
97642
97643         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
97644         AC_SUBST these here, rather than just in sh-util/configure.in, so
97645         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
97646         all the same.
97647         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
97648         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
97649         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
97650         (AC_SUBST(POW_LIBM)): Likewise.
97651         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
97652
97653 2000-01-23  Jim Meyering  <meyering@lucent.com>
97654
97655         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
97656         obstack.c.
97657
97658 2000-01-22  Jim Meyering  <meyering@lucent.com>
97659
97660         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
97661
97662         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
97663
97664         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
97665         configure.in
97666         (AC_CHECK_HEADERS): Likewise for sh-utils.
97667         (AC_CHECK_HEADERS): Likewise for textutils.
97668         Merge the three lists of headers.
97669
97670         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
97671         from fileutils' configure.in.
97672
97673         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
97674         code. Moved tests into their own function (_jm_DECL_HEADERS) in
97675         check-decl.m4.
97676
97677         * m4/check-decl.m4: Use #if rather than #ifdef.
97678         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
97679         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
97680         (_jm_DECL_HEADERS): Define new function.
97681         (jm_CHECK_DECLARATIONS): Require it.
97682
97683 2000-01-22  Jim Meyering  <meyering@lucent.com>
97684
97685         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
97686         [! HAVE_DECL_STRTOULL]: Declare strtoull.
97687         Required for some AIX systems.  Reported by Christian Krackowizer.
97688         [TESTING] (main): New function.
97689
97690         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
97691         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
97692         letters.
97693
97694         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
97695         iswprint.
97696
97697         * lib/strverscmp.c (ISDIGIT): Define.
97698         (strverscmp): Use ISDIGIT, not isdigit.
97699
97700 2000-01-19  Jim Meyering  <meyering@lucent.com>
97701
97702         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
97703         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
97704         defines `struct timespec' in <sys/time.h>
97705
97706         * m4/c-bs-a.m4: Remove uses of changequote altogether.
97707         Thanks to Akim for explaining.
97708
97709 2000-01-17  Paul Eggert  <eggert@twinsun.com>
97710
97711         * lib/nanosleep.c (nanosleep):
97712         Don't use SA_INTERRUPT to decide whether to call sigaction, as
97713         POSIX.1 doesn't require SA_INTERRUPT and some systems
97714         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
97715         it's been part of POSIX.1 since day 1 (in 1988).
97716
97717 2000-01-17  Jim Meyering  <meyering@lucent.com>
97718
97719         * lib/interlock: Remove unused file.  Reported by François Pinard.
97720
97721 2000-01-16  Paul Eggert  <eggert@twinsun.com>
97722
97723         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
97724         alert, backslash, formfeed, and vertical tab unnecessarily in
97725         shell quoting style.
97726
97727 2000-01-16  Jim Meyering  <meyering@lucent.com>
97728
97729         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
97730         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
97731         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
97732         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
97733
97734 2000-01-16  Jim Meyering  <meyering@lucent.com>
97735
97736         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
97737         because the latter didn't work.
97738
97739 2000-01-15  Jim Meyering  <meyering@lucent.com>
97740
97741         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
97742         (AC_REPLACE_FUNCS): Add memcpy and memset.
97743         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
97744         Add strpbrk.
97745         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
97746
97747 2000-01-12  Jim Meyering  <meyering@lucent.com>
97748
97749         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
97750         (jm_PREREQ): Use it.
97751         (jm_PREREQ_READUTMP): New macro.
97752         (jm_PREREQ): Use it.
97753
97754 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97755
97756         Quote multibyte characters correctly.
97757         * m4/c-bs-a.m4: New file.
97758         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
97759         (jm_PREREQ): Use it.
97760
97761 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97762
97763         * m4/uintmax_t.m4: Port to autoconf 2.13.
97764
97765 2000-01-08  Jim Meyering  <meyering@ascend.com>
97766
97767         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
97768         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
97769
97770 2000-01-04  Jim Meyering  <meyering@ascend.com>
97771
97772         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
97773         jm_STRUCT_DIRENT_D_TYPE.
97774         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
97775         jm_STRUCT_DIRENT_D_INO.
97776         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
97777         jm_STRUCT_UTIMBUF.
97778         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
97779         renamings.
97780         * m4/utime.m4: Likewise.
97781
97782         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
97783         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
97784
97785 2000-01-03  Paul Eggert  <eggert@twinsun.com>
97786
97787         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
97788         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
97789
97790 2000-01-02  Jim Meyering  <meyering@ascend.com>
97791
97792         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
97793         remember if this is necessary.
97794
97795 1999-12-26  Jim Meyering  <meyering@ascend.com>
97796
97797         * m4/jm-macros.m4: Use it here.
97798         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
97799
97800 1999-12-23  Jim Meyering  <meyering@ascend.com>
97801
97802         * m4/jm-macros.m4: Check for clock_gettime (moved from
97803         fileutils/configure.in)
97804         Check for gettimeofday.
97805
97806 1999-12-20  Jim Meyering  <meyering@ascend.com>
97807
97808         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
97809         autoconf-2.14a-1999-12-20.
97810
97811 1999-12-19  Jim Meyering  <meyering@ascend.com>
97812
97813         * m4/lstat-slash.m4: New file.
97814         * m4/jm-macros.m4: Use the new macro:
97815         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97816
97817 1999-12-07  Jim Meyering  <meyering@ascend.com>
97818
97819         * m4/perl.m4: Require that File::Compare be available, too.
97820         Too many systems seem to lack it.
97821
97822         * m4/strftime.m4: Add checks for most of the cpp macros tested in
97823         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
97824
97825 1999-11-18  Paul Eggert  <eggert@twinsun.com>
97826
97827         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
97828         problem with the QNX 4.25 shell, which doesn't propagate exit
97829         status of failed commands inside shell assignments.
97830
97831 1999-11-17  Jim Meyering  <meyering@ascend.com>
97832
97833         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
97834
97835 1999-11-07  Jim Meyering  <meyering@ascend.com>
97836
97837         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
97838
97839 1999-11-06  Jim Meyering  <meyering@ascend.com>
97840
97841         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
97842         * m4/jm-macros.m4 (jm_MACROS): Use it here.
97843
97844 1999-11-05  Jim Meyering  <meyering@ascend.com>
97845
97846         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
97847         configure.in of textutils, fileutils, and sh-utils into this one
97848         (shared between those packages) file.
97849         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
97850         AC_STRUCT_ST_BLKSIZE.
97851
97852 1999-11-03  Jim Meyering  <meyering@ascend.com>
97853
97854         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
97855         of AC_CHECK_TYPE checks includes unistd.h.
97856         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
97857         Suggestion from Akim Demaille.
97858
97859 1999-10-30  Jim Meyering  <meyering@ascend.com>
97860
97861         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
97862         m4-quoted string.
97863         * m4/ls-mntd-fs.m4: Likewise.
97864         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
97865         * m4/jm-winsz1.m4: Likewise.
97866
97867         * m4/const.m4: Remove file, since the fix made it into the experimental
97868         version of autoconf.
97869         * m4/mktime.m4: Likewise.
97870
97871         * m4/check-type.m4: Remove file, now that the latest version of
97872         AC_CHECK_TYPE takes a third arg to specify additional #includes.
97873
97874         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
97875         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
97876         AC_CHECK_TYPE.
97877
97878 1999-10-04  Jim Meyering  <meyering@ascend.com>
97879
97880         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
97881
97882 1999-09-22  Paul Eggert  <eggert@twinsun.com>
97883
97884         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
97885         2.95.1 bug with HP-UX 10.20.
97886
97887 1999-09-17  Jim Meyering  <meyering@ascend.com>
97888
97889         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
97890         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
97891         due to missing strdup (against sh-utils-2.0).
97892
97893 1999-08-29  Jim Meyering  <meyering@ascend.com>
97894
97895         * m4/jm-macros.m4: Require jm_BISON.
97896         * m4/bison.m4: New file.
97897
97898 1999-08-17  Paul Eggert  <eggert@twinsun.com>
97899
97900         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
97901         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
97902
97903 1999-08-05  Jim Meyering  <meyering@ascend.com>
97904
97905         * m4/getline.m4: Rename test file from conftestdata to conftest.data
97906         to avoid conflicts with `conftest' on 8+3 filesystems.
97907         Suggestion from Eli Zaretskii.
97908
97909 1999-08-04  Jim Meyering  <meyering@ascend.com>
97910
97911         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
97912         fileutils and sh-utils (textutils's getline test was inadequate).
97913         (AM_FUNC_GETLINE): Run this test.
97914         (AC_CHECK_FUNCS): Check for getdelim.
97915         Reported by Bob Proulx.
97916
97917 1999-08-02  Jim Meyering  <meyering@ascend.com>
97918
97919         * m4/jm-macros.m4: Add a comment.
97920
97921 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97922
97923         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
97924         <inttypes.h> defines strtoumax as a macro (and not as a
97925         function).
97926
97927 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97928
97929         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
97930         that we can shift, multiply and divide unsigned long long
97931         values; Ultrix cc can't do it.
97932
97933 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97934
97935         * m4/mktime.m4: New file, which is a preview of what should appear
97936         in the next public autoconf release.
97937
97938 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97939
97940         * m4/lfs.m4: Remove this file.
97941         * m4/largefile.m4: New file.  It contains the old contents of
97942         lfs.m4, except that all names with prefix AC_LFS have been
97943         changed to use the prefix AC_SYS_LARGEFILE instead, to be
97944         compatible with future autoconf versions.  Also, some minor m4
97945         quoting problems have been fixed.
97946
97947 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97948
97949         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
97950         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
97951         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
97952         and simplify the shell code.
97953
97954 1999-08-01  Jim Meyering  <meyering@ascend.com>
97955
97956         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
97957         m4.
97958
97959 1999-07-20  Jim Meyering  <meyering@ascend.com>
97960
97961         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
97962
97963 1999-07-15  Jim Meyering  <meyering@ascend.com>
97964
97965         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
97966
97967 1999-05-22  Jim Meyering  <meyering@ascend.com>
97968
97969         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
97970
97971 1999-05-20  Jim Meyering  <meyering@ascend.com>
97972
97973         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
97974         Add a colon after each `then' in case $4 is empty.
97975
97976 1999-05-16  Jim Meyering  <meyering@ascend.com>
97977
97978         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
97979
97980 1999-05-10  Jim Meyering  <meyering@ascend.com>
97981
97982         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
97983
97984         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
97985         AC_FUNC_MKTIME.
97986
97987 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
97988
97989         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
97990
97991 1999-05-04  Paul Eggert  <eggert@twinsun.com>
97992
97993         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
97994         not CPPFLAGS, so that linking works correctly in IRIX.
97995
97996 1999-04-30  Paul Eggert  <eggert@twinsun.com>
97997
97998         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
97999
98000 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98001
98002         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98003         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98004         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98005         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98006         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98007
98008         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98009
98010 1999-04-20  Jim Meyering  <meyering@ascend.com>
98011
98012         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98013         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98014         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98015
98016 1999-04-18  Jim Meyering  <meyering@ascend.com>
98017
98018         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98019         * m4/jm-macros.m4: Use it.
98020
98021 1999-04-06  Jim Meyering  <meyering@ascend.com>
98022
98023         * m4/strftime.m4: Remove test for %f.
98024
98025 1999-03-29  Jim Meyering  <meyering@ascend.com>
98026
98027         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98028         superset of the AC_TYPE_* checks in the textutils, fileutils,
98029         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98030         AC_TYPE_PID_T.
98031
98032 1999-03-28  Jim Meyering  <meyering@ascend.com>
98033
98034         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98035         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98036         replaced e.g., in the *.sh files of the sh-utils.
98037
98038 1999-03-20  Jim Meyering  <meyering@ascend.com>
98039
98040         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98041         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98042         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98043
98044 1999-03-19  Jim Meyering  <meyering@ascend.com>
98045
98046         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98047
98048 1999-03-12  Jim Meyering  <meyering@ascend.com>
98049
98050         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98051
98052 1999-03-07  Jim Meyering  <meyering@ascend.com>
98053
98054         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98055         declared.
98056
98057 1999-02-17  Jim Meyering  <meyering@ascend.com>
98058
98059         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98060         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98061
98062 1999-02-07  Jim Meyering  <meyering@ascend.com>
98063
98064         * m4/group-member.m4: New file -- extracted from sh-utils'
98065         configure.in.
98066
98067         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98068         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98069
98070 1999-02-06  Jim Meyering  <meyering@ascend.com>
98071
98072         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98073         * m4/fnmatch.m4: Likewise.
98074         * m4/getgroups.m4: Likewise.
98075         * m4/lstat.m4: Likewise.
98076         * m4/malloc.m4: Likewise.
98077         * m4/putenv.m4: Likewise.
98078         * m4/realloc.m4: Likewise.
98079         * m4/regex.m4: Likewise.
98080         * m4/stat.m4: Likewise.
98081         * m4/strftime.m4: Likewise.
98082         Suggestion from Alain Magloire.
98083
98084         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98085         * m4/fnmatch.m4: Likewise.
98086         * m4/getgroups.m4: Likewise.
98087         * m4/getline.m4: Likewise.
98088         * m4/lstat.m4: Likewise.
98089         * m4/malloc.m4: Likewise.
98090         * m4/memcmp.m4: Likewise.
98091         * m4/putenv.m4: Likewise.
98092         * m4/realloc.m4: Likewise.
98093         * m4/regex.m4: Likewise.
98094         * m4/stat.m4: Likewise.
98095         * m4/strftime.m4: Likewise.
98096         Suggestion from Alain Magloire.
98097
98098         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98099         an argument.
98100
98101         * m4/regex.m4: Add a run-time Test for proper operation of
98102         re_compile_pattern.
98103
98104 1999-01-31  Jim Meyering  <meyering@ascend.com>
98105
98106         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98107
98108 1999-01-30  Jim Meyering  <meyering@ascend.com>
98109
98110         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98111
98112         * m4/jm-mktime.m4: Make this a wrapper around the official
98113         AM_FUNC_MKTIME rather than my private copy, now that the official one
98114         is up to date.
98115         * m4/mktime.m4: Remove file.
98116
98117         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98118         * m4/uptime.m4: Likewise.
98119         * m4/uintmax_t.m4: Likewise.
98120
98121 1999-01-28  Jim Meyering  <meyering@ascend.com>
98122
98123         * m4/jm-macros.m4: Use jm_AFS.
98124         * m4/afs.m4: New file (from fileutils' configure.in).
98125
98126         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98127         * m4/chown.m4: Likewise.
98128         * m4/d-ino.m4: Likewise.
98129         * m4/d-type.m4: Likewise.
98130         * m4/fnmatch.m4: Likewise.
98131         * m4/getgroups.m4: Likewise.
98132         * m4/gettext.m4: Likewise.
98133         * m4/jm-mktime.m4: Likewise.
98134         * m4/jm-winsz2.m4: Likewise.
98135         * m4/lcmessage.m4: Likewise.
98136         * m4/ls-mntd-fs.m4: Likewise.
98137         * m4/malloc.m4: Likewise.
98138         * m4/memcmp.m4: Likewise.
98139         * m4/putenv.m4: Likewise.
98140         * m4/realloc.m4: Likewise.
98141         * m4/st_mtim.m4: Likewise.
98142         * m4/strftime.m4: Likewise.
98143
98144 1999-01-16  Jim Meyering  <meyering@ascend.com>
98145
98146         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98147         (ARGMATCH_DIE_DECL): Define.
98148
98149 1999-01-12  Jim Meyering  <meyering@ascend.com>
98150
98151         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98152         Reported by Lars Hecking.
98153
98154 1999-01-10  Jim Meyering  <meyering@ascend.com>
98155
98156         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98157         gross kludge.
98158         * m4/inttypes_h.m4: Likewise.
98159         * m4/lstat.m4: Likewise.
98160         * m4/malloc.m4: Likewise.
98161         * m4/readdir.m4: Likewise.
98162         * m4/realloc.m4: Likewise.
98163         * m4/st_dm_mode.m4: Likewise.
98164         * m4/stat.m4: Likewise.
98165         * m4/utimbuf.m4: Likewise.
98166         * m4/utimes.m4: Likewise.
98167
98168         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98169         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98170         comments in config.h.in are meaningful.
98171
98172         * m4/jm-macros.m4: Require autoconf-2.13 here.
98173
98174         * m4/regex.m4: By default, don't use the included regex.c on systems
98175         with glibc 2.  Suggestion from Uli Drepper.
98176
98177 1999-01-02  Jim Meyering  <meyering@ascend.com>
98178
98179         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98180
98181 1998-12-18  Jim Meyering  <meyering@ascend.com>
98182
98183         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98184         Based on a suggestion from Lars Hecking.
98185
98186 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98187
98188         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98189
98190 1998-11-16  Jim Meyering  <meyering@ascend.com>
98191
98192         * m4/lfs.m4: Double-quote the `uname...` expression.
98193
98194 1998-11-14  Jim Meyering  <meyering@ascend.com>
98195
98196         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98197         * m4/stat.m4: Likewise.
98198
98199 1998-11-03  Jim Meyering  <meyering@ascend.com>
98200
98201         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98202         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98203
98204 1998-10-18  Jim Meyering  <meyering@ascend.com>
98205
98206         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98207
98208 1998-10-17  Jim Meyering  <meyering@ascend.com>
98209
98210         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98211         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98212         calls for those previously hard-coded headers.  Instead, take a new
98213         parameter.
98214         (jm_CHECK_DECLARATIONS): Reflect interface change.
98215         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98216         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98217
98218         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98219
98220 1998-10-14  Jim Meyering  <meyering@ascend.com>
98221
98222         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98223         instead of "TZ=America/Vancouver".  From Paul Eggert.
98224
98225 1998-10-11  Jim Meyering  <meyering@ascend.com>
98226
98227         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98228         This adds a test for a recently added compatibility fix for mktime.c.
98229         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98230
98231 1998-09-27  Jim Meyering  <meyering@ascend.com>
98232
98233         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98234
98235         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98236         ../configure.in, including a change from Gordon Matzigkeit to allow
98237         cross-compiling for the Hurd.
98238
98239         * m4/glibc.m4: New file/macro to test for the GNU C Library
98240         versions 1 and 2.  From Gordon Matzigkeit.
98241         Indent.
98242
98243 1998-09-21  Jim Meyering  <meyering@ascend.com>
98244
98245         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98246
98247 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98248
98249         Port nanosecond-resolution times to UnixWare 2.1.2 and
98250         pedantic Solaris 2.6.
98251
98252         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98253         AC_STRUCT_ST_MTIM.
98254         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98255         Generate name of ns member, instead of just 1 or undef.
98256         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98257
98258 1998-08-15  Jim Meyering  <meyering@ascend.com>
98259
98260         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98261         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98262         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98263         instead of jm_TYPE_SSIZE_T.
98264
98265 1998-08-12  Jim Meyering  <meyering@ascend.com>
98266
98267         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98268
98269 1998-08-02  Jim Meyering  <meyering@ascend.com>
98270
98271         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98272         in acconfig.h manually.
98273
98274 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98275
98276         * m4/st_mtim.m4: New file.
98277
98278 1998-07-28  Jim Meyering  <meyering@ascend.com>
98279
98280         * m4/utimes.m4: Undef stat.
98281
98282 1998-07-25  Jim Meyering  <meyering@ascend.com>
98283
98284         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98285         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98286
98287 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98288
98289         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98290         uid and gid actually remain unchanged.
98291
98292 1998-07-07  Jim Meyering  <meyering@ascend.com>
98293
98294         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98295
98296 1998-07-04  Jim Meyering  <meyering@ascend.com>
98297
98298         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98299         to prove that this macro can be used in packages without regex.c.
98300
98301 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98302
98303         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98304         is to be used.
98305
98306 1998-07-03  Jim Meyering  <meyering@ascend.com>
98307
98308         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98309
98310         * m4/gettext.m4: New file -- from gettext-0.10.35.
98311         * m4/lcmessage.m4: Likewise.
98312         * m4/progtest.m4: Likewise.
98313
98314         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98315         * m4/jm-macros.m4: Require the new macro.
98316
98317 1998-06-29  Jim Meyering  <meyering@ascend.com>
98318
98319         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98320         for the definition of NGROUPS (used in a system header included
98321         by sys/mount.h).
98322
98323 1998-06-28  Jim Meyering  <meyering@ascend.com>
98324
98325         * m4/ls-mntd-fs.m4: New file.
98326         * m4/fstypename.m4: New file.
98327
98328         * m4/jm-macros.m4: Require the new macro.
98329         * m4/jm-glibc-io.m4: New file.
98330
98331 1998-05-19  Jim Meyering  <meyering@ascend.com>
98332
98333         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98334         * m4/lchown.m4: New file.
98335
98336         * m4/Makefile.am.in: New file.
98337         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98338
98339 1998-05-14  Jim Meyering  <meyering@ascend.com>
98340
98341         * m4/Makefile.am (EXTRA_DIST): Add them.
98342         * m4/jm-macros.m4: New file.
98343         * m4/utimbuf.m4: New file.
98344
98345 1998-05-12  Jim Meyering  <meyering@ascend.com>
98346
98347         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98348
98349 1998-05-11  Jim Meyering  <meyering@ascend.com>
98350
98351         * m4/isc-posix.m4: New file.
98352
98353 1998-05-10  Jim Meyering  <meyering@ascend.com>
98354
98355         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98356
98357 1998-05-09  Jim Meyering  <meyering@ascend.com>
98358
98359         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98360         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98361         with automake.
98362
98363         * m4/ssize_t.m4: New file.
98364         * m4/mktime.m4: Remove file -- the new automake has this now.
98365
98366 1998-04-26  Jim Meyering  <meyering@ascend.com>
98367
98368         * m4/assert.m4: New file.
98369         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98370
98371 1998-04-05  Jim Meyering  <meyering@ascend.com>
98372
98373         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98374         (jm_PREREQ): Use it here.
98375
98376 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98377
98378         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98379         in acconfig.h.
98380
98381 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98382
98383         * m4/prereq.m4: New file.
98384         * m4/error.m4: New file.
98385         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98386
98387 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98388
98389         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98390         cache-check for the same variable -- that defeated the purpose of
98391         the test; the test program was never run.  This was a problem only
98392         on systems with losing getline functions -- HP-UX 10.20 is one.
98393         Reported by Bjorn Helgaas.
98394
98395 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98396
98397         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98398
98399 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98400
98401         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98402
98403         * m4/const.m4: New file.  Use an initializer in this declaration
98404         typedef int charset[2]; const charset x;
98405         Reported by Bob Glickstein.
98406
98407 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98408
98409         * m4/chown.m4: Fix reversed types on -1 args to chown.
98410         From Kaveh Ghazi.
98411
98412 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98413
98414         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98415         Add lseek and memchr.
98416
98417         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98418         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98419         have a 20-character limit on names.
98420
98421 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98422
98423         * m4/inttypes_h.m4: New file.
98424         * m4/uintmax_t.m4: New file.
98425         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98426
98427
98428         -----
98429
98430         Local Variables:
98431         coding: utf-8
98432         End:
98433
98434         Copyright (C) 1997-2012 Free Software Foundation, Inc.
98435
98436         Copying and distribution of this file, with or without
98437         modification, are permitted provided the copyright notice
98438         and this notice are preserved.